api-versions 0.2.1 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.travis.yml +4 -21
- data/Gemfile +0 -6
- data/README.md +5 -0
- data/api-versions.gemspec +2 -2
- data/lib/api-versions/simplify_format.rb +1 -1
- data/lib/api-versions/version.rb +1 -1
- data/spec/dummy/config/application.rb +7 -2
- data/spec/dummy/config/boot.rb +0 -1
- data/spec/dummy/config/environment.rb +2 -2
- data/spec/dummy/config/environments/test.rb +3 -1
- metadata +16 -25
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 8adc4de1dfbb8f6e52a6a5615970e1acf1717efa
|
4
|
+
data.tar.gz: 602c0862e6e96c18143d27180252f89cbec959a6
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 7d9533e0ebd026c70ede3fd641d61dfc72cd620442e7d88c655170c7d62bb3dd248510d719827349c3098a78fab32b778b9c03dd2af77d83bada672a00538635
|
7
|
+
data.tar.gz: ee6171b5a7115e1c9ae195b6947fe2bb9886a397ec4fbf58b0beff888af9f74ce40d3f3bdc9377f240c52f5a7fef137828d24b1a40773985bc1fdfb32b26c104
|
data/.travis.yml
CHANGED
@@ -1,31 +1,14 @@
|
|
1
1
|
language: ruby
|
2
|
-
before_install: gem install bundler
|
3
2
|
|
4
3
|
rvm:
|
5
4
|
- 1.9.3
|
6
|
-
|
7
|
-
branches:
|
8
|
-
only:
|
9
|
-
- master
|
10
|
-
- production
|
5
|
+
- 2.0.0
|
11
6
|
|
12
7
|
notifications:
|
13
8
|
email:
|
14
9
|
recipients:
|
15
|
-
- api-versions@erichmenge.com
|
10
|
+
- api-versions@erich.erichmenge.com
|
16
11
|
env:
|
17
|
-
- RAILS_VERSION=3.0.20
|
18
|
-
- RAILS_VERSION=3.1.11
|
19
|
-
- RAILS_VERSION=3.2.12
|
20
|
-
- RAILS_VERSION=3-2-stable
|
21
|
-
- RAILS_VERSION=3-1-stable
|
22
12
|
- RAILS_VERSION=3-0-stable
|
23
|
-
- RAILS_VERSION=
|
24
|
-
|
25
|
-
matrix:
|
26
|
-
allow_failures:
|
27
|
-
- rvm: 2.0.0
|
28
|
-
- env: RAILS_VERSION=3-2-stable
|
29
|
-
- env: RAILS_VERSION=3-1-stable
|
30
|
-
- env: RAILS_VERSION=3-0-stable
|
31
|
-
- env: RAILS_VERSION=master
|
13
|
+
- RAILS_VERSION=3-1-stable
|
14
|
+
- RAILS_VERSION=3-2-stable
|
data/Gemfile
CHANGED
@@ -4,10 +4,6 @@ source "http://rubygems.org"
|
|
4
4
|
gemspec
|
5
5
|
|
6
6
|
case ENV['RAILS_VERSION']
|
7
|
-
when /master/
|
8
|
-
gem "rails", github: "rails/rails"
|
9
|
-
gem "journey", github: "rails/journey"
|
10
|
-
gem "activerecord-deprecated_finders", github: "rails/activerecord-deprecated_finders"
|
11
7
|
when /3-2-stable/
|
12
8
|
gem "rails", github: "rails/rails", branch: "3-2-stable"
|
13
9
|
when /3-1-stable/
|
@@ -17,5 +13,3 @@ when /3-0-stable/
|
|
17
13
|
else
|
18
14
|
gem "rails", ENV['RAILS_VERSION']
|
19
15
|
end
|
20
|
-
|
21
|
-
gem 'tzinfo'
|
data/README.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
# api-versions [![Build Status](https://travis-ci.org/erichmenge/api-versions.png?branch=master)](https://travis-ci.org/erichmenge/api-versions) #
|
2
2
|
|
3
3
|
|
4
|
+
### Requirements
|
5
|
+
* Rails 4 or Rails 3
|
6
|
+
* Ruby 1.9 or greater
|
7
|
+
|
8
|
+
|
4
9
|
#### api-versions is a Gem to help you manage your Rails API endpoints.
|
5
10
|
api-versions is very lightweight. It adds a generator and only one method to the Rails route mapper.
|
6
11
|
|
data/api-versions.gemspec
CHANGED
@@ -20,8 +20,8 @@ Gem::Specification.new do |s|
|
|
20
20
|
|
21
21
|
s.required_ruby_version = '>= 1.9'
|
22
22
|
|
23
|
-
s.add_dependency
|
24
|
-
s.add_dependency
|
23
|
+
s.add_dependency 'actionpack', '~> 3'
|
24
|
+
s.add_dependency 'activesupport', '~> 3'
|
25
25
|
|
26
26
|
s.add_development_dependency "rspec-rails", "~> 2.0"
|
27
27
|
s.add_development_dependency 'ammeter', '0.2.5'
|
data/lib/api-versions/version.rb
CHANGED
@@ -1,12 +1,17 @@
|
|
1
1
|
require File.expand_path('../boot', __FILE__)
|
2
|
+
|
3
|
+
# Pick the frameworks you want:
|
2
4
|
require "action_controller/railtie"
|
3
5
|
|
4
|
-
|
6
|
+
if defined?(Rails.groups)
|
7
|
+
Bundler.require(*Rails.groups)
|
8
|
+
else
|
9
|
+
Bundler.require
|
10
|
+
end
|
5
11
|
require "api-versions"
|
6
12
|
|
7
13
|
module Dummy
|
8
14
|
class Application < Rails::Application
|
9
|
-
config.encoding = "utf-8"
|
10
15
|
end
|
11
16
|
end
|
12
17
|
|
data/spec/dummy/config/boot.rb
CHANGED
@@ -1,8 +1,10 @@
|
|
1
1
|
Dummy::Application.configure do
|
2
2
|
config.cache_classes = true
|
3
|
-
config.
|
3
|
+
config.eager_load = false
|
4
4
|
config.consider_all_requests_local = true
|
5
5
|
config.action_controller.perform_caching = false
|
6
6
|
config.action_dispatch.show_exceptions = false
|
7
|
+
config.action_controller.allow_forgery_protection = false
|
7
8
|
config.active_support.deprecation = :stderr
|
9
|
+
config.secret_key_base = "eb6e66d4263b36e93912a0e0c367059d38c3417058890737c1bed0e52961429817430c38be6acab423cf023fe51c05123727f4dd4782cb2a46966d496d8e951c"
|
8
10
|
end
|
metadata
CHANGED
@@ -1,52 +1,46 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: api-versions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
5
|
-
prerelease:
|
4
|
+
version: 1.0.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Erich Menge
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-
|
11
|
+
date: 2013-05-09 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: actionpack
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - ~>
|
20
18
|
- !ruby/object:Gem::Version
|
21
|
-
version: '3
|
19
|
+
version: '3'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - ~>
|
28
25
|
- !ruby/object:Gem::Version
|
29
|
-
version: '3
|
26
|
+
version: '3'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: activesupport
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - ~>
|
36
32
|
- !ruby/object:Gem::Version
|
37
|
-
version: '3
|
33
|
+
version: '3'
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - ~>
|
44
39
|
- !ruby/object:Gem::Version
|
45
|
-
version: '3
|
40
|
+
version: '3'
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: rspec-rails
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
45
|
- - ~>
|
52
46
|
- !ruby/object:Gem::Version
|
@@ -54,7 +48,6 @@ dependencies:
|
|
54
48
|
type: :development
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
52
|
- - ~>
|
60
53
|
- !ruby/object:Gem::Version
|
@@ -62,7 +55,6 @@ dependencies:
|
|
62
55
|
- !ruby/object:Gem::Dependency
|
63
56
|
name: ammeter
|
64
57
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
58
|
requirements:
|
67
59
|
- - '='
|
68
60
|
- !ruby/object:Gem::Version
|
@@ -70,7 +62,6 @@ dependencies:
|
|
70
62
|
type: :development
|
71
63
|
prerelease: false
|
72
64
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
65
|
requirements:
|
75
66
|
- - '='
|
76
67
|
- !ruby/object:Gem::Version
|
@@ -118,27 +109,26 @@ files:
|
|
118
109
|
- spec/spec_helper.rb
|
119
110
|
homepage: https://github.com/erichmenge/api-versions
|
120
111
|
licenses: []
|
112
|
+
metadata: {}
|
121
113
|
post_install_message:
|
122
114
|
rdoc_options: []
|
123
115
|
require_paths:
|
124
116
|
- lib
|
125
117
|
required_ruby_version: !ruby/object:Gem::Requirement
|
126
|
-
none: false
|
127
118
|
requirements:
|
128
|
-
- -
|
119
|
+
- - '>='
|
129
120
|
- !ruby/object:Gem::Version
|
130
121
|
version: '1.9'
|
131
122
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
132
|
-
none: false
|
133
123
|
requirements:
|
134
|
-
- -
|
124
|
+
- - '>='
|
135
125
|
- !ruby/object:Gem::Version
|
136
126
|
version: '0'
|
137
127
|
requirements: []
|
138
128
|
rubyforge_project: api-versions
|
139
|
-
rubygems_version:
|
129
|
+
rubygems_version: 2.0.0
|
140
130
|
signing_key:
|
141
|
-
specification_version:
|
131
|
+
specification_version: 4
|
142
132
|
summary: api-versions helps manage your Rails app API endpoints.
|
143
133
|
test_files:
|
144
134
|
- spec/controllers/simplified_format_spec.rb
|
@@ -160,3 +150,4 @@ test_files:
|
|
160
150
|
- spec/lib/api_versions_spec.rb
|
161
151
|
- spec/routing/routing_spec.rb
|
162
152
|
- spec/spec_helper.rb
|
153
|
+
has_rdoc:
|