octopress-deploy 1.0.0.rc.11 → 1.0.0.rc.12

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: 296a444e68bbd230304ed1ab4f85e7d97523e419
4
- data.tar.gz: 6598445489a8e5282e2411eba164ee5f0e41c024
3
+ metadata.gz: e2f19db8a6fac623c988cdbb3ce1571ea697ee3a
4
+ data.tar.gz: def8b281c86a64ce1bbe125a3611125bcb0535a3
5
5
  SHA512:
6
- metadata.gz: 1803d580f91c4528ca5346de10a40c590cde16ef44c2c56681012e01bd4ad30580c4e19e7c898cd697b0c724041643f925221e922bb79f6d3f1e38f74f9a32bf
7
- data.tar.gz: 79c1cf157adc9a9046fa6360fd9f59b4b40b4df9a84acd49dee858d1f9addc51b1a3a9ba57d3f662de443fa56706da89cd2902ce36545102a5056f071e940ca2
6
+ metadata.gz: 260095f55a4495a05edb0c8e12c32aea5565352064ff93c233881301daf82136bc5417f87acecd930e327e392efbf1697e2751c814fdb31a2b19629cc89bd370
7
+ data.tar.gz: 5464e5e1c20578f2fa551f63a3fbd975017a69aa833601a1711482a59263d769b17dd90936fe1ae8cd7fdadd39d4738db537ce83db284feb13aa75ddfc76f0f9
data/README.md CHANGED
@@ -1,22 +1,15 @@
1
1
  # Octopress Deploy
2
2
 
3
- Currently this gem supports deploying static sites using S3, Git and Rsync. Pull request to support other deployment methods are welcome.
3
+ Easily deploy any Jekyll or Octopress site using S3, Git or Rsync.
4
4
 
