ruby-box 1.0.1 → 1.0.3

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
- MzQwYmEzNDcwZTkzZDk3MTMzNjMwZDFhODY5NjM2MjllZmVjOWEyNQ==
4
+ Y2E0ZDZhZmYyNWVmNzZkMTQyZjkxNTk3NTM4N2VkOGFlOTcxZTdiMQ==
5
5
  data.tar.gz: !binary |-
6
- YjQ3Yzc4YjgzZmRiOTdhMjE4NWM5NTJiYmY1MDg1YjkyMDlhMDM2Yw==
6
+ NDUwMmY3ZDhiYTVhY2M0YWRjMmJhNjg3NzBiOTNiM2ZhZjBhYWYzYw==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- NmY5ZmE2ZDI0YTk0OWQzMGU4ZDNkOTZiM2I1ZTdlZmZmODNiNGFmYjQxM2Rm
10
- YjQ3ZTFjYjI4Nzc2MTlkOGQ5NjA2OGExNzBhMmMzYzYxMWZhYjM4YjMzNTJm
11
- Njg0YWRlYWM5ZTU3MDVkZThkOGJjZThhOTBiZTNmMjcxZGFkYmI=
9
+ ZmQ1ZDc5ODQyNmI2NDMzN2VlY2I3YjczZmM0OWY4MjQ2Y2RhOWQwODUxNmI5
10
+ YzAzOGQzYTZhMTRmNzdkODFkYzkzMjY4NTQ5MDM4OGJhNTM3YjJjMzk1ZDQx
11
+ MWFkYTIxYTFkNjc1ZGVlMGEzNDE2YWRiNjBiMjVkY2NiM2RlYjk=
12
12
  data.tar.gz: !binary |-
13
- YWQwNTliOTU4NTQ2MTUzODA2MTA2ODNiOTBiOGM2ZDY0YmY2YTA3OTIwZmRl
14
- ZWFjOGVjNjU3MzgyMjgwN2Y2NDViYjhmNmY2YTNhMmYxNTVjZDI4MzgzZTU5
15
- ODFkZTFiMmQ1NzliZmM2YWQ4OGYwOTcyN2YwYmE0MmNjYmM2MGI=
13
+ YTFlM2IzNzNiZTM4ZDIxNTlkNzY4ZmI0OTg4ZmU1NzAzN2ExYTFiYjYxYjVm
14
+ YWE4MWE5OGJmYTIwN2Q0MTA0OTdhODgxYTI1ODMzYzVlZjhlMGMzOWY5OWY4
15
+ YmY1MmQ0MjAwMWVjNDQ5ZTI3MTg3Y2I4MmU3MThlZWY2YWUwMWM=
data/Rakefile CHANGED
@@ -18,12 +18,12 @@ require 'jeweler'
18
18
  Jeweler::Tasks.new do |gem|
19
19
  # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
20
20
  gem.name = "ruby-box"
21
- gem.homepage = "http://github.com/jessemiller/ruby-box"
21
+ gem.homepage = "http://github.com/attachmentsme/ruby-box"
22
22
  gem.license = "MIT"
23
23
  gem.summary = %Q{ruby gem for box.com 2.0 api}
24
24
  gem.description = %Q{ruby gem for box.com 2.0 api}
25
- gem.email = "millerjesse@gmail.com"
26
- gem.authors = ["Jesse Miller"]
25
+ gem.email = "ben@attachments.me"
26
+ gem.authors = ["Attachments.me"]
27
27
  gem.files.exclude 'spec/*.test'
28
28
  # dependencies defined in Gemfile
29
29
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.1
1
+ 1.0.3
@@ -11,7 +11,7 @@ module RubyBox
11
11
 
12
12
  def initialize(opts={})
13
13
  if opts[:client_id]
14
- @oauth2_client = OAuth2::Client.new(opts[:client_id], opts[:client_secret], OAUTH2_URLS)
14
+ @oauth2_client = OAuth2::Client.new(opts[:client_id], opts[:client_secret], OAUTH2_URLS.dup)
15
15
  @access_token = OAuth2::AccessToken.new(@oauth2_client, opts[:access_token]) if opts[:access_token]
16
16
  else # Support legacy API for historical reasons.
17
17
  @api_key = opts[:api_key]
@@ -102,4 +102,4 @@ module RubyBox
102
102
  raw ? body : parsed_body
103
103
  end
104
104
  end
105
- end
105
+ end
data/ruby-box.gemspec CHANGED
@@ -5,35 +5,63 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "ruby-box"
8
- s.version = "1.0.1"
8
+ s.version = "1.0.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Benjamin Coe", "Jesse Miller", "Larry Kang"]
12
- s.date = "2013-03-02"
11
+ s.authors = ["Attachments.me"]
12
+ s.date = "2013-03-26"
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 = [
16
16
  "LICENSE.txt",
17
17
  "README.markdown"
18
18
  ]
19
- s.files = `git ls-files`.gsub('"spec/fixtures/\351\201\240\345\277\227\346\225\231\346\216\210.jpg"', '').split($\)
19
+ s.files = [
20
+ ".document",
21
+ "Gemfile",
22
+ "Gemfile.lock",
23
+ "LICENSE.txt",
24
+ "README.markdown",
25
+ "Rakefile",
26
+ "VERSION",
27
+ "lib/ruby-box.rb",
28
+ "lib/ruby-box/client.rb",
29
+ "lib/ruby-box/comment.rb",
30
+ "lib/ruby-box/discussion.rb",
31
+ "lib/ruby-box/exceptions.rb",
32
+ "lib/ruby-box/file.rb",
33
+ "lib/ruby-box/folder.rb",
34
+ "lib/ruby-box/item.rb",
35
+ "lib/ruby-box/session.rb",
36
+ "lib/ruby-box/user.rb",
37
+ "ruby-box.gemspec",
38
+ "spec/client_spec.rb",
39
+ "spec/file_spec.rb",
40
+ "spec/fixtures/遠志教授.jpg",
41
+ "spec/folder_spec.rb",
42
+ "spec/helper/account.example",
43
+ "spec/helper/account.rb",
44
+ "spec/integration_spec.rb"
45
+ ]
20
46
  s.homepage = "http://github.com/attachmentsme/ruby-box"
