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 +4 -4
- data/lib/qb/version.rb +1 -1
- data/plugins/filter_plugins/version.py +17 -5
- data/roles/qb.release_yarn/tasks/main.yml +4 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 606592a4cf57d632a7086ad866d08a88865d5441
|
4
|
+
data.tar.gz: 9789b4044a5900679b5e3a7390dcaaaf86aecc57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f20a7599a35d0329f68dc348396f0dbf9f0b6c0ef7a5613b74c61c1b2792453ad0fa09443ae453a803241f55d675aa79e323464891c9d90757a92ab5a0989f0
|
7
|
+
data.tar.gz: 84a12c5d0cacc04d9e1edecd6f2c6735c8fa75dec671941a11fb32e09867661d0f987b6969f1075600b97d2448b5e17433c8f7e9342124b9bfa5855681e1e183
|
data/lib/qb/version.rb
CHANGED
@@ -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
|
-
|
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 =
|
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:
|
7
|
+
name: release_yarn_package_json
|
8
8
|
|
9
9
|
- name: get current version
|
10
10
|
set_fact:
|
11
|
-
release_yarn_current_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.
|
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-
|
11
|
+
date: 2017-04-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|