-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #74 from kennethkalmer/living-on-the-edge
Removed support 'freezing daemon-kit into vendor/'
- Loading branch information
Showing
35 changed files
with
414 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--colour | ||
--pattern "spec/*_spec.rb" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
module ProjectFixtures | ||
DAEMON_FIXTURES_PATH = File.expand_path( '../../../spec/fixtures', __FILE__ ) | ||
|
||
def copy_fixture_project( name ) | ||
name = case name | ||
when '0.2.3' | ||
'zero_two_three' | ||
else | ||
raise ArgumentError, "Unknown fixture project: #{name}" | ||
end | ||
|
||
src = File.join( DAEMON_FIXTURES_PATH, name ) | ||
|
||
in_current_dir do | ||
FileUtils.cp_r( src, 'fixture_project' ) | ||
end | ||
end | ||
|
||
end | ||
|
||
World( ProjectFixtures ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Feature: Upgrading an older daemon | ||
|
||
daemon-kit offers help during upgrades to newer versions. | ||
|
||
Scenario: Upgrading from 0.2.3 | ||
Given I have a daemon generated by daemon-kit "0.2.3" | ||
And I cd to the old project | ||
When I run `rake daemon_kit:upgrade` interactively | ||
And I accept the conflicts | ||
Then the file "Gemfile" should contain "gem 'daemon-kit', :github => 'kennethkalmer/daemon-kit'" | ||
And the file "config/boot.rb" should not contain "VendorBoot" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Update this Gemfile with any additional dependencies and run | ||
# 'bundle install' to get them all installed. Daemon-kit's capistrano | ||
# deployment will ensure that the bundle required by your daemon is properly | ||
# installed. | ||
# | ||
# For more information on bundler, please visit http://gembundler.com | ||
|
||
source 'https://rubygems.org' | ||
|
||
<% if options.edge? -%> | ||
gem 'daemon-kit', :github => 'kennethkalmer/daemon-kit' | ||
<% else -%> | ||
# Live on the edge instead: gem 'daemon-kit', :github => 'kennethkalmer/daemon-kit' | ||
gem 'daemon-kit' | ||
<% end -%> | ||
|
||
# | ||
# safely (http://github.com/kennethkalmer/safely) | ||
# | ||
|
||
gem 'safely' # Optional, but recommended. | ||
|
||
# gem 'toadhopper' # For reporting exceptions to hoptoad | ||
# gem 'mail' # For reporting exceptions via mail | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.