versioncake 2.5.0 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +6 -14
- data/.rspec +2 -0
- data/.travis.yml +4 -0
- data/Appraisals +12 -0
- data/CHANGELOG.md +18 -1
- data/CONTRIBUTING.md +2 -2
- data/Gemfile.lock +96 -44
- data/README.md +79 -29
- data/RELEASE.md +1 -1
- data/Rakefile +3 -7
- data/gemfiles/rails3.2.gemfile +2 -1
- data/gemfiles/rails3.2.gemfile.lock +34 -10
- data/gemfiles/rails4.0.gemfile +2 -1
- data/gemfiles/rails4.0.gemfile.lock +31 -7
- data/gemfiles/rails4.1.gemfile +1 -1
- data/gemfiles/rails4.1.gemfile.lock +28 -8
- data/gemfiles/rails4.2.gemfile +9 -0
- data/gemfiles/rails4.2.gemfile.lock +133 -0
- data/lib/generators/templates/versioncake.rb +40 -0
- data/lib/generators/versioncake/install_generator.rb +12 -0
- data/lib/versioncake.rb +24 -3
- data/lib/versioncake/configuration.rb +19 -2
- data/lib/versioncake/controller_additions.rb +35 -23
- data/lib/versioncake/engine.rb +7 -0
- data/lib/versioncake/exceptions.rb +4 -0
- data/lib/versioncake/rack/middleware.rb +20 -0
- data/lib/versioncake/strategies/extraction_strategy.rb +8 -3
- data/lib/versioncake/strategies/http_accept_parameter_strategy.rb +2 -2
- data/lib/versioncake/strategies/http_header_strategy.rb +2 -2
- data/lib/versioncake/strategies/path_parameter_strategy.rb +6 -2
- data/lib/versioncake/strategies/query_parameter_strategy.rb +2 -2
- data/lib/versioncake/strategies/request_parameter_strategy.rb +2 -2
- data/lib/versioncake/test_helpers.rb +14 -0
- data/lib/versioncake/version.rb +1 -1
- data/lib/versioncake/version_checker.rb +28 -0
- data/lib/versioncake/version_context.rb +20 -0
- data/lib/versioncake/version_context_service.rb +47 -0
- data/lib/versioncake/versioned_request.rb +22 -33
- data/lib/versioncake/versioned_resource.rb +14 -0
- data/lib/versioncake/view_additions.rb +7 -7
- data/{test → spec}/fixtures/partials/_versioned.erb +0 -0
- data/{test → spec}/fixtures/partials/_versioned.v1.erb +0 -0
- data/{test → spec}/fixtures/partials/_versioned.v2.erb +0 -0
- data/{test → spec}/fixtures/partials/_versioned.v3.erb +0 -0
- data/{test → spec}/fixtures/partials/another_versioned_partial.erb +0 -0
- data/{test → spec}/fixtures/partials/another_versioned_partial.v1.erb +0 -0
- data/{test → spec}/fixtures/templates/unversioned.html.erb +0 -0
- data/{test → spec}/fixtures/templates/v1_extension_scheme.v3.html.erb +0 -0
- data/{test → spec}/fixtures/templates/v1_extension_scheme.v6.json +0 -0
- data/{test → spec}/fixtures/templates/versioned.html.erb +0 -0
- data/{test → spec}/fixtures/templates/versioned.html.v1.erb +0 -0
- data/{test → spec}/fixtures/templates/versioned.html.v2.erb +0 -0
- data/{test → spec}/fixtures/templates/versioned.html.v3.erb +0 -0
- data/spec/fixtures/test_cases.yml +45 -0
- data/spec/integration/controller/renders_controller_spec.rb +73 -0
- data/spec/integration/controller/unversioned_controller_spec.rb +12 -0
- data/spec/integration/rack/middleware_regression_spec.rb +41 -0
- data/spec/integration/view/render_spec.rb +33 -0
- data/spec/integration/view/view_additions_spec.rb +51 -0
- data/spec/rails_helper.rb +41 -0
- data/spec/spec_helper.rb +25 -0
- data/spec/test_app/Rakefile +7 -0
- data/{test → spec/test_app}/app/controllers/renders_controller.rb +0 -0
- data/spec/test_app/app/controllers/unversioned_controller.rb +6 -0
- data/spec/test_app/app/views/renders/index.html.erb +1 -0
- data/{test → spec/test_app}/app/views/renders/index.html.v1.erb +0 -0
- data/{test → spec/test_app}/app/views/renders/index.html.v2.erb +0 -0
- data/spec/test_app/app/views/unversioned/index.html.erb +1 -0
- data/spec/test_app/config.ru +4 -0
- data/{test → spec/test_app}/config/application.rb +4 -6
- data/spec/test_app/config/boot.rb +5 -0
- data/spec/test_app/config/environment.rb +5 -0
- data/spec/test_app/config/initializers/versioncake.rb +45 -0
- data/spec/test_app/config/routes.rb +4 -0
- data/spec/test_app/script/rails +4 -0
- data/spec/unit/cli_spec.rb +36 -0
- data/spec/unit/configuration_spec.rb +61 -0
- data/spec/unit/strategies/extraction_strategy_spec.rb +71 -0
- data/spec/unit/strategies/http_accept_parameter_strategy_spec.rb +20 -0
- data/spec/unit/strategies/http_header_strategy_spec.rb +19 -0
- data/spec/unit/strategies/path_parameter_strategy_spec.rb +18 -0
- data/spec/unit/strategies/query_parameter_strategy_spec.rb +24 -0
- data/spec/unit/strategies/request_parameter_strategy_spec.rb +19 -0
- data/spec/unit/version_checker_spec.rb +60 -0
- data/spec/unit/version_context_service_spec.rb +84 -0
- data/spec/unit/version_context_spec.rb +46 -0
- data/spec/unit/versioned_request_spec.rb +35 -0
- data/spec/unit/versioned_resource_spec.rb +12 -0
- data/versioncake.gemspec +5 -2
- metadata +91 -70
- data/lib/versioncake/railtie.rb +0 -7
- data/test/app/views/renders/index.html.erb +0 -1
- data/test/config.ru +0 -0
- data/test/config/routes.rb +0 -3
- data/test/fixtures/test_cases.yml +0 -70
- data/test/functional/custom_strategy_controller_test.rb +0 -16
- data/test/functional/multiple_strategy_controller_test.rb +0 -24
- data/test/functional/renders_controller_test.rb +0 -71
- data/test/functional/strategy_controller_test.rb +0 -38
- data/test/script/rails +0 -0
- data/test/template/render_test.rb +0 -34
- data/test/test_helper.rb +0 -21
- data/test/unit/cli_test.rb +0 -48
- data/test/unit/configuration_test.rb +0 -45
- data/test/unit/strategies/extraction_strategy_test.rb +0 -70
- data/test/unit/strategies/http_accept_parameter_strategy_test.rb +0 -17
- data/test/unit/strategies/http_header_strategy_test.rb +0 -17
- data/test/unit/strategies/path_parameter_strategy_test.rb +0 -17
- data/test/unit/strategies/query_parameter_strategy_test.rb +0 -22
- data/test/unit/strategies/request_parameter_strategy_test.rb +0 -17
- data/test/unit/versioned_request_test.rb +0 -44
- data/test/unit/view_additions_test.rb +0 -35
@@ -0,0 +1,46 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe VersionCake::VersionContext do
|
4
|
+
let(:resource) do
|
5
|
+
double(
|
6
|
+
latest_version: 8,
|
7
|
+
supported_versions: [5,6,7,8],
|
8
|
+
deprecated_versions: [4],
|
9
|
+
obsolete_versions: [2,3]
|
10
|
+
)
|
11
|
+
end
|
12
|
+
let(:result) { :supported }
|
13
|
+
subject(:context) { described_class.new(version, resource, result) }
|
14
|
+
|
15
|
+
describe '#supported_versions' do
|
16
|
+
let(:version) { 7 }
|
17
|
+
|
18
|
+
it { expect(context.supported_versions).to eq [7,6,5] }
|
19
|
+
|
20
|
+
context 'for a deprecated version' do
|
21
|
+
let(:version) { 4 }
|
22
|
+
let(:result) { :deprecated }
|
23
|
+
|
24
|
+
it { expect(context.supported_versions).to eq [] }
|
25
|
+
end
|
26
|
+
|
27
|
+
context 'for an obsolete version' do
|
28
|
+
let(:version) { 2 }
|
29
|
+
let(:result) { :obsolete }
|
30
|
+
|
31
|
+
it { expect(context.supported_versions).to eq [] }
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
describe '#is_latest_version?' do
|
36
|
+
let(:version) { 8 }
|
37
|
+
|
38
|
+
it { expect(context.is_latest_version?).to be true }
|
39
|
+
|
40
|
+
context 'when it is less than the latest' do
|
41
|
+
let(:version) { 7 }
|
42
|
+
|
43
|
+
it { expect(context.is_latest_version?).to be false }
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe VersionCake::VersionedRequest do
|
4
|
+
context '#execute' do
|
5
|
+
let(:request) { double 'Request' }
|
6
|
+
let(:strategies) { [ instance_double('ExtractionStrategy', extract: request_version) ] }
|
7
|
+
|
8
|
+
subject(:versioned_request) do
|
9
|
+
request = VersionCake::VersionedRequest.new request, strategies
|
10
|
+
request.execute
|
11
|
+
request
|
12
|
+
end
|
13
|
+
|
14
|
+
context 'with a supported version' do
|
15
|
+
let(:request_version) { 2 }
|
16
|
+
|
17
|
+
it { expect(versioned_request.version).to eq 2 }
|
18
|
+
it { expect(versioned_request.failed).to be_falsey }
|
19
|
+
end
|
20
|
+
|
21
|
+
context 'without a version' do
|
22
|
+
let(:request_version) { nil }
|
23
|
+
|
24
|
+
it { expect(versioned_request.version).to be_nil }
|
25
|
+
it { expect(versioned_request.failed).to be_falsey }
|
26
|
+
end
|
27
|
+
|
28
|
+
context 'with a strategy failure' do
|
29
|
+
let(:strategies) { [ lambda { raise 'Failed extraction' } ] }
|
30
|
+
|
31
|
+
it { expect(versioned_request.version).to be_nil }
|
32
|
+
it { expect(versioned_request.failed).to be_truthy }
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe VersionCake::VersionedResource do
|
4
|
+
|
5
|
+
let(:resource) { described_class.new('hello/123', [1,2], [3], [4,5,6])}
|
6
|
+
|
7
|
+
describe '#latest_version' do
|
8
|
+
subject { resource.latest_version }
|
9
|
+
|
10
|
+
it { is_expected.to eq 6 }
|
11
|
+
end
|
12
|
+
end
|
data/versioncake.gemspec
CHANGED
@@ -17,15 +17,18 @@ Gem::Specification.new do |s|
|
|
17
17
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
18
18
|
s.require_paths = ["lib"]
|
19
19
|
|
20
|
+
s.required_ruby_version = '>= 1.9.2'
|
21
|
+
|
20
22
|
s.add_dependency('actionpack', '>= 3.2')
|
21
23
|
s.add_dependency('activesupport', '>= 3.2')
|
22
24
|
s.add_dependency('railties', '>= 3.2')
|
23
25
|
s.add_dependency('tzinfo')
|
24
26
|
|
25
|
-
s.add_development_dependency 'test-unit'
|
26
|
-
s.add_development_dependency 'mocha'
|
27
27
|
s.add_development_dependency 'appraisal'
|
28
28
|
s.add_development_dependency 'coveralls'
|
29
29
|
s.add_development_dependency 'rake'
|
30
30
|
|
31
|
+
s.add_development_dependency 'rspec'
|
32
|
+
s.add_development_dependency 'rspec-rails'
|
33
|
+
|
31
34
|
end
|
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:
|
4
|
+
version: 3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jim Jones
|
@@ -9,132 +9,132 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2015-08-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: actionpack
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- -
|
18
|
+
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
20
|
version: '3.2'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- -
|
25
|
+
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: '3.2'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: activesupport
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
-
- -
|
32
|
+
- - ">="
|
33
33
|
- !ruby/object:Gem::Version
|
34
34
|
version: '3.2'
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- -
|
39
|
+
- - ">="
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: '3.2'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: railties
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
|
-
- -
|
46
|
+
- - ">="
|
47
47
|
- !ruby/object:Gem::Version
|
48
48
|
version: '3.2'
|
49
49
|
type: :runtime
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
|
-
- -
|
53
|
+
- - ">="
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: '3.2'
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
name: tzinfo
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
|
-
- -
|
60
|
+
- - ">="
|
61
61
|
- !ruby/object:Gem::Version
|
62
62
|
version: '0'
|
63
63
|
type: :runtime
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
|
-
- -
|
67
|
+
- - ">="
|
68
68
|
- !ruby/object:Gem::Version
|
69
69
|
version: '0'
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
|
-
name:
|
71
|
+
name: appraisal
|
72
72
|
requirement: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
|
-
- -
|
74
|
+
- - ">="
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
79
|
version_requirements: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
|
-
- -
|
81
|
+
- - ">="
|
82
82
|
- !ruby/object:Gem::Version
|
83
83
|
version: '0'
|
84
84
|
- !ruby/object:Gem::Dependency
|
85
|
-
name:
|
85
|
+
name: coveralls
|
86
86
|
requirement: !ruby/object:Gem::Requirement
|
87
87
|
requirements:
|
88
|
-
- -
|
88
|
+
- - ">="
|
89
89
|
- !ruby/object:Gem::Version
|
90
90
|
version: '0'
|
91
91
|
type: :development
|
92
92
|
prerelease: false
|
93
93
|
version_requirements: !ruby/object:Gem::Requirement
|
94
94
|
requirements:
|
95
|
-
- -
|
95
|
+
- - ">="
|
96
96
|
- !ruby/object:Gem::Version
|
97
97
|
version: '0'
|
98
98
|
- !ruby/object:Gem::Dependency
|
99
|
-
name:
|
99
|
+
name: rake
|
100
100
|
requirement: !ruby/object:Gem::Requirement
|
101
101
|
requirements:
|
102
|
-
- -
|
102
|
+
- - ">="
|
103
103
|
- !ruby/object:Gem::Version
|
104
104
|
version: '0'
|
105
105
|
type: :development
|
106
106
|
prerelease: false
|
107
107
|
version_requirements: !ruby/object:Gem::Requirement
|
108
108
|
requirements:
|
109
|
-
- -
|
109
|
+
- - ">="
|
110
110
|
- !ruby/object:Gem::Version
|
111
111
|
version: '0'
|
112
112
|
- !ruby/object:Gem::Dependency
|
113
|
-
name:
|
113
|
+
name: rspec
|
114
114
|
requirement: !ruby/object:Gem::Requirement
|
115
115
|
requirements:
|
116
|
-
- -
|
116
|
+
- - ">="
|
117
117
|
- !ruby/object:Gem::Version
|
118
118
|
version: '0'
|
119
119
|
type: :development
|
120
120
|
prerelease: false
|
121
121
|
version_requirements: !ruby/object:Gem::Requirement
|
122
122
|
requirements:
|
123
|
-
- -
|
123
|
+
- - ">="
|
124
124
|
- !ruby/object:Gem::Version
|
125
125
|
version: '0'
|
126
126
|
- !ruby/object:Gem::Dependency
|
127
|
-
name:
|
127
|
+
name: rspec-rails
|
128
128
|
requirement: !ruby/object:Gem::Requirement
|
129
129
|
requirements:
|
130
|
-
- -
|
130
|
+
- - ">="
|
131
131
|
- !ruby/object:Gem::Version
|
132
132
|
version: '0'
|
133
133
|
type: :development
|
134
134
|
prerelease: false
|
135
135
|
version_requirements: !ruby/object:Gem::Requirement
|
136
136
|
requirements:
|
137
|
-
- -
|
137
|
+
- - ">="
|
138
138
|
- !ruby/object:Gem::Version
|
139
139
|
version: '0'
|
140
140
|
description: Render versioned views automagically based on the clients requested version.
|
@@ -146,8 +146,9 @@ executables:
|
|
146
146
|
extensions: []
|
147
147
|
extra_rdoc_files: []
|
148
148
|
files:
|
149
|
-
- .gitignore
|
150
|
-
- .
|
149
|
+
- ".gitignore"
|
150
|
+
- ".rspec"
|
151
|
+
- ".travis.yml"
|
151
152
|
- Appraisals
|
152
153
|
- CHANGELOG.md
|
153
154
|
- CONTRIBUTING.md
|
@@ -163,13 +164,18 @@ files:
|
|
163
164
|
- gemfiles/rails4.0.gemfile.lock
|
164
165
|
- gemfiles/rails4.1.gemfile
|
165
166
|
- gemfiles/rails4.1.gemfile.lock
|
167
|
+
- gemfiles/rails4.2.gemfile
|
168
|
+
- gemfiles/rails4.2.gemfile.lock
|
166
169
|
- images/versioncake-logo450x100.png
|
170
|
+
- lib/generators/templates/versioncake.rb
|
171
|
+
- lib/generators/versioncake/install_generator.rb
|
167
172
|
- lib/versioncake.rb
|
168
173
|
- lib/versioncake/cli.rb
|
169
174
|
- lib/versioncake/configuration.rb
|
170
175
|
- lib/versioncake/controller_additions.rb
|
176
|
+
- lib/versioncake/engine.rb
|
171
177
|
- lib/versioncake/exceptions.rb
|
172
|
-
- lib/versioncake/
|
178
|
+
- lib/versioncake/rack/middleware.rb
|
173
179
|
- lib/versioncake/strategies/custom_strategy.rb
|
174
180
|
- lib/versioncake/strategies/extraction_strategy.rb
|
175
181
|
- lib/versioncake/strategies/http_accept_parameter_strategy.rb
|
@@ -177,47 +183,62 @@ files:
|
|
177
183
|
- lib/versioncake/strategies/path_parameter_strategy.rb
|
178
184
|
- lib/versioncake/strategies/query_parameter_strategy.rb
|
179
185
|
- lib/versioncake/strategies/request_parameter_strategy.rb
|
186
|
+
- lib/versioncake/test_helpers.rb
|
180
187
|
- lib/versioncake/version.rb
|
188
|
+
- lib/versioncake/version_checker.rb
|
189
|
+
- lib/versioncake/version_context.rb
|
190
|
+
- lib/versioncake/version_context_service.rb
|
181
191
|
- lib/versioncake/versioned_request.rb
|
192
|
+
- lib/versioncake/versioned_resource.rb
|
182
193
|
- lib/versioncake/view_additions.rb
|
183
|
-
-
|
184
|
-
-
|
185
|
-
-
|
186
|
-
-
|
187
|
-
-
|
188
|
-
-
|
189
|
-
-
|
190
|
-
-
|
191
|
-
-
|
192
|
-
-
|
193
|
-
-
|
194
|
-
-
|
195
|
-
-
|
196
|
-
-
|
197
|
-
-
|
198
|
-
-
|
199
|
-
-
|
200
|
-
-
|
201
|
-
-
|
202
|
-
-
|
203
|
-
-
|
204
|
-
-
|
205
|
-
-
|
206
|
-
-
|
207
|
-
-
|
208
|
-
-
|
209
|
-
-
|
210
|
-
-
|
211
|
-
-
|
212
|
-
-
|
213
|
-
-
|
214
|
-
-
|
215
|
-
-
|
216
|
-
-
|
217
|
-
-
|
218
|
-
-
|
219
|
-
-
|
220
|
-
-
|
194
|
+
- spec/fixtures/partials/_versioned.erb
|
195
|
+
- spec/fixtures/partials/_versioned.v1.erb
|
196
|
+
- spec/fixtures/partials/_versioned.v2.erb
|
197
|
+
- spec/fixtures/partials/_versioned.v3.erb
|
198
|
+
- spec/fixtures/partials/another_versioned_partial.erb
|
199
|
+
- spec/fixtures/partials/another_versioned_partial.v1.erb
|
200
|
+
- spec/fixtures/templates/unversioned.html.erb
|
201
|
+
- spec/fixtures/templates/v1_extension_scheme.v3.html.erb
|
202
|
+
- spec/fixtures/templates/v1_extension_scheme.v6.json
|
203
|
+
- spec/fixtures/templates/versioned.html.erb
|
204
|
+
- spec/fixtures/templates/versioned.html.v1.erb
|
205
|
+
- spec/fixtures/templates/versioned.html.v2.erb
|
206
|
+
- spec/fixtures/templates/versioned.html.v3.erb
|
207
|
+
- spec/fixtures/test_cases.yml
|
208
|
+
- spec/integration/controller/renders_controller_spec.rb
|
209
|
+
- spec/integration/controller/unversioned_controller_spec.rb
|
210
|
+
- spec/integration/rack/middleware_regression_spec.rb
|
211
|
+
- spec/integration/view/render_spec.rb
|
212
|
+
- spec/integration/view/view_additions_spec.rb
|
213
|
+
- spec/rails_helper.rb
|
214
|
+
- spec/spec_helper.rb
|
215
|
+
- spec/test_app/Rakefile
|
216
|
+
- spec/test_app/app/controllers/renders_controller.rb
|
217
|
+
- spec/test_app/app/controllers/unversioned_controller.rb
|
218
|
+
- spec/test_app/app/views/renders/index.html.erb
|
219
|
+
- spec/test_app/app/views/renders/index.html.v1.erb
|
220
|
+
- spec/test_app/app/views/renders/index.html.v2.erb
|
221
|
+
- spec/test_app/app/views/unversioned/index.html.erb
|
222
|
+
- spec/test_app/config.ru
|
223
|
+
- spec/test_app/config/application.rb
|
224
|
+
- spec/test_app/config/boot.rb
|
225
|
+
- spec/test_app/config/environment.rb
|
226
|
+
- spec/test_app/config/initializers/versioncake.rb
|
227
|
+
- spec/test_app/config/routes.rb
|
228
|
+
- spec/test_app/script/rails
|
229
|
+
- spec/unit/cli_spec.rb
|
230
|
+
- spec/unit/configuration_spec.rb
|
231
|
+
- spec/unit/strategies/extraction_strategy_spec.rb
|
232
|
+
- spec/unit/strategies/http_accept_parameter_strategy_spec.rb
|
233
|
+
- spec/unit/strategies/http_header_strategy_spec.rb
|
234
|
+
- spec/unit/strategies/path_parameter_strategy_spec.rb
|
235
|
+
- spec/unit/strategies/query_parameter_strategy_spec.rb
|
236
|
+
- spec/unit/strategies/request_parameter_strategy_spec.rb
|
237
|
+
- spec/unit/version_checker_spec.rb
|
238
|
+
- spec/unit/version_context_service_spec.rb
|
239
|
+
- spec/unit/version_context_spec.rb
|
240
|
+
- spec/unit/versioned_request_spec.rb
|
241
|
+
- spec/unit/versioned_resource_spec.rb
|
221
242
|
- versioncake.gemspec
|
222
243
|
homepage: http://bwillis.github.io/versioncake
|
223
244
|
licenses:
|
@@ -229,17 +250,17 @@ require_paths:
|
|
229
250
|
- lib
|
230
251
|
required_ruby_version: !ruby/object:Gem::Requirement
|
231
252
|
requirements:
|
232
|
-
- -
|
253
|
+
- - ">="
|
233
254
|
- !ruby/object:Gem::Version
|
234
|
-
version:
|
255
|
+
version: 1.9.2
|
235
256
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
236
257
|
requirements:
|
237
|
-
- -
|
258
|
+
- - ">="
|
238
259
|
- !ruby/object:Gem::Version
|
239
260
|
version: '0'
|
240
261
|
requirements: []
|
241
262
|
rubyforge_project:
|
242
|
-
rubygems_version: 2.
|
263
|
+
rubygems_version: 2.4.6
|
243
264
|
signing_key:
|
244
265
|
specification_version: 4
|
245
266
|
summary: Easily render versions of your rails views.
|
data/lib/versioncake/railtie.rb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
index.html.erb
|
data/test/config.ru
DELETED
File without changes
|