qb 0.1.64 → 0.1.65

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c20bbb470860d5f8893a0b231f578aad308aa192
4
- data.tar.gz: 6c3049e6fec28c454002d47feacc9148022ab1b1
3
+ metadata.gz: 6fdf57c8028f6d439aaa3247ebb5b6fe6ed0559b
4
+ data.tar.gz: d9c372d7f5086628656685a18212ff22a4aeb741
5
5
  SHA512:
6
- metadata.gz: 6406952deeec382082b5234ec5a2f75a7afd21e2a05626a1f67efbeab29d823e96e814356e2d607d8ec47367cca04fdab6189bc21d0ef78d41fa516953bf269c
7
- data.tar.gz: 8537a944f35e7337a0aeb3dd1df7fec6c6446d913b8f1e5d4354d71c3863ce507cbb3ed797edb4fff07fa1825ac5a5366f9a7919bf87148a49204f160ca29f21
6
+ metadata.gz: 3deeb13f7ab82f0c0618a504f7c768b30820d9117a96c166fb90dea9e2e15d93df51c23420ed72b83a72e0e8662af2e41cd1832ab3b4c323e3cf8fd2d78deec1
7
+ data.tar.gz: 133aaa3018ecce375b5b1a8cb2cfef0b8ecc9f202e1034112ca9b11739020b14b0e5c07a83261704ba0b474b9b6b546049d0368d781abef133c86b137273e00e
@@ -28,7 +28,9 @@ module QB
28
28
  );
29
29
  END
30
30
 
31
- parse = JSON.load Cmds.out!("node --eval %s", stmt)
31
+ parse = JSON.load Cmds.new(
32
+ "node --eval %s", args: [stmt], chdir: QB::ROOT
33
+ ).out!
32
34
 
33
35
  new raw: version,
34
36
  major: parse['major'],
@@ -75,6 +77,10 @@ module QB
75
77
  def to_json *args
76
78
  to_h.to_json *args
77
79
  end
80
+
81
+ def to_s
82
+ "#<QB::Package::Version #{ @raw }>"
83
+ end
78
84
  end
79
85
  end # Package
80
86
  end # QB
@@ -1,7 +1,7 @@
1
1
  module QB
2
2
  GEM_NAME = 'qb'
3
3
 
4
- VERSION = "0.1.64"
4
+ VERSION = "0.1.65"
5
5
 
6
6
  def self.gemspec
7
7
  Gem.loaded_specs[GEM_NAME]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.64
4
+ version: 0.1.65
5
5
  platform: ruby
6
6
  authors:
7
7
  - nrser
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-06-12 00:00:00.000000000 Z
11
+ date: 2017-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler