capistrano-stretcher-rails 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/Gemfile +4 -0
- data/LICENSE +19 -0
- data/README.md +41 -0
- data/Rakefile +1 -0
- data/capistrano-stretcher-rails.gemspec +24 -0
- data/lib/capistrano-stretcher-rails.rb +1 -0
- data/lib/capistrano/stretcher/rails.rb +1 -0
- data/lib/capistrano/stretcher/tasks/rails.rake +37 -0
- metadata +97 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: ab908e9d7df8a2498c4d4b3128d7f461e6081ab5
|
4
|
+
data.tar.gz: cdbbeb29175d88a6ebf7937189d77c3aba29373c
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 3b1674f8d1d6376a5a099449790548d65795d239d73cccb224c2c2405c8a4e650859bfac13df36625d1464272b6cf112d5c6ad81620beda738313f817a31772e
|
7
|
+
data.tar.gz: eb9c9e43b32ee23d8338f9d14272015bd5e7e72b84b229e01ea54e7d2ef84fcf8073f61849b82c264fc50c17d060f75f013c21919f280606e83d62dea86dd3e1
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
Copyright (c) 2015- GMO Pepabo, Inc.
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
|
+
of this software and associated documentation files (the "Software"), to deal
|
5
|
+
in the Software without restriction, including without limitation the rights
|
6
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
7
|
+
copies of the Software, and to permit persons to whom the Software is
|
8
|
+
furnished to do so, subject to the following conditions:
|
9
|
+
|
10
|
+
The above copyright notice and this permission notice shall be included in
|
11
|
+
all copies or substantial portions of the Software.
|
12
|
+
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
19
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
# Capistrano::Stretcher::Rails
|
2
|
+
|
3
|
+
rails specific tasks for capistrano-stretcher.
|
4
|
+
|
5
|
+
this gem insert bundler and assets precompile tasks to your build task for stretcher assets.
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'capistrano-stretcher-rails'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install capistrano-stretcher-rails
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
You need to add `require "capistrano/stretcher/rails"` under `require "capistrano/stretcher"` in your Capfile
|
26
|
+
|
27
|
+
## Development
|
28
|
+
|
29
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
30
|
+
|
31
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
|
+
|
33
|
+
## Contributing
|
34
|
+
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/pepabo/capistrano-stretcher-rails.
|
36
|
+
|
37
|
+
## LICENSE
|
38
|
+
|
39
|
+
The MIT License (MIT)
|
40
|
+
|
41
|
+
Copyright (c) 2015- GMO Pepabo, Inc.
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = "capistrano-stretcher-rails"
|
7
|
+
spec.version = "0.1.0"
|
8
|
+
spec.authors = ["SHIBATA Hiroshi", "Uchio Kondo"]
|
9
|
+
spec.email = ["hsbt@ruby-lang.org", "udzura@udzura.jp"]
|
10
|
+
|
11
|
+
spec.summary = %q{rails specific tasks for capistrano-stretcher}
|
12
|
+
spec.description = %q{rails specific tasks for capistrano-stretcher}
|
13
|
+
spec.homepage = "https://github.com/pepabo/capistrano-stretcher-rails"
|
14
|
+
|
15
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
16
|
+
spec.bindir = "exe"
|
17
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
18
|
+
spec.require_paths = ["lib"]
|
19
|
+
|
20
|
+
spec.add_dependency "capistrano-stretcher"
|
21
|
+
|
22
|
+
spec.add_development_dependency "bundler", "~> 1.10"
|
23
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
24
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
# this file is dummy file for Bundler.setup
|
@@ -0,0 +1 @@
|
|
1
|
+
load File.expand_path("../tasks/rails.rake", __FILE__)
|
@@ -0,0 +1,37 @@
|
|
1
|
+
namespace :stretcher do
|
2
|
+
set :exclude_dirs, fetch(:exclude_dirs) << "vendor/bundle" << "public/assets"
|
3
|
+
|
4
|
+
def local_bundle_path
|
5
|
+
@_local_bundle_path ||= fetch(:local_bundle_path, "vendor/bundle")
|
6
|
+
end
|
7
|
+
|
8
|
+
task :bundle do
|
9
|
+
on application_builder_roles do
|
10
|
+
within local_build_path do
|
11
|
+
execute :bundle, :install, "--gemfile #{local_build_path}/Gemfile --deployment --path #{local_bundle_path} -j 4 --without development test"
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
task :asset_precompile do
|
17
|
+
on application_builder_roles do
|
18
|
+
within local_build_path do
|
19
|
+
with rails_env: fetch(:rails_env) do
|
20
|
+
execute :bundle, :exec, :rake, 'assets:precompile'
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
task :cleanup_precompiled_assets do
|
27
|
+
on application_builder_roles do
|
28
|
+
within local_build_path do
|
29
|
+
execute :rm, '-rf', "public/assets"
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
after 'stretcher:checkout_local', 'stretcher:bundle'
|
36
|
+
before 'stretcher:create_tarball', 'stretcher:asset_precompile'
|
37
|
+
after 'stretcher:cleanup_dirs', 'stretcher:cleanup_precompiled_assets'
|
metadata
ADDED
@@ -0,0 +1,97 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: capistrano-stretcher-rails
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- SHIBATA Hiroshi
|
8
|
+
- Uchio Kondo
|
9
|
+
autorequire:
|
10
|
+
bindir: exe
|
11
|
+
cert_chain: []
|
12
|
+
date: 2015-12-10 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: capistrano-stretcher
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - ">="
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: '0'
|
21
|
+
type: :runtime
|
22
|
+
prerelease: false
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - ">="
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: '0'
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: bundler
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - "~>"
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '1.10'
|
35
|
+
type: :development
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - "~>"
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '1.10'
|
42
|
+
- !ruby/object:Gem::Dependency
|
43
|
+
name: rake
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - "~>"
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: '10.0'
|
49
|
+
type: :development
|
50
|
+
prerelease: false
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - "~>"
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '10.0'
|
56
|
+
description: rails specific tasks for capistrano-stretcher
|
57
|
+
email:
|
58
|
+
- hsbt@ruby-lang.org
|
59
|
+
- udzura@udzura.jp
|
60
|
+
executables: []
|
61
|
+
extensions: []
|
62
|
+
extra_rdoc_files: []
|
63
|
+
files:
|
64
|
+
- ".gitignore"
|
65
|
+
- Gemfile
|
66
|
+
- LICENSE
|
67
|
+
- README.md
|
68
|
+
- Rakefile
|
69
|
+
- capistrano-stretcher-rails.gemspec
|
70
|
+
- lib/capistrano-stretcher-rails.rb
|
71
|
+
- lib/capistrano/stretcher/rails.rb
|
72
|
+
- lib/capistrano/stretcher/tasks/rails.rake
|
73
|
+
homepage: https://github.com/pepabo/capistrano-stretcher-rails
|
74
|
+
licenses: []
|
75
|
+
metadata: {}
|
76
|
+
post_install_message:
|
77
|
+
rdoc_options: []
|
78
|
+
require_paths:
|
79
|
+
- lib
|
80
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
81
|
+
requirements:
|
82
|
+
- - ">="
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
version: '0'
|
85
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
requirements: []
|
91
|
+
rubyforge_project:
|
92
|
+
rubygems_version: 2.5.0
|
93
|
+
signing_key:
|
94
|
+
specification_version: 4
|
95
|
+
summary: rails specific tasks for capistrano-stretcher
|
96
|
+
test_files: []
|
97
|
+
has_rdoc:
|