qb 0.1.65 → 0.1.66

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: 6fdf57c8028f6d439aaa3247ebb5b6fe6ed0559b
4
- data.tar.gz: d9c372d7f5086628656685a18212ff22a4aeb741
3
+ metadata.gz: 312cc71f379e2befa17609db30bc330bb679c458
4
+ data.tar.gz: df361529245785a5e01d13fb12a5b81677040d0e
5
5
  SHA512:
6
- metadata.gz: 3deeb13f7ab82f0c0618a504f7c768b30820d9117a96c166fb90dea9e2e15d93df51c23420ed72b83a72e0e8662af2e41cd1832ab3b4c323e3cf8fd2d78deec1
7
- data.tar.gz: 133aaa3018ecce375b5b1a8cb2cfef0b8ecc9f202e1034112ca9b11739020b14b0e5c07a83261704ba0b474b9b6b546049d0368d781abef133c86b137273e00e
6
+ metadata.gz: 8009084bc7a5b70e9fa745181382148332d7724c935abf1d805078828994ff9d0a682d1cceb91cb79d03f4e49a9747d3431a8711b1a3ad8f47b3868f6242bb6e
7
+ data.tar.gz: 1bd90fcdac891b412824ec25f26b34b3683234ea990a90b03f6a31d05ee7bdbd38f7333511a676707b1301bfded4a3184ef9c6bb743ddce9e28e91c32aa21236
@@ -49,6 +49,18 @@ module QB
49
49
  end
50
50
  end
51
51
 
52
+ attr_reader :raw,
53
+ :major,
54
+ :minor,
55
+ :patch,
56
+ :prerelease,
57
+ :build,
58
+ :release,
59
+ :level,
60
+ :is_release,
61
+ :is_dev,
62
+ :is_rc
63
+
52
64
  # Construct a new Version
53
65
  def initialize raw:, major:, minor:, patch:, prerelease:, build:, release:
54
66
  @raw = raw
@@ -66,6 +78,18 @@ module QB
66
78
  @is_rc = @prerelease[0] == 'rc'
67
79
  end
68
80
 
81
+ def release?
82
+ @is_release
83
+ end
84
+
85
+ def dev?
86
+ @is_dev
87
+ end
88
+
89
+ def rc?
90
+ @is_rc
91
+ end
92
+
69
93
  # dump all instance variables into a hash
70
94
  def to_h
71
95
  instance_variables.map {|var|
@@ -1,7 +1,7 @@
1
1
  module QB
2
2
  GEM_NAME = 'qb'
3
3
 
4
- VERSION = "0.1.65"
4
+ VERSION = "0.1.66"
5
5
 
6
6
  def self.gemspec
7
7
  Gem.loaded_specs[GEM_NAME]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.65
4
+ version: 0.1.66
5
5
  platform: ruby
6
6
  authors:
7
7
  - nrser