qb 0.1.57 → 0.1.58

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: 4995bf75df88c4e41eb0d9faf8d87df23a46715b
4
- data.tar.gz: 5840addfe4c798eac0cc9cfef8686448e6eefb15
3
+ metadata.gz: 606592a4cf57d632a7086ad866d08a88865d5441
4
+ data.tar.gz: 9789b4044a5900679b5e3a7390dcaaaf86aecc57
5
5
  SHA512:
6
- metadata.gz: f62010e8cbb650069092df7095b78f733fe5f71a6a462f6bbbbcebe5e36791c69167423d8e6fd4ac8cb0c003090b68bb988d63499dbbe5ab8b2606076845bf57
7
- data.tar.gz: de0962656f44993001f4f6393aa7eefc5fb1356a97942ed128bc9fb6377342929f9f7509621834e9b2132398b41da34229946a261a510e833c29dc21fad46809
6
+ metadata.gz: 8f20a7599a35d0329f68dc348396f0dbf9f0b6c0ef7a5613b74c61c1b2792453ad0fa09443ae453a803241f55d675aa79e323464891c9d90757a92ab5a0989f0
7
+ data.tar.gz: 84a12c5d0cacc04d9e1edecd6f2c6735c8fa75dec671941a11fb32e09867661d0f987b6969f1075600b97d2448b5e17433c8f7e9342124b9bfa5855681e1e183
data/lib/qb/version.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  module QB
2
2
  GEM_NAME = 'qb'
3
3
 
4
- VERSION = "0.1.57"
4
+ VERSION = "0.1.58"
5
5
 
6
6
  def self.gemspec
7
7
  Gem.loaded_specs[GEM_NAME]
@@ -17,6 +17,16 @@ QB_ROOT = os.path.realpath(
17
17
  )
18
18
 
19
19
 
20
+ def get_semver_path():
21
+ bin_path = os.path.join(QB_ROOT, 'node_modules', 'semver', 'bin', 'semver')
22
+
23
+ if not os.path.isfile(bin_path):
24
+ raise Exception("can't find semver at %s" % bin_path)
25
+
26
+ return bin_path
27
+ # get_semver_path()
28
+
29
+
20
30
  def semver_inc(version, level = None, preid = None):
21
31
  '''increment the version at level, with optional preid for pre- levels.
22
32
 
@@ -28,9 +38,9 @@ def semver_inc(version, level = None, preid = None):
28
38
  '1.0.1-dev.0'
29
39
 
30
40
  '''
31
-
41
+
32
42
  cmd = [
33
- os.path.join(QB_ROOT, 'node_modules', '.bin', 'semver'),
43
+ get_semver_path(),
34
44
  '--increment',
35
45
  ]
36
46
 
@@ -46,6 +56,7 @@ def semver_inc(version, level = None, preid = None):
46
56
  out = subprocess.check_output(cmd)
47
57
 
48
58
  return out.rstrip()
59
+ # semver_inc()
49
60
 
50
61
 
51
62
  def semver_parse(version):
@@ -61,9 +72,7 @@ def semver_parse(version):
61
72
 
62
73
  out = subprocess.check_output(
63
74
  cmd,
64
- cwd = os.path.realpath(
65
- os.path.join(__file__, '..', '..')
66
- )
75
+ cwd = QB_ROOT
67
76
  )
68
77
 
69
78
  version = json.loads(out)
@@ -91,6 +100,7 @@ def semver_parse(version):
91
100
  version['release'] = "%(major)s.%(minor)s.%(patch)s" % version
92
101
 
93
102
  return version
103
+ # semver_parse()
94
104
 
95
105
 
96
106
  class FilterModule(object):
@@ -101,6 +111,8 @@ class FilterModule(object):
101
111
  'semver_inc': semver_inc,
102
112
  'semver_parse': semver_parse,
103
113
  }
114
+ # filters()
115
+ # FilterModule
104
116
 
105
117
 
106
118
  # testing - call camel_case on first cli arg and print result
@@ -4,17 +4,16 @@
4
4
  - name: load package.json
5
5
  include_vars:
6
6
  file: "{{ release_yarn_package_dir }}/package.json"
7
- name: release_gem_package_json
7
+ name: release_yarn_package_json
8
8
 
9
9
  - name: get current version
10
10
  set_fact:
11
- release_yarn_current_version: "{{ release_gem_package_json.version }}"
11
+ release_yarn_current_version: "{{ release_yarn_package_json.version }}"
12
12
 
13
13
  - name: create release version
14
14
  set_fact:
15
- release_yarn_release_version: "{{
16
- release_yarn_current_version | semver_inc(release_yarn_level)
17
- }}"
15
+ release_yarn_release_version: >-
16
+ {{ release_yarn_current_version | semver_inc(release_yarn_level) }}
18
17
 
19
18
  - name: >
20
19
  increment to version {{ release_yarn_release_version }}
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.57
4
+ version: 0.1.58
5
5
  platform: ruby
6
6
  authors:
7
7
  - nrser
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-04-17 00:00:00.000000000 Z
11
+ date: 2017-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler