prospectus 0.5.5 → 0.5.6

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
- SHA1:
3
- metadata.gz: 7cd6df3a8ef242a6990ae2835f413b814fac2e70
4
- data.tar.gz: 56d3973afeae3813986f15fba710e1ec6e316e22
2
+ SHA256:
3
+ metadata.gz: e9c6ef15776d165461e33b50214b244591f7df056c685ea992ec98190ffc3fbd
4
+ data.tar.gz: 37be9591edcf394b0f2f025fb9f4dbdefb41c06d63553998939d0d97bff32c5c
5
5
  SHA512:
6
- metadata.gz: 2894f3fd1ef03523290c6a9e10e18902a166b9a913dd669f3e2d0686e991554cbdea98612fb970baf5ad7451e58ed32bdc1e48bd5b03dd2655e60003301d3f99
7
- data.tar.gz: 60d78f4de9f434cfdc042c0054e91047bfafb4d3fdaa1643e6e8a5ca8b4916887c2374c78b72f18ddb5e176f8f6d1886b2d3d5671b1ba62a04b3e4cd89b29fc6
6
+ metadata.gz: dfa59805da588b4e9c21143814856e40d74b350bb6574bd6f5fc92d5651310c0fc159f48c9cd2018887bfcb99581b06abcd069c40b6248fa839a59b2608d43e3
7
+ data.tar.gz: bd2c2166824dfa441c7a5158e0bff0d0479a83a332f79b90e77b0da8095b3c414383658e941856cc5e7ee97eb3fe50de4554fedd5c809fa83c0b14fd284e4af6
data/.circle-ruby CHANGED
@@ -1,3 +1,4 @@
1
- 2.4.2
2
- 2.3.5
3
- 2.2.8
1
+ 2.5.0
2
+ 2.4.3
3
+ 2.3.6
4
+ 2.2.9
data/README.md CHANGED
@@ -101,7 +101,7 @@ end
101
101
 
102
102
  ### github_release
103
103
 
104
- This checks the latest GitHub release for a repo (must be a real Release, not just a tag. Use github_tag if there isn't a Release). Supports the Regex and Filter helpers and uses the GitHub API helper for API access.
104
+ This checks the latest GitHub release for a repo (must be a real Release, not just a tag. Use github_tag if there isn't a Release). Supports the Regex and Filter helpers and uses the GitHub API helper for API access. To track `prerelease` Releases, use `allow_prerelease`
105
105
 
106
106
  ```
107
107
  expected do
@@ -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 # rubocop:disable Lint/RescueWithoutErrorClass
81
+ rescue => e # rubocop:disable Style/RescueStandardError
82
82
  raise("Failed to set #{name} state for #{@item.name}: #{e.message}")
83
83
  end
84
84
  end
@@ -17,10 +17,15 @@ module LogCabin
17
17
 
18
18
  private
19
19
 
20
+ def allow_prerelease
21
+ @allow_prerelease = true
22
+ end
23
+
20
24
  def release
21
25
  return @release if @release
22
26
  releases = github_api.releases(@repo)
23
- %i[draft prerelease].each { |x| releases.reject!(&x) }
27
+ releases.reject!(&:draft)
28
+ releases.reject!(&:prerelease) unless @allow_prerelease
24
29
  @release = filter_helper(releases.map(&:tag_name)).first
25
30
  end
26
31
  end
@@ -3,5 +3,5 @@
3
3
  ##
4
4
  # Declare package version
5
5
  module Prospectus
6
- VERSION = '0.5.5'.freeze
6
+ VERSION = '0.5.6'.freeze
7
7
  end
data/prospectus.gemspec CHANGED
@@ -18,13 +18,13 @@ Gem::Specification.new do |s|
18
18
  s.test_files = `git ls-files spec/*`.split
19
19
  s.executables = ['prospectus']
20
20
 
21
- s.add_dependency 'mercenary', '~> 0.3.4'
22
21
  s.add_dependency 'logcabin', '~> 0.1.3'
22
+ s.add_dependency 'mercenary', '~> 0.3.4'
23
23
 
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'
27
24
  s.add_development_dependency 'codecov', '~> 0.1.1'
28
- s.add_development_dependency 'rspec', '~> 3.6.0'
29
- s.add_development_dependency 'fuubar', '~> 2.2.0'
25
+ s.add_development_dependency 'fuubar', '~> 2.3.0'
26
+ s.add_development_dependency 'goodcop', '~> 0.2.0'
27
+ s.add_development_dependency 'rake', '~> 12.3.0'
28
+ s.add_development_dependency 'rspec', '~> 3.7.0'
29
+ s.add_development_dependency 'rubocop', '~> 0.52.0'
30
30
  end
metadata CHANGED
@@ -1,127 +1,127 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prospectus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.5
4
+ version: 0.5.6
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-09-30 00:00:00.000000000 Z
11
+ date: 2018-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: mercenary
14
+ name: logcabin
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.3.4
19
+ version: 0.1.3
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.3.4
26
+ version: 0.1.3
27
27
  - !ruby/object:Gem::Dependency
28
- name: logcabin
28
+ name: mercenary
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.1.3
33
+ version: 0.3.4
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.1.3
40
+ version: 0.3.4
41
41
  - !ruby/object:Gem::Dependency
42
- name: rubocop
42
+ name: codecov
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 0.50.0
47
+ version: 0.1.1
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.50.0
54
+ version: 0.1.1
55
55
  - !ruby/object:Gem::Dependency
56
- name: goodcop
56
+ name: fuubar
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 0.1.0
61
+ version: 2.3.0
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 0.1.0
68
+ version: 2.3.0
69
69
  - !ruby/object:Gem::Dependency
70
- name: rake
70
+ name: goodcop
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 12.1.0
75
+ version: 0.2.0
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 12.1.0
82
+ version: 0.2.0
83
83
  - !ruby/object:Gem::Dependency
84
- name: codecov
84
+ name: rake
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 0.1.1
89
+ version: 12.3.0
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 0.1.1
96
+ version: 12.3.0
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rspec
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 3.6.0
103
+ version: 3.7.0
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 3.6.0
110
+ version: 3.7.0
111
111
  - !ruby/object:Gem::Dependency
112
- name: fuubar
112
+ name: rubocop
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: 2.2.0
117
+ version: 0.52.0
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: 2.2.0
124
+ version: 0.52.0
125
125
  description: Tool and DSL for checking expected vs actual state
126
126
  email: me@lesaker.org
127
127
  executables:
@@ -186,7 +186,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
186
186
  version: '0'
187
187
  requirements: []
188
188
  rubyforge_project:
189
- rubygems_version: 2.6.13
189
+ rubygems_version: 2.7.3
190
190
  signing_key:
191
191
  specification_version: 4
192
192
  summary: Tool and DSL for checking expected vs actual state