roar-rails 0.0.13 → 0.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.travis.yml +2 -1
- data/LICENSE +20 -0
- data/README.markdown +6 -0
- data/gemfiles/Gemfile.rails4-0 +9 -0
- data/lib/roar/rails/test_case.rb +6 -1
- data/lib/roar/rails/version.rb +1 -1
- data/roar-rails.gemspec +4 -3
- data/test/dummy/config/application.rb +3 -2
- data/test/dummy/config/routes.rb +4 -2
- metadata +29 -11
data/.travis.yml
CHANGED
data/LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2011 - 2013 Nick Sutterer and the roar contributors
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.markdown
CHANGED
@@ -12,6 +12,8 @@ Roar is a framework for parsing and rendering REST documents. For a better overv
|
|
12
12
|
* Better tests
|
13
13
|
* Autoloading
|
14
14
|
|
15
|
+
This gem works with all Rails >= 3.x.
|
16
|
+
|
15
17
|
## Rendering with #respond_with
|
16
18
|
|
17
19
|
roar-rails provides a number of baked-in rendering methods.
|
@@ -169,3 +171,7 @@ Put your representers in `app/representers` and they will be autoloaded by Rails
|
|
169
171
|
* [Railslove](http://www.railslove.de) and especially Michael Bumann [bumi] have heavily supported development of roar-rails ("resource :singers").
|
170
172
|
|
171
173
|
[responders]: https://github.com/plataformatec/responders
|
174
|
+
|
175
|
+
## License
|
176
|
+
|
177
|
+
Roar-rails is released under the [MIT License](http://www.opensource.org/licenses/MIT).
|
data/lib/roar/rails/test_case.rb
CHANGED
@@ -29,7 +29,12 @@ module Roar
|
|
29
29
|
end
|
30
30
|
|
31
31
|
module Assertions
|
32
|
-
|
32
|
+
if ::ActionPack::VERSION::MAJOR == 4
|
33
|
+
require 'test_xml/mini_test'
|
34
|
+
else
|
35
|
+
require 'test_xml/test_unit'
|
36
|
+
end
|
37
|
+
|
33
38
|
def assert_body(body, options={})
|
34
39
|
return assert_xml_equal body, response.body if options[:xml]
|
35
40
|
assert_equal body, response.body
|
data/lib/roar/rails/version.rb
CHANGED
data/roar-rails.gemspec
CHANGED
@@ -18,13 +18,14 @@ Gem::Specification.new do |s|
|
|
18
18
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
19
19
|
s.require_paths = ["lib"]
|
20
20
|
|
21
|
-
s.add_runtime_dependency "roar",
|
21
|
+
s.add_runtime_dependency "roar", "~> 0.10"
|
22
22
|
s.add_runtime_dependency "representable", "~> 1.4"
|
23
23
|
s.add_runtime_dependency "test_xml"
|
24
|
-
s.add_runtime_dependency "actionpack"
|
25
|
-
s.add_runtime_dependency "railties",
|
24
|
+
s.add_runtime_dependency "actionpack"
|
25
|
+
s.add_runtime_dependency "railties", ">= 3.0.0"
|
26
26
|
s.add_runtime_dependency "hooks"
|
27
27
|
|
28
28
|
s.add_development_dependency "minitest", ">= 2.8.1"
|
29
|
+
s.add_development_dependency "activemodel"
|
29
30
|
s.add_development_dependency "tzinfo" # FIXME: why the hell do we need this for 3.1?
|
30
31
|
end
|
@@ -1,6 +1,5 @@
|
|
1
1
|
require File.expand_path('../boot', __FILE__)
|
2
2
|
|
3
|
-
require "active_model/railtie"
|
4
3
|
require "action_controller/railtie"
|
5
4
|
require "action_view/railtie"
|
6
5
|
|
@@ -13,7 +12,9 @@ module Dummy
|
|
13
12
|
|
14
13
|
# Configure sensitive parameters which will be filtered from the log file.
|
15
14
|
config.filter_parameters += [:password]
|
16
|
-
|
15
|
+
|
17
16
|
config.cache_store = :memory_store
|
17
|
+
|
18
|
+
config.secret_key_base = "dengel"
|
18
19
|
end
|
19
20
|
end
|
data/test/dummy/config/routes.rb
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
Dummy::Application.routes.draw do
|
2
|
-
|
3
|
-
|
2
|
+
get ':controller(/:action(/:id(.:format)))'
|
3
|
+
post ':controller(/:action(/:id(.:format)))'
|
4
|
+
put ':controller(/:action(/:id(.:format)))'
|
5
|
+
delete ':controller(/:action(/:id(.:format)))'
|
4
6
|
resources :singers
|
5
7
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: roar-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.14
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-04-
|
12
|
+
date: 2013-04-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: roar
|
@@ -64,33 +64,33 @@ dependencies:
|
|
64
64
|
requirement: !ruby/object:Gem::Requirement
|
65
65
|
none: false
|
66
66
|
requirements:
|
67
|
-
- -
|
67
|
+
- - ! '>='
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version: '
|
69
|
+
version: '0'
|
70
70
|
type: :runtime
|
71
71
|
prerelease: false
|
72
72
|
version_requirements: !ruby/object:Gem::Requirement
|
73
73
|
none: false
|
74
74
|
requirements:
|
75
|
-
- -
|
75
|
+
- - ! '>='
|
76
76
|
- !ruby/object:Gem::Version
|
77
|
-
version: '
|
77
|
+
version: '0'
|
78
78
|
- !ruby/object:Gem::Dependency
|
79
79
|
name: railties
|
80
80
|
requirement: !ruby/object:Gem::Requirement
|
81
81
|
none: false
|
82
82
|
requirements:
|
83
|
-
- -
|
83
|
+
- - ! '>='
|
84
84
|
- !ruby/object:Gem::Version
|
85
|
-
version:
|
85
|
+
version: 3.0.0
|
86
86
|
type: :runtime
|
87
87
|
prerelease: false
|
88
88
|
version_requirements: !ruby/object:Gem::Requirement
|
89
89
|
none: false
|
90
90
|
requirements:
|
91
|
-
- -
|
91
|
+
- - ! '>='
|
92
92
|
- !ruby/object:Gem::Version
|
93
|
-
version:
|
93
|
+
version: 3.0.0
|
94
94
|
- !ruby/object:Gem::Dependency
|
95
95
|
name: hooks
|
96
96
|
requirement: !ruby/object:Gem::Requirement
|
@@ -123,6 +123,22 @@ dependencies:
|
|
123
123
|
- - ! '>='
|
124
124
|
- !ruby/object:Gem::Version
|
125
125
|
version: 2.8.1
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: activemodel
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
129
|
+
none: false
|
130
|
+
requirements:
|
131
|
+
- - ! '>='
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: '0'
|
134
|
+
type: :development
|
135
|
+
prerelease: false
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
none: false
|
138
|
+
requirements:
|
139
|
+
- - ! '>='
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: '0'
|
126
142
|
- !ruby/object:Gem::Dependency
|
127
143
|
name: tzinfo
|
128
144
|
requirement: !ruby/object:Gem::Requirement
|
@@ -150,10 +166,12 @@ files:
|
|
150
166
|
- .travis.yml
|
151
167
|
- CHANGES.markdown
|
152
168
|
- Gemfile
|
169
|
+
- LICENSE
|
153
170
|
- README.markdown
|
154
171
|
- Rakefile
|
155
172
|
- gemfiles/Gemfile.rails3-0
|
156
173
|
- gemfiles/Gemfile.rails3-2
|
174
|
+
- gemfiles/Gemfile.rails4-0
|
157
175
|
- lib/roar-rails.rb
|
158
176
|
- lib/roar/rails/controller_additions.rb
|
159
177
|
- lib/roar/rails/rails3_0_strategy.rb
|
@@ -226,7 +244,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
226
244
|
version: '0'
|
227
245
|
requirements: []
|
228
246
|
rubyforge_project: roar-rails
|
229
|
-
rubygems_version: 1.8.
|
247
|
+
rubygems_version: 1.8.25
|
230
248
|
signing_key:
|
231
249
|
specification_version: 3
|
232
250
|
summary: Use Roar in Rails.
|