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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ddcca330d31b871c0d1576551c9a5626001330fd
4
- data.tar.gz: 80799ad715c20610064f61bd12af0d79f1bb12e4
3
+ metadata.gz: b2e5b01ab36b264e57eec0216d572c3c9cb256e3
4
+ data.tar.gz: d585eb0513234c43ebd3be026c638a09edd92ac0
5
5
  SHA512:
6
- metadata.gz: 2253ec9d9423352a261159c8f09b0ceb44e7dfa6833d3aed017392f94c659451945f2bab4d2614344955f45a0e3faab8233f26601bfd2cbce9300b9583a467a8
7
- data.tar.gz: fda0047c3c0d54e3d39ef1abb882a2e369664e726949bf0a92b09d20ea391bff02457aa3f9cbdf4e15b17339981409e4801531ac1eb91cc2fc26c88aa897e361
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 helper 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.
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 ||= github_api.latest_release(@repo).tag_name
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
@@ -3,5 +3,5 @@
3
3
  ##
4
4
  # Declare package version
5
5
  module Prospectus
6
- VERSION = '0.5.0'.freeze
6
+ VERSION = '0.5.1'.freeze
7
7
  end
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.0
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-24 00:00:00.000000000 Z
11
+ date: 2017-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mercenary