21
47
  s.licenses = ["MIT"]
22
48
  s.require_paths = ["lib"]
23
- s.rubygems_version = "1.8.24"
49
+ s.rubygems_version = "2.0.3"
24
50
  s.summary = "ruby gem for box.com 2.0 api"
25
51
 
26
52
  if s.respond_to? :specification_version then
27
- s.specification_version = 3
53
+ s.specification_version = 4
28
54
 
29
55
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
30
56
  s.add_runtime_dependency(%q<multipart-post>, ["~> 1.1.5"])
57
+ s.add_runtime_dependency(%q<oauth2>, [">= 0"])
31
58
  s.add_development_dependency(%q<rspec>, [">= 0"])
32
59
  s.add_development_dependency(%q<bundler>, [">= 0"])
33
60
  s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
34
61
  s.add_development_dependency(%q<webmock>, [">= 0"])
35
62
  else
36
63
  s.add_dependency(%q<multipart-post>, ["~> 1.1.5"])
64
+ s.add_dependency(%q<oauth2>, [">= 0"])
37
65
  s.add_dependency(%q<rspec>, [">= 0"])
38
66
  s.add_dependency(%q<bundler>, [">= 0"])
39
67
  s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
@@ -41,6 +69,7 @@ Gem::Specification.new do |s|
41
69
  end
42
70
  else
43
71
  s.add_dependency(%q<multipart-post>, ["~> 1.1.5"])
72
+ s.add_dependency(%q<oauth2>, [">= 0"])
44
73
  s.add_dependency(%q<rspec>, [">= 0"])
45
74
  s.add_dependency(%q<bundler>, [">= 0"])
46
75
  s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
metadata CHANGED
@@ -1,16 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-box
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
- - Benjamin Coe
8
- - Jesse Miller
9
- - Larry Kang
7
+ - Attachments.me
10
8
  autorequire:
11
9
  bindir: bin
12
10
  cert_chain: []
13
- date: 2013-03-02 00:00:00.000000000 Z
11
+ date: 2013-03-26 00:00:00.000000000 Z
14
12
  dependencies:
15
13
  - !ruby/object:Gem::Dependency
16
14
  name: multipart-post
@@ -26,6 +24,20 @@ dependencies:
26
24
  - - ~>
27
25
  - !ruby/object:Gem::Version
28
26
  version: 1.1.5
27
+ - !ruby/object:Gem::Dependency
28
+ name: oauth2
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ! '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
29
41
  - !ruby/object:Gem::Dependency
30
42
  name: rspec
31
43
  requirement: !ruby/object:Gem::Requirement
@@ -91,7 +103,6 @@ extra_rdoc_files:
91
103
  - README.markdown
92
104
  files:
93
105
  - .document
94
- - .gitignore
95
106
  - Gemfile
96
107
  - Gemfile.lock
97
108
  - LICENSE.txt
@@ -111,6 +122,7 @@ files:
111
122
  - ruby-box.gemspec
112
123
  - spec/client_spec.rb
113
124
  - spec/file_spec.rb
125
+ - spec/fixtures/遠志教授.jpg
114
126
  - spec/folder_spec.rb
115
127
  - spec/helper/account.example
116
128
  - spec/helper/account.rb
@@ -137,7 +149,7 @@ requirements: []
137
149
  rubyforge_project:
138
150
  rubygems_version: 2.0.3
139
151
  signing_key:
140
- specification_version: 3
152
+ specification_version: 4
141
153
  summary: ruby gem for box.com 2.0 api
142
154
  test_files: []
143
155
  has_rdoc:
data/.gitignore DELETED
@@ -1,52 +0,0 @@
1
- account.yml
2
-
3
- # rcov generated
4
- coverage
5
-
6
- # rdoc generated
7
- rdoc
8
-
9
- # yard generated
10
- doc
11
- .yardoc
12
-
13
- # bundler
14
- .bundle
15
-
16
- # jeweler generated
17
- pkg
18
-
19
- # Have editor/IDE/OS specific files you need to ignore? Consider using a global gitignore:
20
- #
21
- # * Create a file at ~/.gitignore
22
- # * Include files you want ignored
23
- # * Run: git config --global core.excludesfile ~/.gitignore
24
- #
25
- # After doing this, these files will be ignored in all your git projects,
26
- # saving you from having to 'pollute' every project you touch with them
27
- #
28
- # Not sure what to needs to be ignored for particular editors/OSes? Here's some ideas to get you started. (Remember, remove the leading # of the line)
29
- #
30
- # For MacOS:
31
- #
32
- #.DS_Store
33
-
34
- # For TextMate
35
- #*.tmproj
36
- #tmtags
37
-
38
- # For emacs:
39
- #*~
40
- #\#*
41
- #.\#*
42
-
43
- # For vim:
44
- #*.swp
45
-
46
- # For redcar:
47
- #.redcar
48
-
49
- # For rubinius:
50
- #*.rbc
51
- *.gem
52
- .DS_Store