{"action":"created","issue":{"url":"https://api.github.com/repos/bwillis/versioncake/issues/70","repository_url":"https://api.github.com/repos/bwillis/versioncake","labels_url":"https://api.github.com/repos/bwillis/versioncake/issues/70/labels{/name}","comments_url":"https://api.github.com/repos/bwillis/versioncake/issues/70/comments","events_url":"https://api.github.com/repos/bwillis/versioncake/issues/70/events","html_url":"https://github.com/bwillis/versioncake/issues/70","id":273135255,"number":70,"title":"Documentation on supported_version_numbers","user":{"login":"hlascelles","id":299102,"avatar_url":"https://avatars2.githubusercontent.com/u/299102?v=4","gravatar_id":"","url":"https://api.github.com/users/hlascelles","html_url":"https://github.com/hlascelles","followers_url":"https://api.github.com/users/hlascelles/followers","following_url":"https://api.github.com/users/hlascelles/following{/other_user}","gists_url":"https://api.github.com/users/hlascelles/gists{/gist_id}","starred_url":"https://api.github.com/users/hlascelles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hlascelles/subscriptions","organizations_url":"https://api.github.com/users/hlascelles/orgs","repos_url":"https://api.github.com/users/hlascelles/repos","events_url":"https://api.github.com/users/hlascelles/events{/privacy}","received_events_url":"https://api.github.com/users/hlascelles/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-11-11T10:15:15Z","updated_at":"2017-11-16T16:42:12Z","closed_at":null,"author_association":"NONE","body":"Setting up config for a v3 application, we came across this:\r\n\r\n```\r\nVersionCake.setup do |config|\r\n  config.resources do |r|\r\n    r.resource %r{/users}, [], [1], [4]\r\n    r.resource %r{.*}, [], [], [2, 3]\r\n  end\r\nend\r\n\r\nVersionCake.config.supported_version_numbers #=> [10, 9, 8, 7, 6, 5, 4, 3, 2, 1]\r\n```\r\n\r\nI can see from the [versioncake source](https://github.com/bwillis/versioncake/blob/master/lib/versioncake/configuration.rb#L7) that the long list is the \"default\" set. \r\n\r\nWhy is it there? Isn't the list of `supported_version_numbers` just a union of all the resource `supported_versions` (deprecated + supported), ie [1, 2, 3, 4]?\r\n"},"comment":{"url":"https://api.github.com/repos/bwillis/versioncake/issues/comments/344982585","html_url":"https://github.com/bwillis/versioncake/issues/70#issuecomment-344982585","issue_url":"https://api.github.com/repos/bwillis/versioncake/issues/70","id":344982585,"user":{"login":"bwillis","id":245096,"avatar_url":"https://avatars2.githubusercontent.com/u/245096?v=4","gravatar_id":"","url":"https://api.github.com/users/bwillis","html_url":"https://github.com/bwillis","followers_url":"https://api.github.com/users/bwillis/followers","following_url":"https://api.github.com/users/bwillis/following{/other_user}","gists_url":"https://api.github.com/users/bwillis/gists{/gist_id}","starred_url":"https://api.github.com/users/bwillis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bwillis/subscriptions","organizations_url":"https://api.github.com/users/bwillis/orgs","repos_url":"https://api.github.com/users/bwillis/repos","events_url":"https://api.github.com/users/bwillis/events{/privacy}","received_events_url":"https://api.github.com/users/bwillis/received_events","type":"User","site_admin":false},"created_at":"2017-11-16T16:42:12Z","updated_at":"2017-11-16T16:42:12Z","author_association":"OWNER","body":"That was the default set to ensure gem onboarding was easier for v2. In v3, you are correct, [it's deprecated](https://github.com/bwillis/versioncake#configuration-changes-1) and the supported versions are gleaned from the resources.\r\n\r\nDoes that make sense?"}}
{"actor":{"display_login":"bwillis"}}