5
- <!--[![Gem Version](https://badge.fury.io/rb/octopress-deploy.png)](http://badge.fury.io/rb/octopress-deploy)-->
5
+ Pull request to support other deployment methods are welcome.
6
6
 
7
- ## Installation
8
-
9
- Add this line to your application's Gemfile:
10
-
11
- gem 'octopress-deploy', '~> 1.0.0.rc.10'
7
+ [![Gem Version](http://img.shields.io/gem/v/octopress-deploy.svg)](https://rubygems.org/gems/octopress-deploy)
8
+ [![License](http://img.shields.io/:license-mit-blue.svg)](http://octopress.mit-license.org)
12
9
 
13
- And then execute:
14
-
15
- $ bundle
16
-
17
- Or install it yourself as:
10
+ ## Installation
18
11
 
19
- $ gem install octopress-deploy --pre
12
+ To use Octopress Deploy, first install the Octopress gem with `gem install octopress` or by adding it to your Gemfile.
20
13
 
21
14
  ## Set up
22
15
 
@@ -31,7 +24,7 @@ directory which you can edit to add any necessary configuration.
31
24
  **Remember to add your configuration to `.gitignore` to be sure
32
25
  you never commit sensitive information to your repository.**
33
26
 
34
- ## Deploying
27
+ ## Deploying your site.
35
28
 
36
29
  Deployment is tailored to work with Jekyll, but it will work for
37
30
  any static site. Simply make sure your configuration points to
@@ -113,7 +106,7 @@ headers:
113
106
 
114
107
  ### AWS config via ENV
115
108
 
116
- If you prefer, you can store AWS access credentials in environment variables instead of a conifiguration file.
109
+ If you prefer, you can store AWS access credentials in environment variables instead of a configuration file.
117
110
 
118
111
  | Config | ENV var |
119
112
  |:--------------------|:-------------------------------|
data/Rakefile CHANGED
@@ -1,11 +1 @@
1
1
  require "bundler/gem_tasks"
2
- require "octopress-ink"
3
-
4
- desc "Copy Readme and Changelog into docs"
5
-
6
- task 'ship' => ['update_docs', 'release']
7
-
8
- task 'update_docs' do
9
- Octopress::Ink.copy_doc 'README.md', 'assets/docs/index.markdown'
10
- Octopress::Ink.copy_doc 'CHANGELOG.md', 'assets/docs/changelog.markdown', '/changelog/'
11
- end
@@ -1,27 +1,8 @@
1
- module Octopress
2
- module Deploy
3
- class DeployDocs < Octopress::Ink::Plugin
4
- def configuration
5
- {
6
- name: "Octopress Deploy",
7
- description: "Deploy your site with Git, Rsync or S3.",
8
- slug: "deploy",
9
- assets_path: Octopress::Deploy.gem_dir('assets'),
10
- version: Octopress::Deploy::VERSION,
11
- }
12
- end
1
+ require 'octopress-docs'
13
2
 
14
- def docs_base_path
15
- 'docs/deploy'
16
- end
17
-
18
- def info(options)
19
- if options['docs']
20
- super
21
- else
22
- ''
23
- end
24
- end
25
- end
26
- end
27
- end
3
+ Octopress::Docs.add({
4
+ name: "Octopress Deploy",
5
+ slug: "deploy",
6
+ dir: File.expand_path(File.join(File.dirname(__FILE__), "../../")),
7
+ base_url: "docs/deploy"
8
+ })
@@ -1,5 +1,5 @@
1
1
  module Octopress
2
2
  module Deploy
3
- VERSION = "1.0.0.rc.11"
3
+ VERSION = "1.0.0.rc.12"
4
4
  end
5
5
  end
@@ -1,5 +1,4 @@
1
1
  $LOAD_PATH.unshift File.expand_path("../", __FILE__)
2
- #
3
2
 
4
3
  require 'colorator'
5
4
  require 'yaml'
@@ -142,10 +141,3 @@ FILE
142
141
 
143
142
  end
144
143
  end
145
-
146
- begin
147
- require 'octopress-ink'
148
- require 'octopress-deploy/docs'
149
- Octopress::Ink.register_plugin(Octopress::Deploy::DeployDocs)
150
- rescue LoadError
151
- end
@@ -8,8 +8,8 @@ Gem::Specification.new do |spec|
8
8
  spec.version = Octopress::Deploy::VERSION
9
9
  spec.authors = ["Brandon Mathis"]
10
10
  spec.email = ["brandon@imathis.com"]
11
- spec.description = %q{Deploy Octopress and Jekyll sites easily.}
12
- spec.summary = %q{Deploy Octopress and Jekyll sites easily.}
11
+ spec.description = %q{Easily deploy any Jekyll or Octopress site using S3, Git, or Rsync.}
12
+ spec.summary = %q{Easily deploy any Jekyll or Octopress site using S3, Git, or Rsync.}
13
13
  spec.homepage = "https://github.com/octopress/deploy"
14
14
  spec.license = "MIT"
15
15
 
@@ -17,10 +17,9 @@ Gem::Specification.new do |spec|
17
17
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
18
  spec.require_paths = ["lib"]
19
19
 
20
- spec.add_runtime_dependency "octopress", "~> 3.0.0.rc.10"
21
20
  spec.add_runtime_dependency "colorator"
21
+ spec.add_runtime_dependency "octopress-docs"
22
22
 
23
- spec.add_development_dependency "octopress-ink"
24
23
  spec.add_development_dependency "bundler", "~> 1.3"
25
24
  spec.add_development_dependency "rake"
26
25
  end
metadata CHANGED
@@ -1,29 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octopress-deploy
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.rc.11
4
+ version: 1.0.0.rc.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-25 00:00:00.000000000 Z
11
+ date: 2014-09-24 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: octopress
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: 3.0.0.rc.10
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: 3.0.0.rc.10
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: colorator
29
15
  requirement: !ruby/object:Gem::Requirement
@@ -39,13 +25,13 @@ dependencies:
39
25
  - !ruby/object:Gem::Version
40
26
  version: '0'
41
27
  - !ruby/object:Gem::Dependency
42
- name: octopress-ink
28
+ name: octopress-docs
43
29
  requirement: !ruby/object:Gem::Requirement
44
30
  requirements:
45
31
  - - ">="
46
32
  - !ruby/object:Gem::Version
47
33
  version: '0'
48
- type: :development
34
+ type: :runtime
49
35
  prerelease: false
50
36
  version_requirements: !ruby/object:Gem::Requirement
51
37
  requirements:
@@ -80,7 +66,7 @@ dependencies:
80
66
  - - ">="
81
67
  - !ruby/object:Gem::Version
82
68
  version: '0'
83
- description: Deploy Octopress and Jekyll sites easily.
69
+ description: Easily deploy any Jekyll or Octopress site using S3, Git, or Rsync.
84
70
  email:
85
71
  - brandon@imathis.com
86
72
  executables: []
@@ -93,8 +79,6 @@ files:
93
79
  - LICENSE.txt
94
80
  - README.md
95
81
  - Rakefile
96
- - assets/docs/changelog.markdown
97
- - assets/docs/index.markdown
98
82
  - lib/octopress-deploy.rb
99
83
  - lib/octopress-deploy/commands.rb
100
84
  - lib/octopress-deploy/core_ext.rb
@@ -132,10 +116,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
132
116
  version: 1.3.1
133
117
  requirements: []
134
118
  rubyforge_project:
135
- rubygems_version: 2.2.2
119
+ rubygems_version: 2.4.1
136
120
  signing_key:
137
121
  specification_version: 4
138
- summary: Deploy Octopress and Jekyll sites easily.
122
+ summary: Easily deploy any Jekyll or Octopress site using S3, Git, or Rsync.
139
123
  test_files:
140
124
  - test/.gitignore
141
125
  - test/Gemfile
@@ -1,60 +0,0 @@
1
- ---
2
- title: "Octopress Deploy Changelog"
3
- permalink: /changelog/
4
- ---
5
-
6
- ## Current version
7
-
8
- ### 1.0.0 RC10 - 2014-07-06
9
- - Fix: Pass options to initialization when adding a bucket. [#34](https://github.com/octopress/deploy/pull/34)
10
-
11
- ## Past versions
12
-
13
- ### 1.0.0 RC9 - 2014-05-31
14
-
15
- - New: S3 header configuration options. [#25](https://github.com/octopress/deploy/issues/25)
16
- - Fix: `site_dir` defaults to `'_site'`. [#29](https://github.com/octopress/deploy/issues/29)
17
- - Fix: A Windows OS issue. [#30](https://github.com/octopress/deploy/pull/30)
18
-
19
- ### 1.0.0 RC8 - 2014-05-08
20
-
21
- - Now using SafeYAML for loading configurations.
22
-
23
- ### 1.0.0 RC7 - 2014-05-02
24
-
25
- - Fixed: `--version` flag.
26
- - Fixed: Moved requiring `pry-debugger` to tests.
27
-
28
- ### 1.0.0 RC6 - 2014-04-17
29
-
30
- - Fixed: CLI options now override config file settings.
31
-
32
- ### 1.0.0 RC5 - 2014-04-01
33
-
34
- - Fixed: `site_dir` config didn't work.
35
-
36
-
37
- ### 1.0.0 RC4 - 2014-03-25
38
-
39
- - Added: Octopress Ink documentation site support
40
-
41
- ### 1.0.0 RC3 - 2014-03-22
42
-
43
- #### Minor Enhancements
44
- - Default rsync flags are now `-rltDvz` so they no
45
- longer try to set file permissions or preserve owner and
46
- group name on remote. Issue: #19
47
- - Added `flags` config for rsync allows customization of flags.
48
- - Added support for octopress-ink documentation system.
49
- - Added a `update_docs` Rake task to update assets/docs/index.markdown from README.md.
50
-
51
- #### Bug Fixes
52
- - No longer stripping forward slashes on remote_path. Issue #18
53
- - `pull` command no longer promises a default directory.
54
-
55
-
56
- ### 1.0.0 RC2 - 2014-03-18
57
- - CHANGE: `add_bucket` command becomes `add-bucket`
58
-
59
- ### 1.0.0 RC1 - 2014-03-17
60
- - Initial release
@@ -1,207 +0,0 @@
1
- ---
2
- title: "Octopress Deploy"
3
- ---
4
-
5
- Currently this gem supports deploying static sites using S3, Git and Rsync. Pull request to support other deployment methods are welcome.
6
-
7
- <!--[![Gem Version](https://badge.fury.io/rb/octopress-deploy.png)](http://badge.fury.io/rb/octopress-deploy)-->
8
-
9
- ## Installation
10
-
11
- Add this line to your application's Gemfile:
12
-
13
- gem 'octopress-deploy', '~> 1.0.0.rc.10'
14
-
15
- And then execute:
16
-
17
- $ bundle
18
-
19
- Or install it yourself as:
20
-
21
- $ gem install octopress-deploy --pre
22
-
23
- ## Set up
24
-
25
- First set up a configuration file for your deployment method.
26
-
27
- ```sh
28
- $ octopress deploy init git # or rsync, s3
29
- ```
30
-
31
- This will generate a `_deploy.yml` file in your current
32
- directory which you can edit to add any necessary configuration.
33
- **Remember to add your configuration to `.gitignore` to be sure
34
- you never commit sensitive information to your repository.**
35
-
36
- ## Deploying
37
-
38
- Deployment is tailored to work with Jekyll, but it will work for
39
- any static site. Simply make sure your configuration points to
40
- the root directory of your static site (For Jekyll, that's
41
- probably `_site`) then tell Octopress to deploy it.
42
-
43
- ```sh
44
- $ octopress deploy
45
- ```
46
-
47
- This will read your `_deploy.yml` configuration and deploy your
48
- site. If you like, you can specify a configuration file.
49
-
50
- ```sh
51
- $ octopress deploy --config _staging.yml
52
- ```
53
-
54
- ## Pull down your site
55
-
56
- With the `pull` command, you can pull your site down into a local directory.
57
-
58
- ```sh
59
- octopress deploy pull <DIR>
60
- ```
61
-
62
- Mainly you'd do this if you're troubleshooting deployment and you want to see if it's working how you expected.
63
-
64
- ## Amazon S3 Deployment Configuration
65
-
66
- To deploy with Amazon S3 you will need to install the [aws-sdk gem](https://rubygems.org/gems/aws-sdk).
67
-
68
- Important: when using S3, you must add your `_deploy.yml` to your .gitignore to prevent accidentally sharing
69
- account access information.
70
-
71
- | Config | Description | Default
72
- |:--------------------|:------------------------------------------------------|:-------------|
73
- | `method` | Deployment method, in this case use 's3' | |
74
- | `site_dir` | Path to static site files | _site |
75
- | `bucket_name` | S3 bucket name | |
76
- | `access_key_id` | AWS access key | |
77
- | `secret_access_key` | AWS secret key | |
78
- | `remote_path` | Directory files should be synced to. | / |
79
- | `verbose` | [optional] Display all file actions during deploy. | true |
80
- | `region` | [optional] Region for your AWS bucket | us-east-1 |
81
- | `delete` | Delete files in `remote_path` not found in `site_dir` | false |
82
- | `headers` | Set headers for matched files | [] |
83
-
84
- If you choose a bucket which doesn't yet exist, Octopress Deploy will offer to create it for you, and offer to configure it as a static website.
85
-
86
- If you configure Octopress to delete files, all files found in the `remote_path` on S3 bucket will be removed unless they match local site files.
87
- If `remote_path` is a subdirectory, only files in that subdirectory will be evaluated for deletion.
88
-
89
-
90
- ### S3 Headers
91
-
92
- You can create an array of header congifs to set expiration, content and cache settings for any paths matching the `filename`.
93
-
94
- | Header Config | Description | Default
95
- |:--------------------|:------------------------------------------------------|:-------------|
96
- | `filename` | A regex or a substring of the file to match | |
97
- | `site_dir` | An http date or a number of years or days from now | |
98
- | `content_type` | A string which is passed through to the headers | |
99
- | `content_encoding` | A string which is passed through to the headers | |
100
- | `cache_control` | A string which is passed through to the headers | |
101
-
102
- Here is how you might set expriation and cache controls for CSS and Javascript files.
103
-
104
- ```yaml
105
- headers:
106
- - filename: '^assets.*\.js$'
107
- expires: '+3 years'
108
- cache_control: 'max-age=94608000'
109
- content_type: 'application/javascript'
110
- - filename: '^assets.*\.css$'
111
- expires: '+3 years'
112
- cache_control: 'max-age=94608000'
113
- content_type: 'text/css'
114
- ```
115
-
116
- ### AWS config via ENV
117
-
118
- If you prefer, you can store AWS access credentials in environment variables instead of a conifiguration file.
119
-
120
- | Config | ENV var |
121
- |:--------------------|:-------------------------------|
122
- | `access_key_id` | AWS_ACCESS_KEY_ID |
123
- | `secret_access_key` | AWS_SECRET_ACCESS_KEY |
124
-
125
- Note: configurations in `_deploy.yml` will override environment variables so be sure to remove those if you decide to use environment variables.
126
-
127
- ### Add a new bucket
128
-
129
- If your AWS credentials are properly configured, you can add a new bucket with this command.
130
-
131
- ```sh
132
- octopress deploy add-bucket
133
- ```
134
-
135
- This will connect to AWS, create a new S3 bucket, and configure it for static website hosting. This command can use the settings in your deployment configuration or you can pass options to override those settings.
136
-
137
- | Option | Description | Default
138
- |:--------------|:-------------------------------------------------|:---------------|
139
- | `--name` | Override the `bucket_name` configuration | |
140
- | `--region` | Override the `region` configuration | |
141
- | `--index` | Specify an index page for your site | index.html |
142
- | `--error` | Specify an error page for your site | error.html |
143
- | `--config` | Use a custom configuration file | _deploy.yml |
144
-
145
- You'll only need to pass options if you want to override settings in your deploy config file.
146
-
147
- ## Git Deployment Configuration
148
-
149
- Only `git_url` is required. Other options will default as shown below.
150
-
151
- | Config | Description | Default
152
- |:--------------|:-------------------------------------------------|:---------------|
153
- | `method` | Deployment method, in this case use 'git' | |
154
- | `site_dir` | Path to static site files | _site |
155
- | `git_url` | Url for remote git repository | |
156
- | `git_branch` | Deployment branch for git repository | master |
157
- | `deploy_dir` | Directory where deployment files are staged | .deploy |
158
- | `remote` | Name of git remote | deploy |
159
-
160
- ## Rsync Deployment Configuration
161
-
162
- | Config | Description | Default
163
- |:---------------|:--------------------------------------------------|:---------------|
164
- | `method` | Deployment method, in this case use 'rsync' | |
165
- | `site_dir` | Path to static site files | _site |
166
- | `user` | ssh user, e.g user@host.com | |
167
- | `port` | ssh port | 22 |
168
- | `remote_path` | Remote destination's document root | |
169
- | `exclude_file` | Path to a file containing rsync exclusions | |
170
- | `exclude` | Inline list of rsync exclusions | |
171
- | `include` | Inline list of inclusions to override exclusions | |
172
- | `delete` | Delete files in destination not found in source | false |
173
-
174
- You can rsync to a local directory by configuring `remote_path` and leaving off `user` and `port`.
175
-
176
- ## Contributing
177
-
178
- 1. Fork it
179
- 2. Create your feature branch (`git checkout -b my-new-feature`)
180
- 3. Commit your changes (`git commit -am 'Add some feature'`)
181
- 4. Push to the branch (`git push origin my-new-feature`)
182
- 5. Create new Pull Request
183
-
184
- ## License
185
-
186
- Copyright (c) 2014 Brandon Mathis
187
-
188
- MIT License
189
-
190
- Permission is hereby granted, free of charge, to any person obtaining
191
- a copy of this software and associated documentation files (the
192
- "Software"), to deal in the Software without restriction, including
193
- without limitation the rights to use, copy, modify, merge, publish,
194
- distribute, sublicense, and/or sell copies of the Software, and to
195
- permit persons to whom the Software is furnished to do so, subject to
196
- the following conditions:
197
-
198
- The above copyright notice and this permission notice shall be
199
- included in all copies or substantial portions of the Software.
200
-
201
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
202
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
203
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
204
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
205
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
206
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
207
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.