box-api 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/Gemfile.lock +1 -1
  2. data/box-api.gemspec +1 -1
  3. data/lib/box/api.rb +3 -3
  4. metadata +12 -12
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- box-api (0.2.1)
4
+ box-api (0.2.2)
5
5
  httmultiparty (~> 0.3.6)
6
6
 
7
7
  GEM
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "box-api"
3
- s.version = "0.2.1"
3
+ s.version = "0.2.2"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.authors = ["Box.net", "Luke Curley"]
6
6
  s.email = ["luke@box.net"]
@@ -329,7 +329,7 @@ module Box
329
329
  # @param [Hash] options The properties for the generated preview code.
330
330
  # See File#embed_code for a more detailed list of options.
331
331
  def file_embed(id, options = Hash.new)
332
- query_rest('s_create_file_embed', { :action => :create_file_embed, :file_id => id }.merge(options))
332
+ query_rest('s_create_file_embed', :action => :create_file_embed, :file_id => id, :params => options)
333
333
  end
334
334
 
335
335
  # Share an item publically, making it accessible via a share link.
@@ -339,7 +339,7 @@ module Box
339
339
  # @param [Hash] options Extra options related to notifications. Please
340
340
  # read the developer documentation for more details.
341
341
  def share_public(target, target_id, options = Hash.new)
342
- query_rest('share_ok', { :action => :public_share, :target => target, :target_id => target_id }.merge(options))
342
+ query_rest('share_ok', { :action => :public_share, :target => target, :target_id => target_id, :password => "", :message => "", :emails => [ "" ] }.merge(options))
343
343
  end
344
344
 
345
345
  # Share an item privately, making it accessible only via email.
@@ -351,7 +351,7 @@ module Box
351
351
  # read the developer documentation for more details.
352
352
  #
353
353
  def share_private(target, target_id, emails, options = Hash.new)
354
- query_rest('private_share_ok', { :action => :private_share, :target => target, :target_id => target_id, :emails => emails }.merge(options))
354
+ query_rest('private_share_ok', { :action => :private_share, :target => target, :target_id => target_id, :emails => emails, :message => "", :notify => "" }.merge(options))
355
355
  end
356
356
 
357
357
  # Stop sharing an item publically.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: box-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,11 +10,11 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2011-11-09 00:00:00.000000000 Z
13
+ date: 2011-11-12 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: httmultiparty
17
- requirement: &2153669280 !ruby/object:Gem::Requirement
17
+ requirement: &2153669940 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ~>
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: 0.3.6
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *2153669280
25
+ version_requirements: *2153669940
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: launchy
28
- requirement: &2153668860 !ruby/object:Gem::Requirement
28
+ requirement: &2153669500 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ! '>='
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
- version_requirements: *2153668860
36
+ version_requirements: *2153669500
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: rake
39
- requirement: &2153668360 !ruby/object:Gem::Requirement
39
+ requirement: &2153669000 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ! '>='
@@ -44,10 +44,10 @@ dependencies:
44
44
  version: '0'
45
45
  type: :development
46
46
  prerelease: false
47
- version_requirements: *2153668360
47
+ version_requirements: *2153669000
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: rspec
50
- requirement: &2153667820 !ruby/object:Gem::Requirement
50
+ requirement: &2153668520 !ruby/object:Gem::Requirement
51
51
  none: false
52
52
  requirements:
53
53
  - - ! '>='
@@ -55,7 +55,7 @@ dependencies:
55
55
  version: '0'
56
56
  type: :development
57
57
  prerelease: false
58
- version_requirements: *2153667820
58
+ version_requirements: *2153668520
59
59
  description: Box-api is a collection of classes that implement functions defined in
60
60
  the Box public API. See http://developer.box.net for more information.
61
61
  email:
@@ -145,7 +145,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
145
145
  version: '0'
146
146
  segments:
147
147
  - 0
148
- hash: 2152248300867732637
148
+ hash: -1949910973492088052
149
149
  required_rubygems_version: !ruby/object:Gem::Requirement
150
150
  none: false
151
151
  requirements:
@@ -154,7 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
154
154
  version: '0'
155
155
  segments:
156
156
  - 0
157
- hash: 2152248300867732637
157
+ hash: -1949910973492088052
158
158
  requirements: []
159
159
  rubyforge_project:
160
160
  rubygems_version: 1.8.10