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 +4 -4
- data/.travis.yml +16 -4
- data/Appraisals +6 -0
- data/CHANGELOG.md +16 -2
- data/CONTRIBUTING.md +1 -1
- data/Gemfile.lock +65 -68
- data/README.md +4 -2
- data/RELEASE.md +1 -1
- data/gemfiles/.bundle/config +2 -0
- data/gemfiles/rails3.2.gemfile +2 -2
- data/gemfiles/rails3.2.gemfile.lock +5 -5
- data/gemfiles/rails4.0.gemfile +2 -2
- data/gemfiles/rails4.0.gemfile.lock +3 -3
- data/gemfiles/rails4.1.gemfile +1 -1
- data/gemfiles/rails4.1.gemfile.lock +3 -3
- data/gemfiles/rails4.2.gemfile +1 -1
- data/gemfiles/rails4.2.gemfile.lock +3 -3
- data/gemfiles/rails5.0.gemfile +9 -0
- data/gemfiles/rails5.0.gemfile.lock +121 -0
- data/lib/versioncake/strategies/extraction_strategy.rb +1 -1
- data/lib/versioncake/version.rb +1 -1
- data/spec/integration/controller/renders_controller_spec.rb +7 -3
- metadata +6 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 528ead5896829c40e35bf158b7313781c6e0f617
|
4
|
+
data.tar.gz: 5f6ad615f20ebb354e48645000dc3d06a2dccf51
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 406f567291185122b3cb72391ce4cf72136256561353ee612fc4eb0207afec7854918bce313d18841f4be7ebe1b9b697115b7ed8967515801f340855987a65b6
|
7
|
+
data.tar.gz: da661fbcf7d007dd1d8dd43ac66338c13cd4d42b2aae6e7c84e952e85a37b716bc50750151ca4ad9ccff9f617aa13e2bb420a5a1cde07e143f04611654453acc
|
data/.travis.yml
CHANGED
@@ -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
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
## Unreleased Changes
|
2
2
|
|
3
|
-
[Full Changelog](https://github.com/bwillis/versioncake/compare/v3.
|
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.
|
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
|
|
data/CONTRIBUTING.md
CHANGED
@@ -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
|
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`
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
versioncake (3.
|
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 (
|
14
|
-
actionview (=
|
15
|
-
activesupport (=
|
16
|
-
rack (~>
|
17
|
-
rack-test (~> 0.6.
|
18
|
-
rails-dom-testing (~>
|
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 (
|
21
|
-
activesupport (=
|
20
|
+
actionview (5.1.0)
|
21
|
+
activesupport (= 5.1.0)
|
22
22
|
builder (~> 3.1)
|
23
|
-
|
24
|
-
rails-dom-testing (~>
|
25
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.
|
26
|
-
activesupport (
|
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.
|
31
|
+
appraisal (2.2.0)
|
33
32
|
bundler
|
34
33
|
rake
|
35
34
|
thor (>= 0.14.0)
|
36
|
-
builder (3.2.
|
37
|
-
|
38
|
-
|
39
|
-
|
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.
|
42
|
-
tins (~> 1.6
|
43
|
-
diff-lcs (1.
|
41
|
+
thor (~> 0.19.4)
|
42
|
+
tins (~> 1.6)
|
43
|
+
diff-lcs (1.3)
|
44
44
|
docile (1.1.5)
|
45
|
-
|
46
|
-
i18n (0.
|
47
|
-
json (1.
|
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.
|
52
|
-
nokogiri (1.
|
52
|
+
minitest (5.10.1)
|
53
|
+
nokogiri (1.7.1)
|
53
54
|
mini_portile2 (~> 2.1.0)
|
54
|
-
|
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-
|
60
|
-
activesupport (>= 4.2.0.
|
61
|
-
|
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 (
|
68
|
-
actionpack (=
|
69
|
-
activesupport (=
|
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 (
|
73
|
-
rspec (3.
|
74
|
-
rspec-core (~> 3.
|
75
|
-
rspec-expectations (~> 3.
|
76
|
-
rspec-mocks (~> 3.
|
77
|
-
rspec-core (3.
|
78
|
-
rspec-support (~> 3.
|
79
|
-
rspec-expectations (3.
|
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.
|
82
|
-
rspec-mocks (3.
|
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.
|
85
|
-
rspec-rails (3.
|
86
|
-
actionpack (>= 3.0
|
87
|
-
activesupport (>= 3.0
|
88
|
-
railties (>= 3.0
|
89
|
-
rspec-core (~> 3.
|
90
|
-
rspec-expectations (~> 3.
|
91
|
-
rspec-mocks (~> 3.
|
92
|
-
rspec-support (~> 3.
|
93
|
-
rspec-support (3.
|
94
|
-
simplecov (0.
|
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 (
|
93
|
+
json (>= 1.8, < 3)
|
97
94
|
simplecov-html (~> 0.10.0)
|
98
95
|
simplecov-html (0.10.0)
|
99
|
-
term-ansicolor (1.
|
96
|
+
term-ansicolor (1.6.0)
|
100
97
|
tins (~> 1.0)
|
101
|
-
thor (0.19.
|
102
|
-
thread_safe (0.3.
|
103
|
-
tins (1.
|
104
|
-
tzinfo (1.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.
|
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 |
|
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 |
|
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:
|
data/gemfiles/rails3.2.gemfile
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
|
-
remote:
|
2
|
+
remote: ..
|
3
3
|
specs:
|
4
|
-
versioncake (3.
|
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.
|
100
|
+
thread_safe (0.3.6)
|
101
101
|
tilt (1.4.1)
|
102
|
-
tzinfo (1.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.
|
121
|
+
1.14.6
|
data/gemfiles/rails4.0.gemfile
CHANGED
data/gemfiles/rails4.1.gemfile
CHANGED
data/gemfiles/rails4.2.gemfile
CHANGED
@@ -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
|
data/lib/versioncake/version.rb
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
require './spec/rails_helper'
|
2
2
|
|
3
3
|
describe RendersController, type: :controller do
|
4
|
-
|
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
|
-
|
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.
|
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:
|
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.
|
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.
|