capistrano-spree 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -1
- data/README.md +26 -10
- data/capistrano-spree.gemspec +2 -2
- data/lib/capistrano/spree.rb +2 -1
- data/lib/capistrano/tasks/deface.cap +17 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 92d1a5807a27f2a1ce2101ee0bf7a57d5979b94a
|
4
|
+
data.tar.gz: 3c411c234644396e93db87037af5e14d317065ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d88c3bc6086882c68cfc4aef1ea66d68cd14b3109976ffbfba67993197f3514017fbca45a0b99bb73d367b1783eaeb2207b1741c107f4fd774cf1e227d63bd95
|
7
|
+
data.tar.gz: 4c738c0a22e477a4085bee3481aa0978fd7a4ae217bd526b1d1f3f5a04283e76b16d3d17c558d0fd7f01485655e3afa9fe83e2d124a0a161ee3a96dcac3fc854
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,28 +1,44 @@
|
|
1
1
|
# Capistrano::Spree
|
2
2
|
|
3
|
-
Spree Commerce specific tasks for Capistrano
|
4
|
-
At the moment the only task is the ```public/spree``` directory symlink.
|
3
|
+
Spree Commerce specific tasks for Capistrano 3.x
|
5
4
|
|
6
5
|
## Installation
|
7
6
|
|
8
7
|
Add this line to your application's Gemfile:
|
9
8
|
|
10
|
-
gem 'capistrano', '~>
|
11
|
-
gem 'capistrano-spree'
|
9
|
+
gem 'capistrano-spree', '~> 1.0.0'
|
12
10
|
|
13
11
|
And then execute:
|
14
12
|
|
15
13
|
$ bundle
|
16
14
|
|
17
|
-
|
15
|
+
Require in `Capfile`:
|
18
16
|
|
19
|
-
|
17
|
+
```ruby
|
18
|
+
require 'capistrano/spree'
|
19
|
+
```
|
20
20
|
|
21
|
-
|
21
|
+
If you use RVM on the server also add:
|
22
22
|
|
23
|
-
|
23
|
+
```ruby
|
24
|
+
gem 'capistrano-rvm'
|
25
|
+
```
|
24
26
|
|
25
|
-
|
27
|
+
## Included Tasks
|
28
|
+
|
29
|
+
### symlink of `public/spree` directory
|
30
|
+
enabled by default
|
31
|
+
|
32
|
+
### deface precompile
|
33
|
+
disable deface on your `production.rb`
|
34
|
+
```ruby
|
35
|
+
config.deface.enabled = false
|
36
|
+
```
|
37
|
+
|
38
|
+
and then call the task on `deploy.rb`:
|
39
|
+
```ruby
|
40
|
+
after 'deploy:updated', 'deface:precompile'
|
41
|
+
```
|
26
42
|
|
27
43
|
## Contributing
|
28
44
|
|
@@ -30,4 +46,4 @@ Require in `Capfile` to use the default task:
|
|
30
46
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
31
47
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
32
48
|
4. Push to the branch (`git push origin my-new-feature`)
|
33
|
-
5. Create new Pull Request
|
49
|
+
5. Create new Pull Request
|
data/capistrano-spree.gemspec
CHANGED
@@ -4,11 +4,11 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "capistrano-spree"
|
7
|
-
spec.version = "1.0.
|
7
|
+
spec.version = "1.0.2"
|
8
8
|
spec.authors = ["Alessandro Lepore"]
|
9
9
|
spec.email = ["a.lepore@freegoweb.it"]
|
10
10
|
spec.summary = %q{Spree Commerce support for Capistrano 3.x}
|
11
|
-
spec.description =
|
11
|
+
spec.description = spec.summary
|
12
12
|
spec.homepage = "https://github.com/freego/capistrano-spree"
|
13
13
|
spec.license = "MIT"
|
14
14
|
|
data/lib/capistrano/spree.rb
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
load File.expand_path('../tasks/spree.cap', __FILE__)
|
1
|
+
load File.expand_path('../tasks/spree.cap', __FILE__)
|
2
|
+
load File.expand_path('../tasks/deface.cap', __FILE__)
|
@@ -0,0 +1,17 @@
|
|
1
|
+
namespace :deface do
|
2
|
+
desc 'Precompile deface templates'
|
3
|
+
task :precompile do
|
4
|
+
on roles(:app) do
|
5
|
+
within release_path do
|
6
|
+
with rails_env: fetch(:rails_env) do
|
7
|
+
execute :rake, 'deface:precompile'
|
8
|
+
end
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
# RVM integration
|
14
|
+
if Gem::Specification::find_all_by_name('capistrano-rvm').any?
|
15
|
+
before :precompile, 'rvm:hook'
|
16
|
+
end
|
17
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-spree
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alessandro Lepore
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-11-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|
@@ -82,6 +82,7 @@ files:
|
|
82
82
|
- capistrano-spree.gemspec
|
83
83
|
- lib/capistrano-spree.rb
|
84
84
|
- lib/capistrano/spree.rb
|
85
|
+
- lib/capistrano/tasks/deface.cap
|
85
86
|
- lib/capistrano/tasks/spree.cap
|
86
87
|
homepage: https://github.com/freego/capistrano-spree
|
87
88
|
licenses:
|
@@ -103,7 +104,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
103
104
|
version: '0'
|
104
105
|
requirements: []
|
105
106
|
rubyforge_project:
|
106
|
-
rubygems_version: 2.2
|
107
|
+
rubygems_version: 2.4.2
|
107
108
|
signing_key:
|
108
109
|
specification_version: 4
|
109
110
|
summary: Spree Commerce support for Capistrano 3.x
|