{"action":"created","issue":{"url":"https://api.github.com/repos/cucumber/gherkin/issues/195","repository_url":"https://api.github.com/repos/cucumber/gherkin","labels_url":"https://api.github.com/repos/cucumber/gherkin/issues/195/labels{/name}","comments_url":"https://api.github.com/repos/cucumber/gherkin/issues/195/comments","events_url":"https://api.github.com/repos/cucumber/gherkin/issues/195/events","html_url":"https://github.com/cucumber/gherkin/issues/195","id":144517992,"number":195,"title":"Add support for \"active\" tags in gherkin","user":{"login":"dg-ratiodata","id":1267524,"avatar_url":"https://avatars.githubusercontent.com/u/1267524?v=3","gravatar_id":"","url":"https://api.github.com/users/dg-ratiodata","html_url":"https://github.com/dg-ratiodata","followers_url":"https://api.github.com/users/dg-ratiodata/followers","following_url":"https://api.github.com/users/dg-ratiodata/following{/other_user}","gists_url":"https://api.github.com/users/dg-ratiodata/gists{/gist_id}","starred_url":"https://api.github.com/users/dg-ratiodata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dg-ratiodata/subscriptions","organizations_url":"https://api.github.com/users/dg-ratiodata/orgs","repos_url":"https://api.github.com/users/dg-ratiodata/repos","events_url":"https://api.github.com/users/dg-ratiodata/events{/privacy}","received_events_url":"https://api.github.com/users/dg-ratiodata/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cucumber/gherkin/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-03-30T09:31:29Z","updated_at":"2016-03-30T21:53:08Z","closed_at":null,"body":"__Background:__\r\n\r\nIn `behave` (https://github.com/behave/behave) there are tags available known as \"active tags\". In `aruba` we use quite a few tags which look similar to this one `@unsupported-on-ruby-older-193` to work around ruby version problems or just some other library which is broken in version \"X.Y\".\r\n\r\naruba: [features/development/test.feature](https://github.com/cucumber/aruba/blob/1939c4049d5195ffdd967485f50119bdd86e98a0/features/development/test.feature#L17):\r\n~~~gherkin\r\n  @unsupported-on-ruby-older-193\r\n  Scenario: Testing compliance to ruby community guide\r\n    Given I successfully run `rubocop`\r\n    Then the features should all pass\r\n~~~\r\n\r\n__Feature Request:__\r\n\r\nWhat I'd love to see is:\r\n\r\n~~~gherkin\r\n  @required-ruby: >= 1.9.3\r\n  Scenario: Testing compliance to ruby community guide\r\n    Given I successfully run `rubocop`\r\n    Then the features should all pass\r\n~~~\r\n\r\nAnd this:\r\n\r\nNot sure, if this syntax is a good one. Maybe it should look different and is an implementation detail of `cucumber-ruby`.\r\n\r\n~~~ruby\r\nBefore '@required-ruby' do |argument, matcher|\r\n  # I had no better idea how to express my idea... as using the rspec syntax\r\n  skip_this_scenario if expect(argument).to matcher(RUBY_VERSION)\r\nend\r\n~~~\r\n\r\nOr run features with tag-filter with argument given to tag:\r\n\r\n~~~bash\r\ncucumber --tag @required-ruby:1.9.3\r\n~~~\r\n\r\nThings to discuss - I think there are more to discuss\r\n\r\n* [ ] Is this a good thing to have such tags\r\n* [ ] Are matchers accepted\r\n* [ ] Which matchers are accepted - eg. =, <=, >=, <, >, != or <>, =~\r\n* [ ] No matcher given equals = ?\r\n\r\n\r\nPing @cucumber/core As there also needs to be some implementation on the cucumber* side.\r\n\r\n@mattwynne Hope it's ok to open an issue for that. I really like the idea of having such kind of tags."},"comment":{"url":"https://api.github.com/repos/cucumber/gherkin/issues/comments/203651887","html_url":"https://github.com/cucumber/gherkin/issues/195#issuecomment-203651887","issue_url":"https://api.github.com/repos/cucumber/gherkin/issues/195","id":203651887,"user":{"login":"maxmeyer","id":114236,"avatar_url":"https://avatars.githubusercontent.com/u/114236?v=3","gravatar_id":"","url":"https://api.github.com/users/maxmeyer","html_url":"https://github.com/maxmeyer","followers_url":"https://api.github.com/users/maxmeyer/followers","following_url":"https://api.github.com/users/maxmeyer/following{/other_user}","gists_url":"https://api.github.com/users/maxmeyer/gists{/gist_id}","starred_url":"https://api.github.com/users/maxmeyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxmeyer/subscriptions","organizations_url":"https://api.github.com/users/maxmeyer/orgs","repos_url":"https://api.github.com/users/maxmeyer/repos","events_url":"https://api.github.com/users/maxmeyer/events{/privacy}","received_events_url":"https://api.github.com/users/maxmeyer/received_events","type":"User","site_admin":false},"created_at":"2016-03-30T21:53:08Z","updated_at":"2016-03-30T21:53:08Z","body":"@enkessler Added =~ to the list of matchers."}}