qq 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/qq.rb +11 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 862a2cd90b5250cf9b88e39dbf7393ed16118dca
4
- data.tar.gz: 234ba9609d7c38c6019755308a6048299c18d3df
3
+ metadata.gz: a120c7adb93b82dfd4c3b979160bceafbf81e214
4
+ data.tar.gz: 0588db7d6e912e78db0ee180400031c5b4e427f2
5
5
  SHA512:
6
- metadata.gz: 0971bd8de1779756b33608026cad14a7e162e68cb5a419abcdb21df58433ef20a48aea964e399c32f1573919ed58e1065033de04b0926cfdf554f073f47c5528
7
- data.tar.gz: 6e331cfa370512cdc875d05e3d642c3020458a99ae30aa01b9235ad68aebe1f8218185025abe9ea09b44672baf7f7a2b6f88fd9edcf6894b43e976cad9798e9e
6
+ metadata.gz: b0e38ee6235187b5515b25c5fc0d7511d229ca73d3622a9765b16329b759bb02d76b4a197fd3af0c715987167598f96a45237022a49a06e866a83fc9a899594e
7
+ data.tar.gz: f298b3cb6f378afca69638221c293211b76e539372a4749790dec96a4c02f16da30a880a1244320b0d637a9beed7e34988cf16b690f8244e1ddebad66126743a
data/lib/qq.rb CHANGED
@@ -1,8 +1,17 @@
1
1
  require 'pp'
2
2
  require 'tmpdir'
3
3
  require 'thread'
4
- require 'parser'
5
- require 'unparser'
4
+
5
+ # Suppress Ruby parser warnings.
6
+ # If the parser fails we have reasonable defaults.
7
+ begin
8
+ stderr = $stderr
9
+ $stderr = StringIO.new
10
+ require 'parser'
11
+ require 'unparser'
12
+ ensure
13
+ $stderr = stderr
14
+ end
6
15
 
7
16
  # QQ improves puts debugging.
8
17
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qq
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shane Hanna
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-06 00:00:00.000000000 Z
11
+ date: 2016-12-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parser