shivers 0.3.0 → 0.6.0.pre.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CODE_OF_CONDUCT.md +1 -1
- data/Gemfile.lock +30 -20
- data/lib/shivers/version.rb +1 -1
- data/lib/shivers.rb +26 -0
- data/shivers.gemspec +4 -3
- metadata +19 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 43c706fcd9ee52297c5d84d3e00255c5e6491c32cad8b4c6c8e0a5947cb9f3c4
|
4
|
+
data.tar.gz: e1ea8200afed650095e73d6eda8adec4700c9a4c5a3ee6d6ba67c81adae00c7f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 77f32cb667c3282149aebf75eddcedf9718f5db52a72b19958d3aab6c3e964da0280acef3dfcb901cb75697eef419995e85f80cd5fbc781bbe153327a20920b1
|
7
|
+
data.tar.gz: 7e4836752db8ce9855150320c14399584d1f1c152ecc2a35def311784b5447f706ed26fdcb148280fcaadd5195b67448adfe673ba5dad941001e929a47379d63
|
data/CODE_OF_CONDUCT.md
CHANGED
@@ -55,7 +55,7 @@ further defined and clarified by project maintainers.
|
|
55
55
|
## Enforcement
|
56
56
|
|
57
57
|
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
-
reported by contacting the project team at
|
58
|
+
reported by contacting the project team at maintainers@infrablocks.io. All
|
59
59
|
complaints will be reviewed and investigated and will result in a response that
|
60
60
|
is deemed necessary and appropriate to the circumstances. The project team is
|
61
61
|
obligated to maintain confidentiality with regard to the reporter of an incident.
|
data/Gemfile.lock
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
shivers (0.
|
4
|
+
shivers (0.6.0.pre.2)
|
5
5
|
semantic (~> 1.6)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
activesupport (6.1.
|
10
|
+
activesupport (6.1.3.2)
|
11
11
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
12
12
|
i18n (>= 1.6, < 2)
|
13
13
|
minitest (>= 5.1)
|
@@ -16,31 +16,40 @@ GEM
|
|
16
16
|
addressable (2.7.0)
|
17
17
|
public_suffix (>= 2.0.2, < 5.0)
|
18
18
|
colored2 (3.1.2)
|
19
|
-
concurrent-ruby (1.1.
|
19
|
+
concurrent-ruby (1.1.8)
|
20
20
|
diff-lcs (1.4.4)
|
21
|
-
docile (1.
|
22
|
-
excon (0.
|
23
|
-
|
21
|
+
docile (1.4.0)
|
22
|
+
excon (0.82.0)
|
23
|
+
fakefs (0.20.1)
|
24
|
+
faraday (1.4.2)
|
25
|
+
faraday-em_http (~> 1.0)
|
26
|
+
faraday-em_synchrony (~> 1.0)
|
27
|
+
faraday-excon (~> 1.1)
|
24
28
|
faraday-net_http (~> 1.0)
|
29
|
+
faraday-net_http_persistent (~> 1.1)
|
25
30
|
multipart-post (>= 1.2, < 3)
|
26
|
-
ruby2_keywords
|
27
|
-
faraday-
|
28
|
-
|
31
|
+
ruby2_keywords (>= 0.0.4)
|
32
|
+
faraday-em_http (1.0.0)
|
33
|
+
faraday-em_synchrony (1.0.0)
|
34
|
+
faraday-excon (1.1.0)
|
35
|
+
faraday-net_http (1.0.1)
|
36
|
+
faraday-net_http_persistent (1.1.0)
|
37
|
+
gem-release (2.2.2)
|
29
38
|
hamster (3.0.0)
|
30
39
|
concurrent-ruby (~> 1.0)
|
31
|
-
i18n (1.8.
|
40
|
+
i18n (1.8.10)
|
32
41
|
concurrent-ruby (~> 1.0)
|
33
|
-
lino (
|
42
|
+
lino (3.0.0)
|
34
43
|
hamster (~> 3.0)
|
35
44
|
open4 (~> 1.3)
|
36
|
-
minitest (5.14.
|
45
|
+
minitest (5.14.4)
|
37
46
|
multipart-post (2.1.1)
|
38
|
-
octokit (4.
|
47
|
+
octokit (4.21.0)
|
39
48
|
faraday (>= 0.9)
|
40
49
|
sawyer (~> 0.8.0, >= 0.5.3)
|
41
50
|
open4 (1.3.4)
|
42
51
|
public_suffix (4.0.6)
|
43
|
-
rake (13.0.
|
52
|
+
rake (13.0.6)
|
44
53
|
rake_circle_ci (0.9.0)
|
45
54
|
colored2 (~> 3.1)
|
46
55
|
excon (~> 0.72)
|
@@ -54,7 +63,7 @@ GEM
|
|
54
63
|
octokit (~> 4.16)
|
55
64
|
rake_factory (~> 0.23)
|
56
65
|
sshkey (~> 2.0)
|
57
|
-
rake_gpg (0.
|
66
|
+
rake_gpg (0.16.0)
|
58
67
|
rake_factory (>= 0.23, < 1)
|
59
68
|
ruby_gpg2 (>= 0.6, < 1)
|
60
69
|
rake_ssh (0.6.0)
|
@@ -70,11 +79,11 @@ GEM
|
|
70
79
|
rspec-expectations (3.10.1)
|
71
80
|
diff-lcs (>= 1.2.0, < 2.0)
|
72
81
|
rspec-support (~> 3.10.0)
|
73
|
-
rspec-mocks (3.10.
|
82
|
+
rspec-mocks (3.10.2)
|
74
83
|
diff-lcs (>= 1.2.0, < 2.0)
|
75
84
|
rspec-support (~> 3.10.0)
|
76
|
-
rspec-support (3.10.
|
77
|
-
ruby2_keywords (0.0.
|
85
|
+
rspec-support (3.10.2)
|
86
|
+
ruby2_keywords (0.0.4)
|
78
87
|
ruby_gpg2 (0.8.0)
|
79
88
|
lino (>= 1.5)
|
80
89
|
sawyer (0.8.2)
|
@@ -86,7 +95,7 @@ GEM
|
|
86
95
|
simplecov-html (~> 0.11)
|
87
96
|
simplecov_json_formatter (~> 0.1)
|
88
97
|
simplecov-html (0.12.3)
|
89
|
-
simplecov_json_formatter (0.1.
|
98
|
+
simplecov_json_formatter (0.1.3)
|
90
99
|
sshkey (2.0.0)
|
91
100
|
tzinfo (2.0.4)
|
92
101
|
concurrent-ruby (~> 1.0)
|
@@ -99,6 +108,7 @@ PLATFORMS
|
|
99
108
|
|
100
109
|
DEPENDENCIES
|
101
110
|
bundler (~> 2.0)
|
111
|
+
fakefs (~> 0.18)
|
102
112
|
gem-release (~> 2.0)
|
103
113
|
rake (~> 13.0)
|
104
114
|
rake_circle_ci (~> 0.9)
|
@@ -110,4 +120,4 @@ DEPENDENCIES
|
|
110
120
|
simplecov (~> 0.16)
|
111
121
|
|
112
122
|
BUNDLED WITH
|
113
|
-
2.2.
|
123
|
+
2.2.32
|
data/lib/shivers/version.rb
CHANGED
data/lib/shivers.rb
CHANGED
@@ -1,4 +1,30 @@
|
|
1
1
|
require 'shivers/version'
|
2
2
|
|
3
|
+
require 'semantic'
|
4
|
+
|
3
5
|
module Shivers
|
6
|
+
class Version
|
7
|
+
def self.from_file(path)
|
8
|
+
git_sha = ENV['GIT_SHA'] || 'LOCAL'
|
9
|
+
metadata = "#{git_sha}"
|
10
|
+
|
11
|
+
base_version = File.exist?(path) ?
|
12
|
+
File.open(path) { |file| file.read.strip } :
|
13
|
+
'0.0.0'
|
14
|
+
|
15
|
+
Version.new("#{base_version}+#{metadata}")
|
16
|
+
end
|
17
|
+
|
18
|
+
def initialize(version_string)
|
19
|
+
@version = Semantic::Version.new(version_string)
|
20
|
+
end
|
21
|
+
|
22
|
+
def to_docker_tag
|
23
|
+
to_s.gsub(/[\+]/, '_').downcase
|
24
|
+
end
|
25
|
+
|
26
|
+
def to_s
|
27
|
+
@version.to_s
|
28
|
+
end
|
29
|
+
end
|
4
30
|
end
|
data/shivers.gemspec
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
lib = File.expand_path('../lib', __FILE__)
|
3
3
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require 'shivers'
|
4
|
+
require 'shivers/version'
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = 'shivers'
|
8
8
|
spec.version = Shivers::VERSION
|
9
|
-
spec.authors = ['
|
10
|
-
spec.email = ['
|
9
|
+
spec.authors = ['InfraBlocks Maintainers']
|
10
|
+
spec.email = ['maintainers@infrablocks.io']
|
11
11
|
|
12
12
|
spec.date = '2021-01-11'
|
13
13
|
spec.summary = 'Semantic version numbers for CI pipelines.'
|
@@ -33,6 +33,7 @@ Gem::Specification.new do |spec|
|
|
33
33
|
spec.add_development_dependency 'rake_ssh', '~> 0.6'
|
34
34
|
spec.add_development_dependency 'rake_gpg', '~> 0.14'
|
35
35
|
spec.add_development_dependency 'rspec', '~> 3.9'
|
36
|
+
spec.add_development_dependency 'fakefs', '~> 0.18'
|
36
37
|
spec.add_development_dependency 'gem-release', '~> 2.0'
|
37
38
|
spec.add_development_dependency 'simplecov', '~> 0.16'
|
38
39
|
end
|
metadata
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shivers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0.pre.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- InfraBlocks Maintainers
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
@@ -122,6 +122,20 @@ dependencies:
|
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '3.9'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: fakefs
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0.18'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0.18'
|
125
139
|
- !ruby/object:Gem::Dependency
|
126
140
|
name: gem-release
|
127
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -152,7 +166,7 @@ dependencies:
|
|
152
166
|
version: '0.16'
|
153
167
|
description: Semantic version number management, by file and environment, for CI pipelines.
|
154
168
|
email:
|
155
|
-
-
|
169
|
+
- maintainers@infrablocks.io
|
156
170
|
executables: []
|
157
171
|
extensions: []
|
158
172
|
extra_rdoc_files: []
|
@@ -183,9 +197,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
183
197
|
version: '2.6'
|
184
198
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
185
199
|
requirements:
|
186
|
-
- - "
|
200
|
+
- - ">"
|
187
201
|
- !ruby/object:Gem::Version
|
188
|
-
version:
|
202
|
+
version: 1.3.1
|
189
203
|
requirements: []
|
190
204
|
rubygems_version: 3.0.1
|
191
205
|
signing_key:
|