mover_io 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/lib/.mover_io.rb.swp CHANGED
Binary file
Binary file
@@ -1,3 +1,3 @@
1
1
  module MoverIo
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
data/lib/mover_io.rb CHANGED
@@ -58,7 +58,7 @@ module MoverIO
58
58
  def create_collection(name, connector_id, collection_id)
59
59
  payload = {:name => name, :parent_id => collection_id}
60
60
  response = RestClient.post "#{base_url}/connectors/#{connector_id}/collections", payload.to_json, {:authorization => "MoverAPI app_id=#{@app_id} app_secret=#{@app_secret}", :content_type => :json}
61
- if response.code == 200
61
+ if response.code == 201
62
62
  JSON.parse response.to_str
63
63
  else
64
64
  false
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mover_io
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: