simple-gem 0.4.2 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
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
- Ideally:
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 github</tt> - Generate <tt>my_gem.gemspec</tt> file to use if you're serving your gem from GitHub (requires flagging your GitHub project as a rubygem).
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
@@ -2,8 +2,8 @@ module SimpleGem
2
2
  module Version
3
3
 
4
4
  MAJOR = 0
5
- MINOR = 4
6
- TINY = 2
5
+ MINOR = 5
6
+ TINY = 0
7
7
 
8
8
  def self.to_s
9
9
  [MAJOR, MINOR, TINY].join('.')
@@ -43,15 +43,6 @@ begin
43
43
  task :default => :coverage
44
44
 
45
45
  rescue LoadError
46
- warn "\n**** Install rcov (sudo gem install relevance-rcov) to get coverage stats ****\n"
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
@@ -2,6 +2,7 @@
2
2
  $:.reject! { |e| e.include? 'TextMate' }
3
3
 
4
4
  require 'rubygems'
5
- require 'throat_punch'
5
+ require 'test/unit'
6
+ require 'shoulda'
6
7
 
7
8
  require File.dirname(__FILE__) + '/../lib/<%= self.ruby_name %>'
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.2
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: 2009-09-30 00:00:00 -04:00
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.4
63
+ rubygems_version: 1.3.5
64
64
  signing_key:
65
65
  specification_version: 3
66
66
  summary: Make gems. Simple.