brick_ftp 1.0.0.beta2 → 1.0.0.beta3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/brick_ftp.gemspec +0 -2
- data/lib/brick_ftp.rb +0 -1
- data/lib/brick_ftp/core_ext/hash.rb +2 -0
- data/lib/brick_ftp/core_ext/hash/symbolize_keys.rb +20 -0
- data/lib/brick_ftp/restful_api/client.rb +1 -0
- data/lib/brick_ftp/restful_api/count_folder_contents.rb +1 -0
- data/lib/brick_ftp/restful_api/download_file.rb +1 -0
- data/lib/brick_ftp/restful_api/get_api_key.rb +1 -0
- data/lib/brick_ftp/restful_api/get_behavior.rb +1 -0
- data/lib/brick_ftp/restful_api/get_bundle.rb +1 -0
- data/lib/brick_ftp/restful_api/get_group.rb +1 -0
- data/lib/brick_ftp/restful_api/get_public_key.rb +1 -0
- data/lib/brick_ftp/restful_api/get_site_usage.rb +1 -0
- data/lib/brick_ftp/restful_api/get_user.rb +1 -0
- data/lib/brick_ftp/restful_api/list_api_keys.rb +1 -0
- data/lib/brick_ftp/restful_api/list_behaviors.rb +1 -0
- data/lib/brick_ftp/restful_api/list_bundles.rb +1 -0
- data/lib/brick_ftp/restful_api/list_folder_behaviors.rb +1 -0
- data/lib/brick_ftp/restful_api/list_groups.rb +1 -0
- data/lib/brick_ftp/restful_api/list_notifications.rb +1 -0
- data/lib/brick_ftp/restful_api/list_permissions.rb +1 -0
- data/lib/brick_ftp/restful_api/list_public_keys.rb +1 -0
- data/lib/brick_ftp/restful_api/list_users.rb +1 -0
- data/lib/brick_ftp/restful_api/retrieve_file_history.rb +1 -0
- data/lib/brick_ftp/restful_api/retrieve_folder_history.rb +1 -0
- data/lib/brick_ftp/restful_api/retrieve_history.rb +2 -0
- data/lib/brick_ftp/restful_api/search_user.rb +1 -0
- data/lib/brick_ftp/restful_api/start_upload.rb +1 -0
- data/lib/brick_ftp/restful_api/unlock_user.rb +1 -0
- data/lib/brick_ftp/version.rb +1 -1
- metadata +2 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8979b3718a0b1f4f86c6b4e004fc08d06770f368de48078ce8bb77defdcf1526
|
4
|
+
data.tar.gz: f70e17abc6fba41d18d7b86ba178506a0634845d07e885dcbce0756a833b15fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 269f884c6e620f1eb20f7d8244c3d43ea992dc6716a44aa77651bdc6f0aedcbf8f0e7769d85a872a33aedf0585907121325e95ce81f8476d1365bc1b76f0f658
|
7
|
+
data.tar.gz: add28dea4b6053ce155cbcca67276e42c246123594a2d999d359f622f8be2a16600bb9fd31d75e10ccf834fb5840248be41dab29665a70ca9d59c9c5c8d64839
|
data/brick_ftp.gemspec
CHANGED
data/lib/brick_ftp.rb
CHANGED
@@ -4,9 +4,11 @@ module BrickFTP
|
|
4
4
|
module CoreExt
|
5
5
|
module Hash
|
6
6
|
autoload :Compact, 'brick_ftp/core_ext/hash/compact'
|
7
|
+
autoload :SymbolizeKeys, 'brick_ftp/core_ext/hash/symbolize_keys'
|
7
8
|
|
8
9
|
refine ::Hash do
|
9
10
|
include(BrickFTP::CoreExt::Hash::Compact) unless ::Hash.instance_methods(false).include?(:compact)
|
11
|
+
include(BrickFTP::CoreExt::Hash::SymbolizeKeys) unless ::Hash.instance_methods(false).include?(:symbolize_keys)
|
10
12
|
end
|
11
13
|
end
|
12
14
|
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module BrickFTP
|
4
|
+
module CoreExt
|
5
|
+
module Hash
|
6
|
+
module SymbolizeKeys
|
7
|
+
def symbolize_keys
|
8
|
+
each_key.each_with_object({}) do |key, mem|
|
9
|
+
symbolized_key = begin
|
10
|
+
key.to_sym
|
11
|
+
rescue StandardError
|
12
|
+
key
|
13
|
+
end
|
14
|
+
mem[symbolized_key] = self[key]
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
data/lib/brick_ftp/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: brick_ftp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.beta3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- koshigoe
|
@@ -150,20 +150,6 @@ dependencies:
|
|
150
150
|
- - "~>"
|
151
151
|
- !ruby/object:Gem::Version
|
152
152
|
version: '0.9'
|
153
|
-
- !ruby/object:Gem::Dependency
|
154
|
-
name: deep_hash_transform
|
155
|
-
requirement: !ruby/object:Gem::Requirement
|
156
|
-
requirements:
|
157
|
-
- - "~>"
|
158
|
-
- !ruby/object:Gem::Version
|
159
|
-
version: '1.0'
|
160
|
-
type: :runtime
|
161
|
-
prerelease: false
|
162
|
-
version_requirements: !ruby/object:Gem::Requirement
|
163
|
-
requirements:
|
164
|
-
- - "~>"
|
165
|
-
- !ruby/object:Gem::Version
|
166
|
-
version: '1.0'
|
167
153
|
description: BrickFTP's REST API client.
|
168
154
|
email:
|
169
155
|
- koshigoeb@gmail.com
|
@@ -192,6 +178,7 @@ files:
|
|
192
178
|
- lib/brick_ftp/core_ext.rb
|
193
179
|
- lib/brick_ftp/core_ext/hash.rb
|
194
180
|
- lib/brick_ftp/core_ext/hash/compact.rb
|
181
|
+
- lib/brick_ftp/core_ext/hash/symbolize_keys.rb
|
195
182
|
- lib/brick_ftp/core_ext/struct.rb
|
196
183
|
- lib/brick_ftp/core_ext/struct/new.rb
|
197
184
|
- lib/brick_ftp/restful_api.rb
|