markbates-gemstub 1.0.18 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -18,25 +18,22 @@ require 'spec/rake/spectask'
18
18
  s.author = "<%= author %>"
19
19
  s.email = ""
20
20
  s.homepage = ""
21
-
22
21
  s.test_files = FileList['test/**/*']
23
-
24
22
  s.files = FileList['lib/**/*.*', 'README', 'doc/**/*.*', 'bin/**/*.*']
25
- s.require_paths << 'lib'
26
-
23
+ s.require_paths = ['lib']
24
+ s.extra_rdoc_files = ["README"]
25
+ s.has_rdoc = true
26
+ s.rubyforge_project = "<%= app %>"
27
27
  #s.bindir = "bin"
28
28
  #s.executables << "<%= app %>"
29
- #s.default_executable = ""
30
29
  #s.add_dependency("", "")
31
30
  #s.add_dependency("", "")
32
31
  #s.extensions << ""
33
- s.extra_rdoc_files = ["README"]
34
- s.has_rdoc = true
35
- #s.platform = "Gem::Platform::Ruby"
36
32
  #s.required_ruby_version = ">= 1.8.6"
33
+ #s.default_executable = ""
34
+ #s.platform = "Gem::Platform::Ruby"
37
35
  #s.requirements << "An ice cold beer."
38
36
  #s.requirements << "Some free time!"
39
- s.rubyforge_project = "<%= app %>"
40
37
  end
41
38
 
42
39
  # rake package
@@ -44,7 +41,6 @@ Rake::GemPackageTask.new(@gem_spec) do |pkg|
44
41
  pkg.need_zip = false
45
42
  pkg.need_tar = false
46
43
  rm_f FileList['pkg/**/*.*']
47
- File.open(File.join(File.dirname(__FILE__), '<%= app %>.gemspec'), 'w') {|f| f.puts @gem_spec.to_ruby}
48
44
  end
49
45
 
50
46
  # rake
@@ -55,8 +51,13 @@ Spec::Rake::SpecTask.new(:default) do |t|
55
51
  t.spec_files = Dir.glob('test/**/*_spec.rb')
56
52
  end
57
53
 
54
+ desc 'regenerate the gemspec'
55
+ task :gemspec do
56
+ File.open(File.join(File.dirname(__FILE__), '<%= app %>.gemspec'), 'w') {|f| f.puts @gem_spec.to_ruby}
57
+ end
58
+
58
59
  desc "Install the gem"
59
- task :install => [:package] do |t|
60
+ task :install => [:gemspec, :package] do |t|
60
61
  sudo = ENV['SUDOLESS'] == 'true' || RUBY_PLATFORM =~ /win32|cygwin/ ? '' : 'sudo'
61
62
  puts `#{sudo} gem install #{File.join("pkg", @gem_spec.name)}-#{@gem_spec.version}.gem --no-update-sources --no-ri --no-rdoc`
62
63
  end
@@ -1,3 +1,3 @@
1
1
  Dir.glob(File.join(File.dirname(__FILE__), '<%= app %>', '**/*.rb')).each do |f|
2
- require f
2
+ require File.expand_path(f)
3
3
  end
@@ -0,0 +1,24 @@
1
+ require 'rubygems'
2
+ require 'spec'
3
+
4
+ require File.join(File.dirname(__FILE__), '..', 'lib', '<%= app %>')
5
+
6
+ Spec::Runner.configure do |config|
7
+
8
+ config.before(:all) do
9
+
10
+ end
11
+
12
+ config.after(:all) do
13
+
14
+ end
15
+
16
+ config.before(:each) do
17
+
18
+ end
19
+
20
+ config.after(:each) do
21
+
22
+ end
23
+
24
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: markbates-gemstub
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.18
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Bates
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-01-13 00:00:00 -08:00
12
+ date: 2009-01-27 00:00:00 -08:00
13
13
  default_executable: gemstub
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -30,6 +30,15 @@ dependencies:
30
30
  - !ruby/object:Gem::Version
31
31
  version: "0"
32
32
  version:
33
+ - !ruby/object:Gem::Dependency
34
+ name: rubyforge
35
+ version_requirement:
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: "0"
41
+ version:
33
42
  description:
34
43
  email: mark@markbates.com
35
44
  executables:
@@ -44,12 +53,10 @@ files:
44
53
  - lib/templates/%=app%/lib/%=app%.rb.template
45
54
  - lib/templates/%=app%/Rakefile.template
46
55
  - lib/templates/%=app%/README.template
47
- - lib/templates/%=app%/test/lib/%=app%_spec.rb.template
48
- - lib/templates/%=app%/test/spec.opts.template
49
- - lib/templates/%=app%/test/spec_helper.rb.template
56
+ - lib/templates/%=app%/spec/lib/%=app%_spec.rb.template
57
+ - lib/templates/%=app%/spec/spec.opts.template
58
+ - lib/templates/%=app%/spec/spec_helper.rb.template
50
59
  - README
51
- - test/foo_test.rb
52
- - test/test_helper.rb
53
60
  - bin/gemstub
54
61
  has_rdoc: false
55
62
  homepage: http://www.mackframework.com
@@ -78,6 +85,5 @@ rubygems_version: 1.2.0
78
85
  signing_key:
79
86
  specification_version: 2
80
87
  summary: "Gemstub is a very simple tool for creating the stub code you need to build a gem. Usage: at a command prompt simply type: gemstub your_gem_name_here That's it, after that, you all you have to do is the actual coding of your gem! Enjoy!"
81
- test_files:
82
- - test/foo_test.rb
83
- - test/test_helper.rb
88
+ test_files: []
89
+
@@ -1,4 +0,0 @@
1
- require 'rubygems'
2
- require 'spec'
3
-
4
- require File.join(File.dirname(__FILE__), '..', 'lib', '<%= app %>')
data/test/foo_test.rb DELETED
@@ -1,16 +0,0 @@
1
- require File.dirname(__FILE__) + '/test_helper.rb'
2
-
3
- class FooTest < Test::Unit::TestCase
4
-
5
- def setup
6
- end
7
-
8
- def teardown
9
- end
10
-
11
- # replace this with tests of your own.
12
- def test_truth
13
- assert true
14
- end
15
-
16
- end
data/test/test_helper.rb DELETED
@@ -1,8 +0,0 @@
1
- require "test/unit"
2
-
3
- class Test::Unit::TestCase
4
-
5
- # place common methods, assertions, and other type things in this file so
6
- # other tests will have access to them.
7
-
8
- end