fog_site 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/fog_site.gemspec +1 -1
  3. data/lib/fog_site.rb +6 -2
  4. metadata +10 -10
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.3.0
data/fog_site.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "fog_site"
8
- s.version = "0.2.0"
8
+ s.version = "0.3.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Brian P O'Rourke"]
data/lib/fog_site.rb CHANGED
@@ -7,7 +7,7 @@ require "colorize"
7
7
  #
8
8
  class FogSite
9
9
  attr_reader :domain_name
10
- attr_writer :access_key_id, :secret_key
10
+ attr_writer :access_key_id, :secret_key, :fog_options
11
11
  attr_accessor :path, :destroy_old_files, :distribution_id
12
12
 
13
13
  def initialize( domain_name, attributes_map = {})
@@ -18,6 +18,10 @@ class FogSite
18
18
  end
19
19
  end
20
20
 
21
+ def fog_options
22
+ @fog_options || {}
23
+ end
24
+
21
25
  def access_key_id
22
26
  @access_key_id || ENV["AWSAccessKeyId"]
23
27
  end
@@ -152,7 +156,7 @@ class FogSite
152
156
  :provider => 'AWS',
153
157
  :aws_access_key_id => @site.access_key_id,
154
158
  :aws_secret_access_key => @site.secret_key
155
- }
159
+ }.merge @site.fog_options
156
160
  end
157
161
 
158
162
  def assert_not_nil( value, error )
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fog_site
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-01-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fog
16
- requirement: &70118378279200 !ruby/object:Gem::Requirement
16
+ requirement: &70187831489140 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 0.10.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70118378279200
24
+ version_requirements: *70187831489140
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: colorize
27
- requirement: &70118378277720 !ruby/object:Gem::Requirement
27
+ requirement: &70187831488440 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70118378277720
35
+ version_requirements: *70187831488440
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: bundler
38
- requirement: &70118378276260 !ruby/object:Gem::Requirement
38
+ requirement: &70187831487920 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 1.0.0
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70118378276260
46
+ version_requirements: *70187831487920
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: jeweler
49
- requirement: &70118378274240 !ruby/object:Gem::Requirement
49
+ requirement: &70187831487240 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: 1.6.4
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70118378274240
57
+ version_requirements: *70187831487240
58
58
  description: Simple utility gem for deploying static sites to S3 and CloudFront using
59
59
  fog.
60
60
  email: bpo@somnambulance.net
@@ -89,7 +89,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
89
89
  version: '0'
90
90
  segments:
91
91
  - 0
92
- hash: 4325592242054895756
92
+ hash: 881361868424467312
93
93
  required_rubygems_version: !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements: