ronin-gen 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog.md +5 -0
- data/Rakefile +1 -0
- data/data/ronin/gen/library/Gemfile.erb +1 -1
- data/data/ronin/gen/library/README.md.erb +1 -1
- data/data/ronin/gen/library/lib/ronin/gen/generators/generator.rb.erb +1 -1
- data/data/ronin/gen/library/lib/ronin/name.rb.erb +1 -1
- data/data/ronin/gen/library/lib/ronin/name/version.rb.erb +1 -1
- data/data/ronin/gen/library/lib/ronin/ui/cli/commands/command.rb.erb +1 -1
- data/lib/ronin/gen/generator.rb +9 -7
- data/lib/ronin/gen/generators/library.rb +2 -1
- data/lib/ronin/gen/version.rb +1 -1
- metadata +19 -19
data/ChangeLog.md
CHANGED
data/Rakefile
CHANGED
data/lib/ronin/gen/generator.rb
CHANGED
@@ -49,15 +49,15 @@ module Ronin
|
|
49
49
|
# class MyGenerator < FileGenerator
|
50
50
|
#
|
51
51
|
# # generator options
|
52
|
-
# parameter :stuff,
|
53
|
-
# parameter :syntax,
|
52
|
+
# parameter :stuff, :type => true
|
53
|
+
# parameter :syntax, :type => String
|
54
54
|
# parameter :includes, :type => Array
|
55
55
|
#
|
56
56
|
# #
|
57
57
|
# # Performs the generation.
|
58
58
|
# #
|
59
59
|
# def generate
|
60
|
-
#
|
60
|
+
# template 'some_template.erb', path
|
61
61
|
# end
|
62
62
|
#
|
63
63
|
# end
|
@@ -116,6 +116,10 @@ module Ronin
|
|
116
116
|
def initialize(options={})
|
117
117
|
initialize_params(options)
|
118
118
|
|
119
|
+
if self.class.data_dir
|
120
|
+
self.template_dirs << find_data_dir(self.class.data_dir)
|
121
|
+
end
|
122
|
+
|
119
123
|
yield self if block_given?
|
120
124
|
end
|
121
125
|
|
@@ -676,16 +680,14 @@ module Ronin
|
|
676
680
|
# will be returned.
|
677
681
|
#
|
678
682
|
# @example
|
679
|
-
#
|
683
|
+
# template 'Rakefile.erb', 'Rakefile'
|
680
684
|
#
|
681
685
|
# @example
|
682
|
-
#
|
686
|
+
# template '_helpers.erb'
|
683
687
|
#
|
684
688
|
# @since 0.2.0
|
685
689
|
#
|
686
690
|
def template(template_path,dest=nil)
|
687
|
-
template_path = data_path(template_path)
|
688
|
-
|
689
691
|
if dest
|
690
692
|
print_action 'erb', dest
|
691
693
|
|
@@ -17,10 +17,11 @@
|
|
17
17
|
# along with Ronin Gen. If not, see <http://www.gnu.org/licenses/>.
|
18
18
|
#
|
19
19
|
|
20
|
-
require 'ronin/
|
20
|
+
require 'ronin/gen/generators'
|
21
21
|
require 'ronin/gen/dir_generator'
|
22
22
|
require 'ronin/gen/config'
|
23
23
|
require 'ronin/gen/version'
|
24
|
+
require 'ronin/ui/cli/commands'
|
24
25
|
require 'ronin/support/version'
|
25
26
|
require 'ronin/version'
|
26
27
|
|
data/lib/ronin/gen/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ronin-gen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-03-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: open_namespace
|
16
|
-
requirement: &
|
16
|
+
requirement: &21483340 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0.3'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *21483340
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: data_paths
|
27
|
-
requirement: &
|
27
|
+
requirement: &21482600 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0.3'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *21482600
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: parameters
|
38
|
-
requirement: &
|
38
|
+
requirement: &21481860 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0.4'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *21481860
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: ronin-support
|
49
|
-
requirement: &
|
49
|
+
requirement: &21481160 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: '0.4'
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *21481160
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: ronin
|
60
|
-
requirement: &
|
60
|
+
requirement: &21480420 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ~>
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: '1.4'
|
66
66
|
type: :runtime
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *21480420
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: bundler
|
71
|
-
requirement: &
|
71
|
+
requirement: &21479620 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ~>
|
@@ -76,10 +76,10 @@ dependencies:
|
|
76
76
|
version: '1.0'
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *21479620
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: yard
|
82
|
-
requirement: &
|
82
|
+
requirement: &21479140 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
85
|
- - ~>
|
@@ -87,10 +87,10 @@ dependencies:
|
|
87
87
|
version: 0.7.0
|
88
88
|
type: :development
|
89
89
|
prerelease: false
|
90
|
-
version_requirements: *
|
90
|
+
version_requirements: *21479140
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: yard-parameters
|
93
|
-
requirement: &
|
93
|
+
requirement: &21478660 !ruby/object:Gem::Requirement
|
94
94
|
none: false
|
95
95
|
requirements:
|
96
96
|
- - ~>
|
@@ -98,7 +98,7 @@ dependencies:
|
|
98
98
|
version: 0.1.0
|
99
99
|
type: :development
|
100
100
|
prerelease: false
|
101
|
-
version_requirements: *
|
101
|
+
version_requirements: *21478660
|
102
102
|
description: Ronin Gen is a Ruby library for Ronin that provides various generators.
|
103
103
|
email: postmodern.mod3@gmail.com
|
104
104
|
executables:
|
@@ -193,7 +193,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
193
193
|
requirements:
|
194
194
|
- git >= 1.6.0.0, for the library generator
|
195
195
|
rubyforge_project:
|
196
|
-
rubygems_version: 1.8.
|
196
|
+
rubygems_version: 1.8.15
|
197
197
|
signing_key:
|
198
198
|
specification_version: 3
|
199
199
|
summary: A Ruby library for Ronin that provides various generators.
|