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 CHANGED
@@ -1 +1 @@
1
- 0.0.3
1
+ 0.0.4
@@ -28,11 +28,12 @@ module Riot
28
28
  end # setup_faux_class
29
29
 
30
30
  def action_methods
31
- %w[get post put delete head options]
31
+ [:get, :post, :put, :delete, :head, :options]
32
32
  end
33
33
 
34
34
  def proxy_methods
35
- HTTParty::ClassMethods.instance_methods - action_methods - ["default_options"]
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
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{riot-gear}
8
- s.version = "0.0.3"
8
+ s.version = "0.0.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Justin 'Gus' Knowlden"]
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 }
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 3
9
- version: 0.0.3
8
+ - 4
9
+ version: 0.0.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Justin 'Gus' Knowlden