genki-cutagem 0.0.8.1 → 0.0.8.2

Sign up to get free protection for your applications and to get access to all the features.
data/lib/cutagem.rb CHANGED
@@ -6,7 +6,7 @@ require "erb"
6
6
  require "yaml"
7
7
 
8
8
  class CutAGemCommand
9
- VERSION = "0.0.8.1"
9
+ VERSION = "0.0.8.2"
10
10
 
11
11
  include FileUtils
12
12
  def self.run(argv)
@@ -8,6 +8,7 @@ require 'rake/rdoctask'
8
8
  require 'rake/contrib/rubyforgepublisher'
9
9
  require 'rake/contrib/sshpublisher'
10
10
  require 'fileutils'
11
+ require 'lib/<%=gempath%>'
11
12
  include FileUtils
12
13
 
13
14
  NAME = "<%=gemname%>"
@@ -17,8 +18,8 @@ DESCRIPTION = "<%=description%>"
17
18
  RUBYFORGE_PROJECT = "<%=config['meta_project'] || gemid%>"
18
19
  HOMEPATH = "http://#{RUBYFORGE_PROJECT}.rubyforge.org"
19
20
  BIN_FILES = %w( )
20
- VERS = "0.0.1"
21
21
 
22
+ VERS = <%=gemclass%>::VERSION
22
23
  REV = File.read(".svn/entries")[/committed-rev="(d+)"/, 1] rescue nil
23
24
  CLEAN.include ['**/.*.sw?', '*.gem', '.config']
24
25
  RDOC_OPTS = [
@@ -55,7 +56,7 @@ spec = Gem::Specification.new do |s|
55
56
  s.rubyforge_project = RUBYFORGE_PROJECT
56
57
  s.bindir = "bin"
57
58
  s.require_path = "lib"
58
- s.autorequire = ""
59
+ #s.autorequire = ""
59
60
  s.test_files = Dir["test/*_test.rb"]
60
61
 
61
62
  #s.add_dependency('activesupport', '>=1.3.1')
@@ -1,4 +1,11 @@
1
-
1
+ <%=
2
+ result = []
3
+ gemclass.split('::')[0...-1].inject('') do |ns, mod|
4
+ result << "module #{ns}::#{mod}; end"
5
+ [ns, mod].join('::')
6
+ end
7
+ result.join("\n")
8
+ %>
2
9
  class <%=gemclass%>
3
-
10
+ VERSION = '0.0.1'
4
11
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: genki-cutagem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8.1
4
+ version: 0.0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - cho45