mg 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.mkd +8 -6
  2. data/lib/mg.rb +12 -3
  3. metadata +18 -9
data/README.mkd CHANGED
@@ -1,9 +1,8 @@
1
1
  mg
2
2
  ==
3
3
 
4
- Minimalist way to build [gems](http://rubygems.org) and publish them to
5
- [Gemcutter](http://gemcutter.org) using [Rake](http://rake.rubyforge.org).
6
- Also build tarballs.
4
+ Minimalist way to build and publish [gems](http://rubygems.org) using
5
+ [Rake](http://rake.rubyforge.org). Also build tarballs.
7
6
 
8
7
  Usage
9
8
  -----
@@ -15,10 +14,13 @@ In your Rakefile:
15
14
 
16
15
  The following tasks are now available:
17
16
 
18
- rake gemcutter
19
- Push to the gem to gemcutter
17
+ rake gem
18
+ Build gem into dist/
20
19
 
21
- rake install
20
+ rake gem:publish
21
+ Push the gem to RubyGems.org
22
+
23
+ rake gem:install
22
24
  Build and install as local gem
23
25
 
24
26
  rake package
data/lib/mg.rb CHANGED
@@ -32,10 +32,13 @@ class MG < Rake::TaskLib
32
32
  CLOBBER.include("dist")
33
33
 
34
34
  desc "Build and install as local gem"
35
- task :install => package(".gem") do
35
+ task "gem:install" => package(".gem") do
36
36
  sh "gem install #{package(".gem")}"
37
37
  end
38
38
 
39
+ desc "Build gem into dist/"
40
+ task :gem => package('.gem')
41
+
39
42
  desc "Build gem and tarball into dist/"
40
43
  task :package => %w(.gem .tar.gz).map { |ext| package(ext) }
41
44
 
@@ -55,9 +58,15 @@ class MG < Rake::TaskLib
55
58
  mv File.basename(f.name), f.name
56
59
  end
57
60
 
58
- desc "Push the gem to gemcutter"
59
- task :gemcutter => package(".gem") do
61
+ desc "Push the gem to RubyGems.org"
62
+ task "gem:publish" => package(".gem") do
63
+ Rake::Task[:test].invoke if Rake::Task.task_defined?(:test)
64
+ Rake::Task[:spec].invoke if Rake::Task.task_defined?(:spec)
65
+
60
66
  sh "gem push #{package(".gem")}"
61
67
  end
68
+
69
+ # Legacy
70
+ task :gemcutter => :publish
62
71
  end
63
72
  end
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mg
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 0
8
+ - 8
9
+ version: 0.0.8
5
10
  platform: ruby
6
11
  authors:
7
12
  - Ryan Tomayko
@@ -12,19 +17,21 @@ autorequire:
12
17
  bindir: bin
13
18
  cert_chain: []
14
19
 
15
- date: 2010-01-22 00:00:00 +01:00
20
+ date: 2010-04-08 00:00:00 -07:00
16
21
  default_executable:
17
22
  dependencies:
18
23
  - !ruby/object:Gem::Dependency
19
24
  name: rake
20
- type: :runtime
21
- version_requirement:
22
- version_requirements: !ruby/object:Gem::Requirement
25
+ prerelease: false
26
+ requirement: &id001 !ruby/object:Gem::Requirement
23
27
  requirements:
24
28
  - - ">="
25
29
  - !ruby/object:Gem::Version
30
+ segments:
31
+ - 0
26
32
  version: "0"
27
- version:
33
+ type: :runtime
34
+ version_requirements: *id001
28
35
  description: minimal gem
29
36
  email: simon@rozet.name
30
37
  executables: []
@@ -49,18 +56,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
49
56
  requirements:
50
57
  - - ">="
51
58
  - !ruby/object:Gem::Version
59
+ segments:
60
+ - 0
52
61
  version: "0"
53
- version:
54
62
  required_rubygems_version: !ruby/object:Gem::Requirement
55
63
  requirements:
56
64
  - - ">="
57
65
  - !ruby/object:Gem::Version
66
+ segments:
67
+ - 0
58
68
  version: "0"
59
- version:
60
69
  requirements: []
61
70
 
62
71
  rubyforge_project:
63
- rubygems_version: 1.3.5
72
+ rubygems_version: 1.3.6
64
73
  signing_key:
65
74
  specification_version: 3
66
75
  summary: minimal gem