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 CHANGED
@@ -1,3 +1,8 @@
1
+ ### 1.1.1 / 2012-03-03
2
+
3
+ * Fixed multiple typos in the Library and Repository templates.
4
+ * Fixed a template lookup bug in {Ronin::Gen::Generator#template}.
5
+
1
6
  ### 1.1.0 / 2012-02-12
2
7
 
3
8
  * Require parameters ~> 0.4.
data/Rakefile CHANGED
@@ -28,3 +28,4 @@ task :default => :spec
28
28
 
29
29
  require 'yard'
30
30
  YARD::Rake::YardocTask.new
31
+ task :docs => :yard
@@ -11,7 +11,7 @@ gemspec
11
11
  <%- end -%>
12
12
 
13
13
  group :development do
14
- gem 'rake', '~> 0.8.7'
14
+ gem 'rake', '~> 0.8'
15
15
  gem 'kramdown', '~> 0.12'
16
16
 
17
17
  gem 'ore-tasks', '~> 0.4'
@@ -26,7 +26,7 @@
26
26
 
27
27
  ## Install
28
28
 
29
- $ sudo gem install <%= @name %>
29
+ $ gem install <%= @name %>
30
30
 
31
31
  ## License
32
32
 
@@ -1,4 +1,4 @@
1
- <%= erb File.join('..','..','_license.erb') %>
1
+ <%= template File.join('..','..','_license.erb') %>
2
2
 
3
3
  require 'ronin/gen/file_generator'
4
4
 
@@ -1,3 +1,3 @@
1
- <%= erb '_license.erb' %>
1
+ <%= template '_license.erb' %>
2
2
 
3
3
  require 'ronin/<%= @dir_name %>/version'
@@ -1,4 +1,4 @@
1
- <%= erb File.join('..','_license.erb') %>
1
+ <%= template File.join('..','_license.erb') %>
2
2
 
3
3
  module Ronin
4
4
  module <%= @module_name %>
@@ -1,4 +1,4 @@
1
- <%= erb File.join('..','..','..','_license.erb') %>
1
+ <%= template File.join('..','..','..','_license.erb') %>
2
2
 
3
3
  require 'ronin/ui/cli/command'
4
4
 
@@ -49,15 +49,15 @@ module Ronin
49
49
  # class MyGenerator < FileGenerator
50
50
  #
51
51
  # # generator options
52
- # parameter :stuff, :type => true
53
- # parameter :syntax, :type => String
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
- # erb 'some_template.erb', path
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
- # erb 'Rakefile.erb', 'Rakefile'
683
+ # template 'Rakefile.erb', 'Rakefile'
680
684
  #
681
685
  # @example
682
- # erb '_helpers.erb'
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/ui/cli/commands'
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
 
@@ -20,6 +20,6 @@
20
20
  module Ronin
21
21
  module Gen
22
22
  # Ronin Gen version
23
- VERSION = '1.1.0'
23
+ VERSION = '1.1.1'
24
24
  end
25
25
  end
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.0
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-02-12 00:00:00.000000000 Z
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: &17567500 !ruby/object:Gem::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: *17567500
24
+ version_requirements: *21483340
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: data_paths
27
- requirement: &17565300 !ruby/object:Gem::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: *17565300
35
+ version_requirements: *21482600
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: parameters
38
- requirement: &17564440 !ruby/object:Gem::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: *17564440
46
+ version_requirements: *21481860
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: ronin-support
49
- requirement: &17563580 !ruby/object:Gem::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: *17563580
57
+ version_requirements: *21481160
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: ronin
60
- requirement: &17546540 !ruby/object:Gem::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: *17546540
68
+ version_requirements: *21480420
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: bundler
71
- requirement: &17532540 !ruby/object:Gem::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: *17532540
79
+ version_requirements: *21479620
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: yard
82
- requirement: &17530720 !ruby/object:Gem::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: *17530720
90
+ version_requirements: *21479140
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: yard-parameters
93
- requirement: &17525680 !ruby/object:Gem::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: *17525680
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.16
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.