prospectus 0.5.4 → 0.5.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circle-ruby +3 -3
- data/.rubocop.yml +5 -2
- data/Gemfile +0 -1
- data/Rakefile +1 -2
- data/lib/prospectus/item.rb +1 -1
- data/lib/prospectus/modules/gitlab_tag.rb +8 -3
- data/lib/prospectus/version.rb +1 -1
- data/prospectus.gemspec +6 -4
- metadata +21 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7cd6df3a8ef242a6990ae2835f413b814fac2e70
|
4
|
+
data.tar.gz: 56d3973afeae3813986f15fba710e1ec6e316e22
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2894f3fd1ef03523290c6a9e10e18902a166b9a913dd669f3e2d0686e991554cbdea98612fb970baf5ad7451e58ed32bdc1e48bd5b03dd2655e60003301d3f99
|
7
|
+
data.tar.gz: 60d78f4de9f434cfdc042c0054e91047bfafb4d3fdaa1643e6e8a5ca8b4916887c2374c78b72f18ddb5e176f8f6d1886b2d3d5671b1ba62a04b3e4cd89b29fc6
|
data/.circle-ruby
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
2.4.
|
2
|
-
2.3.
|
3
|
-
2.2.
|
1
|
+
2.4.2
|
2
|
+
2.3.5
|
3
|
+
2.2.8
|
data/.rubocop.yml
CHANGED
data/Gemfile
CHANGED
data/Rakefile
CHANGED
@@ -7,8 +7,7 @@ RSpec::Core::RakeTask.new(:spec)
|
|
7
7
|
|
8
8
|
desc 'Run Rubocop on the gem'
|
9
9
|
RuboCop::RakeTask.new(:rubocop) do |task|
|
10
|
-
task.patterns = ['lib/**/*.rb', 'spec/**/*.rb', 'bin/*']
|
11
10
|
task.fail_on_error = true
|
12
11
|
end
|
13
12
|
|
14
|
-
task default: [
|
13
|
+
task default: %i[spec rubocop build install]
|
data/lib/prospectus/item.rb
CHANGED
@@ -78,7 +78,7 @@ module Prospectus
|
|
78
78
|
def state(name, &block)
|
79
79
|
state = Prospectus::State.from_block(@options, &block)
|
80
80
|
@item.instance_variable_set(name, state)
|
81
|
-
rescue => e
|
81
|
+
rescue => e # rubocop:disable Lint/RescueWithoutErrorClass
|
82
82
|
raise("Failed to set #{name} state for #{@item.name}: #{e.message}")
|
83
83
|
end
|
84
84
|
end
|
@@ -8,6 +8,7 @@ module LogCabin
|
|
8
8
|
module GitlabTag
|
9
9
|
include Prospectus.helpers.find(:regex)
|
10
10
|
include Prospectus.helpers.find(:gitlab_api)
|
11
|
+
include Prospectus.helpers.find(:filter)
|
11
12
|
|
12
13
|
def load!
|
13
14
|
raise('No repo specified') unless @repo
|
@@ -16,11 +17,15 @@ module LogCabin
|
|
16
17
|
|
17
18
|
private
|
18
19
|
|
19
|
-
def
|
20
|
-
@
|
20
|
+
def tags
|
21
|
+
@tags ||= gitlab_api.tags(@repo).sort do |*points|
|
21
22
|
dates = points.map { |x| Date.parse(x.commit.committed_date) }
|
22
23
|
dates.last <=> dates.first
|
23
|
-
end.
|
24
|
+
end.map(&:name)
|
25
|
+
end
|
26
|
+
|
27
|
+
def tag
|
28
|
+
@tag = filter_helper(tags).first
|
24
29
|
end
|
25
30
|
end
|
26
31
|
end
|
data/lib/prospectus/version.rb
CHANGED
data/prospectus.gemspec
CHANGED
@@ -1,4 +1,5 @@
|
|
1
|
-
|
1
|
+
require 'English'
|
2
|
+
$LOAD_PATH.unshift File.expand_path('../lib/', __FILE__)
|
2
3
|
require 'prospectus/version'
|
3
4
|
|
4
5
|
Gem::Specification.new do |s|
|
@@ -7,7 +8,7 @@ Gem::Specification.new do |s|
|
|
7
8
|
s.date = Time.now.strftime('%Y-%m-%d')
|
8
9
|
|
9
10
|
s.summary = 'Tool and DSL for checking expected vs actual state'
|
10
|
-
s.description =
|
11
|
+
s.description = 'Tool and DSL for checking expected vs actual state'
|
11
12
|
s.authors = ['Les Aker']
|
12
13
|
s.email = 'me@lesaker.org'
|
13
14
|
s.homepage = 'https://github.com/akerl/prospectus'
|
@@ -20,8 +21,9 @@ Gem::Specification.new do |s|
|
|
20
21
|
s.add_dependency 'mercenary', '~> 0.3.4'
|
21
22
|
s.add_dependency 'logcabin', '~> 0.1.3'
|
22
23
|
|
23
|
-
s.add_development_dependency 'rubocop', '~> 0.
|
24
|
-
s.add_development_dependency '
|
24
|
+
s.add_development_dependency 'rubocop', '~> 0.50.0'
|
25
|
+
s.add_development_dependency 'goodcop', '~> 0.1.0'
|
26
|
+
s.add_development_dependency 'rake', '~> 12.1.0'
|
25
27
|
s.add_development_dependency 'codecov', '~> 0.1.1'
|
26
28
|
s.add_development_dependency 'rspec', '~> 3.6.0'
|
27
29
|
s.add_development_dependency 'fuubar', '~> 2.2.0'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: prospectus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Les Aker
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-09-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mercenary
|
@@ -44,28 +44,42 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.
|
47
|
+
version: 0.50.0
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.
|
54
|
+
version: 0.50.0
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: goodcop
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.1.0
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.1.0
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
70
|
name: rake
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|
58
72
|
requirements:
|
59
73
|
- - "~>"
|
60
74
|
- !ruby/object:Gem::Version
|
61
|
-
version: 12.
|
75
|
+
version: 12.1.0
|
62
76
|
type: :development
|
63
77
|
prerelease: false
|
64
78
|
version_requirements: !ruby/object:Gem::Requirement
|
65
79
|
requirements:
|
66
80
|
- - "~>"
|
67
81
|
- !ruby/object:Gem::Version
|
68
|
-
version: 12.
|
82
|
+
version: 12.1.0
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
84
|
name: codecov
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -172,7 +186,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
172
186
|
version: '0'
|
173
187
|
requirements: []
|
174
188
|
rubyforge_project:
|
175
|
-
rubygems_version: 2.6.
|
189
|
+
rubygems_version: 2.6.13
|
176
190
|
signing_key:
|
177
191
|
specification_version: 4
|
178
192
|
summary: Tool and DSL for checking expected vs actual state
|