fog_site 0.1.0 → 0.2.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 +8 -8
  3. data/lib/fog_site.rb +6 -2
  4. metadata +57 -90
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.2.0
data/fog_site.gemspec CHANGED
@@ -4,14 +4,14 @@
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
- s.name = %q{fog_site}
8
- s.version = "0.1.0"
7
+ s.name = "fog_site"
8
+ s.version = "0.2.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"]
12
- s.date = %q{2011-08-22}
13
- s.description = %q{Simple utility gem for deploying static sites to S3 and CloudFront using fog.}
14
- s.email = %q{bpo@somnambulance.net}
12
+ s.date = "2012-01-06"
13
+ s.description = "Simple utility gem for deploying static sites to S3 and CloudFront using fog."
14
+ s.email = "bpo@somnambulance.net"
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE.txt",
17
17
  "README.md"
@@ -28,11 +28,11 @@ Gem::Specification.new do |s|
28
28
  "test/helper.rb",
29
29
  "test/test_fog_site.rb"
30
30
  ]
31
- s.homepage = %q{http://github.com/bpo/fog_site}
31
+ s.homepage = "http://github.com/bpo/fog_site"
32
32
  s.licenses = ["MIT"]
33
33
  s.require_paths = ["lib"]
34
- s.rubygems_version = %q{1.6.2}
35
- s.summary = %q{Deploys static sites to S3 using fog}
34
+ s.rubygems_version = "1.8.11"
35
+ s.summary = "Deploys static sites to S3 using fog"
36
36
 
37
37
  if s.respond_to? :specification_version then
38
38
  s.specification_version = 3
data/lib/fog_site.rb CHANGED
@@ -74,8 +74,12 @@ class FogSite
74
74
  def make_directory
75
75
  domain = @site.domain_name
76
76
  puts "Using bucket: #{domain}".blue
77
- @directory = connection.directories.create :key => domain,
78
- :public => true
77
+ @directory = connection.directories.get domain
78
+ unless @directory
79
+ puts "Creating nw bucket.".red
80
+ @directory = connection.directories.create :key => domain,
81
+ :public => true
82
+ end
79
83
  connection.put_bucket_website(domain, 'index.html', :key => "404.html")
80
84
  end
81
85
 
metadata CHANGED
@@ -1,95 +1,69 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: fog_site
3
- version: !ruby/object:Gem::Version
4
- hash: 27
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.0
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 1
9
- - 0
10
- version: 0.1.0
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Brian P O'Rourke
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-08-22 00:00:00 +09:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
22
- prerelease: false
23
- type: :runtime
24
- requirement: &id001 !ruby/object:Gem::Requirement
12
+ date: 2012-01-06 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: fog
16
+ requirement: &70118378279200 !ruby/object:Gem::Requirement
25
17
  none: false
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 55
30
- segments:
31
- - 0
32
- - 10
33
- - 0
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
34
21
  version: 0.10.0
35
- name: fog
36
- version_requirements: *id001
37
- - !ruby/object:Gem::Dependency
38
- prerelease: false
39
22
  type: :runtime
40
- requirement: &id002 !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ">="
44
- - !ruby/object:Gem::Version
45
- hash: 3
46
- segments:
47
- - 0
48
- version: "0"
23
+ prerelease: false
24
+ version_requirements: *70118378279200
25
+ - !ruby/object:Gem::Dependency
49
26
  name: colorize
50
- version_requirements: *id002
51
- - !ruby/object:Gem::Dependency
27
+ requirement: &70118378277720 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ type: :runtime
52
34
  prerelease: false
53
- type: :development
54
- requirement: &id003 !ruby/object:Gem::Requirement
35
+ version_requirements: *70118378277720
36
+ - !ruby/object:Gem::Dependency
37
+ name: bundler
38
+ requirement: &70118378276260 !ruby/object:Gem::Requirement
55
39
  none: false
56
- requirements:
40
+ requirements:
57
41
  - - ~>
58
- - !ruby/object:Gem::Version
59
- hash: 23
60
- segments:
61
- - 1
62
- - 0
63
- - 0
42
+ - !ruby/object:Gem::Version
64
43
  version: 1.0.0
65
- name: bundler
66
- version_requirements: *id003
67
- - !ruby/object:Gem::Dependency
68
- prerelease: false
69
44
  type: :development
70
- requirement: &id004 !ruby/object:Gem::Requirement
45
+ prerelease: false
46
+ version_requirements: *70118378276260
47
+ - !ruby/object:Gem::Dependency
48
+ name: jeweler
49
+ requirement: &70118378274240 !ruby/object:Gem::Requirement
71
50
  none: false
72
- requirements:
51
+ requirements:
73
52
  - - ~>
74
- - !ruby/object:Gem::Version
75
- hash: 7
76
- segments:
77
- - 1
78
- - 6
79
- - 4
53
+ - !ruby/object:Gem::Version
80
54
  version: 1.6.4
81
- name: jeweler
82
- version_requirements: *id004
83
- description: Simple utility gem for deploying static sites to S3 and CloudFront using fog.
55
+ type: :development
56
+ prerelease: false
57
+ version_requirements: *70118378274240
58
+ description: Simple utility gem for deploying static sites to S3 and CloudFront using
59
+ fog.
84
60
  email: bpo@somnambulance.net
85
61
  executables: []
86
-
87
62
  extensions: []
88
-
89
- extra_rdoc_files:
63
+ extra_rdoc_files:
90
64
  - LICENSE.txt
91
65
  - README.md
92
- files:
66
+ files:
93
67
  - .document
94
68
  - Gemfile
95
69
  - LICENSE.txt
@@ -100,39 +74,32 @@ files:
100
74
  - lib/fog_site.rb
101
75
  - test/helper.rb
102
76
  - test/test_fog_site.rb
103
- has_rdoc: true
104
77
  homepage: http://github.com/bpo/fog_site
105
- licenses:
78
+ licenses:
106
79
  - MIT
107
80
  post_install_message:
108
81
  rdoc_options: []
109
-
110
- require_paths:
82
+ require_paths:
111
83
  - lib
112
- required_ruby_version: !ruby/object:Gem::Requirement
84
+ required_ruby_version: !ruby/object:Gem::Requirement
113
85
  none: false
114
- requirements:
115
- - - ">="
116
- - !ruby/object:Gem::Version
117
- hash: 3
118
- segments:
86
+ requirements:
87
+ - - ! '>='
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ segments:
119
91
  - 0
120
- version: "0"
121
- required_rubygems_version: !ruby/object:Gem::Requirement
92
+ hash: 4325592242054895756
93
+ required_rubygems_version: !ruby/object:Gem::Requirement
122
94
  none: false
123
- requirements:
124
- - - ">="
125
- - !ruby/object:Gem::Version
126
- hash: 3
127
- segments:
128
- - 0
129
- version: "0"
95
+ requirements:
96
+ - - ! '>='
97
+ - !ruby/object:Gem::Version
98
+ version: '0'
130
99
  requirements: []
131
-
132
100
  rubyforge_project:
133
- rubygems_version: 1.6.2
101
+ rubygems_version: 1.8.11
134
102
  signing_key:
135
103
  specification_version: 3
136
104
  summary: Deploys static sites to S3 using fog
137
105
  test_files: []
138
-