webhdfs 0.8.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +5 -5
  2. data/VERSION +1 -1
  3. data/lib/webhdfs/client_v1.rb +7 -0
  4. metadata +3 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 3f165b8329507d5bd77e98e14b7b6406b5e74e7b
4
- data.tar.gz: 14a14eeb4a18cb0670e9966398ae9591e31a54bf
2
+ SHA256:
3
+ metadata.gz: 5c3c7efca2c4e4c3a82a12c544dc5d86790e9b19aa050f1269bfb17628be2bb8
4
+ data.tar.gz: 8d7dce607082bbe3c2eaaa17eb26d08158eb3844f1d938580727a9dd4be65729
5
5
  SHA512:
6
- metadata.gz: bddf6b9166720a926de0f43855d7b24e512701a672e4a9c019a5154e20da22657084688eddaf6ac2f383a76321164fc843dc7af65996782ad946e4c9923144a0
7
- data.tar.gz: 6e988dd3694c2dfb015bf0901b890a44e67e0a504ac539a3efcf8979a33ff84769c38c894a3ed7bf287e56596c652eae0cf5b2c6af5f24c2db17e3342320ca18
6
+ metadata.gz: b43c91f0fb8b1908813ef31b012083d3613bde72fa7a0228a9d4200f3a140df95c5658a2c2f1d2e9888eb888c8e44ef10018705167bbcbaf9963a17d505eb93c
7
+ data.tar.gz: 209843fe4e9afb954d9f0523a9c2117302d7fb1f2d3118589775b5b0ac4f0b8720b27d954924dfbb5b8d8b5dd521790fd3ef8f632556292eb4c465c8e4087edc
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.8.0
1
+ 0.9.0
@@ -164,6 +164,13 @@ module WebHDFS
164
164
  end
165
165
  alias :gethomedirectory :homedir
166
166
 
167
+ # curl -i "http://<HOST>:<PORT>/webhdfs/v1/<PATH>?op=GETTRASHROOT"
168
+ def gettrashroot(options={})
169
+ check_options(options, OPT_TABLE['GETTRASHROOT'])
170
+ res = operate_requests('GET', '/', 'GETTRASHROOT', options)
171
+ check_success_json(res, 'Path')
172
+ end
173
+
167
174
  # curl -i -X PUT "http://<HOST>:<PORT>/webhdfs/v1/<PATH>?op=SETPERMISSION
168
175
  # [&permission=<OCTAL>]"
169
176
  def chmod(path, mode, options={})
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webhdfs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kazuki Ohta
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-02-03 00:00:00.000000000 Z
12
+ date: 2019-11-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -121,12 +121,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
121
  - !ruby/object:Gem::Version
122
122
  version: '0'
123
123
  requirements: []
124
- rubyforge_project:
125
- rubygems_version: 2.5.1
124
+ rubygems_version: 3.0.3
126
125
  signing_key:
127
126
  specification_version: 4
128
127
  summary: Ruby WebHDFS/HttpFs client
129
128
  test_files:
130
129
  - test/test_helper.rb
131
130
  - test/webhdfs/fileutils.rb
132
- has_rdoc: false