kitchen-appbundle-updater 0.0.2 → 0.0.3

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: 46cd007bbb427b32be4a64bac18dbf7bc50cbdd5
4
- data.tar.gz: b86380f73b90f264c48b8f0ab4ef278cd50acd0e
3
+ metadata.gz: 88fad3ff92e8b5b22578de36fed20f7f5f8e9b4c
4
+ data.tar.gz: 585c313f7943c860b91cf2eb64f6c5a04ba8b42d
5
5
  SHA512:
6
- metadata.gz: f8c88d57b3c68f8bb8e4fb1bd435724495b67bbaf4f337435b76206543ea71a8d9645fddbc9681c77b23b97e6b829383ad9a27d6fa24eb128a49391ecee01f0f
7
- data.tar.gz: b6bc22049a30565509d23d9df2749d38997bf2a3e912cdb87a640c8b8b8b4c34b49985b682349b01a9639c85c91c6a74fbd9a7f90dcfe3f06a1443bb0a92deb1
6
+ metadata.gz: 91c18bfb1a0501b7910fe31d5a11406feff7402a4325930ecad6866935fe916478632e8246744c1ff629e1a16fa400795e3db704ff2e958d195b27a9a53dc32d
7
+ data.tar.gz: 2b2423f60a7cd28ed34de8e876c9b35f95265dba8c73cb428b0156214b18007a5c7f32c8a8c3a5eddaa257499ca8acfaac78fa0751c9024d6a3afb9639879ed5
@@ -1,3 +1,3 @@
1
1
  class KitchenAppbundleUpdater
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
@@ -24,7 +24,10 @@ module Kitchen
24
24
  end
25
25
 
26
26
  def latest_chef_appbundle_updater
27
- @cookbook_url ||= open("https://api.github.com/repos/jdmundrawala/chef-appbundle-updater/releases/latest") do |r|
27
+ url = "https://api.github.com/repos/jdmundrawala/chef-appbundle-updater/releases/latest"
28
+ url += "?access_token=#{config[:github_access_token]}" if config[:github_access_token]
29
+
30
+ @cookbook_url ||= open(url) do |r|
28
31
  j = JSON.parse(r.read)
29
32
  j["assets"][0]["browser_download_url"]
30
33
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitchen-appbundle-updater
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jay Mundrawala
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-22 00:00:00.000000000 Z
11
+ date: 2015-05-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler