arvados 0.1.20170330012324 → 0.1.20170427165906

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/arvados.rb +12 -11
  3. data/lib/arvados/keep.rb +3 -3
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 31dd9438c492c6cea13f406964e02eac0cd22f75
4
- data.tar.gz: 5cdf890abe183596cd1fdaddf2141ce72315d8f8
3
+ metadata.gz: db3e81843b8286d29a0a5c0c13bb68af50723730
4
+ data.tar.gz: 6b40bd476aba3976487ca9b686d32a978a7ad5f5
5
5
  SHA512:
6
- metadata.gz: b4b167b4e59b71295a6b22f93522f9da7ebf61eb68ba55bfc018f3b1beba8f935f8b9fe65b09ae78438cfba8322edd600a572764e740f7202f005ecd019135e7
7
- data.tar.gz: 8604a3442f31d33e5e396109b18a524f50c655d23d1c2bb2bad9950fbacbfd6888c4bd5b22e985c4cae743e5eb8c4305c9747ea4079a4d6a12a8feccfe3c3cfa
6
+ metadata.gz: 637ed391dc9eddd872bba153ba2e0da82b24d97c5e0c36a4959561109ace4534e015acc696ceb0456034fd33270a0c7957e70dd4bca6154a5f602d63acbef703
7
+ data.tar.gz: 7832a8c355d76fabed8f4823635d614109f2a573fbb3a8959e626c2fc53e45b54f9550d7691f0f382fe72d627cd4afa14cadadf3df0ea7493ff208cfc5b387f3
@@ -11,18 +11,7 @@ ActiveSupport::Inflector.inflections do |inflect|
11
11
  inflect.irregular 'human', 'humans'
12
12
  end
13
13
 
14
- module Kernel
15
- def suppress_warnings
16
- original_verbosity = $VERBOSE
17
- $VERBOSE = nil
18
- result = yield
19
- $VERBOSE = original_verbosity
20
- return result
21
- end
22
- end
23
-
24
14
  class Arvados
25
-
26
15
  class TransactionFailedError < StandardError
27
16
  end
28
17
 
@@ -262,4 +251,16 @@ class Arvados
262
251
  @attributes = j
263
252
  end
264
253
  end
254
+
255
+ protected
256
+
257
+ def suppress_warnings
258
+ original_verbosity = $VERBOSE
259
+ begin
260
+ $VERBOSE = nil
261
+ yield
262
+ ensure
263
+ $VERBOSE = original_verbosity
264
+ end
265
+ end
265
266
  end
@@ -35,7 +35,7 @@ module Keep
35
35
  def self.parse(tok)
36
36
  begin
37
37
  Locator.parse!(tok)
38
- rescue ArgumentError => e
38
+ rescue ArgumentError
39
39
  nil
40
40
  end
41
41
  end
@@ -112,7 +112,7 @@ module Keep
112
112
  stream_name = nil
113
113
  block_tokens = []
114
114
  file_tokens = []
115
- line.scan /\S+/ do |token|
115
+ line.scan(/\S+/) do |token|
116
116
  if stream_name.nil?
117
117
  stream_name = unescape token
118
118
  elsif file_tokens.empty? and Locator.valid? token
@@ -152,7 +152,7 @@ module Keep
152
152
  @text.each_line do |line|
153
153
  stream_name = nil
154
154
  in_file_tokens = false
155
- line.scan /\S+/ do |token|
155
+ line.scan(/\S+/) do |token|
156
156
  if stream_name.nil?
157
157
  stream_name = unescape token
158
158
  elsif in_file_tokens or not Locator.valid? token
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arvados
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.20170330012324
4
+ version: 0.1.20170427165906
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arvados Authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-30 00:00:00.000000000 Z
11
+ date: 2017-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -124,7 +124,7 @@ dependencies:
124
124
  - - ">="
125
125
  - !ruby/object:Gem::Version
126
126
  version: 0.1.5
127
- description: Arvados client library, git commit 78ca1460d58172f4555409298968583cd2ee70a1
127
+ description: Arvados client library, git commit 318c49002aea966128a9d37ab29e601a104d79bb
128
128
  email: gem-dev@curoverse.com
129
129
  executables: []
130
130
  extensions: []