sleet 0.3.9 → 0.3.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/bin/release +8 -0
- data/lib/sleet/artifact_downloader.rb +1 -1
- data/lib/sleet/branch.rb +1 -1
- data/lib/sleet/build.rb +1 -1
- data/lib/sleet/build_selector.rb +1 -1
- data/lib/sleet/circle_ci.rb +2 -2
- data/lib/sleet/cli.rb +6 -1
- data/lib/sleet/config.rb +3 -3
- data/lib/sleet/fetch_command.rb +1 -1
- data/lib/sleet/job_fetcher.rb +2 -2
- data/lib/sleet/repo.rb +2 -2
- data/lib/sleet/version.rb +1 -1
- data/sleet.gemspec +4 -2
- metadata +33 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b4ce6d9391262e355854886ea05dd44082be2f51aec4bb300132f9f26d1a1737
|
4
|
+
data.tar.gz: 210ede2430b468b996c60c5f245a21fea5b1590a50d4636aa6da6d884163f056
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 27afbb4ae3cf79b183af8a8ec1c398d05f1450f3662fa75abf2343c2d703ba68645cd971262767d790b356e6d93a86cbdfcf3f39675e87c9cea3515a419f8fba
|
7
|
+
data.tar.gz: 383e4b3e98cae18a20e9499fc6622ceec0f09cae6e18ca13f994eb4d91ab2e3dd7d25ce1c7e06a22e722a8d41f4f3668924f5ce24381ba3d3bcaf4a83a9ffa0b
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## [v0.3.10](https://github.com/coreyja/sleet/tree/v0.3.10) (2018-03-07)
|
4
|
+
[Full Changelog](https://github.com/coreyja/sleet/compare/v0.3.9...v0.3.10)
|
5
|
+
|
6
|
+
**Merged pull requests:**
|
7
|
+
|
8
|
+
- Base Version Option [\#20](https://github.com/coreyja/sleet/pull/20) ([coreyja](https://github.com/coreyja))
|
9
|
+
- Update rubocop requirement to ~\> 0.53.0 [\#19](https://github.com/coreyja/sleet/pull/19) ([dependabot[bot]](https://github.com/apps/dependabot))
|
10
|
+
|
3
11
|
## [v0.3.9](https://github.com/coreyja/sleet/tree/v0.3.9) (2018-03-04)
|
4
12
|
[Full Changelog](https://github.com/coreyja/sleet/compare/v0.3.8...v0.3.9)
|
5
13
|
|
data/bin/release
ADDED
data/lib/sleet/branch.rb
CHANGED
data/lib/sleet/build.rb
CHANGED
data/lib/sleet/build_selector.rb
CHANGED
data/lib/sleet/circle_ci.rb
CHANGED
@@ -7,7 +7,7 @@ module Sleet
|
|
7
7
|
include Singleton
|
8
8
|
|
9
9
|
def token
|
10
|
-
@
|
10
|
+
@token ||= File.read("#{Dir.home}/.circleci.token").strip
|
11
11
|
end
|
12
12
|
|
13
13
|
def get(url)
|
@@ -15,7 +15,7 @@ module Sleet
|
|
15
15
|
end
|
16
16
|
|
17
17
|
def reset!
|
18
|
-
@
|
18
|
+
@token = nil
|
19
19
|
end
|
20
20
|
|
21
21
|
def self.get(url)
|
data/lib/sleet/cli.rb
CHANGED
@@ -34,8 +34,13 @@ module Sleet
|
|
34
34
|
end
|
35
35
|
|
36
36
|
desc 'version', 'Display the version'
|
37
|
+
option :bare, type: :boolean, default: false
|
37
38
|
def version
|
38
|
-
|
39
|
+
if options[:bare]
|
40
|
+
puts Sleet::VERSION
|
41
|
+
else
|
42
|
+
puts "Sleet v#{Sleet::VERSION}"
|
43
|
+
end
|
39
44
|
end
|
40
45
|
|
41
46
|
desc 'config', 'Print the config'
|
data/lib/sleet/config.rb
CHANGED
@@ -35,11 +35,11 @@ module Sleet
|
|
35
35
|
attr_reader :cli_hash, :dir
|
36
36
|
|
37
37
|
def options
|
38
|
-
@
|
38
|
+
@options ||= default_options.merge(file_options).merge(cli_options)
|
39
39
|
end
|
40
40
|
|
41
41
|
def options_hash
|
42
|
-
@
|
42
|
+
@options_hash ||= Thor::CoreExt::HashWithIndifferentAccess.new(options.map { |k, o| [k, o.value] }.to_h)
|
43
43
|
end
|
44
44
|
|
45
45
|
def table_rows
|
@@ -77,7 +77,7 @@ module Sleet
|
|
77
77
|
end
|
78
78
|
|
79
79
|
def directories
|
80
|
-
@
|
80
|
+
@directories ||= dir.split('/')
|
81
81
|
end
|
82
82
|
|
83
83
|
def default_options
|
data/lib/sleet/fetch_command.rb
CHANGED
data/lib/sleet/job_fetcher.rb
CHANGED
@@ -33,7 +33,7 @@ module Sleet
|
|
33
33
|
end
|
34
34
|
|
35
35
|
def build_persistance_artifacts
|
36
|
-
@
|
36
|
+
@build_persistance_artifacts ||= Sleet::ArtifactDownloader.new(
|
37
37
|
file_name: input_filename,
|
38
38
|
artifacts: build.artifacts
|
39
39
|
).files
|
@@ -48,7 +48,7 @@ module Sleet
|
|
48
48
|
end
|
49
49
|
|
50
50
|
def build_selector
|
51
|
-
@
|
51
|
+
@build_selector ||= Sleet::BuildSelector.new(job_name: job_name, repo: repo)
|
52
52
|
end
|
53
53
|
end
|
54
54
|
end
|
data/lib/sleet/repo.rb
CHANGED
@@ -21,7 +21,7 @@ module Sleet
|
|
21
21
|
end
|
22
22
|
|
23
23
|
def branch
|
24
|
-
@
|
24
|
+
@branch ||= Sleet::Branch.new(
|
25
25
|
github_user: github_user,
|
26
26
|
github_repo: github_repo,
|
27
27
|
branch: remote_branch
|
@@ -61,7 +61,7 @@ module Sleet
|
|
61
61
|
end
|
62
62
|
|
63
63
|
def github_match
|
64
|
-
@
|
64
|
+
@github_match ||= GITHUB_MATCH_REGEX.match(current_branch.remote.url)
|
65
65
|
end
|
66
66
|
|
67
67
|
def must_be_on_branch!
|
data/lib/sleet/version.rb
CHANGED
data/sleet.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
|
-
lib = File.expand_path('
|
4
|
+
lib = File.expand_path('lib', __dir__)
|
5
5
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
6
6
|
require 'sleet/version'
|
7
7
|
|
@@ -34,9 +34,11 @@ Gem::Specification.new do |spec|
|
|
34
34
|
spec.add_dependency 'thor', '~> 0.20.0'
|
35
35
|
|
36
36
|
spec.add_development_dependency 'bundler', '~> 1.13'
|
37
|
+
spec.add_development_dependency 'gem-release', '2.0.0.dev.5'
|
38
|
+
spec.add_development_dependency 'github_changelog_generator', '~> 1.14'
|
37
39
|
spec.add_development_dependency 'pry', '~> 0.10'
|
38
40
|
spec.add_development_dependency 'rake', '~> 12.3'
|
39
|
-
spec.add_development_dependency 'rubocop', '~> 0.
|
41
|
+
spec.add_development_dependency 'rubocop', '~> 0.53.0'
|
40
42
|
spec.add_development_dependency 'rubocop-rspec', '~> 1.22'
|
41
43
|
spec.add_development_dependency 'webmock', '~> 3.3.0'
|
42
44
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sleet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Corey Alexander
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-03-
|
11
|
+
date: 2018-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colorize
|
@@ -114,6 +114,34 @@ dependencies:
|
|
114
114
|
- - "~>"
|
115
115
|
- !ruby/object:Gem::Version
|
116
116
|
version: '1.13'
|
117
|
+
- !ruby/object:Gem::Dependency
|
118
|
+
name: gem-release
|
119
|
+
requirement: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - '='
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: 2.0.0.dev.5
|
124
|
+
type: :development
|
125
|
+
prerelease: false
|
126
|
+
version_requirements: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
128
|
+
- - '='
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: 2.0.0.dev.5
|
131
|
+
- !ruby/object:Gem::Dependency
|
132
|
+
name: github_changelog_generator
|
133
|
+
requirement: !ruby/object:Gem::Requirement
|
134
|
+
requirements:
|
135
|
+
- - "~>"
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
version: '1.14'
|
138
|
+
type: :development
|
139
|
+
prerelease: false
|
140
|
+
version_requirements: !ruby/object:Gem::Requirement
|
141
|
+
requirements:
|
142
|
+
- - "~>"
|
143
|
+
- !ruby/object:Gem::Version
|
144
|
+
version: '1.14'
|
117
145
|
- !ruby/object:Gem::Dependency
|
118
146
|
name: pry
|
119
147
|
requirement: !ruby/object:Gem::Requirement
|
@@ -148,14 +176,14 @@ dependencies:
|
|
148
176
|
requirements:
|
149
177
|
- - "~>"
|
150
178
|
- !ruby/object:Gem::Version
|
151
|
-
version: 0.
|
179
|
+
version: 0.53.0
|
152
180
|
type: :development
|
153
181
|
prerelease: false
|
154
182
|
version_requirements: !ruby/object:Gem::Requirement
|
155
183
|
requirements:
|
156
184
|
- - "~>"
|
157
185
|
- !ruby/object:Gem::Version
|
158
|
-
version: 0.
|
186
|
+
version: 0.53.0
|
159
187
|
- !ruby/object:Gem::Dependency
|
160
188
|
name: rubocop-rspec
|
161
189
|
requirement: !ruby/object:Gem::Requirement
|
@@ -208,6 +236,7 @@ files:
|
|
208
236
|
- README.md
|
209
237
|
- Rakefile
|
210
238
|
- bin/console
|
239
|
+
- bin/release
|
211
240
|
- bin/setup
|
212
241
|
- exe/sleet
|
213
242
|
- lib/sleet.rb
|