mover_io 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/.rvmrc ADDED
@@ -0,0 +1 @@
1
+ rvm use 1.9.3@mover_gem
Binary file
@@ -55,6 +55,16 @@ module MoverIO
55
55
  end
56
56
  end
57
57
 
58
+ def create_collection(name, connector_id, collection_id)
59
+ payload = {:name => name, :parent_id => collection_id}
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
62
+ JSON.parse response.to_str
63
+ else
64
+ false
65
+ end
66
+ end
67
+
58
68
  ############ TRANSFER ################
59
69
  def create_transfer(source_connector_id, source_collection_id, destination_connector_id, destination_collection_id )
60
70
  payload = {:source => {:connector_id => source_connector_id, :collection_id => source_collection_id}, :destination => {:connector_id => destination_connector_id, :collection_id => destination_collection_id}}
Binary file
@@ -1,3 +1,3 @@
1
1
  module MoverIo
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
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.3
4
+ version: 0.0.4
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: 2012-10-13 00:00:00.000000000 Z
12
+ date: 2012-10-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rest-client
@@ -34,9 +34,8 @@ executables: []
34
34
  extensions: []
35
35
  extra_rdoc_files: []
36
36
  files:
37
- - .Gemfile.swp
38
37
  - .gitignore
39
- - .mover_io.gemspec.swp
38
+ - .rvmrc
40
39
  - Gemfile
41
40
  - LICENSE.txt
42
41
  - README.md
Binary file
Binary file