{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/logstash/issues/4236","labels_url":"https://api.github.com/repos/elastic/logstash/issues/4236/labels{/name}","comments_url":"https://api.github.com/repos/elastic/logstash/issues/4236/comments","events_url":"https://api.github.com/repos/elastic/logstash/issues/4236/events","html_url":"https://github.com/elastic/logstash/issues/4236","id":117858838,"number":4236,"title":"logstash-core* version constrains problem","user":{"login":"colinsurprenant","id":2010,"avatar_url":"https://avatars.githubusercontent.com/u/2010?v=3","gravatar_id":"","url":"https://api.github.com/users/colinsurprenant","html_url":"https://github.com/colinsurprenant","followers_url":"https://api.github.com/users/colinsurprenant/followers","following_url":"https://api.github.com/users/colinsurprenant/following{/other_user}","gists_url":"https://api.github.com/users/colinsurprenant/gists{/gist_id}","starred_url":"https://api.github.com/users/colinsurprenant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/colinsurprenant/subscriptions","organizations_url":"https://api.github.com/users/colinsurprenant/orgs","repos_url":"https://api.github.com/users/colinsurprenant/repos","events_url":"https://api.github.com/users/colinsurprenant/events{/privacy}","received_events_url":"https://api.github.com/users/colinsurprenant/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elastic/logstash/labels/bug","name":"bug","color":"e11d21"},{"url":"https://api.github.com/repos/elastic/logstash/labels/discuss","name":"discuss","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-11-19T17:03:54Z","updated_at":"2015-11-19T18:35:04Z","closed_at":null,"body":"currently our gemspecs uses constrains on logstash-core (and soon logstash-core-event), let's call them the core gems, using a pattern similar to:\r\n```\r\ns.add_runtime_dependency \"logstash-core\", '>= 1.4.0', '< 2.0.0'\r\n```\r\n\r\nthe problem with this notation is that a logstash-core gem release version 2.0.0.rc1 is considered prior to 2.0.0, because it is a \"pre-release\" version so a gem version `2.0.0.rc1` would satisfy the `< 2.0.0` constrain. \r\n\r\nObviously the intent in specifying `< 2.0.0` is to exclude anything 2.0.**ish** but I guess that semantically the current behaviour is arguable. \r\n\r\nOne possible solution is to specify `~> 1.4` but then this notation does not allow **any** pre-release versions to satisfy the constrain which is bad since we need to release pre-release beta/rc packages that uses pre-release gem versions.\r\n\r\nI am not sure what our options are. A solution is required for current and future releases and should ideally be also applied to the 1.5 branch.\r\n\r\nThis related to #4235 logstash-plugins/logstash-output-file#22 #4188 #4231 \r\n"},"comment":{"url":"https://api.github.com/repos/elastic/logstash/issues/comments/158149316","html_url":"https://github.com/elastic/logstash/issues/4236#issuecomment-158149316","issue_url":"https://api.github.com/repos/elastic/logstash/issues/4236","id":158149316,"user":{"login":"jordansissel","id":131818,"avatar_url":"https://avatars.githubusercontent.com/u/131818?v=3","gravatar_id":"","url":"https://api.github.com/users/jordansissel","html_url":"https://github.com/jordansissel","followers_url":"https://api.github.com/users/jordansissel/followers","following_url":"https://api.github.com/users/jordansissel/following{/other_user}","gists_url":"https://api.github.com/users/jordansissel/gists{/gist_id}","starred_url":"https://api.github.com/users/jordansissel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jordansissel/subscriptions","organizations_url":"https://api.github.com/users/jordansissel/orgs","repos_url":"https://api.github.com/users/jordansissel/repos","events_url":"https://api.github.com/users/jordansissel/events{/privacy}","received_events_url":"https://api.github.com/users/jordansissel/received_events","type":"User","site_admin":false},"created_at":"2015-11-19T18:35:04Z","updated_at":"2015-11-19T18:35:04Z","body":"I comfort myself in that this isn't a unicode problem, at least ;P"}}