versioncake 2.5.0 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (112) hide show
  1. checksums.yaml +6 -14
  2. data/.rspec +2 -0
  3. data/.travis.yml +4 -0
  4. data/Appraisals +12 -0
  5. data/CHANGELOG.md +18 -1
  6. data/CONTRIBUTING.md +2 -2
  7. data/Gemfile.lock +96 -44
  8. data/README.md +79 -29
  9. data/RELEASE.md +1 -1
  10. data/Rakefile +3 -7
  11. data/gemfiles/rails3.2.gemfile +2 -1
  12. data/gemfiles/rails3.2.gemfile.lock +34 -10
  13. data/gemfiles/rails4.0.gemfile +2 -1
  14. data/gemfiles/rails4.0.gemfile.lock +31 -7
  15. data/gemfiles/rails4.1.gemfile +1 -1
  16. data/gemfiles/rails4.1.gemfile.lock +28 -8
  17. data/gemfiles/rails4.2.gemfile +9 -0
  18. data/gemfiles/rails4.2.gemfile.lock +133 -0
  19. data/lib/generators/templates/versioncake.rb +40 -0
  20. data/lib/generators/versioncake/install_generator.rb +12 -0
  21. data/lib/versioncake.rb +24 -3
  22. data/lib/versioncake/configuration.rb +19 -2
  23. data/lib/versioncake/controller_additions.rb +35 -23
  24. data/lib/versioncake/engine.rb +7 -0
  25. data/lib/versioncake/exceptions.rb +4 -0
  26. data/lib/versioncake/rack/middleware.rb +20 -0
  27. data/lib/versioncake/strategies/extraction_strategy.rb +8 -3
  28. data/lib/versioncake/strategies/http_accept_parameter_strategy.rb +2 -2
  29. data/lib/versioncake/strategies/http_header_strategy.rb +2 -2
  30. data/lib/versioncake/strategies/path_parameter_strategy.rb +6 -2
  31. data/lib/versioncake/strategies/query_parameter_strategy.rb +2 -2
  32. data/lib/versioncake/strategies/request_parameter_strategy.rb +2 -2
  33. data/lib/versioncake/test_helpers.rb +14 -0
  34. data/lib/versioncake/version.rb +1 -1
  35. data/lib/versioncake/version_checker.rb +28 -0
  36. data/lib/versioncake/version_context.rb +20 -0
  37. data/lib/versioncake/version_context_service.rb +47 -0
  38. data/lib/versioncake/versioned_request.rb +22 -33
  39. data/lib/versioncake/versioned_resource.rb +14 -0
  40. data/lib/versioncake/view_additions.rb +7 -7
  41. data/{test → spec}/fixtures/partials/_versioned.erb +0 -0
  42. data/{test → spec}/fixtures/partials/_versioned.v1.erb +0 -0
  43. data/{test → spec}/fixtures/partials/_versioned.v2.erb +0 -0
  44. data/{test → spec}/fixtures/partials/_versioned.v3.erb +0 -0
  45. data/{test → spec}/fixtures/partials/another_versioned_partial.erb +0 -0
  46. data/{test → spec}/fixtures/partials/another_versioned_partial.v1.erb +0 -0
  47. data/{test → spec}/fixtures/templates/unversioned.html.erb +0 -0
  48. data/{test → spec}/fixtures/templates/v1_extension_scheme.v3.html.erb +0 -0
  49. data/{test → spec}/fixtures/templates/v1_extension_scheme.v6.json +0 -0
  50. data/{test → spec}/fixtures/templates/versioned.html.erb +0 -0
  51. data/{test → spec}/fixtures/templates/versioned.html.v1.erb +0 -0
  52. data/{test → spec}/fixtures/templates/versioned.html.v2.erb +0 -0
  53. data/{test → spec}/fixtures/templates/versioned.html.v3.erb +0 -0
  54. data/spec/fixtures/test_cases.yml +45 -0
  55. data/spec/integration/controller/renders_controller_spec.rb +73 -0
  56. data/spec/integration/controller/unversioned_controller_spec.rb +12 -0
  57. data/spec/integration/rack/middleware_regression_spec.rb +41 -0
  58. data/spec/integration/view/render_spec.rb +33 -0
  59. data/spec/integration/view/view_additions_spec.rb +51 -0
  60. data/spec/rails_helper.rb +41 -0
  61. data/spec/spec_helper.rb +25 -0
  62. data/spec/test_app/Rakefile +7 -0
  63. data/{test → spec/test_app}/app/controllers/renders_controller.rb +0 -0
  64. data/spec/test_app/app/controllers/unversioned_controller.rb +6 -0
  65. data/spec/test_app/app/views/renders/index.html.erb +1 -0
  66. data/{test → spec/test_app}/app/views/renders/index.html.v1.erb +0 -0
  67. data/{test → spec/test_app}/app/views/renders/index.html.v2.erb +0 -0
  68. data/spec/test_app/app/views/unversioned/index.html.erb +1 -0
  69. data/spec/test_app/config.ru +4 -0
  70. data/{test → spec/test_app}/config/application.rb +4 -6
  71. data/spec/test_app/config/boot.rb +5 -0
  72. data/spec/test_app/config/environment.rb +5 -0
  73. data/spec/test_app/config/initializers/versioncake.rb +45 -0
  74. data/spec/test_app/config/routes.rb +4 -0
  75. data/spec/test_app/script/rails +4 -0
  76. data/spec/unit/cli_spec.rb +36 -0
  77. data/spec/unit/configuration_spec.rb +61 -0
  78. data/spec/unit/strategies/extraction_strategy_spec.rb +71 -0
  79. data/spec/unit/strategies/http_accept_parameter_strategy_spec.rb +20 -0
  80. data/spec/unit/strategies/http_header_strategy_spec.rb +19 -0
  81. data/spec/unit/strategies/path_parameter_strategy_spec.rb +18 -0
  82. data/spec/unit/strategies/query_parameter_strategy_spec.rb +24 -0
  83. data/spec/unit/strategies/request_parameter_strategy_spec.rb +19 -0
  84. data/spec/unit/version_checker_spec.rb +60 -0
  85. data/spec/unit/version_context_service_spec.rb +84 -0
  86. data/spec/unit/version_context_spec.rb +46 -0
  87. data/spec/unit/versioned_request_spec.rb +35 -0
  88. data/spec/unit/versioned_resource_spec.rb +12 -0
  89. data/versioncake.gemspec +5 -2
  90. metadata +91 -70
  91. data/lib/versioncake/railtie.rb +0 -7
  92. data/test/app/views/renders/index.html.erb +0 -1
  93. data/test/config.ru +0 -0
  94. data/test/config/routes.rb +0 -3
  95. data/test/fixtures/test_cases.yml +0 -70
  96. data/test/functional/custom_strategy_controller_test.rb +0 -16
  97. data/test/functional/multiple_strategy_controller_test.rb +0 -24
  98. data/test/functional/renders_controller_test.rb +0 -71
  99. data/test/functional/strategy_controller_test.rb +0 -38
  100. data/test/script/rails +0 -0
  101. data/test/template/render_test.rb +0 -34
  102. data/test/test_helper.rb +0 -21
  103. data/test/unit/cli_test.rb +0 -48
  104. data/test/unit/configuration_test.rb +0 -45
  105. data/test/unit/strategies/extraction_strategy_test.rb +0 -70
  106. data/test/unit/strategies/http_accept_parameter_strategy_test.rb +0 -17
  107. data/test/unit/strategies/http_header_strategy_test.rb +0 -17
  108. data/test/unit/strategies/path_parameter_strategy_test.rb +0 -17
  109. data/test/unit/strategies/query_parameter_strategy_test.rb +0 -22
  110. data/test/unit/strategies/request_parameter_strategy_test.rb +0 -17
  111. data/test/unit/versioned_request_test.rb +0 -44
  112. 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
