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 +1 -0
- data/Gemfile +2 -0
- data/Gemfile.lock +5 -3
- data/Rakefile +4 -0
- data/ggem.gemspec +1 -1
- data/lib/ggem/template.rb +1 -1
- data/lib/ggem/template_file/Gemfile.erb +2 -0
- data/lib/ggem/template_file/Rakefile.erb +2 -0
- data/lib/ggem/template_file/gemspec.erb +1 -1
- data/lib/ggem/template_file/gitignore.erb +2 -1
- data/lib/ggem/template_file/test.rb.erb +1 -1
- data/lib/ggem/template_file/test_helper.rb.erb +2 -4
- data/lib/ggem/template_file/test_irb.rb.erb +10 -0
- data/lib/ggem/version.rb +1 -1
- data/test/gem_test.rb +2 -2
- data/test/helper.rb +3 -3
- data/test/irb.rb +10 -0
- data/test/name_set.rb +1 -1
- metadata +17 -18
- data/lib/ggem/template_file/test_env.rb.erb +0 -10
- data/test/env.rb +0 -9
data/.gitignore
CHANGED
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
ggem (1.0
|
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
|
-
|
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
|
-
|
20
|
+
rake (~> 0.9.2)
|
21
|
+
test-belt (~> 2.0)
|
data/Rakefile
CHANGED
data/ggem.gemspec
CHANGED
data/lib/ggem/template.rb
CHANGED
@@ -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('
|
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
|
@@ -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", ["
|
21
|
+
s.add_development_dependency("test-belt", ["~> 2.0"])
|
22
22
|
# s.add_dependency("gem-name", ["~> 0.0"])
|
23
23
|
end
|
@@ -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 %>'
|
data/lib/ggem/version.rb
CHANGED
data/test/gem_test.rb
CHANGED
data/test/helper.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
require '
|
2
|
-
|
3
|
-
require '
|
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")
|
data/test/irb.rb
ADDED
@@ -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'
|
data/test/name_set.rb
CHANGED
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:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
|
-
- 0
|
9
8
|
- 1
|
10
|
-
|
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-
|
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:
|
41
|
+
hash: 3
|
44
42
|
segments:
|
45
|
-
-
|
43
|
+
- 2
|
46
44
|
- 0
|
47
|
-
|
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
|
-
|
data/test/env.rb
DELETED
@@ -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'
|