prospectus 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/prospectus/modules/github_release.rb +4 -1
- data/lib/prospectus/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b2e5b01ab36b264e57eec0216d572c3c9cb256e3
|
4
|
+
data.tar.gz: d585eb0513234c43ebd3be026c638a09edd92ac0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c35bdfec9059016fc590849150069d53b43344fad40b24ae17f9666154a5d4c494dad20e463ec73bc980030655dc86a7ffe4a0011287b2b774dd2917c3605159
|
7
|
+
data.tar.gz: cff7594267f89fad815b51d0f9f34cb0561344fee3ece662d4de73af32197d5c309fe300a4205e5a8e5aad1188911e8dba954a59cfe7b810a4d4a4f4acf9e566
|
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
|
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.
|
105
105
|
|
106
106
|
```
|
107
107
|
expected do
|
@@ -8,6 +8,7 @@ module LogCabin
|
|
8
8
|
module GithubRelease
|
9
9
|
include Prospectus.helpers.find(:regex)
|
10
10
|
include Prospectus.helpers.find(:github_api)
|
11
|
+
include Prospectus.helpers.find(:filter)
|
11
12
|
|
12
13
|
def load!
|
13
14
|
raise('No repo specified') unless @repo
|
@@ -17,7 +18,9 @@ module LogCabin
|
|
17
18
|
private
|
18
19
|
|
19
20
|
def release
|
20
|
-
@release
|
21
|
+
return @release if @release
|
22
|
+
releases = github_api.releases(@repo).map(&:tag_name)
|
23
|
+
@release = filter_helper(releases).first
|
21
24
|
end
|
22
25
|
end
|
23
26
|
end
|
data/lib/prospectus/version.rb
CHANGED
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.1
|
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-07-
|
11
|
+
date: 2017-07-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mercenary
|