versioncake 3.2.0 → 3.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f84afe2a8666bd9519a29fcc2e1a586a112cc0af
4
- data.tar.gz: 6099b97d3dd4d7c03079adda4023ba0f8cdf73ac
3
+ metadata.gz: 528ead5896829c40e35bf158b7313781c6e0f617
4
+ data.tar.gz: 5f6ad615f20ebb354e48645000dc3d06a2dccf51
5
5
  SHA512:
6
- metadata.gz: a41ea97ca34301cdf0ad20e7a3697333e85dc51b07474af15cc5fe92bcc7816ea838303c473979260686b414846896599c717ee3b33e1acfb9e6be413069eb8e
7
- data.tar.gz: 8fb2a7b282d56c12ebef07c948a6dc9516d431164a1363b1827e7d28885894af788945e3eed8116fdbbdcb95c395834bcda796c44e50d7797866d22a640474c6
6
+ metadata.gz: 406f567291185122b3cb72391ce4cf72136256561353ee612fc4eb0207afec7854918bce313d18841f4be7ebe1b9b697115b7ed8967515801f340855987a65b6
7
+ data.tar.gz: da661fbcf7d007dd1d8dd43ac66338c13cd4d42b2aae6e7c84e952e85a37b716bc50750151ca4ad9ccff9f617aa13e2bb420a5a1cde07e143f04611654453acc
@@ -5,11 +5,12 @@ before_install:
5
5
  - gem install bundler
6
6
 
7
7
  rvm:
8
- - 1.9.2
8
+ - 1.9.2-p330
9
9
  - 1.9.3
10
10
  - 2.0.0
11
11
  - 2.1.0
12
12
  - 2.2.0
13
+ - 2.2.2
13
14
  - ruby-head
14
15
 
15
16
  gemfile:
@@ -17,15 +18,26 @@ gemfile:
17
18
  - gemfiles/rails4.0.gemfile
18
19
  - gemfiles/rails4.1.gemfile
19
20
  - gemfiles/rails4.2.gemfile
21
+ - gemfiles/rails5.0.gemfile
20
22
 
21
23
  matrix:
22
24
  exclude:
23
- - rvm: 1.9.2
25
+ - rvm: 1.9.2-p330
24
26
  gemfile: gemfiles/rails4.0.gemfile
25
- - rvm: 1.9.2
27
+ - rvm: 1.9.2-p330
26
28
  gemfile: gemfiles/rails4.1.gemfile
27
- - rvm: 1.9.2
29
+ - rvm: 1.9.2-p330
28
30
  gemfile: gemfiles/rails4.2.gemfile
31
+ - rvm: 1.9.2-p330
32
+ gemfile: gemfiles/rails5.0.gemfile
33
+ - rvm: 1.9.3
34
+ gemfile: gemfiles/rails5.0.gemfile
35
+ - rvm: 2.0.0
36
+ gemfile: gemfiles/rails5.0.gemfile
37
+ - rvm: 2.1.0
38
+ gemfile: gemfiles/rails5.0.gemfile
39
+ - rvm: 2.2.0
40
+ gemfile: gemfiles/rails5.0.gemfile
29
41
 
30
42
  allow_failures:
31
43
  - rvm: ruby-head
data/Appraisals CHANGED
@@ -27,3 +27,9 @@ appraise "rails4.2" do
27
27
  gem('activesupport', '~> 4.2.0')
28
28
  gem('railties', '~> 4.2.0')
29
29
  end
30
+
31
+ appraise "rails5.0" do
32
+ gem('actionpack', '~> 5.0.0')
33
+ gem('activesupport', '~> 5.0.0')
34
+ gem('railties', '~> 5.0.0')
35
+ end
@@ -1,6 +1,6 @@
1
1
  ## Unreleased Changes
2
2
 
