homeflow_api 0.17.5 → 0.17.6

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.17.5
1
+ 0.17.6
data/homeflow_api.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "homeflow_api"
8
- s.version = "0.17.5"
8
+ s.version = "0.17.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Daniel Cooper"]
12
- s.date = "2013-07-10"
12
+ s.date = "2013-07-23"
13
13
  s.description = "A gem for dealing the homeflow api"
14
14
  s.email = "daniel@homeflow.co.uk"
15
15
  s.extra_rdoc_files = [
@@ -69,7 +69,7 @@ Gem::Specification.new do |s|
69
69
  s.homepage = "http://github.com/homeflow/Homeflow_Api"
70
70
  s.licenses = ["MIT"]
71
71
  s.require_paths = ["lib"]
72
- s.rubygems_version = "1.8.24"
72
+ s.rubygems_version = "1.8.25"
73
73
  s.summary = "Homeflow API Gem"
74
74
 
75
75
  if s.respond_to? :specification_version then
@@ -3,6 +3,9 @@ module Homeflow
3
3
  YAML::ENGINE.yamler = "syck"
4
4
  class Request
5
5
 
6
+ include HTTParty
7
+
8
+
6
9
  attr_accessor :resource_class, :request_specification
7
10
 
8
11
  def initialize(request_specification)
@@ -37,15 +40,15 @@ module Homeflow
37
40
  end
38
41
 
39
42
  if request_specification.is_a? Query
40
- return (HTTParty.get(url, :query => query_params)).body
43
+ return (get(url, :query => query_params)).body
41
44
  elsif request_specification.is_a? ResourceIdentifier
42
- return (HTTParty.get(url, :query => query_params)).body
45
+ return (get(url, :query => query_params)).body
43
46
  elsif request_specification.is_a? Delete
44
- return (HTTParty.delete(url, :query => query_params)).body
47
+ return (delete(url, :query => query_params)).body
45
48
  elsif request_specification.is_a? Put
46
- return (HTTParty.put(url, :query => query_params, :body => post_params)).body
49
+ return (put(url, :query => query_params, :body => post_params)).body
47
50
  elsif request_specification.is_a? Post
48
- return (HTTParty.post(url, :query => query_params, :body => post_params)).body
51
+ return (post(url, :query => query_params, :body => post_params)).body
49
52
  end
50
53
  end
51
54
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: homeflow_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.5
4
+ version: 0.17.6
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-07-10 00:00:00.000000000 Z
12
+ date: 2013-07-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: hashie
@@ -178,7 +178,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
178
178
  version: '0'
179
179
  segments:
180
180
  - 0
181
- hash: 3433809675052768441
181
+ hash: -578608973094567798
182
182
  required_rubygems_version: !ruby/object:Gem::Requirement
183
183
  none: false
184
184
  requirements:
@@ -187,7 +187,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
187
187
  version: '0'
188
188
  requirements: []
189
189
  rubyforge_project:
190
- rubygems_version: 1.8.24
190
+ rubygems_version: 1.8.25
191
191
  signing_key:
192
192
  specification_version: 3
193
193
  summary: Homeflow API Gem