versioncake 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- versioncake (0.4.0)
4
+ versioncake (0.5.0)
5
5
  actionpack (>= 3.0)
6
6
  activesupport (>= 3.0)
7
7
  railties (>= 3.0)
data/README.md CHANGED
@@ -34,7 +34,7 @@ In this simple example we will outline the code that is introduced to support a
34
34
  ### config/application.rb
35
35
  ```ruby
36
36
  config.view_versions = (1...4)
37
- config.view_version_extraction_strategy = :http_parameter # for simplicity
37
+ config.view_version_extraction_strategy = :query_parameter # for simplicity
38
38
  ```
39
39
 
40
40
  Often times with APIs, depending upon the version, different logic needs to be applied. With the following controller code, the initial value of @posts includes all Post entries.
@@ -217,6 +217,11 @@ When a client makes a request it will automatically receive the latest supported
217
217
 
218
218
  # Related Material
219
219
 
220
+ ## Usages
221
+
222
+ - [Manilla](https://manilla.com) (original use case)
223
+ - [Spree](http://spreecommerce.com/) and the [pull request](https://github.com/spree/spree/pull/2209)
224
+
220
225
  ## Libraries
221
226
 
222
227
  - https://github.com/bploetz/versionist
@@ -230,6 +235,7 @@ When a client makes a request it will automatically receive the latest supported
230
235
  - [Railscast on versioning](http://railscasts.com/episodes/350-rest-api-versioning)
231
236
  - [Ruby5 on versioncake](http://ruby5.envylabs.com/episodes/310-episode-306-september-18th-2012/stories/2704-version-cake)
232
237
  - [Rails core discussion](https://groups.google.com/forum/#!msg/rubyonrails-core/odwmEYYIum0/9POep66BvoMJ)
238
+ - [RubyWeekly](http://rubyweekly.com/archive/119.html)
233
239
 
234
240
  # Questions?
235
241
 
@@ -65,7 +65,7 @@ module ActionView
65
65
  else
66
66
  @@supported_version_numbers = Array.wrap(val)
67
67
  end
68
- @@supported_version_numbers.reverse!
68
+ @@supported_version_numbers.sort!.reverse!
69
69
  end
70
70
 
71
71
  def self.supported_versions(requested_version_number=nil)
@@ -1,3 +1,3 @@
1
1
  module VersionCake
2
- VERSION = "0.4.0"
2
+ VERSION = "0.5.0"
3
3
  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: 0.4.0
4
+ version: 0.5.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-10-29 00:00:00.000000000Z
13
+ date: 2012-12-07 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: actionpack
@@ -160,7 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
160
160
  version: '0'
161
161
  requirements: []
162
162
  rubyforge_project:
163
- rubygems_version: 1.8.19
163
+ rubygems_version: 1.8.24
164
164
  signing_key:
165
165
  specification_version: 3
166
166
  summary: Easily render versions of your rails views.