hobo_support 1.3.0.pre12 → 1.3.0.pre13
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/Rakefile +1 -1
- data/VERSION +1 -1
- data/lib/hobo_support/command.rb +13 -11
- data/lib/hobo_support/common_tasks.rb +2 -0
- data/test/hobosupport.rdoctest +1 -3
- metadata +4 -4
data/Rakefile
CHANGED
@@ -10,7 +10,7 @@ RUBYDOCTEST = ENV['RUBYDOCTEST'] || "#{RUBY} -S rubydoctest"
|
|
10
10
|
namespace "test" do
|
11
11
|
desc "Run the doctests"
|
12
12
|
task :doctest do |t|
|
13
|
-
files=Dir['test
|
13
|
+
files=Dir['test/**/*.rdoctest'].map {|f| File.expand_path(f)}.join(' ')
|
14
14
|
exit(1) if !system("#{RUBYDOCTEST} --single #{files}")
|
15
15
|
end
|
16
16
|
end
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.3.0.
|
1
|
+
1.3.0.pre13
|
data/lib/hobo_support/command.rb
CHANGED
@@ -10,16 +10,17 @@ module HoboSupport
|
|
10
10
|
puts "#{gem.to_s.capitalize} Command Line Interface #{version}"
|
11
11
|
|
12
12
|
banner = %(
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
13
|
+
Usage:
|
14
|
+
hobo new <app_name> [rails_options] Creates a new Hobo Application
|
15
|
+
hobo generate|g <generator> [ARGS] [options] Fires the hobo:<generator>
|
16
|
+
hobo destroy <generator> [ARGS] [options] Tries to undo generated code
|
17
|
+
hobo --help|-h This help screen
|
17
18
|
|
18
|
-
|
19
|
-
|
20
|
-
|
19
|
+
Dev Notes:
|
20
|
+
Set the HOBODEV ENV variable to your local hobo git-repository path
|
21
|
+
in order to use your local dev version instead of the installed gem.
|
21
22
|
|
22
|
-
|
23
|
+
)
|
23
24
|
|
24
25
|
# for hobo developers only
|
25
26
|
setup_wizard = true
|
@@ -86,15 +87,16 @@ You can rerun it at any time with `hobo g setup_wizard` from the application roo
|
|
86
87
|
system "rails new #{app_name} #{ARGV * ' '} -m #{template_path}"
|
87
88
|
File.delete template_path
|
88
89
|
|
89
|
-
when /^g|generate$/
|
90
|
+
when /^(g|generate|destroy)$/
|
91
|
+
cmd = $1
|
90
92
|
if ARGV.empty?
|
91
93
|
puts "\nThe generator name is missing!\n"
|
92
94
|
puts banner
|
93
95
|
else
|
94
96
|
if ARGV.first =~ /^hobo:(\w+)$/
|
95
|
-
puts "NOTICE: You can omit the 'hobo' namespace: e.g. `hobo
|
97
|
+
puts "NOTICE: You can omit the 'hobo' namespace: e.g. `hobo #{cmd} #{$1} #{ARGV[1..-1] * ' '}`"
|
96
98
|
end
|
97
|
-
|
99
|
+
system "rails #{cmd} hobo:#{ARGV * ' '}"
|
98
100
|
end
|
99
101
|
|
100
102
|
else
|
@@ -13,6 +13,8 @@ namespace :test do
|
|
13
13
|
task :prepare_testapp, :force do |t, args|
|
14
14
|
if args.force || !File.directory?(TESTAPP_PATH)
|
15
15
|
remove_entry_secure( TESTAPP_PATH, true )
|
16
|
+
# hobodev = %(HOBODEV=#{ENV["HOBODEV"]}) if ENV["HOBODEV"]
|
17
|
+
# sh %(export #{hobodev})
|
16
18
|
sh %(#{BIN} new #{TESTAPP_PATH} --skip-wizard)
|
17
19
|
chdir TESTAPP_PATH
|
18
20
|
sh %(echo "gem 'irt', :group => :console" >> Gemfile) # to make the bundler happy
|
data/test/hobosupport.rdoctest
CHANGED
@@ -7,8 +7,6 @@ HoboSupport is a mixed bag of core ruby extensions that have been extracted from
|
|
7
7
|
doctest_require: '../lib/hobo_support'
|
8
8
|
{.hidden}
|
9
9
|
|
10
|
-
>> HoboSupport::VERSION
|
11
|
-
=> "1.3.0.pre6"
|
12
10
|
|
13
11
|
## Contents
|
14
12
|
|
@@ -34,7 +32,7 @@ Like `is_a?` but multiple types to be checked in one go
|
|
34
32
|
|
35
33
|
## Method call extensions
|
36
34
|
|
37
|
-
We have the "." operator to call methods on objects. These extensions introduce two "special dots".
|
35
|
+
We have the "." operator to call methods on objects. These extensions introduce two "special dots".
|
38
36
|
|
39
37
|
### `Object#_?`
|
40
38
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hobo_support
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: -
|
4
|
+
hash: -1637175964
|
5
5
|
prerelease: true
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 3
|
9
9
|
- 0
|
10
|
-
-
|
11
|
-
version: 1.3.0.
|
10
|
+
- pre13
|
11
|
+
version: 1.3.0.pre13
|
12
12
|
platform: ruby
|
13
13
|
authors:
|
14
14
|
- Tom Locke
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2010-10-
|
19
|
+
date: 2010-10-20 00:00:00 -04:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|