riot-gear 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/riot/gear/middleware/riotparty.rb +3 -2
- data/riot-gear.gemspec +1 -1
- data/test/teststrap.rb +2 -2
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.4
|
@@ -28,11 +28,12 @@ module Riot
|
|
28
28
|
end # setup_faux_class
|
29
29
|
|
30
30
|
def action_methods
|
31
|
-
|
31
|
+
[:get, :post, :put, :delete, :head, :options]
|
32
32
|
end
|
33
33
|
|
34
34
|
def proxy_methods
|
35
|
-
HTTParty::ClassMethods.instance_methods
|
35
|
+
methods = HTTParty::ClassMethods.instance_methods.map { |m| m.to_s.to_sym }
|
36
|
+
methods - action_methods - [:default_options]
|
36
37
|
end
|
37
38
|
|
38
39
|
# Basically, we're just passing standard HTTParty setup methods onto situation via hookups. Except
|
data/riot-gear.gemspec
CHANGED
data/test/teststrap.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
require 'pathname'
|
2
2
|
|
3
|
-
$:.unshift(Pathname(__FILE__).dirname + ".." + "lib")
|
3
|
+
$:.unshift (Pathname(__FILE__).dirname + ".." + "lib").to_s
|
4
4
|
|
5
5
|
require 'rubygems'
|
6
6
|
require 'riot'
|
@@ -8,4 +8,4 @@ require 'webmock'
|
|
8
8
|
|
9
9
|
require 'riot/gear'
|
10
10
|
|
11
|
-
Dir[Pathname(__FILE__).dirname + "/riot_macros/**/*.rb"].each { |l| require l }
|
11
|
+
Dir[(Pathname(__FILE__).dirname + "/riot_macros/**/*.rb").to_s].each { |l| require l }
|