middleman-cloudfront 0.1.1 → 0.2.0

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: 190bdebd3167e7efaf2f270ba2a9dabeaf658642
4
- data.tar.gz: b37c0b276d54e00028155e3647ddc7bcaeccadaf
3
+ metadata.gz: 4616ccd05e6f93bfbfbc0d5acf4d07c5a3a46b7b
4
+ data.tar.gz: 43409818aa9e24059b9fa1df52f02951ee9afd94
5
5
  SHA512:
6
- metadata.gz: d573530a93b5a5fd9e3afee0b4058863a19897c556b17b84e410d05c7c78a25c1e9931a5908972bfcd8cf7431619ef401ed67d3e137d860cbba570a51afdb0d2
7
- data.tar.gz: e043eaa6d924d847aac400545df60dc6e9d6f6eb2d915784d27f34b67c7e08a3a4461ae782f534820ab804fd68482154f9ed4cda725027462878793993bd3a81
6
+ metadata.gz: 582c2c9ddb0d5c24ffa97411ea72165c8593b68745956f004440864b9dfb0d39f63ad2eb7adecc32a1888b6397db03c78155c4d45c38dcc41eab8592ba572570
7
+ data.tar.gz: 7ac523b81cf975caf466d4e2754dc5220ca8fb4020676951b1a5f379ebbe10b55e6b3f5597d379acac67210a84b43a4385a264b7bae5c042e4877e54e27ddeef
data/.travis.yml CHANGED
@@ -1,6 +1,7 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 1.9.2
4
- - 1.9.3
5
- - 2.0.0
6
- - 2.1.0
3
+ - 1.9
4
+ - 2.0
5
+ - 2.1
6
+ - 2.2
7
+ - jruby
@@ -50,11 +50,21 @@ end
50
50
  end
51
51
 
52
52
  puts "## Invalidating files on CloudFront"
53
- cdn = Fog::CDN.new({
54
- :provider => 'AWS',
55
- :aws_access_key_id => options.access_key_id,
56
- :aws_secret_access_key => options.secret_access_key
57
- })
53
+
54
+ fog_options = {
55
+ :provider => 'AWS'
56
+ }
57
+
58
+ if options.access_key_id && options.secret_access_key
59
+ fog_options.merge!({
60
+ :aws_access_key_id => options.access_key_id,
61
+ :aws_secret_access_key => options.secret_access_key
62
+ })
63
+ else
64
+ fog_options.merge!({:use_iam_profile => true})
65
+ end
66
+
67
+ cdn = Fog::CDN.new(fog_options)
58
68
 
59
69
  distribution = cdn.distributions.get(options.distribution_id)
60
70
 
@@ -1,5 +1,5 @@
1
1
  module Middleman
2
2
  module CloudFront
3
- VERSION = '0.1.1'
3
+ VERSION = '0.2.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: middleman-cloudfront
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrey Korzhuev
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-01-20 00:00:00.000000000 Z
12
+ date: 2015-04-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fog
@@ -166,7 +166,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
166
166
  version: '0'
167
167
  requirements: []
168
168
  rubyforge_project: middleman-cloudfront
169
- rubygems_version: 2.2.2
169
+ rubygems_version: 2.4.5
170
170
  signing_key:
171
171
  specification_version: 4
172
172
  summary: Invalidate CloudFront cache after deployment to S3