roar-rails 0.1.2 → 0.1.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b1ea90fac1d4d0f740b45d12ded7f1db7af0c26e
4
- data.tar.gz: 9c77c62ec70cd206238d49d2e387b556783199c0
3
+ metadata.gz: 959d27a6419a5834a092dede37f188173746d65c
4
+ data.tar.gz: eed0474a1b20ac29b46ac80d748c961ac77e6112
5
5
  SHA512:
6
- metadata.gz: 8bb37394bb6c50e75bbd7a6168cf4925713a548fbbc96a5ccb4672e1b7e2a0e93bbbaccde93167dcf4fde56e192e7f08721907847bd286f9e0664ac3c019d2e2
7
- data.tar.gz: 402b43bbd21317a323db435af6e713399364eb3a471db05628026a5ca73d96d1a0a5bfd467ec228c26eb986a91ec582e905891a795050f64dd5fef482827b43f
6
+ metadata.gz: 3120c16e48935d683aea818094fbcb0f65354fc923b7e08e4051ae8dcab2a7f2475b0af976e8830b18f610dd6c60028165f5ecbde12b6214919302cdc05e57f5
7
+ data.tar.gz: e6a4eec501b766ef532d1d91ee03e7441e1f085b0cbeeae6228730ba360a4df9fbb7b9198b844fa57fe411d161b4189960f931a275d0a25762ffdf79f052c574
data/CHANGES.markdown CHANGED
@@ -1,3 +1,7 @@
1
+ h2. 0.1.3
2
+
3
+ * Fix a bug where `TestCase` wouldn't work in 3.2.
4
+
1
5
  h2. 0.1.2
2
6
 
3
7
  * Introducing a check where `request.body.read` is called (as usual) if `request.body.string` isn't present. This is due to some faulty behaviour in Rails and some web servers that don't provide a properly working `#read`, as it's the Rack rule. Should finally fix https://github.com/apotonick/roar-rails/issues/18 and friends.
data/lib/roar-rails.rb CHANGED
@@ -28,12 +28,18 @@ module Roar
28
28
  ::Rails::VERSION::MAJOR == 3 && ::Rails::VERSION::MINOR == 1
29
29
  end
30
30
 
31
+ def self.rails3_2?
32
+ ::Rails::VERSION::MAJOR == 3 && ::Rails::VERSION::MINOR == 2
33
+ end
34
+
31
35
  if rails3_0?
32
36
  require 'roar/rails/rails3_0_strategy'
33
37
  elsif rails3_1?
34
38
  require 'roar/rails/rails3_1_strategy'
35
- else
39
+ elsif rails3_2?
36
40
  require 'roar/rails/rails3_2_strategy'
41
+ else
42
+ require 'roar/rails/rails4_0_strategy'
37
43
  end
38
44
 
39
45
  autoload("TestCase", "roar/rails/test_case")
@@ -6,6 +6,9 @@ module Roar::Rails
6
6
 
7
7
  module TestCase
8
8
  module VersionStrategy
9
+ def process_args(action, http_method, document="", params={})
10
+ [action, params, nil, nil, http_method]
11
+ end
9
12
  end
10
13
  end
11
14
  end
@@ -0,0 +1,11 @@
1
+ module Roar::Rails
2
+ module Responder
3
+ module VersionStrategy
4
+ end
5
+ end
6
+
7
+ module TestCase
8
+ module VersionStrategy
9
+ end
10
+ end
11
+ end
@@ -1,5 +1,5 @@
1
1
  module Roar
2
2
  module Rails
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  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.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Sutterer
@@ -173,6 +173,7 @@ files:
173
173
  - lib/roar/rails/rails3_0_strategy.rb
174
174
  - lib/roar/rails/rails3_1_strategy.rb
175
175
  - lib/roar/rails/rails3_2_strategy.rb
176
+ - lib/roar/rails/rails4_0_strategy.rb
176
177
  - lib/roar/rails/railtie.rb
177
178
  - lib/roar/rails/responder.rb
178
179
  - lib/roar/rails/test_case.rb