hoe-gemcutter 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,6 @@
1
+ === 1.0.0 / 2009-11-13
2
+
3
+ * 1 major enhancement
4
+
5
+ * Birthday!
6
+
@@ -0,0 +1,6 @@
1
+ History.txt
2
+ Manifest.txt
3
+ README.txt
4
+ Rakefile
5
+ lib/hoe/gemcutter.rb
6
+ test/test_hoe_gemcutter.rb
@@ -0,0 +1,49 @@
1
+ = hoe_gemcutter
2
+
3
+ * http://github.com/raggi/hoe-gemcutter
4
+
5
+ == DESCRIPTION:
6
+
7
+ Adds gemcutter release automation to Hoe.
8
+
9
+ == FEATURES/PROBLEMS:
10
+
11
+ * task :release_to_gemcutter
12
+
13
+ == SYNOPSIS:
14
+
15
+ Hoe.plugin :gemcutter
16
+
17
+ == REQUIREMENTS:
18
+
19
+ * Hoe
20
+ * Gemcutter
21
+
22
+ == INSTALL:
23
+
24
+ * gem install hoe-gemcutter
25
+
26
+ == LICENSE:
27
+
28
+ (The MIT License)
29
+
30
+ Copyright (c) 2009 James Tucker
31
+
32
+ Permission is hereby granted, free of charge, to any person obtaining
33
+ a copy of this software and associated documentation files (the
34
+ 'Software'), to deal in the Software without restriction, including
35
+ without limitation the rights to use, copy, modify, merge, publish,
36
+ distribute, sublicense, and/or sell copies of the Software, and to
37
+ permit persons to whom the Software is furnished to do so, subject to
38
+ the following conditions:
39
+
40
+ The above copyright notice and this permission notice shall be
41
+ included in all copies or substantial portions of the Software.
42
+
43
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
44
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
45
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
46
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
47
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
48
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
49
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,18 @@
1
+ #!/usr/bin/env rake
2
+ # -*- ruby -*-
3
+
4
+ require 'hoe'
5
+
6
+ Hoe.plugin :doofus, :git, :gemcutter
7
+
8
+ Hoe.spec 'hoe-gemcutter' do
9
+ developer('James Tucker', 'jftucker@gmail.com')
10
+ extra_deps << %w(hoe >=2.3.3)
11
+ extra_deps << %w(gemcutter >=0.1.3)
12
+ extra_dev_deps << %w(hoe-doofus >=1.0.0)
13
+ extra_dev_deps << %w(hoe-git >=1.3.0)
14
+ extra_dev_deps << %w(hoe-gemcutter >=1.0.0)
15
+ self.rubyforge_name = 'libraggi'
16
+ end
17
+
18
+ # vim: syntax=ruby
@@ -0,0 +1,21 @@
1
+ require 'rake'
2
+
3
+ class Hoe #:nodoc:
4
+ module Gemcutter
5
+ VERSION = '1.0.0'
6
+
7
+ def define_gemcutter_tasks
8
+ desc "Push gem to gemcutter."
9
+ task :release_to_gemcutter => [:clean, :package, :release_sanity] do
10
+ pkg = "pkg/#{spec.name}-#{spec.version}"
11
+ gems = Dir["#{pkg}*.gem"]
12
+ gems.each do |g|
13
+ # TODO - once gemcutter supports command invocation, use it.
14
+ sh "gem push #{g}"
15
+ end
16
+ end
17
+
18
+ task :release_to => :release_to_gemcutter
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,14 @@
1
+ require "test/unit"
2
+ require "hoe/gemcutter"
3
+
4
+ class TestHoeGemcutter < Test::Unit::TestCase
5
+ include Hoe::Gemcutter
6
+
7
+ def test_tasks_defined
8
+ define_gemcutter_tasks
9
+ assert Rake::Task[:release_to_gemcutter]
10
+ assert Rake::Task[:release_to].prerequisites.include?('release_to_gemcutter')
11
+ end
12
+
13
+ # TODO add tests for push once using gemcutters command directly.
14
+ end
metadata ADDED
@@ -0,0 +1,123 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: hoe-gemcutter
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - James Tucker
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-11-13 00:00:00 +00:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: hoe
17
+ type: :runtime
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: 2.3.3
24
+ version:
25
+ - !ruby/object:Gem::Dependency
26
+ name: gemcutter
27
+ type: :runtime
28
+ version_requirement:
29
+ version_requirements: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 0.1.3
34
+ version:
35
+ - !ruby/object:Gem::Dependency
36
+ name: hoe-doofus
37
+ type: :development
38
+ version_requirement:
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: 1.0.0
44
+ version:
45
+ - !ruby/object:Gem::Dependency
46
+ name: hoe-git
47
+ type: :development
48
+ version_requirement:
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: 1.3.0
54
+ version:
55
+ - !ruby/object:Gem::Dependency
56
+ name: hoe-gemcutter
57
+ type: :development
58
+ version_requirement:
59
+ version_requirements: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - ">="
62
+ - !ruby/object:Gem::Version
63
+ version: 1.0.0
64
+ version:
65
+ - !ruby/object:Gem::Dependency
66
+ name: hoe
67
+ type: :development
68
+ version_requirement:
69
+ version_requirements: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - ">="
72
+ - !ruby/object:Gem::Version
73
+ version: 2.3.3
74
+ version:
75
+ description: Adds gemcutter release automation to Hoe.
76
+ email:
77
+ - jftucker@gmail.com
78
+ executables: []
79
+
80
+ extensions: []
81
+
82
+ extra_rdoc_files:
83
+ - History.txt
84
+ - Manifest.txt
85
+ - README.txt
86
+ files:
87
+ - History.txt
88
+ - Manifest.txt
89
+ - README.txt
90
+ - Rakefile
91
+ - lib/hoe/gemcutter.rb
92
+ - test/test_hoe_gemcutter.rb
93
+ has_rdoc: true
94
+ homepage: http://github.com/raggi/hoe-gemcutter
95
+ licenses: []
96
+
97
+ post_install_message:
98
+ rdoc_options:
99
+ - --main
100
+ - README.txt
101
+ require_paths:
102
+ - lib
103
+ required_ruby_version: !ruby/object:Gem::Requirement
104
+ requirements:
105
+ - - ">="
106
+ - !ruby/object:Gem::Version
107
+ version: "0"
108
+ version:
109
+ required_rubygems_version: !ruby/object:Gem::Requirement
110
+ requirements:
111
+ - - ">="
112
+ - !ruby/object:Gem::Version
113
+ version: "0"
114
+ version:
115
+ requirements: []
116
+
117
+ rubyforge_project: libraggi
118
+ rubygems_version: 1.3.5
119
+ signing_key:
120
+ specification_version: 3
121
+ summary: Adds gemcutter release automation to Hoe.
122
+ test_files:
123
+ - test/test_hoe_gemcutter.rb