tropo_rest 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2010 by Christopher Durtschi
1
+ Copyright (c) 2011 Divergent Logic, LLC
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -98,7 +98,13 @@ Thanks to [Tropo](https://www.tropo.com/) for creating such an awesome service.
98
98
  Thanks to the creators of the [twitter](https://github.com/jnunemaker/twitter/) gem, whose lovely code I shamelessly ripped off :)
99
99
 
100
100
 
101
+ Authors
102
+ -------
103
+
104
+ * Christopher Durtschi
105
+
106
+
101
107
  Copyright
102
108
  ---------
103
109
 
104
- Copyright (c) 2011 Christopher Durtschi. See LICENSE for details.
110
+ Copyright (c) 2011 Divergent Logic, LLC. See LICENSE for details.
@@ -24,7 +24,7 @@ module TropoRest
24
24
  private
25
25
 
26
26
  def extract_request_args!(*args)
27
- options = args.last.is_a?(Hash) ? args.pop : {}
27
+ options = args.last.is_a?(Hash) ? args.pop.to_hash : {}
28
28
  path, resource = args
29
29
  resource ||= Hashie::Mash
30
30
  [path, resource, options]
@@ -1,3 +1,3 @@
1
1
  module TropoRest
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -191,6 +191,12 @@ describe TropoRest::Client do
191
191
  res.should == @underscore
192
192
  end
193
193
 
194
+ it "should call #to_hash on the parameters" do
195
+ params = TestResource.new(@underscore)
196
+ params.should_receive(:to_hash)
197
+ @client.send(:extract_request_args!, 'somewhere', params)
198
+ end
199
+
194
200
  end
195
201
 
196
202
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 2
9
- version: 0.0.2
8
+ - 3
9
+ version: 0.0.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Christopher Durtschi
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-01-27 00:00:00 -07:00
17
+ date: 2011-02-09 00:00:00 -07:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -318,7 +318,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
318
318
  requirements:
319
319
  - - ">="
320
320
  - !ruby/object:Gem::Version
321
- hash: -3074856501266329070
321
+ hash: -2424205396918740897
322
322
  segments:
323
323
  - 0
324
324
  version: "0"