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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b394aa63feaea3c3def2bd2ab1fcedc94311c8a0cd1bca488d5e89106110a07f
4
- data.tar.gz: 9f450c4b7efa54b1d58abd92bb54e265f012fc6ca7830d7d2f9f20896b4fb07c
3
+ metadata.gz: b4ce6d9391262e355854886ea05dd44082be2f51aec4bb300132f9f26d1a1737
4
+ data.tar.gz: 210ede2430b468b996c60c5f245a21fea5b1590a50d4636aa6da6d884163f056
5
5
  SHA512:
6
- metadata.gz: 7a9e20fa664683bc37695cb3b57191f3baa111e03f9c89febf073af2a7fcbbcb09a5050a10bb64d82d8aae7b9cd02bb4503a89aefae43bf00b60254a16bd4c98
7
- data.tar.gz: b9699434ad49685fc96c506075f7b855e4d9f5e7bca3ce15511afb28a0bb53d9acf83ff9b3360dc80e0b044c76329ecd7dcd587d41425b6eecf2ee782223bc66
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
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ gem bump -v $1
5
+ github_changelog_generator -u coreyja -p sleet --future-release v$(bundle exec exe/sleet version --bare)
6
+ git add -A
7
+ git commit --amend --no-edit
8
+ gem release -tp
@@ -8,7 +8,7 @@ module Sleet
8
8
  end
9
9
 
10
10
  def files
11
- @_files ||= urls.map do |url|
11
+ @files ||= urls.map do |url|
12
12
  Sleet::CircleCi.get(url)
13
13
  end.map(&:body)
14
14
  end
data/lib/sleet/branch.rb CHANGED
@@ -9,7 +9,7 @@ module Sleet
9
9
  end
10
10
 
11
11
  def builds
12
- @_builds ||= JSON.parse(Sleet::CircleCi.get(url).body)
12
+ @builds ||= JSON.parse(Sleet::CircleCi.get(url).body)
13
13
  end
14
14
 
15
15
  def builds_with_artificats
data/lib/sleet/build.rb CHANGED
@@ -11,7 +11,7 @@ module Sleet
11
11
  end
12
12
 
13
13
  def artifacts
14
- @_artifacts ||= JSON.parse(Sleet::CircleCi.get(url).body)
14
+ @artifacts ||= JSON.parse(Sleet::CircleCi.get(url).body)
15
15
  end
16
16
 
17
17
  private
@@ -8,7 +8,7 @@ module Sleet
8
8
  end
9
9
 
10
10
  def build
11
- @_build ||= repo.build_for(chosen_build_num)
11
+ @build ||= repo.build_for(chosen_build_num)
12
12
  end
13
13
 
14
14
  def validate!
@@ -7,7 +7,7 @@ module Sleet
7
7
  include Singleton
8
8
 
9
9
  def token
10
- @_token ||= File.read("#{Dir.home}/.circleci.token").strip
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
- @_token = nil
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
- puts "Sleet v#{Sleet::VERSION}"
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
- @_options ||= default_options.merge(file_options).merge(cli_options)
38
+ @options ||= default_options.merge(file_options).merge(cli_options)
39
39
  end
40
40
 
41
41
  def options_hash
42
- @_options_hash ||= Thor::CoreExt::HashWithIndifferentAccess.new(options.map { |k, o| [k, o.value] }.to_h)
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
- @_directories ||= dir.split('/')
80
+ @directories ||= dir.split('/')
81
81
  end
82
82
 
83
83
  def default_options
@@ -40,7 +40,7 @@ module Sleet
40
40
  end
41
41
 
42
42
  def repo
43
- @_repo ||= Sleet::Repo.from_dir(config.source_dir)
43
+ @repo ||= Sleet::Repo.from_dir(config.source_dir)
44
44
  end
45
45
  end
46
46
  end
@@ -33,7 +33,7 @@ module Sleet
33
33
  end
34
34
 
35
35
  def build_persistance_artifacts
36
- @_build_persistance_artifacts ||= Sleet::ArtifactDownloader.new(
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
- @_build_selector ||= Sleet::BuildSelector.new(job_name: job_name, repo: repo)
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
- @_branch ||= Sleet::Branch.new(
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
- @_github_match ||= GITHUB_MATCH_REGEX.match(current_branch.remote.url)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Sleet
4
- VERSION = '0.3.9'
4
+ VERSION = '0.3.10'
5
5
  end
data/sleet.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
 
2
2
  # frozen_string_literal: true
3
3
 
4
- lib = File.expand_path('../lib', __FILE__)
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.52.1'
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.9
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-04 00:00:00.000000000 Z
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.52.1
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.52.1
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