ggem 1.0.1 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -2,3 +2,4 @@ pkg/*
2
2
  .bundle
3
3
  *.gem
4
4
  *.log
5
+ .rvmrc
data/Gemfile CHANGED
@@ -2,3 +2,5 @@ source "http://rubygems.org"
2
2
 
3
3
  # Specify your gem's dependencies in kelredd-simple-gem.gemspec
4
4
  gemspec
5
+
6
+ gem 'rake', '~>0.9.2'
@@ -1,14 +1,15 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ggem (1.0.1)
4
+ ggem (1.1.0)
5
5
  bundler (~> 1.0)
6
6
 
7
7
  GEM
8
8
  remote: http://rubygems.org/
9
9
  specs:
10
10
  leftright (0.9.1)
11
- test-belt (1.0.1)
11
+ rake (0.9.2)
12
+ test-belt (2.0.0)
12
13
  leftright (~> 0.9.0)
13
14
 
14
15
  PLATFORMS
@@ -16,4 +17,5 @@ PLATFORMS
16
17
 
17
18
  DEPENDENCIES
18
19
  ggem!
19
- test-belt (= 1.0.1)
20
+ rake (~> 0.9.2)
21
+ test-belt (~> 2.0)
data/Rakefile CHANGED
@@ -1,5 +1,9 @@
1
+ include Rake::DSL
2
+
1
3
  require 'bundler'
2
4
  Bundler::GemHelper.install_tasks
3
5
 
4
6
  require 'test_belt/rake_tasks'
5
7
  TestBelt::RakeTasks.for :test
8
+
9
+ task :default => :build
@@ -18,5 +18,5 @@ Gem::Specification.new do |s|
18
18
  s.require_paths = ["lib"]
19
19
 
20
20
  s.add_dependency("bundler", ["~> 1.0"])
21
- s.add_development_dependency("test-belt", ["= 1.0.1"])
21
+ s.add_development_dependency("test-belt", ["~> 2.0"])
22
22
  end
@@ -22,7 +22,7 @@ module GGem
22
22
  save_file('lib.rb.erb', "lib/#{@gem.ruby_name}.rb")
23
23
  save_file('lib_version.rb.erb', "lib/#{@gem.ruby_name}/version.rb")
24
24
 
25
- save_file('test_env.rb.erb', 'test/env.rb')
25
+ save_file('test_irb.rb.erb', 'test/irb.rb')
26
26
  save_file('test_helper.rb.erb', 'test/helper.rb')
27
27
  save_file('test.rb.erb', "test/#{@gem.ruby_name}_test.rb")
28
28
  end
@@ -2,3 +2,5 @@ source "http://rubygems.org"
2
2
 
3
3
  # Specify dependencies in <%= @gem.name %>.gemspec
4
4
  gemspec
5
+
6
+ gem 'rake', '~>0.9.2'
@@ -1,3 +1,5 @@
1
+ include Rake::DSL
2
+
1
3
  require 'bundler'
2
4
  Bundler::GemHelper.install_tasks
3
5
 
@@ -18,6 +18,6 @@ Gem::Specification.new do |s|
18
18
  s.require_paths = ["lib"]
19
19
 
20
20
  s.add_development_dependency("bundler", ["~> 1.0"])
21
- s.add_development_dependency("test-belt", ["= 1.0.1"]) # TODO: lock to a specific version for test stability
21
+ s.add_development_dependency("test-belt", ["~> 2.0"])
22
22
  # s.add_dependency("gem-name", ["~> 0.0"])
23
23
  end
@@ -1,4 +1,5 @@
1
1
  pkg/*
2
2
  .bundle
3
3
  *.gem
4
- *.log
4
+ *.log
5
+ .rvmrc
@@ -1,4 +1,4 @@
1
- require "test/helper"
1
+ require "test_belt"
2
2
 
3
3
  class <%= @gem.module_name %>Test < Test::Unit::TestCase
4
4
  include TestBelt
@@ -1,5 +1,3 @@
1
- require 'rubygems'
2
- require 'test_belt'
3
- require 'test/env'
1
+ # this file is automatically required in when you require 'test_belt'
2
+ # put test helpers here
4
3
 
5
- # TODO: setup test environment here
@@ -0,0 +1,10 @@
1
+ require 'test_belt'
2
+
3
+ # this file is required in when the 'irb' rake test is run.
4
+ # b/c 'test_belt' is required above, lib and test dirs will
5
+ # be added to the LOAD_PATH and the test helper will be
6
+ # required in.
7
+
8
+ # put any IRB setup code here
9
+
10
+ require '<%= @gem.ruby_name %>'
@@ -1,3 +1,3 @@
1
1
  module SimpleGem
2
- VERSION = "1.0.1"
2
+ VERSION = "1.1.0"
3
3
  end
@@ -1,5 +1,5 @@
1
- require "test/helper"
2
- require "test/name_set"
1
+ require "test_belt"
2
+ require "name_set"
3
3
 
4
4
  module GGem
5
5
  class GGemTest < Test::Unit::TestCase
@@ -1,6 +1,6 @@
1
- require 'rubygems'
2
- require 'test_belt'
3
- require 'test/env'
1
+ # this file is automatically required in when you require 'test_belt'
2
+ # put test helpers here
3
+ require 'ggem'
4
4
 
5
5
  class Test::Unit::TestCase
6
6
  TMP_PATH = File.expand_path("#{File.dirname(__FILE__)}/../tmp")
@@ -0,0 +1,10 @@
1
+ require 'test_belt'
2
+
3
+ # this file is required in when the 'irb' rake test is run.
4
+ # b/c 'test_belt' is required above, lib and test dirs will
5
+ # be added to the LOAD_PATH and the test helper will be
6
+ # required in.
7
+
8
+ # put any IRB setup code here
9
+
10
+ require 'ggem'
@@ -24,7 +24,7 @@ module GGem
24
24
  "lib/#{@ruby_name}/version.rb",
25
25
 
26
26
  "test/helper.rb",
27
- "test/env.rb",
27
+ "test/irb.rb",
28
28
  "test/#{@ruby_name}_test.rb"
29
29
  ]
30
30
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ggem
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
- - 0
9
8
  - 1
10
- version: 1.0.1
9
+ - 0
10
+ version: 1.1.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Kelly Redding
@@ -15,11 +15,9 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-05-14 00:00:00 Z
18
+ date: 2011-07-26 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
- name: bundler
22
- prerelease: false
23
21
  requirement: &id001 !ruby/object:Gem::Requirement
24
22
  none: false
25
23
  requirements:
@@ -30,24 +28,25 @@ dependencies:
30
28
  - 1
31
29
  - 0
32
30
  version: "1.0"
33
- type: :runtime
34
31
  version_requirements: *id001
35
- - !ruby/object:Gem::Dependency
36
- name: test-belt
37
32
  prerelease: false
33
+ name: bundler
34
+ type: :runtime
35
+ - !ruby/object:Gem::Dependency
38
36
  requirement: &id002 !ruby/object:Gem::Requirement
39
37
  none: false
40
38
  requirements:
41
- - - "="
39
+ - - ~>
42
40
  - !ruby/object:Gem::Version
43
- hash: 21
41
+ hash: 3
44
42
  segments:
45
- - 1
43
+ - 2
46
44
  - 0
47
- - 1
48
- version: 1.0.1
49
- type: :development
45
+ version: "2.0"
50
46
  version_requirements: *id002
47
+ prerelease: false
48
+ name: test-belt
49
+ type: :development
51
50
  description: Quickly, easily, consistantly generate a ruby gem project ready to build, test, and deploy. Uses Bundler's gem building features.
52
51
  email:
53
52
  - kelly@kelredd.com
@@ -76,12 +75,12 @@ files:
76
75
  - lib/ggem/template_file/lib.rb.erb
77
76
  - lib/ggem/template_file/lib_version.rb.erb
78
77
  - lib/ggem/template_file/test.rb.erb
79
- - lib/ggem/template_file/test_env.rb.erb
80
78
  - lib/ggem/template_file/test_helper.rb.erb
79
+ - lib/ggem/template_file/test_irb.rb.erb
81
80
  - lib/ggem/version.rb
82
- - test/env.rb
83
81
  - test/gem_test.rb
84
82
  - test/helper.rb
83
+ - test/irb.rb
85
84
  - test/name_set.rb
86
85
  homepage: http://github.com/kelredd/ggem
87
86
  licenses: []
@@ -117,7 +116,7 @@ signing_key:
117
116
  specification_version: 3
118
117
  summary: "\"Juh Gem\", baby! (this makes gems)"
119
118
  test_files:
120
- - test/env.rb
121
119
  - test/gem_test.rb
122
120
  - test/helper.rb
121
+ - test/irb.rb
123
122
  - test/name_set.rb
@@ -1,10 +0,0 @@
1
- # Add test and lib paths to the $LOAD_PATH
2
- [ File.dirname(__FILE__),
3
- File.join(File.dirname(__FILE__), '..', 'lib')
4
- ].each do |path|
5
- full_path = File.expand_path(path)
6
- $LOAD_PATH.unshift(full_path) unless $LOAD_PATH.include?(full_path)
7
- end
8
-
9
- require '<%= @gem.ruby_name %>'
10
-
@@ -1,9 +0,0 @@
1
- # Add test and lib paths to the $LOAD_PATH
2
- [ File.dirname(__FILE__),
3
- File.join(File.dirname(__FILE__), '..', 'lib')
4
- ].each do |path|
5
- full_path = File.expand_path(path)
6
- $LOAD_PATH.unshift(full_path) unless $LOAD_PATH.include?(full_path)
7
- end
8
-
9
- require 'ggem'