boxr 0.0.3 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.env.example +6 -3
- data/Rakefile +0 -2
- data/examples/enterprise_events.rb +8 -8
- data/examples/oauth.rb +27 -0
- data/examples/user_events.rb +12 -12
- data/lib/boxr.rb +12 -11
- data/lib/boxr/auth.rb +46 -0
- data/lib/boxr/client.rb +255 -214
- data/lib/boxr/collaborations.rb +56 -56
- data/lib/boxr/comments.rb +38 -38
- data/lib/boxr/events.rb +16 -16
- data/lib/boxr/exceptions.rb +35 -35
- data/lib/boxr/files.rb +209 -209
- data/lib/boxr/folders.rb +117 -117
- data/lib/boxr/groups.rb +61 -61
- data/lib/boxr/metadata.rb +22 -22
- data/lib/boxr/search.rb +20 -20
- data/lib/boxr/shared_items.rb +8 -8
- data/lib/boxr/tasks.rb +83 -83
- data/lib/boxr/users.rb +80 -82
- data/lib/boxr/version.rb +1 -1
- data/spec/boxr_spec.rb +441 -441
- metadata +5 -4
- data/lib/tasks/oauth.rake +0 -22
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: boxr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chad Burnette
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-01-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -165,8 +165,10 @@ files:
|
|
165
165
|
- Rakefile
|
166
166
|
- boxr.gemspec
|
167
167
|
- examples/enterprise_events.rb
|
168
|
+
- examples/oauth.rb
|
168
169
|
- examples/user_events.rb
|
169
170
|
- lib/boxr.rb
|
171
|
+
- lib/boxr/auth.rb
|
170
172
|
- lib/boxr/client.rb
|
171
173
|
- lib/boxr/collaborations.rb
|
172
174
|
- lib/boxr/comments.rb
|
@@ -181,7 +183,6 @@ files:
|
|
181
183
|
- lib/boxr/tasks.rb
|
182
184
|
- lib/boxr/users.rb
|
183
185
|
- lib/boxr/version.rb
|
184
|
-
- lib/tasks/oauth.rake
|
185
186
|
- spec/boxr_spec.rb
|
186
187
|
- spec/spec_helper.rb
|
187
188
|
- spec/test_files/test file.txt
|
@@ -205,7 +206,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
205
206
|
version: '0'
|
206
207
|
requirements: []
|
207
208
|
rubyforge_project:
|
208
|
-
rubygems_version: 2.4.
|
209
|
+
rubygems_version: 2.4.5
|
209
210
|
signing_key:
|
210
211
|
specification_version: 4
|
211
212
|
summary: A Ruby client library for the Box V2 Content API that covers 100% of the
|
data/lib/tasks/oauth.rake
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
require 'dotenv/tasks'
|
2
|
-
require 'boxr'
|
3
|
-
|
4
|
-
#to call this from bash, etc. use: rake oauth:get_tokens[YOUR_CLIENT_ID, YOUR CLIENT_SECRET]
|
5
|
-
|
6
|
-
#however, if you use zsh you must call as such: rake 'oauth:get_tokens[YOUR_CLIENT_ID, YOUR CLIENT_SECRET]'
|
7
|
-
#the single quotes are important for zsh!
|
8
|
-
|
9
|
-
|
10
|
-
namespace :oauth do
|
11
|
-
desc "some stuff"
|
12
|
-
task :get_tokens, [:client_id, :client_secret] => :environment do |task, args|
|
13
|
-
puts args.client_id, args.client_secret
|
14
|
-
|
15
|
-
# print "Whoa! Pushing to production. Type 'pushitrealgood' to continue: "
|
16
|
-
# if STDIN.gets.chomp == 'pushitrealgood'
|
17
|
-
# system "heroku pgbackups:capture -e -a zenph-production" or abort "aborted backing up production database"
|
18
|
-
# else
|
19
|
-
# abort 'task aborted'
|
20
|
-
# end
|
21
|
-
end
|
22
|
-
end
|