ronin-gen 1.2.0.rc2 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
- ### 1.2.0 / 2012-05-28
1
+ ### 1.2.0 / 2012-06-16
2
2
 
3
3
  * Require ronin-support ~> 0.5.
4
4
  * Require ronin ~> 1.5.
data/Gemfile CHANGED
@@ -9,10 +9,8 @@ gemspec
9
9
  gem 'jruby-openssl', '~> 0.7', :platforms => :jruby
10
10
 
11
11
  # Ronin dependencies:
12
- # gem 'ronin-support', '~> 0.5.0.rc1', :git => "#{RONIN_URI}/ronin-support.git",
13
- # :branch => '0.5.0'
14
- # gem 'ronin', '~> 1.5.0.rc1', :git => "#{RONIN_URI}/ronin.git",
15
- # :branch => '1.5.0'
12
+ # gem 'ronin-support', '~> 0.5', :git => "#{RONIN_URI}/ronin-support.git"
13
+ # gem 'ronin', '~> 1.5', :git => "#{RONIN_URI}/ronin.git"
16
14
 
17
15
  group :development do
18
16
  gem 'rake', '~> 0.8'
@@ -6,7 +6,7 @@ description:
6
6
  license: GPL-3
7
7
  authors: Postmodern
8
8
  email: postmodern.mod3@gmail.com
9
- homepage: http://github.com/ronin-ruby/ronin-gen
9
+ homepage: http://ronin-ruby.github.com/
10
10
  has_yard: true
11
11
 
12
12
  requirements: git >= 1.6.0.0, for the library generator
@@ -19,8 +19,8 @@ dependencies:
19
19
  data_paths: ~> 0.3
20
20
  parameters: ~> 0.4
21
21
  # Ronin dependencies:
22
- ronin-support: ~> 0.5.0.rc2
23
- ronin: ~> 1.5.0.rc2
22
+ ronin-support: ~> 0.5
23
+ ronin: ~> 1.5
24
24
 
25
25
  development_dependencies:
26
26
  bundler: ~> 1.0
@@ -17,9 +17,12 @@
17
17
  # along with Ronin Gen. If not, see <http://www.gnu.org/licenses/>.
18
18
  #
19
19
 
20
+ require 'ronin/gen/config'
20
21
  require 'ronin/gen/generator'
21
22
  require 'ronin/gen/file_generator'
22
23
  require 'ronin/gen/dir_generator'
23
- require 'ronin/gen/generatable'
24
+ require 'ronin/gen/source_code_generator'
25
+ require 'ronin/gen/ruby_generator'
26
+ require 'ronin/gen/generators'
24
27
  require 'ronin/gen/gen'
25
28
  require 'ronin/gen/version'
@@ -53,8 +53,9 @@ module Ronin
53
53
  #
54
54
  def Gen.generator(name)
55
55
  name = name.to_s
56
+ path = name.tr(':','/')
56
57
 
57
- unless (generator = Generators.require_const(name))
58
+ unless (generator = Generators.require_const(path))
58
59
  raise(UnknownGenerator,"unknown generator #{name.dump}")
59
60
  end
60
61
 
@@ -20,6 +20,6 @@
20
20
  module Ronin
21
21
  module Gen
22
22
  # Ronin Gen version
23
- VERSION = '1.2.0.rc2'
23
+ VERSION = '1.2.0'
24
24
  end
25
25
  end
@@ -7,16 +7,23 @@ describe Gen do
7
7
  subject.const_defined?('VERSION').should == true
8
8
  end
9
9
 
10
- it "should load generators from 'ronin/gen/generators'" do
11
- generator = subject.generator('library')
10
+ describe "generators" do
11
+ subject { described_class.generators }
12
12
 
13
- generator.should_not be_nil
14
- generator.should == Ronin::Gen::Generators::Library
13
+ it { should_not be_empty }
15
14
  end
16
15
 
17
- it "should raise an UnknownGenerator exception on missing generators" do
18
- lambda {
19
- subject.generator('lolbadfail')
20
- }.should raise_error(Gen::UnknownGenerator)
16
+ describe "generator" do
17
+ it "should load generators from 'ronin/gen/generators/'" do
18
+ generator = subject.generator('library')
19
+
20
+ generator.should == Ronin::Gen::Generators::Library
21
+ end
22
+
23
+ it "should raise an UnknownGenerator for unknown generators" do
24
+ lambda {
25
+ subject.generator('foo')
26
+ }.should raise_error(Gen::UnknownGenerator)
27
+ end
21
28
  end
22
29
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ronin-gen
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0.rc2
5
- prerelease: 6
4
+ version: 1.2.0
5
+ prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Postmodern
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-10 00:00:00.000000000 Z
12
+ date: 2012-06-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: open_namespace
@@ -66,7 +66,7 @@ dependencies:
66
66
  requirements:
67
67
  - - ~>
68
68
  - !ruby/object:Gem::Version
69
- version: 0.5.0.rc2
69
+ version: '0.5'
70
70
  type: :runtime
71
71
  prerelease: false
72
72
  version_requirements: !ruby/object:Gem::Requirement
@@ -74,7 +74,7 @@ dependencies:
74
74
  requirements:
75
75
  - - ~>
76
76
  - !ruby/object:Gem::Version
77
- version: 0.5.0.rc2
77
+ version: '0.5'
78
78
  - !ruby/object:Gem::Dependency
79
79
  name: ronin
80
80
  requirement: !ruby/object:Gem::Requirement
@@ -82,7 +82,7 @@ dependencies:
82
82
  requirements:
83
83
  - - ~>
84
84
  - !ruby/object:Gem::Version
85
- version: 1.5.0.rc2
85
+ version: '1.5'
86
86
  type: :runtime
87
87
  prerelease: false
88
88
  version_requirements: !ruby/object:Gem::Requirement
@@ -90,7 +90,7 @@ dependencies:
90
90
  requirements:
91
91
  - - ~>
92
92
  - !ruby/object:Gem::Version
93
- version: 1.5.0.rc2
93
+ version: '1.5'
94
94
  - !ruby/object:Gem::Dependency
95
95
  name: bundler
96
96
  requirement: !ruby/object:Gem::Requirement
@@ -219,7 +219,7 @@ files:
219
219
  - spec/gen/helpers/data/generators/templated.txt.erb
220
220
  - spec/spec_helper.rb
221
221
  - man/ronin-gen.1
222
- homepage: http://github.com/ronin-ruby/ronin-gen
222
+ homepage: http://ronin-ruby.github.com/
223
223
  licenses:
224
224
  - GPL-3
225
225
  post_install_message: