{"action":"created","issue":{"url":"https://api.github.com/repos/rails-sqlserver/tiny_tds/issues/207","labels_url":"https://api.github.com/repos/rails-sqlserver/tiny_tds/issues/207/labels{/name}","comments_url":"https://api.github.com/repos/rails-sqlserver/tiny_tds/issues/207/comments","events_url":"https://api.github.com/repos/rails-sqlserver/tiny_tds/issues/207/events","html_url":"https://github.com/rails-sqlserver/tiny_tds/pull/207","id":95405531,"number":207,"title":"Refactor build of freetds and iconv recipes and add OpenSSL.","user":{"login":"larskanis","id":176234,"avatar_url":"https://avatars.githubusercontent.com/u/176234?v=3","gravatar_id":"","url":"https://api.github.com/users/larskanis","html_url":"https://github.com/larskanis","followers_url":"https://api.github.com/users/larskanis/followers","following_url":"https://api.github.com/users/larskanis/following{/other_user}","gists_url":"https://api.github.com/users/larskanis/gists{/gist_id}","starred_url":"https://api.github.com/users/larskanis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/larskanis/subscriptions","organizations_url":"https://api.github.com/users/larskanis/orgs","repos_url":"https://api.github.com/users/larskanis/repos","events_url":"https://api.github.com/users/larskanis/events{/privacy}","received_events_url":"https://api.github.com/users/larskanis/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":38,"created_at":"2015-07-16T10:38:56Z","updated_at":"2015-08-17T12:49:41Z","closed_at":"2015-07-31T18:42:40Z","pull_request":{"url":"https://api.github.com/repos/rails-sqlserver/tiny_tds/pulls/207","html_url":"https://github.com/rails-sqlserver/tiny_tds/pull/207","diff_url":"https://github.com/rails-sqlserver/tiny_tds/pull/207.diff","patch_url":"https://github.com/rails-sqlserver/tiny_tds/pull/207.patch"},"body":"extconf.rb now checks for availability of freetds, with a fallback to the bundled mini_portile recipes.\r\n\r\nThis allows native build on Windows with download and compilation of all dependent libraries. This also adds a appveyor config for ci-testing of the native build. However [not all tests pass, so far](https://ci.appveyor.com/project/larskanis/tiny-tds). Unfortunately I don't have the experience with MSSQL to fix this.\r\n\r\nFor building windows binary gems this makes the switch to the new rake-compiler-dock. As described in the README, Windows binary gems can be built per `rake gem:windows`. I tested the build on Windows and Linux and the resulting gems on Windows 7 with Ruby-2.2.2-x86 and Ruby-2.2.2-x64.\r\n\r\nThe mini_portile recipes are changed, now, to build shared libraries. This decreases the fat binary Windows gem from around 7 MB to 2.5 MB, compared to a static build. To avoid any version mismatches with OpenSSL, I used a more specific naming scheme for OpenSSL dlls. This should avoid any contact with the DLL hell.\r\n\r\nWith shared libraries checking for iconv should not be necessary. That's why I removed it.\r\n\r\nThis fixes issues #200, #75 and hopefully helps for #196.\r\n\r\nEDIT:\r\nAs a further extension, I added the freetds source tar to the gem file. This should help for offline installations.\r\n\r\nIf someone would like to try the resulting gems, I've uploaded they [here](https://github.com/larskanis/tiny_tds/releases/tag/0.6.3.rc1.lars1) ."},"comment":{"url":"https://api.github.com/repos/rails-sqlserver/tiny_tds/issues/comments/131806170","html_url":"https://github.com/rails-sqlserver/tiny_tds/pull/207#issuecomment-131806170","issue_url":"https://api.github.com/repos/rails-sqlserver/tiny_tds/issues/207","id":131806170,"user":{"login":"dharmdip","id":21830,"avatar_url":"https://avatars.githubusercontent.com/u/21830?v=3","gravatar_id":"","url":"https://api.github.com/users/dharmdip","html_url":"https://github.com/dharmdip","followers_url":"https://api.github.com/users/dharmdip/followers","following_url":"https://api.github.com/users/dharmdip/following{/other_user}","gists_url":"https://api.github.com/users/dharmdip/gists{/gist_id}","starred_url":"https://api.github.com/users/dharmdip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dharmdip/subscriptions","organizations_url":"https://api.github.com/users/dharmdip/orgs","repos_url":"https://api.github.com/users/dharmdip/repos","events_url":"https://api.github.com/users/dharmdip/events{/privacy}","received_events_url":"https://api.github.com/users/dharmdip/received_events","type":"User","site_admin":false},"created_at":"2015-08-17T12:49:41Z","updated_at":"2015-08-17T12:49:41Z","body":"Hi @metaskills, \r\n\r\nDo you have any idea for this?"}}