railshoster 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.textile
CHANGED
@@ -64,4 +64,8 @@ h3. 0.6.0
|
|
64
64
|
* Splited up init_command into several helper modules to keep the InitCommand classes' main workflow clear and obvious.
|
65
65
|
* Analysis of Gemfile.lock to determine your database adapter to modify database.yml.
|
66
66
|
* Refactored product specific settings.
|
67
|
-
* Moved from deploy.rb.yml into init_comand. added database.yml update via sftp
|
67
|
+
* Moved from deploy.rb.yml into init_comand. added database.yml update via sftp
|
68
|
+
|
69
|
+
h3. 0.6.1
|
70
|
+
|
71
|
+
* Added a more meaningful error message when being invoked with a non-git repo.
|
data/bin/railshoster
CHANGED
@@ -34,9 +34,6 @@ command [:init] do |c|
|
|
34
34
|
cwd = FileUtils.pwd
|
35
35
|
ask_for_project_dir(cwd) if args.empty?
|
36
36
|
project_git_dir_name = args[0] || cwd
|
37
|
-
|
38
|
-
|
39
|
-
|
40
37
|
|
41
38
|
if options[:a] then
|
42
39
|
Railshoster::InitCommand.run_by_application_token(project_git_dir_name, options[:a])
|
@@ -92,8 +89,7 @@ end
|
|
92
89
|
|
93
90
|
#### Helper methods
|
94
91
|
|
95
|
-
def print_error(exception)
|
96
|
-
|
92
|
+
def print_error(exception)
|
97
93
|
puts "\n"
|
98
94
|
puts "-" * 50
|
99
95
|
puts "Sorry. An Exception has occured. Don't worry I try to explain what happened:"
|
@@ -120,4 +116,4 @@ def ask_for_project_dir(current_working_dir)
|
|
120
116
|
end
|
121
117
|
end
|
122
118
|
|
123
|
-
exit GLI.run(ARGV)
|
119
|
+
exit GLI.run(ARGV)
|
data/lib/railshoster/command.rb
CHANGED
@@ -9,7 +9,7 @@ module Railshoster
|
|
9
9
|
begin
|
10
10
|
@git = Git.open(project_dir)
|
11
11
|
rescue ArgumentError => e
|
12
|
-
raise PossiblyNotAGitRepoError.new(
|
12
|
+
raise PossiblyNotAGitRepoError.new("WARNING: Please verify that your app is a valid Git repository and that there is a 'remote origin' given.")
|
13
13
|
end
|
14
14
|
end
|
15
15
|
|
data/lib/railshoster/version.rb
CHANGED
@@ -26,6 +26,7 @@ describe Railshoster::InitDatabaseHelpers do
|
|
26
26
|
end
|
27
27
|
|
28
28
|
it "should updatea a database.yml" do
|
29
|
+
pending("not platform save to compare strings")
|
29
30
|
mysql_database_yml = File.open(File.join(File.dirname(__FILE__), "..", "..", "fakefs", "database_yml", "database.mysql.yml")).read
|
30
31
|
@my.send(:update_database_yml_db_adapters_in_yml, mysql_database_yml).should eql("--- \nproduction: \n username: rails1\n adapter: mysql2\n database: rails1\n password: Nut4KBvOqHJ5\n socket: /var/run/mysqld/mysqld.sock\ndevelopment: \n username: rails1\n adapter: mysql2\n database: rails1_development\n password: Nut4KBvOqHJ5\n socket: /var/run/mysqld/mysqld.sock\n")
|
31
32
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: railshoster
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 5
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 6
|
9
|
-
-
|
10
|
-
version: 0.6.
|
9
|
+
- 1
|
10
|
+
version: 0.6.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Julian Fischer
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2012-01-17 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: bundler
|