ninja-deploy 2.0.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.rdoc CHANGED
@@ -1,4 +1,4 @@
1
- = ninja-deploy
1
+ = https://gemnasium.com/ninja-loss/ninja-deploy.png https://secure.travis-ci.org/ninja-loss/ninja-deploy.png?branch=master ninja-deploy
2
2
 
3
3
  Common shared deployment recipes.
4
4
 
@@ -121,6 +121,11 @@ Include the Sass Rake tasks in your deploy.rb:
121
121
  mirror_rake_tasks :sass
122
122
  end
123
123
 
124
+ Run Rake via Bundler, locally and/or remotely, using a configuration:
125
+
126
+ NinjaDeploy.local_rake_executable = '/usr/bin/env bundle exec rake'
127
+ NinjaDeploy.remote_rake_executable = '/usr/bin/env bundle exec rake'
128
+
124
129
  === update
125
130
 
126
131
  Generates the CSS files from the Sass files.
@@ -144,6 +149,11 @@ Require the thinking sphinx recipes in your deploy.rb file and include the Think
144
149
  mirror_rake_tasks :thinking_sphinx
145
150
  end
146
151
 
152
+ Run Rake via Bundler, locally and/or remotely, using a configuration:
153
+
154
+ NinjaDeploy.local_rake_executable = '/usr/bin/env bundle exec rake'
155
+ NinjaDeploy.remote_rake_executable = '/usr/bin/env bundle exec rake'
156
+
147
157
  === configure
148
158
 
149
159
  Generates the Thinking Sphinx configuration file from the sphinx.yml file.
data/lib/ninja_deploy.rb CHANGED
@@ -1,6 +1,20 @@
1
1
  require 'cape'
2
2
 
3
- module NinjaDeploy; end
3
+ module NinjaDeploy
4
+
5
+ class << self
6
+ %w( local remote ).each do |location|
7
+ reader = "#{location}_rake_executable"
8
+ writer = "#{reader}="
9
+ [reader, writer].each do |method|
10
+ define_method method do |*arguments, &block|
11
+ Cape.send( method, *arguments, &block )
12
+ end
13
+ end
14
+ end
15
+ end
16
+
17
+ end
4
18
 
5
19
  def NinjaDeploy( &block )
6
20
  Cape( &block )
@@ -1,5 +1,5 @@
1
1
  module NinjaDeploy
2
2
 
3
- VERSION = '2.0.0'
3
+ VERSION = '2.1.0'
4
4
 
5
5
  end
@@ -1,5 +1,21 @@
1
1
  require 'ninja_deploy'
2
2
 
3
+ describe NinjaDeploy do
4
+ %w( local_rake_executable remote_rake_executable ).each do |attribute|
5
+ describe ".#{attribute}" do
6
+ it "should return the value of Cape.#{attribute}" do
7
+ Cape.stub!( attribute.to_sym ).and_return 'expected value'
8
+ NinjaDeploy.send( attribute ).should == 'expected value'
9
+ end
10
+
11
+ it "should set the value of Cape.#{attribute}" do
12
+ NinjaDeploy.send "#{attribute}=", 'passed-through value'
13
+ Cape.send( attribute ).should == 'passed-through value'
14
+ end
15
+ end
16
+ end
17
+ end
18
+
3
19
  describe '#NinjaDeploy' do
4
20
  it 'should yield the Cape module if given a unary block' do
5
21
  yielded = nil
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ninja-deploy
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 11
5
5
  prerelease:
6
6
  segments:
7
7
  - 2
8
+ - 1
8
9
  - 0
9
- - 0
10
- version: 2.0.0
10
+ version: 2.1.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jason Harrelson
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2012-02-01 00:00:00 Z
19
+ date: 2012-03-14 00:00:00 Z
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
22
  name: cape
@@ -71,13 +71,11 @@ extensions: []
71
71
  extra_rdoc_files: []
72
72
 
73
73
  files:
74
- - .document
75
74
  - .gitignore
76
75
  - .travis.yml
77
76
  - .yardopts
78
77
  - Gemfile
79
78
  - Guardfile
80
- - LICENSE
81
79
  - MIT-LICENSE.markdown
82
80
  - README.rdoc
83
81
  - Rakefile
data/.document DELETED
@@ -1,5 +0,0 @@
1
- README.rdoc
2
- lib/**/*.rb
3
- bin/*
4
- features/**/*.feature
5
- LICENSE
data/LICENSE DELETED
@@ -1,20 +0,0 @@
1
- Copyright (c) 2009 Ninja Loss
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining
4
- a copy of this software and associated documentation files (the
5
- "Software"), to deal in the Software without restriction, including
6
- without limitation the rights to use, copy, modify, merge, publish,
7
- distribute, sublicense, and/or sell copies of the Software, and to
8
- permit persons to whom the Software is furnished to do so, subject to
9
- the following conditions:
10
-
11
- The above copyright notice and this permission notice shall be
12
- included in all copies or substantial portions of the Software.
13
-
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.