contextio 1.4.0 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d5d62101124ebb89c46b9b7c61525f7d8feb9e36
4
- data.tar.gz: 99bc1cf63255499a00fe0c960cd2e8d4bce16db0
3
+ metadata.gz: 028f4ed25415c6d3512c35374b324199b18131e6
4
+ data.tar.gz: 4369526ee522539a85b89ea065523c1b7f0ce4a4
5
5
  SHA512:
6
- metadata.gz: a76056315bfe9234e4a32b5c772e36049736026a34584174f570d423af63e7d16a7e3fe3af30d95a4158e63f380ea187e05fcc16375a6fdeacdf82bbf1c4b9e0
7
- data.tar.gz: e60081fa6e7c590fdb79156c6d6bd93afc816bcc211d2e2984000b86cf471596d97c462e07c7fa3070e668ef9784098968f9d089bee92f3b1c955eac590207bd
6
+ metadata.gz: edce3fb7fe4a13c6e1388cc41e2f0369de581553cc3453ca84b2b239693ca4066fa06d8a7edb216cfee24d0614af509c1c47af22c9fe224b5406732e30776620
7
+ data.tar.gz: 5a024a9a50af47dec49a6dd032e288032af1b1dcd06e5f28e9b2d863e2c15785550d148a2b7fbd87ebad856568ee065e5cb78acaedfe622ceebbbfc5bfdbe487
data/CHANGES.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changes
2
2
 
3
+ ## 1.5.0
4
+
5
+ * Make `Source#sync!` and `Account#sync!` take an options hash that will be
6
+ passed as parameters in the resulting HTTP request. This is just to aid in
7
+ debugging. - Ben Hamill
8
+
3
9
  ## 1.4.0
4
10
 
5
11
  * Normalize key names from the API to be valid Ruby variable names. - Ben Hamill
@@ -121,8 +121,8 @@ class ContextIO
121
121
  return @sync_data
122
122
  end
123
123
 
124
- def sync!
125
- api.request(:post, "#{resource_url}/sync")['success']
124
+ def sync!(options={})
125
+ api.request(:post, "#{resource_url}/sync", options)['success']
126
126
  end
127
127
 
128
128
  def delete
@@ -64,8 +64,8 @@ class ContextIO
64
64
  return @sync_data
65
65
  end
66
66
 
67
- def sync!
68
- api.request(:post, "#{resource_url}/sync")['success']
67
+ def sync!(options={})
68
+ api.request(:post, "#{resource_url}/sync", options)['success']
69
69
  end
70
70
  end
71
71
  end
@@ -1,6 +1,6 @@
1
1
  class ContextIO
2
2
  # @private
3
- VERSION = "1.4.0"
3
+ VERSION = "1.5.0"
4
4
 
5
5
  # The gem version.
6
6
  #
@@ -60,7 +60,8 @@ describe ContextIO::Source do
60
60
  it "syncs to the api" do
61
61
  api.should_receive(:request).with(
62
62
  :post,
63
- 'resource_url/sync'
63
+ 'resource_url/sync',
64
+ {}
64
65
  )
65
66
 
66
67
  subject.sync!
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: contextio
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Hamill
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-03-30 00:00:00.000000000 Z
11
+ date: 2013-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oauth
@@ -228,7 +228,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
228
228
  version: '0'
229
229
  requirements: []
230
230
  rubyforge_project:
231
- rubygems_version: 2.0.0
231
+ rubygems_version: 2.0.3
232
232
  signing_key:
233
233
  specification_version: 4
234
234
  summary: Provides interface to Context.IO