3
- [Full Changelog](https://github.com/bwillis/versioncake/compare/v3.2...master)
3
+ [Full Changelog](https://github.com/bwillis/versioncake/compare/v3.3...master)
4
4
 
5
5
  Bug Fixes:
6
6
 
@@ -14,7 +14,21 @@ Deprecations:
14
14
 
15
15
  * None
16
16
 
17
- ## 3.2.0 (Aug 8, 2015)
17
+ ## 3.3.0 (May 7, 2017)
18
+
19
+ Bug Fixes:
20
+
21
+ * Remove Fixnum deprecation warnings (#61) thanks [John Hawthorn](https://github.com/jhawthorn)
22
+
23
+ Enhancements:
24
+
25
+ * None
26
+
27
+ Deprecations:
28
+
29
+ * None
30
+
31
+ ## 3.2.0 (Aug 8, 2016)
18
32
 
19
33
  Bug Fixes:
20
34
 
@@ -14,5 +14,5 @@ We really like when people not only discover something they want added/fixed/rem
14
14
 
15
15
  Version Cake supports multiple versions of Rails with Appriasals. These will be automatically tested against several ruby versions on CI. If you need to debug a problem, or want to be dilegent and run all of these do the following:
16
16
 
17
- * Install the gems for all supported Rails versions: `bundle exec rake appraisal install`
17
+ * Install the gems for all supported Rails versions: `bundle exec appraisal install`
18
18
  * Run all the tests for the supported Rails versions: `bundle exec rake appraisal spec`
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- versioncake (3.2.0)
4
+ versioncake (3.3.0)
5
5
  actionpack (>= 3.2)
6
6
  activesupport (>= 3.2)
7
7
  railties (>= 3.2)
@@ -10,98 +10,95 @@ PATH
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- actionpack (4.2.6)
14
- actionview (= 4.2.6)
15
- activesupport (= 4.2.6)
16
- rack (~> 1.6)
17
- rack-test (~> 0.6.2)
18
- rails-dom-testing (~> 1.0, >= 1.0.5)
13
+ actionpack (5.1.0)
14
+ actionview (= 5.1.0)
15
+ activesupport (= 5.1.0)
16
+ rack (~> 2.0)
17
+ rack-test (~> 0.6.3)
18
+ rails-dom-testing (~> 2.0)
19
19
  rails-html-sanitizer (~> 1.0, >= 1.0.2)
20
- actionview (4.2.6)
21
- activesupport (= 4.2.6)
20
+ actionview (5.1.0)
21
+ activesupport (= 5.1.0)
22
22
  builder (~> 3.1)
23
- erubis (~> 2.7.0)
24
- rails-dom-testing (~> 1.0, >= 1.0.5)
25
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
26
- activesupport (4.2.6)
23
+ erubi (~> 1.4)
24
+ rails-dom-testing (~> 2.0)
25
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
26
+ activesupport (5.1.0)
27
+ concurrent-ruby (~> 1.0, >= 1.0.2)
27
28
  i18n (~> 0.7)
28
- json (~> 1.7, >= 1.7.7)
29
29
  minitest (~> 5.1)
30
- thread_safe (~> 0.3, >= 0.3.4)
31
30
  tzinfo (~> 1.1)
32
- appraisal (2.1.0)
31
+ appraisal (2.2.0)
33
32
  bundler
34
33
  rake
35
34
  thor (>= 0.14.0)
36
- builder (3.2.2)
37
- coveralls (0.8.13)
38
- json (~> 1.8)
39
- simplecov (~> 0.11.0)
35
+ builder (3.2.3)
36
+ concurrent-ruby (1.0.5)
37
+ coveralls (0.8.21)
38
+ json (>= 1.8, < 3)
39
+ simplecov (~> 0.14.1)
40
40
  term-ansicolor (~> 1.3)
41
- thor (~> 0.19.1)
42
- tins (~> 1.6.0)
43
- diff-lcs (1.2.5)
41
+ thor (~> 0.19.4)
42
+ tins (~> 1.6)
43
+ diff-lcs (1.3)
44
44
  docile (1.1.5)
45
- erubis (2.7.0)
46
- i18n (0.7.0)
47
- json (1.8.3)
45
+ erubi (1.6.0)
46
+ i18n (0.8.1)
47
+ json (2.1.0)
48
48
  loofah (2.0.3)
49
49
  nokogiri (>= 1.5.9)
50
+ method_source (0.8.2)
50
51
  mini_portile2 (2.1.0)
51
- minitest (5.9.0)
52
- nokogiri (1.6.8)
52
+ minitest (5.10.1)
53
+ nokogiri (1.7.1)
53
54
  mini_portile2 (~> 2.1.0)
54
- pkg-config (~> 1.1.7)
55
- pkg-config (1.1.7)
56
- rack (1.6.4)
55
+ rack (2.0.1)
57
56
  rack-test (0.6.3)
58
57
  rack (>= 1.0)
59
- rails-deprecated_sanitizer (1.0.3)
60
- activesupport (>= 4.2.0.alpha)
61
- rails-dom-testing (1.0.7)
62
- activesupport (>= 4.2.0.beta, < 5.0)
63
- nokogiri (~> 1.6.0)
64
- rails-deprecated_sanitizer (>= 1.0.1)
58
+ rails-dom-testing (2.0.2)
59
+ activesupport (>= 4.2.0, < 6.0)
60
+ nokogiri (~> 1.6)
65
61
  rails-html-sanitizer (1.0.3)
66
62
  loofah (~> 2.0)
67
- railties (4.2.6)
68
- actionpack (= 4.2.6)
69
- activesupport (= 4.2.6)
63
+ railties (5.1.0)
64
+ actionpack (= 5.1.0)
65
+ activesupport (= 5.1.0)
66
+ method_source
70
67
  rake (>= 0.8.7)
71
68
  thor (>= 0.18.1, < 2.0)
72
- rake (11.2.2)
73
- rspec (3.4.0)
74
- rspec-core (~> 3.4.0)
75
- rspec-expectations (~> 3.4.0)
76
- rspec-mocks (~> 3.4.0)
77
- rspec-core (3.4.4)
78
- rspec-support (~> 3.4.0)
79
- rspec-expectations (3.4.0)
69
+ rake (12.0.0)
70
+ rspec (3.6.0)
71
+ rspec-core (~> 3.6.0)
72
+ rspec-expectations (~> 3.6.0)
73
+ rspec-mocks (~> 3.6.0)
74
+ rspec-core (3.6.0)
75
+ rspec-support (~> 3.6.0)
76
+ rspec-expectations (3.6.0)
80
77
  diff-lcs (>= 1.2.0, < 2.0)
81
- rspec-support (~> 3.4.0)
82
- rspec-mocks (3.4.1)
78
+ rspec-support (~> 3.6.0)
79
+ rspec-mocks (3.6.0)
83
80
  diff-lcs (>= 1.2.0, < 2.0)
84
- rspec-support (~> 3.4.0)
85
- rspec-rails (3.4.2)
86
- actionpack (>= 3.0, < 4.3)
87
- activesupport (>= 3.0, < 4.3)
88
- railties (>= 3.0, < 4.3)
89
- rspec-core (~> 3.4.0)
90
- rspec-expectations (~> 3.4.0)
91
- rspec-mocks (~> 3.4.0)
92
- rspec-support (~> 3.4.0)
93
- rspec-support (3.4.1)
94
- simplecov (0.11.2)
81
+ rspec-support (~> 3.6.0)
82
+ rspec-rails (3.6.0)
83
+ actionpack (>= 3.0)
84
+ activesupport (>= 3.0)
85
+ railties (>= 3.0)
86
+ rspec-core (~> 3.6.0)
87
+ rspec-expectations (~> 3.6.0)
88
+ rspec-mocks (~> 3.6.0)
89
+ rspec-support (~> 3.6.0)
90
+ rspec-support (3.6.0)
91
+ simplecov (0.14.1)
95
92
  docile (~> 1.1.0)
96
- json (~> 1.8)
93
+ json (>= 1.8, < 3)
97
94
  simplecov-html (~> 0.10.0)
98
95
  simplecov-html (0.10.0)
99
- term-ansicolor (1.3.2)
96
+ term-ansicolor (1.6.0)
100
97
  tins (~> 1.0)
101
- thor (0.19.1)
102
- thread_safe (0.3.5)
103
- tins (1.6.0)
104
- tzinfo (1.2.2)
98
+ thor (0.19.4)
99
+ thread_safe (0.3.6)
100
+ tins (1.13.2)
101
+ tzinfo (1.2.3)
105
102
  thread_safe (~> 0.1)
106
103
 
107
104
  PLATFORMS
@@ -116,4 +113,4 @@ DEPENDENCIES
116
113
  versioncake!
117
114
 
118
115
  BUNDLED WITH
119
- 1.12.5
116
+ 1.14.6
data/README.md CHANGED
@@ -129,14 +129,14 @@ Notice the version numbers are denoted by the "v{version number}" extension with
129
129
 
130
130
  #### views/posts/index.json.v1.jbuilder
131
131
  ```ruby
132
- json.array!(@posts) do |json, post|
132
+ json.array!(@posts) do |post|
133
133
  json.(post, :id, :title)
134
134
  end
135
135
  ```
136
136
 
137
137
  #### views/posts/index.json.v4.jbuilder
138
138
  ```ruby
139
- json.array!(@posts) do |json, post|
139
+ json.array!(@posts) do |post|
140
140
  json.(post, :id, :title)
141
141
  json.comments post.comments, :id, :text
142
142
  end
@@ -431,6 +431,8 @@ Thanks to all those who have helped make Version Cake really sweet:
431
431
  * [Yukio Mizuta](https://github.com/untidy-hair)
432
432
  * [David Butler](https://github.com/dwbutler)
433
433
  * [Jeroen K.](https://github.com/jrnkntl)
434
+ * [Masaya Myojin](https://github.com/mmyoji)
435
+ * [John Hawthorn](https://github.com/jhawthorn)
434
436
 
435
437
  # Related Material
436
438
 
data/RELEASE.md CHANGED
@@ -3,7 +3,7 @@
3
3
  Keeping releases consistent is important so here are the steps to follow when pushing a new version.
4
4
 
5
5
  1. Bump [lib/versioncake/version.rb](https://github.com/bwillis/versioncake/blob/master/lib/versioncake/version.rb) to the next major.minor version
6
- 2. Make sure all tests are passing ```bundle && rake && rake appraisal spec```
6
+ 2. Make sure all tests are passing ```bundle && bundle exec rake && bundle exec rake appraisal spec```
7
7
  3. Smoke test in 350-rest-api-versioning/store-after-versioncake
8
8
 
9
9
  Verify:
@@ -0,0 +1,2 @@
1
+ ---
2
+ BUNDLE_RETRY: "1"
@@ -5,6 +5,6 @@ source "https://rubygems.org"
5
5
  gem "actionpack", "~> 3.2.0"
6
6
  gem "activesupport", "~> 3.2.0"
7
7
  gem "railties", "~> 3.2.0"
8
- gem "test-unit", "~> 3.0"
8
+ gem "test-unit", "~>3.0"
9
9
 
10
- gemspec :path => "../"
10
+ gemspec path: "../"
@@ -1,7 +1,7 @@
1
1
  PATH
2
- remote: ../
2
+ remote: ..
3
3
  specs:
4
- versioncake (3.2.0)
4
+ versioncake (3.3.0)
5
5
  actionpack (>= 3.2)
6
6
  activesupport (>= 3.2)
7
7
  railties (>= 3.2)
@@ -97,9 +97,9 @@ GEM
97
97
  test-unit (3.1.4)
98
98
  power_assert
99
99
  thor (0.18.1)
100
- thread_safe (0.3.5)
100
+ thread_safe (0.3.6)
101
101
  tilt (1.4.1)
102
- tzinfo (1.2.2)
102
+ tzinfo (1.2.3)
103
103
  thread_safe (~> 0.1)
104
104
 
105
105
  PLATFORMS
@@ -118,4 +118,4 @@ DEPENDENCIES
118
118
  versioncake!
119
119
 
120
120
  BUNDLED WITH
121
- 1.10.6
121
+ 1.14.6
@@ -5,6 +5,6 @@ source "https://rubygems.org"
5
5
  gem "actionpack", "~> 4.0.0"
6
6
  gem "activesupport", "~> 4.0.0"
7
7
  gem "railties", "~> 4.0.0"
8
- gem "test-unit", "~> 3.0"
8
+ gem "test-unit", "~>3.0"
9
9
 
10
- gemspec :path => "../"
10
+ gemspec path: "../"
@@ -1,7 +1,7 @@
1
1
  PATH
2
- remote: ../
2
+ remote: ..
3
3
  specs:
4
- versioncake (3.2.0)
4
+ versioncake (3.3.0)
5
5
  actionpack (>= 3.2)
6
6
  activesupport (>= 3.2)
7
7
  railties (>= 3.2)
@@ -99,4 +99,4 @@ DEPENDENCIES
99
99
  versioncake!
100
100
 
101
101
  BUNDLED WITH
102
- 1.10.6
102
+ 1.14.6
@@ -6,4 +6,4 @@ gem "actionpack", "~> 4.1.0"
6
6
  gem "activesupport", "~> 4.1.0"
7
7
  gem "railties", "~> 4.1.0"
8
8
 
9
- gemspec :path => "../"
9
+ gemspec path: "../"
@@ -1,7 +1,7 @@
1
1
  PATH
2
- remote: ../
2
+ remote: ..
3
3
  specs:
4
- versioncake (3.2.0)
4
+ versioncake (3.3.0)
5
5
  actionpack (>= 3.2)
6
6
  activesupport (>= 3.2)
7
7
  railties (>= 3.2)
@@ -103,4 +103,4 @@ DEPENDENCIES
103
103
  versioncake!
104
104
 
105
105
  BUNDLED WITH
106
- 1.10.6
106
+ 1.14.6
@@ -6,4 +6,4 @@ gem "actionpack", "~> 4.2.0"
6
6
  gem "activesupport", "~> 4.2.0"
7
7
  gem "railties", "~> 4.2.0"
8
8
 
9
- gemspec :path => "../"
9
+ gemspec path: "../"
@@ -1,7 +1,7 @@
1
1
  PATH
2
- remote: ../
2
+ remote: ..
3
3
  specs:
4
- versioncake (3.2.0)
4
+ versioncake (3.3.0)
5
5
  actionpack (>= 3.2)
6
6
  activesupport (>= 3.2)
7
7
  railties (>= 3.2)
@@ -130,4 +130,4 @@ DEPENDENCIES
130
130
  versioncake!
131
131
 
132
132
  BUNDLED WITH
133
- 1.10.6
133
+ 1.14.6
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "actionpack", "~> 5.0.0"
6
+ gem "activesupport", "~> 5.0.0"
7
+ gem "railties", "~> 5.0.0"
8
+
9
+ gemspec path: "../"
@@ -0,0 +1,121 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ versioncake (3.3.0)
5
+ actionpack (>= 3.2)
6
+ activesupport (>= 3.2)
7
+ railties (>= 3.2)
8
+ tzinfo
9
+
10
+ GEM
11
+ remote: https://rubygems.org/
12
+ specs:
13
+ actionpack (5.0.0)
14
+ actionview (= 5.0.0)
15
+ activesupport (= 5.0.0)
16
+ rack (~> 2.0)
17
+ rack-test (~> 0.6.3)
18
+ rails-dom-testing (~> 2.0)
19
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
20
+ actionview (5.0.0)
21
+ activesupport (= 5.0.0)
22
+ builder (~> 3.1)
23
+ erubis (~> 2.7.0)
24
+ rails-dom-testing (~> 2.0)
25
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
26
+ activesupport (5.0.0)
27
+ concurrent-ruby (~> 1.0, >= 1.0.2)
28
+ i18n (~> 0.7)
29
+ minitest (~> 5.1)
30
+ tzinfo (~> 1.1)
31
+ appraisal (2.1.0)
32
+ bundler
33
+ rake
34
+ thor (>= 0.14.0)
35
+ builder (3.2.2)
36
+ concurrent-ruby (1.0.2)
37
+ coveralls (0.8.15)
38
+ json (>= 1.8, < 3)
39
+ simplecov (~> 0.12.0)
40
+ term-ansicolor (~> 1.3)
41
+ thor (~> 0.19.1)
42
+ tins (>= 1.6.0, < 2)
43
+ diff-lcs (1.2.5)
44
+ docile (1.1.5)
45
+ erubis (2.7.0)
46
+ i18n (0.7.0)
47
+ json (2.0.2)
48
+ loofah (2.0.3)
49
+ nokogiri (>= 1.5.9)
50
+ method_source (0.8.2)
51
+ mini_portile2 (2.1.0)
52
+ minitest (5.9.0)
53
+ nokogiri (1.6.8)
54
+ mini_portile2 (~> 2.1.0)
55
+ pkg-config (~> 1.1.7)
56
+ pkg-config (1.1.7)
57
+ rack (2.0.1)
58
+ rack-test (0.6.3)
59
+ rack (>= 1.0)
60
+ rails-dom-testing (2.0.1)
61
+ activesupport (>= 4.2.0, < 6.0)
62
+ nokogiri (~> 1.6.0)
63
+ rails-html-sanitizer (1.0.3)
64
+ loofah (~> 2.0)
65
+ railties (5.0.0)
66
+ actionpack (= 5.0.0)
67
+ activesupport (= 5.0.0)
68
+ method_source
69
+ rake (>= 0.8.7)
70
+ thor (>= 0.18.1, < 2.0)
71
+ rake (11.2.2)
72
+ rspec (3.5.0)
73
+ rspec-core (~> 3.5.0)
74
+ rspec-expectations (~> 3.5.0)
75
+ rspec-mocks (~> 3.5.0)
76
+ rspec-core (3.5.2)
77
+ rspec-support (~> 3.5.0)
78
+ rspec-expectations (3.5.0)
79
+ diff-lcs (>= 1.2.0, < 2.0)
80
+ rspec-support (~> 3.5.0)
81
+ rspec-mocks (3.5.0)
82
+ diff-lcs (>= 1.2.0, < 2.0)
83
+ rspec-support (~> 3.5.0)
84
+ rspec-rails (3.5.1)
85
+ actionpack (>= 3.0)
86
+ activesupport (>= 3.0)
87
+ railties (>= 3.0)
88
+ rspec-core (~> 3.5.0)
89
+ rspec-expectations (~> 3.5.0)
90
+ rspec-mocks (~> 3.5.0)
91
+ rspec-support (~> 3.5.0)
92
+ rspec-support (3.5.0)
93
+ simplecov (0.12.0)
94
+ docile (~> 1.1.0)
95
+ json (>= 1.8, < 3)
96
+ simplecov-html (~> 0.10.0)
97
+ simplecov-html (0.10.0)
98
+ term-ansicolor (1.3.2)
99
+ tins (~> 1.0)
100
+ thor (0.19.1)
101
+ thread_safe (0.3.5)
102
+ tins (1.12.0)
103
+ tzinfo (1.2.2)
104
+ thread_safe (~> 0.1)
105
+
106
+ PLATFORMS
107
+ ruby
108
+
109
+ DEPENDENCIES
110
+ actionpack (~> 5.0.0)
111
+ activesupport (~> 5.0.0)
112
+ appraisal
113
+ coveralls
114
+ railties (~> 5.0.0)
115
+ rake
116
+ rspec
117
+ rspec-rails
118
+ versioncake!
119
+
120
+ BUNDLED WITH
121
+ 1.14.6
@@ -5,7 +5,7 @@ module VersionCake
5
5
 
6
6
  def extract(request)
7
7
  version = execute(request)
8
- if version.is_a?(Fixnum)
8
+ if version.is_a?(Integer)
9
9
  version
10
10
  elsif version.is_a?(String) && /[0-9]+/.match(version)
11
11
  version.to_i
@@ -1,3 +1,3 @@
1
1
  module VersionCake
2
- VERSION = '3.2.0'
2
+ VERSION = '3.3.0'
3
3
  end
@@ -1,8 +1,7 @@
1
1
  require './spec/rails_helper'
2
2
 
3
3
  describe RendersController, type: :controller do
4
- let(:request_options) { {} }
5
- subject(:response_body) { get :index, request_options; response.body }
4
+ subject(:response_body) { get :index; response.body }
6
5
 
7
6
  context '#index' do
8
7
  render_views
@@ -60,7 +59,12 @@ describe RendersController, type: :controller do
60
59
  end
61
60
 
62
61
  context '#set_version' do
63
- let(:request_options) { { 'override_version' => 1 } }
62
+ params_style = if ActionPack::VERSION::MAJOR >= 5
63
+ { params: { override_version: 1 } }
64
+ else
65
+ { override_version: 1 }
66
+ end
67
+ subject(:response_body) { get :index, params_style; response.body }
64
68
  let(:request_version) { 3 }
65
69
 
66
70
  it { expect(controller.request_version).to eq 1 }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: versioncake
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.0
4
+ version: 3.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jim Jones
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-08-09 00:00:00.000000000 Z
12
+ date: 2017-05-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack
@@ -158,6 +158,7 @@ files:
158
158
  - RELEASE.md
159
159
  - Rakefile
160
160
  - bin/versioncake
161
+ - gemfiles/.bundle/config
161
162
  - gemfiles/rails3.2.gemfile
162
163
  - gemfiles/rails3.2.gemfile.lock
163
164
  - gemfiles/rails4.0.gemfile
@@ -166,6 +167,8 @@ files:
166
167
  - gemfiles/rails4.1.gemfile.lock
167
168
  - gemfiles/rails4.2.gemfile
168
169
  - gemfiles/rails4.2.gemfile.lock
170
+ - gemfiles/rails5.0.gemfile
171
+ - gemfiles/rails5.0.gemfile.lock
169
172
  - images/versioncake-logo450x100.png
170
173
  - lib/generators/templates/versioncake.rb
171
174
  - lib/generators/versioncake/install_generator.rb
@@ -269,7 +272,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
269
272
  version: '0'
270
273
  requirements: []
271
274
  rubyforge_project:
272
- rubygems_version: 2.4.8
275
+ rubygems_version: 2.5.2
273
276
  signing_key:
274
277
  specification_version: 4
275
278
  summary: Easily render versions of your rails views.