frizz 0.0.4 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -52,18 +52,18 @@ end
52
52
 
53
53
  ### Basic deploys
54
54
 
55
- Deploy the contents of `build/` to your static website bucket named
56
- "my-bucket-name.com":
55
+ Deploy the contents of `build/` to your static website at "my-static-site.com",
56
+ assuming your S3 bucket is named after your host as S3 static hosting requires:
57
57
 
58
58
  ```ruby
59
- site = Frizz::Site.new("my-bucket-name.com")
59
+ site = Frizz::Site.new("my-static-site.com")
60
60
  site.deploy!
61
61
  ```
62
62
 
63
63
  Specify a different local build dir:
64
64
 
65
65
  ```ruby
66
- site = Frizz::Site.new("my-bucket-name.com", from: "build/public")
66
+ site = Frizz::Site.new("my-static-site.com", from: "build/public")
67
67
  ```
68
68
 
69
69
  ## Usage With Middleman
@@ -97,9 +97,9 @@ With the following `frizz.yml`:
97
97
  ```yaml
98
98
  environments:
99
99
  staging:
100
- bucket: "staging.example.com"
100
+ host: "staging.example.com"
101
101
  production:
102
- bucket: "example.com"
102
+ host: "example.com"
103
103
  ```
104
104
 
105
105
  Frizz would give us the following Rake tasks:
@@ -134,11 +134,11 @@ With the following `frizz.yml`:
134
134
  ```yaml
135
135
  environments:
136
136
  staging:
137
- bucket: "staging.example.com"
137
+ host: "staging.example.com"
138
138
  api_root: http://api.staging.example.com/v0
139
139
  welcome_message: I'm A Staging Server
140
140
  production:
141
- bucket: "example.com"
141
+ host: "example.com"
142
142
  api_root: http://api.example.com/v0
143
143
  welcome_message: I'm A Production Server
144
144
  development:
@@ -34,7 +34,7 @@ module Frizz
34
34
  relevant_environments.each do |name, env|
35
35
  desc "Build and deploy #{env.name}"
36
36
  task env.name => ["frizz:build:#{env.name}"] do
37
- Frizz::Site.new(env.bucket).deploy!
37
+ Frizz::Site.new(env.host).deploy!
38
38
  end
39
39
  end
40
40
  end
data/lib/frizz/site.rb CHANGED
@@ -1,9 +1,9 @@
1
1
  module Frizz
2
2
  class Site
3
- def initialize(bucket_name, options={})
3
+ def initialize(host, options={})
4
4
  @options = { from: "build" }.merge options
5
5
  @local = Frizz::Local.new(path_to_deploy)
6
- @remote = Frizz::Remote.new(bucket_name)
6
+ @remote = Frizz::Remote.new(host)
7
7
  end
8
8
 
9
9
  def deploy!
data/lib/frizz/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Frizz
2
- VERSION = "0.0.4"
2
+ VERSION = "1.0.0"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: frizz
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.4
5
+ version: 1.0.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - patbenatar
@@ -127,7 +127,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
127
127
  - !ruby/object:Gem::Version
128
128
  segments:
129
129
  - 0
130
- hash: -3580219831285791271
130
+ hash: 9299230037300852
131
131
  version: '0'
132
132
  none: false
133
133
  required_rubygems_version: !ruby/object:Gem::Requirement
@@ -136,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
136
136
  - !ruby/object:Gem::Version
137
137
  segments:
138
138
  - 0
139
- hash: -3580219831285791271
139
+ hash: 9299230037300852
140
140
  version: '0'
141
141
  none: false
142
142
  requirements: []