gemstub 1.0.17 → 1.0.18

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,13 +10,41 @@ require 'rubygems/gem_runner'
10
10
  require 'spec'
11
11
  require 'spec/rake/spectask'
12
12
 
13
- load File.join(File.dirname(__FILE__), '<%= app %>.gemspec')
13
+ @gem_spec = Gem::Specification.new do |s|
14
+ s.name = "<%= app %>"
15
+ s.version = "<%= version %>"
16
+ s.summary = "<%= app %>"
17
+ s.description = "<%= app %> was developed by: <%= author %>"
18
+ s.author = "<%= author %>"
19
+ s.email = ""
20
+ s.homepage = ""
21
+
22
+ s.test_files = FileList['test/**/*']
23
+
24
+ s.files = FileList['lib/**/*.*', 'README', 'doc/**/*.*', 'bin/**/*.*']
25
+ s.require_paths << 'lib'
26
+
27
+ #s.bindir = "bin"
28
+ #s.executables << "<%= app %>"
29
+ #s.default_executable = ""
30
+ #s.add_dependency("", "")
31
+ #s.add_dependency("", "")
32
+ #s.extensions << ""
33
+ s.extra_rdoc_files = ["README"]
34
+ s.has_rdoc = true
35
+ #s.platform = "Gem::Platform::Ruby"
36
+ #s.required_ruby_version = ">= 1.8.6"
37
+ #s.requirements << "An ice cold beer."
38
+ #s.requirements << "Some free time!"
39
+ s.rubyforge_project = "<%= app %>"
40
+ end
14
41
 
15
42
  # rake package
16
43
  Rake::GemPackageTask.new(@gem_spec) do |pkg|
17
44
  pkg.need_zip = false
18
45
  pkg.need_tar = false
19
46
  rm_f FileList['pkg/**/*.*']
47
+ File.open(File.join(File.dirname(__FILE__), '<%= app %>.gemspec'), 'w') {|f| f.puts @gem_spec.to_ruby}
20
48
  end
21
49
 
22
50
  # rake
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gemstub
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.17
4
+ version: 1.0.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Bates
@@ -42,7 +42,6 @@ extra_rdoc_files: []
42
42
 
43
43
  files:
44
44
  - lib/gem_generator.rb
45
- - lib/templates/%=app%/%=app%.gemspec.template
46
45
  - lib/templates/%=app%/lib/%=app%/%=app%.rb.template
47
46
  - lib/templates/%=app%/lib/%=app%.rb.template
48
47
  - lib/templates/%=app%/Rakefile.template
@@ -1,32 +0,0 @@
1
- require 'rubygems'
2
- require 'rake'
3
- require 'rake/gempackagetask'
4
-
5
- @gem_spec = Gem::Specification.new do |s|
6
- s.name = "<%= app %>"
7
- s.version = "<%= version %>"
8
- s.summary = "<%= app %>"
9
- s.description = "<%= app %> was developed by: <%= author %>"
10
- s.author = "<%= author %>"
11
- s.email = ""
12
- s.homepage = ""
13
-
14
- s.test_files = FileList['test/**/*']
15
-
16
- s.files = FileList['lib/**/*.*', 'README', 'doc/**/*.*', 'bin/**/*.*']
17
- s.require_paths << 'lib'
18
-
19
- #s.bindir = "bin"
20
- #s.executables << "<%= app %>"
21
- #s.default_executable = ""
22
- #s.add_dependency("", "")
23
- #s.add_dependency("", "")
24
- #s.extensions << ""
25
- s.extra_rdoc_files = ["README"]
26
- s.has_rdoc = true
27
- #s.platform = "Gem::Platform::Ruby"
28
- #s.required_ruby_version = ">= 1.8.6"
29
- #s.requirements << "An ice cold beer."
30
- #s.requirements << "Some free time!"
31
- s.rubyforge_project = "<%= app %>"
32
- end