simple-gem 0.4.2 → 0.5.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.
- data/README.rdoc +3 -12
- data/Rakefile +1 -10
- data/lib/simple_gem/version.rb +2 -2
- data/templates/Rakefile.erb +2 -11
- data/templates/test_helper.rb.erb +2 -1
- metadata +3 -3
data/README.rdoc
CHANGED
@@ -6,17 +6,8 @@ Creating RubyGems is fun work, but dealing with the complexity of hoe / bones /
|
|
6
6
|
|
7
7
|
== Installation
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
sudo gem install reagent-simple-gem --source=http://gems.github.com
|
12
|
-
|
13
|
-
But GitHub doesn't seem to consistently build gems, so use this as a fallback:
|
14
|
-
|
15
|
-
$ git clone git://github.com/reagent/simple-gem.git
|
16
|
-
$ cd simple-gem
|
17
|
-
$ rake gem
|
18
|
-
$ sudo gem install pkg/simple-gem-x.x.x.gem
|
19
|
-
|
9
|
+
$ sudo gem install simple-gem
|
10
|
+
|
20
11
|
== Usage
|
21
12
|
|
22
13
|
$ simple-gem my-gem
|
@@ -29,7 +20,7 @@ Your new gem provides some Rake tasks for convenience:
|
|
29
20
|
|
30
21
|
* <tt>rake gem</tt> - Build the gem and drop it into the <tt>pkg/</tt> directory for installation.
|
31
22
|
* <tt>rake test</tt> - The default test task, it will run the tests in <tt>test</tt>. If this is a newly-created gem, your tests will flunk.
|
32
|
-
* <tt>rake
|
23
|
+
* <tt>rake coverage</tt> - If RCov is installed on your system, this will run all tests and report coverage. This replaces the default test task.
|
33
24
|
|
34
25
|
That's it. Enjoy.
|
35
26
|
|
data/Rakefile
CHANGED
@@ -28,13 +28,4 @@ Rake::TestTask.new do |t|
|
|
28
28
|
t.libs << 'test'
|
29
29
|
t.test_files = FileList["test/**/*_test.rb"]
|
30
30
|
t.verbose = true
|
31
|
-
end
|
32
|
-
|
33
|
-
desc 'Generate the gemspec for the Gem (useful when serving from Github)'
|
34
|
-
task :gemspec do
|
35
|
-
file = File.dirname(__FILE__) + "/#{spec.name}.gemspec"
|
36
|
-
File.open(file, 'w') {|f| f << spec.to_ruby }
|
37
|
-
puts "Created gemspec: #{file}"
|
38
|
-
end
|
39
|
-
|
40
|
-
task :github => :gemspec
|
31
|
+
end
|
data/lib/simple_gem/version.rb
CHANGED
data/templates/Rakefile.erb
CHANGED
@@ -43,15 +43,6 @@ begin
|
|
43
43
|
task :default => :coverage
|
44
44
|
|
45
45
|
rescue LoadError
|
46
|
-
warn "\n**** Install rcov (
|
46
|
+
warn "\n**** Install rcov (gem install rcov) to get coverage stats ****\n"
|
47
47
|
task :default => :test
|
48
|
-
end
|
49
|
-
|
50
|
-
desc 'Generate the gemspec for the Gem (useful when serving from Github)'
|
51
|
-
task :gemspec do
|
52
|
-
file = File.dirname(__FILE__) + "/#{spec.name}.gemspec"
|
53
|
-
File.open(file, 'w') {|f| f << spec.to_ruby }
|
54
|
-
puts "Created gemspec: #{file}"
|
55
|
-
end
|
56
|
-
|
57
|
-
task :github => :gemspec
|
48
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple-gem
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Patrick Reagan
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date:
|
12
|
+
date: 2010-01-31 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -60,7 +60,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
60
60
|
requirements: []
|
61
61
|
|
62
62
|
rubyforge_project:
|
63
|
-
rubygems_version: 1.3.
|
63
|
+
rubygems_version: 1.3.5
|
64
64
|
signing_key:
|
65
65
|
specification_version: 3
|
66
66
|
summary: Make gems. Simple.
|