thorgem 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.3
|
data/lib/thorgem.rb
CHANGED
@@ -51,7 +51,8 @@ class Thorgem< Thor::Group
|
|
51
51
|
signatures if options[:signatures]
|
52
52
|
binaries if options[:binaries]
|
53
53
|
cucumber if options[:cucumber]
|
54
|
-
rspec if !options[:rspec]
|
54
|
+
rspec if !options[:rspec]
|
55
|
+
templates if options[:templates]
|
55
56
|
licence if options[:license]
|
56
57
|
end
|
57
58
|
|
@@ -96,9 +97,12 @@ class Thorgem< Thor::Group
|
|
96
97
|
inside 'lib' do
|
97
98
|
template 'app_name.rb', "#{app_name}.thor"
|
98
99
|
template 'app_name.rb', "#{app_name}.rb" if !File.exist?("#{app_name}.rb") # if not jewel
|
99
|
-
directory 'templates' if options[:templates]
|
100
100
|
end
|
101
101
|
end
|
102
|
+
|
103
|
+
def templates
|
104
|
+
directory 'templates'
|
105
|
+
end
|
102
106
|
|
103
107
|
def wiki
|
104
108
|
empty_directory 'wiki'
|
@@ -125,12 +129,11 @@ class Thorgem< Thor::Group
|
|
125
129
|
private
|
126
130
|
|
127
131
|
def class_name
|
128
|
-
|
129
|
-
"#{options[:namespace]}::#{app_name}"
|
132
|
+
if options[:namespace]
|
133
|
+
"#{options[:namespace].camelize}::#{app_name.camelize}"
|
130
134
|
else
|
131
|
-
app_name
|
135
|
+
app_name.camelize
|
132
136
|
end
|
133
|
-
name.camelize
|
134
137
|
end
|
135
138
|
|
136
139
|
def ns_app_name
|
File without changes
|
File without changes
|
data/thorgem.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{thorgem}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Kristian Mandrup"]
|
@@ -41,10 +41,10 @@ Gem::Specification.new do |s|
|
|
41
41
|
"templates/features/app_name.feature",
|
42
42
|
"templates/features/support/env.rb",
|
43
43
|
"templates/lib/app_name.rb",
|
44
|
-
"templates/lib/templates/my_template.erb",
|
45
|
-
"templates/lib/templates/optional/opt_template.erb",
|
46
44
|
"templates/spec/app_name/sample_spec.rb",
|
47
45
|
"templates/spec/spec_helper.rb",
|
46
|
+
"templates/templates/my_template.erb",
|
47
|
+
"templates/templates/optional/opt_template.erb",
|
48
48
|
"templates/wiki/home.textile",
|
49
49
|
"thorgem.gemspec",
|
50
50
|
"thortask.gemspec"
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
8
|
+
- 3
|
9
|
+
version: 0.1.3
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Kristian Mandrup
|
@@ -50,10 +50,10 @@ files:
|
|
50
50
|
- templates/features/app_name.feature
|
51
51
|
- templates/features/support/env.rb
|
52
52
|
- templates/lib/app_name.rb
|
53
|
-
- templates/lib/templates/my_template.erb
|
54
|
-
- templates/lib/templates/optional/opt_template.erb
|
55
53
|
- templates/spec/app_name/sample_spec.rb
|
56
54
|
- templates/spec/spec_helper.rb
|
55
|
+
- templates/templates/my_template.erb
|
56
|
+
- templates/templates/optional/opt_template.erb
|
57
57
|
- templates/wiki/home.textile
|
58
58
|
- thorgem.gemspec
|
59
59
|
- thortask.gemspec
|