@@ -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: 2.5.0
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: 2014-04-18 00:00:00.000000000 Z
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: test-unit
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: mocha
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: appraisal
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: coveralls
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: rake
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
- - .travis.yml
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/railtie.rb
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
- - test/app/controllers/renders_controller.rb
184
- - test/app/views/renders/index.html.erb
185
- - test/app/views/renders/index.html.v1.erb
186
- - test/app/views/renders/index.html.v2.erb
187
- - test/config.ru
188
- - test/config/application.rb
189
- - test/config/routes.rb
190
- - test/fixtures/partials/_versioned.erb
191
- - test/fixtures/partials/_versioned.v1.erb
192
- - test/fixtures/partials/_versioned.v2.erb
193
- - test/fixtures/partials/_versioned.v3.erb
194
- - test/fixtures/partials/another_versioned_partial.erb
195
- - test/fixtures/partials/another_versioned_partial.v1.erb
196
- - test/fixtures/templates/unversioned.html.erb
197
- - test/fixtures/templates/v1_extension_scheme.v3.html.erb
198
- - test/fixtures/templates/v1_extension_scheme.v6.json
199
- - test/fixtures/templates/versioned.html.erb
200
- - test/fixtures/templates/versioned.html.v1.erb
201
- - test/fixtures/templates/versioned.html.v2.erb
202
- - test/fixtures/templates/versioned.html.v3.erb
203
- - test/fixtures/test_cases.yml
204
- - test/functional/custom_strategy_controller_test.rb
205
- - test/functional/multiple_strategy_controller_test.rb
206
- - test/functional/renders_controller_test.rb
207
- - test/functional/strategy_controller_test.rb
208
- - test/script/rails
209
- - test/template/render_test.rb
210
- - test/test_helper.rb
211
- - test/unit/cli_test.rb
212
- - test/unit/configuration_test.rb
213
- - test/unit/strategies/extraction_strategy_test.rb
214
- - test/unit/strategies/http_accept_parameter_strategy_test.rb
215
- - test/unit/strategies/http_header_strategy_test.rb
216
- - test/unit/strategies/path_parameter_strategy_test.rb
217
- - test/unit/strategies/query_parameter_strategy_test.rb
218
- - test/unit/strategies/request_parameter_strategy_test.rb
219
- - test/unit/versioned_request_test.rb
220
- - test/unit/view_additions_test.rb
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: '0'
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.0.6
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.
@@ -1,7 +0,0 @@
1
- require 'rails'
2
-
3
- module VersionCake
4
- class Railtie < ::Rails::Railtie
5
- config.versioncake = VersionCake::Configuration.new
6
- end
7
- end
@@ -1 +0,0 @@
1
- index.html.erb
File without changes