ruby-box 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YzdhOWY3MTVjMjU3ZDA1YzIwYmUyNGViNzBmNzM2NTNmM2I4MmI5MQ==
4
+ M2IwZDUyYzhhNzE4Njc4YzdmNjUyZDg2NmFiNDc3MDc1NzIzYTJjYQ==
5
5
  data.tar.gz: !binary |-
6
- YjkzMGYyMDIzMTdhYjNlOGRlYWQxMjAxODI2YjM5YjY5ZjczZTBhYQ==
6
+ ZjQ5NDE2Yjk1N2NhMjdjY2FhZThmZTE1MDRkMDkyMzQ0NTU4MmMxNg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- Mjg1NjViNGRlNWZhYjgxNzY2ZTcxZGU2MDQ3YjFmYzQ3OTBjMjY5NTkzZDcz
10
- YWFmNzYzMjViZWQxNmYwMWQzNTM5NDliYjUxNTEyMjYwM2Y1YmJmMjIyMGVh
11
- M2Y2YWE2ZTAxZGVlY2JiNzg2Y2EwNmQ4MTY4OTY3OWY4OWZiMWQ=
9
+ YzJmZWEyODkwODQwYTY0ODMxZGE1NGZkZWMzZGE1OWYwYzFhYmQ0ZWU4NjBl
10
+ NWU0ZGI2ZjY3ZjBmOTE2MTdkMWVlNTFlZTEzMGY3MWNlNzQ1MWZhMWQyZGVj
11
+ NjkzOWM2OTg3ZmI0MTAyZWIwMDFhMmI1NWZiYzQ5YjJlYmY5ZjM=
12
12
  data.tar.gz: !binary |-
13
- NWI0MjIyMDkyZTdjNjViY2NjMjRhNTMxNmQ3MzQxZGJhZDI4ZWJlNjA2NTY1
14
- ODdiNWQwOGJkZTBiYTY1YjQyOTBiMTdlNzQwY2M2ZTg4NzIxNmEzYmE3NTc1
15
- N2ViZjRhZGM1YmNkMzE3ZGU4ZDdmMDE1MmY3OTllMTBlYTljMmI=
13
+ NDE1ZDBhMWNmNWI4M2FjZWQwOGU0OTgyM2E0Njg4OThmMjM4MzkyOTk1Yjdi
14
+ OTExMmY1Y2NlNDJkY2Q2YjE0NmU3OGYzMTc4ZDZjYjljYWIxZTMyMThlOGM4
15
+ NWVhYWYyMGRlOTdmNjUzODQ3YjU3NzUxNjI2ZDNmYTkxOGFjZjA=
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.1
1
+ 1.1.2
data/lib/ruby-box.rb CHANGED
@@ -10,6 +10,7 @@ require 'ruby-box/discussion'
10
10
  require 'ruby-box/exceptions'
11
11
  require 'ruby-box/event_response'
12
12
  require 'ruby-box/event'
13
+ require 'ruby-box/web_link'
13
14
 
14
15
  module RubyBox
15
16
  API_URL = 'https://api.box.com/2.0'
data/lib/ruby-box/item.rb CHANGED
@@ -84,6 +84,8 @@ module RubyBox
84
84
  return RubyBox::User.new(session, entry)
85
85
  when 'discussion'
86
86
  return RubyBox::Discussion.new(session, entry)
87
+ when 'web_link'
88
+ return RubyBox::WebLink.new(session, entry)
87
89
  end
88
90
  entry
89
91
  end
@@ -119,4 +121,4 @@ module RubyBox
119
121
  end
120
122
 
121
123
  end
122
- end
124
+ end
@@ -0,0 +1,11 @@
1
+ module RubyBox
2
+ class WebLink < Item
3
+
4
+ private
5
+
6
+ def has_mini_format?
7
+ false
8
+ end
9
+
10
+ end
11
+ end
data/ruby-box.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "ruby-box"
8
- s.version = "1.1.1"
8
+ s.version = "1.1.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Attachments.me"]
12
- s.date = "2013-04-23"
12
+ s.date = "2013-05-01"
13
13
  s.description = "ruby gem for box.com 2.0 api"
14
14
  s.email = "ben@attachments.me"
15
15
  s.extra_rdoc_files = [
@@ -36,6 +36,7 @@ Gem::Specification.new do |s|
36
36
  "lib/ruby-box/item.rb",
37
37
  "lib/ruby-box/session.rb",
38
38
  "lib/ruby-box/user.rb",
39
+ "lib/ruby-box/web_link.rb",
39
40
  "ruby-box.gemspec",
40
41
  "spec/client_spec.rb",
41
42
  "spec/event_spec.rb",
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-box
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Attachments.me
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-04-23 00:00:00.000000000 Z
11
+ date: 2013-05-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multipart-post
@@ -121,6 +121,7 @@ files:
121
121
  - lib/ruby-box/item.rb
122
122
  - lib/ruby-box/session.rb
123
123
  - lib/ruby-box/user.rb
124
+ - lib/ruby-box/web_link.rb
124
125
  - ruby-box.gemspec
125
126
  - spec/client_spec.rb
126
127
  - spec/event_spec.rb