boxr 1.13.0 → 1.13.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/boxr/files.rb +1 -1
- data/lib/boxr/folders.rb +1 -1
- data/lib/boxr/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1d6d520618b4c7dc7741712b37229378971bf5fa9df2a615105cc32290ed3f6a
|
4
|
+
data.tar.gz: c3dc80a52abbadb66f40d1bb33688bff02d66d2e4d5a40adb2a19a7f9d350df6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: faa073dab1a0cac78372336f602b8d4c84c31d35cf2ddc794a41764e85542f331aba21ad2073b958dd42c701d9819acc8234d547c7f6a7a1a30fe1ecb3f50cc1
|
7
|
+
data.tar.gz: 0e89dbdee4405705350af41358a0c4ffcdab599937450d206ae93fc9cdda2d1edce734b163fd961ab59061949666c88321350a7ed3c16a64306a72ca687bf691
|
data/README.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
Boxr is a Ruby client library for the Box V2 Content API. Box employees affectionately refer to one another as Boxers, hence the name of this gem.
|
6
6
|
|
7
|
-
The purpose of this gem is to provide a clear, efficient, and intentional method of interacting with the Box Content API. As with any SDK that wraps a REST API, it is important to fully understand the Box Content API at the REST endpoint level. You are strongly encouraged to read through the Box documentation located [here](https://box
|
7
|
+
The purpose of this gem is to provide a clear, efficient, and intentional method of interacting with the Box Content API. As with any SDK that wraps a REST API, it is important to fully understand the Box Content API at the REST endpoint level. You are strongly encouraged to read through the Box documentation located [here](https://developer.box.com/en/reference/).
|
8
8
|
|
9
9
|
The full RubyDocs for Boxr can be found [here](http://www.rubydoc.info/gems/boxr/Boxr/Client). You are also encouraged to rely heavily on the source code found in the [lib/boxr](https://github.com/cburnette/boxr/tree/master/lib/boxr) directory of this gem, as well as on the integration tests found [here](https://github.com/cburnette/boxr/blob/master/spec/boxr_spec.rb).
|
10
10
|
|
data/lib/boxr/files.rb
CHANGED
@@ -12,7 +12,7 @@ module Boxr
|
|
12
12
|
folder = folder_from_path(path_items.join('/'))
|
13
13
|
|
14
14
|
files = folder_items(folder, fields: [:id, :name]).files
|
15
|
-
file = files.select{|f| f.name
|
15
|
+
file = files.select{|f| f.name.casecmp?(file_name) }.first
|
16
16
|
raise BoxrError.new(boxr_message: "File not found: '#{file_name}'") if file.nil?
|
17
17
|
file
|
18
18
|
end
|
data/lib/boxr/folders.rb
CHANGED
@@ -10,7 +10,7 @@ module Boxr
|
|
10
10
|
|
11
11
|
folder = path_folders.inject(Boxr::ROOT) do |parent_folder, folder_name|
|
12
12
|
folders = folder_items(parent_folder, fields: [:id, :name]).folders
|
13
|
-
folder = folders.select{|f| f.name
|
13
|
+
folder = folders.select{|f| f.name.casecmp?(folder_name) }.first
|
14
14
|
raise BoxrError.new(boxr_message: "Folder not found: '#{folder_name}'") if folder.nil?
|
15
15
|
folder
|
16
16
|
end
|
data/lib/boxr/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: boxr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.13.
|
4
|
+
version: 1.13.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chad Burnette
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-11-
|
12
|
+
date: 2019-11-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|