echoe 3.2 → 4.0

Sign up to get free protection for your applications and to get access to all the features.
data.tar.gz.sig CHANGED
Binary file
data/CHANGELOG CHANGED
@@ -1,4 +1,6 @@
1
1
 
2
+ v4.0. Use gemcutter. Dump Rubyforge.
3
+
2
4
  v3.2. Sort manifest.
3
5
 
4
6
  v3.1.3. Removing Evan's keychain so GitHub can build the gem. Version bump to force GitHub to re-generate gem.
data/Manifest CHANGED
@@ -7,9 +7,7 @@ Rakefile
7
7
  TODO
8
8
  echoe.gemspec
9
9
  lib/echoe.rb
10
- lib/echoe/client.rb
11
10
  lib/echoe/extensions.rb
12
- lib/echoe/net.rb
13
11
  lib/echoe/platform.rb
14
12
  lib/echoe/rubygems.rb
15
13
  vendor/rake/MIT-LICENSE
data/Rakefile CHANGED
@@ -7,7 +7,7 @@ Echoe.new('echoe') do |p|
7
7
  p.summary = 'A Rubygems packaging tool that provides Rake tasks for documentation, extension compiling, testing, and deployment.'
8
8
  p.url = 'http://blog.evanweaver.com/files/doc/fauna/echoe/'
9
9
  p.docs_host = 'blog.evanweaver.com:~/www/bax/public/files/doc/'
10
- p.runtime_dependencies = ['rubyforge >=1.0.2', 'highline']
10
+ p.runtime_dependencies = ['gemcutter', 'highline']
11
11
  p.development_dependencies = []
12
12
  p.retain_gemspec = true
13
13
  end
@@ -2,16 +2,16 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{echoe}
5
- s.version = "3.2"
5
+ s.version = "4.0"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Evan Weaver"]
9
9
  s.cert_chain = ["/Users/eweaver/p/configuration/gem_certificates/evan_weaver-original-public_cert.pem"]
10
- s.date = %q{2009-11-18}
10
+ s.date = %q{2009-12-22}
11
11
  s.description = %q{A Rubygems packaging tool that provides Rake tasks for documentation, extension compiling, testing, and deployment.}
12
12
  s.email = %q{}
13
- s.extra_rdoc_files = ["CHANGELOG", "LICENSE", "README", "TODO", "lib/echoe.rb", "lib/echoe/client.rb", "lib/echoe/extensions.rb", "lib/echoe/net.rb", "lib/echoe/platform.rb", "lib/echoe/rubygems.rb"]
14
- s.files = ["CHANGELOG", "LICENSE", "MIT-LICENSE", "Manifest", "README", "Rakefile", "TODO", "echoe.gemspec", "lib/echoe.rb", "lib/echoe/client.rb", "lib/echoe/extensions.rb", "lib/echoe/net.rb", "lib/echoe/platform.rb", "lib/echoe/rubygems.rb", "vendor/rake/MIT-LICENSE", "vendor/rake/lib/rake/contrib/compositepublisher.rb", "vendor/rake/lib/rake/contrib/ftptools.rb", "vendor/rake/lib/rake/contrib/publisher.rb", "vendor/rake/lib/rake/contrib/rubyforgepublisher.rb", "vendor/rake/lib/rake/contrib/sshpublisher.rb", "vendor/rake/lib/rake/contrib/sys.rb"]
13
+ s.extra_rdoc_files = ["CHANGELOG", "LICENSE", "README", "TODO", "lib/echoe.rb", "lib/echoe/extensions.rb", "lib/echoe/platform.rb", "lib/echoe/rubygems.rb"]
14
+ s.files = ["CHANGELOG", "LICENSE", "MIT-LICENSE", "Manifest", "README", "Rakefile", "TODO", "echoe.gemspec", "lib/echoe.rb", "lib/echoe/extensions.rb", "lib/echoe/platform.rb", "lib/echoe/rubygems.rb", "vendor/rake/MIT-LICENSE", "vendor/rake/lib/rake/contrib/compositepublisher.rb", "vendor/rake/lib/rake/contrib/ftptools.rb", "vendor/rake/lib/rake/contrib/publisher.rb", "vendor/rake/lib/rake/contrib/rubyforgepublisher.rb", "vendor/rake/lib/rake/contrib/sshpublisher.rb", "vendor/rake/lib/rake/contrib/sys.rb"]
15
15
  s.homepage = %q{http://blog.evanweaver.com/files/doc/fauna/echoe/}
16
16
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Echoe", "--main", "README"]
17
17
  s.require_paths = ["lib"]
@@ -25,14 +25,14 @@ Gem::Specification.new do |s|
25
25
  s.specification_version = 3
26
26
 
27
27
  if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
28
- s.add_runtime_dependency(%q<rubyforge>, [">= 1.0.2"])
28
+ s.add_runtime_dependency(%q<gemcutter>, [">= 0"])
29
29
  s.add_runtime_dependency(%q<highline>, [">= 0"])
30
30
  else
31
- s.add_dependency(%q<rubyforge>, [">= 1.0.2"])
31
+ s.add_dependency(%q<gemcutter>, [">= 0"])
32
32
  s.add_dependency(%q<highline>, [">= 0"])
33
33
  end
34
34
  else
35
- s.add_dependency(%q<rubyforge>, [">= 1.0.2"])
35
+ s.add_dependency(%q<gemcutter>, [">= 0"])
36
36
  s.add_dependency(%q<highline>, [">= 0"])
37
37
  end
38
38
  end
@@ -1,6 +1,5 @@
1
1
 
2
2
  $HERE = File.dirname(__FILE__)
3
- require "#{$HERE}/echoe/platform"
4
3
 
5
4
  require 'rake'
6
5
  require 'rake/clean'
@@ -21,10 +20,7 @@ require "#{$HERE}/echoe/extensions"
21
20
  require 'rubygems'
22
21
  require 'rubygems/specification'
23
22
  require "#{$HERE}/echoe/rubygems"
24
-
25
- require 'rubyforge'
26
- require "#{$HERE}/echoe/net"
27
- require "#{$HERE}/echoe/client"
23
+ require 'rubygems_plugin'
28
24
 
29
25
  require 'highline/import'
30
26
 
@@ -139,7 +135,7 @@ Security options:
139
135
 
140
136
  Publishing options:
141
137
 
142
- * <tt>project</tt> - The name of the Rubyforge project to upload to. Defaults to the name of the gem.
138
+ * <tt>project</tt> - The name of the Rubyforge project. Defaults to the name of the gem.
143
139
  * <tt>docs_host</tt> - A host and filesystem path to publish the documentation to. Defaults to the Rubyforge project.
144
140
 
145
141
  Documentation options:
@@ -464,37 +460,20 @@ class Echoe
464
460
  system "#{'sudo' if use_sudo} #{gem_bin} uninstall #{name} -a -I -x"
465
461
  end
466
462
 
467
- desc 'Package and upload the release to Rubyforge'
463
+ desc 'Package and upload the release to Gemcutter'
468
464
  task :release => [:clean, :package] do |t|
469
465
 
470
466
  say "\n"
471
- if agree "Release #{name}-#{version} to Rubyforge? "
467
+ if agree "Release #{name}-#{version} to Gemcutter? "
472
468
  pkg = "pkg/#{name}-#{version}"
473
469
  pkg_gem = pkg + ".gem"
474
470
  pkg_tar = pkg + ".tgz"
475
471
  pkg_tar_gz = pkg + ".tar.gz"
476
472
  pkg_zip = pkg + ".zip"
477
-
478
- rf = RubyForge.new.configure
479
- puts "Logging in"
480
- rf.login
481
-
482
- c = rf.userconfig
483
- c["release_notes"] = description if description
484
- c["release_changes"] = changes if changes
485
- c["preformatted"] = false
486
-
487
- files = [(@need_tgz ? pkg_tar : nil),
488
- (@need_tar_gz ? pkg_tar_gz : nil),
489
- (@need_zip ? pkg_zip : nil),
490
- (@need_gem ? pkg_gem : nil)].compact
491
-
473
+
492
474
  puts "Releasing #{name} v. #{version}"
493
- self.version = self.version.to_s.ljust(3)
494
-
495
- rf.add_release project, name, version, *files
475
+ Gem::Commands::PushCommand.new.invoke(pkg_gem)
496
476
  end
497
-
498
477
  end
499
478
 
500
479
  ### Extension building
@@ -744,3 +723,4 @@ class Echoe
744
723
  end
745
724
  end
746
725
 
726
+ require "#{$HERE}/echoe/platform"
@@ -1,38 +1,36 @@
1
1
 
2
2
  ### Platform check regexes
3
3
 
4
- class Echoe
5
- module Platform
6
- def self.windows?
7
- @windows ||= RUBY_PLATFORM =~ /djgpp|(cyg|ms|bcc)win|mingw/
8
- !@windows.nil?
9
- end
10
-
11
- def self.gcc?
12
- @gcc ||= RUBY_PLATFORM =~ /mingw/
13
- !@gcc.nil?
14
- end
15
-
16
- def self.msvc?
17
- @msvc ||= RUBY_PLATFORM =~ /mswin/
18
- !@msvc.nil?
19
- end
20
-
21
- def self.java?
22
- @java ||= RUBY_PLATFORM =~ /java/
23
- !@java.nil?
24
- end
25
-
26
- def self.suffix
27
- @suffix ||= Gem.default_exec_format[2..-1]
28
- end
29
-
30
- def self.rake
31
- windows? ? "rake#{suffix}.bat" : "rake#{suffix}"
32
- end
33
-
34
- def self.make
35
- msvc? ? 'nmake' : 'make'
36
- end
4
+ module Echoe::Platform
5
+ def self.windows?
6
+ @windows ||= RUBY_PLATFORM =~ /djgpp|(cyg|ms|bcc)win|mingw/
7
+ !@windows.nil?
8
+ end
9
+
10
+ def self.gcc?
11
+ @gcc ||= RUBY_PLATFORM =~ /mingw/
12
+ !@gcc.nil?
13
+ end
14
+
15
+ def self.msvc?
16
+ @msvc ||= RUBY_PLATFORM =~ /mswin/
17
+ !@msvc.nil?
18
+ end
19
+
20
+ def self.java?
21
+ @java ||= RUBY_PLATFORM =~ /java/
22
+ !@java.nil?
23
+ end
24
+
25
+ def self.suffix
26
+ @suffix ||= Gem.default_exec_format[2..-1]
27
+ end
28
+
29
+ def self.rake
30
+ windows? ? "rake#{suffix}.bat" : "rake#{suffix}"
31
+ end
32
+
33
+ def self.make
34
+ msvc? ? 'nmake' : 'make'
37
35
  end
38
36
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: echoe
3
3
  version: !ruby/object:Gem::Version
4
- version: "3.2"
4
+ version: "4.0"
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evan Weaver
@@ -30,18 +30,18 @@ cert_chain:
30
30
  yZ0=
31
31
  -----END CERTIFICATE-----
32
32
 
33
- date: 2009-11-18 00:00:00 -08:00
33
+ date: 2009-12-22 00:00:00 -05:00
34
34
  default_executable:
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
- name: rubyforge
37
+ name: gemcutter
38
38
  type: :runtime
39
39
  version_requirement:
40
40
  version_requirements: !ruby/object:Gem::Requirement
41
41
  requirements:
42
42
  - - ">="
43
43
  - !ruby/object:Gem::Version
44
- version: 1.0.2
44
+ version: "0"
45
45
  version:
46
46
  - !ruby/object:Gem::Dependency
47
47
  name: highline
@@ -65,9 +65,7 @@ extra_rdoc_files:
65
65
  - README
66
66
  - TODO
67
67
  - lib/echoe.rb
68
- - lib/echoe/client.rb
69
68
  - lib/echoe/extensions.rb
70
- - lib/echoe/net.rb
71
69
  - lib/echoe/platform.rb
72
70
  - lib/echoe/rubygems.rb
73
71
  files:
@@ -80,9 +78,7 @@ files:
80
78
  - TODO
81
79
  - echoe.gemspec
82
80
  - lib/echoe.rb
83
- - lib/echoe/client.rb
84
81
  - lib/echoe/extensions.rb
85
- - lib/echoe/net.rb
86
82
  - lib/echoe/platform.rb
87
83
  - lib/echoe/rubygems.rb
88
84
  - vendor/rake/MIT-LICENSE
metadata.gz.sig CHANGED
Binary file
@@ -1,25 +0,0 @@
1
- # Fixes for Rubyforge 1.0.0 client.rb
2
-
3
- class RubyForge::Client
4
- def boundary_data_for(boundary, parameters)
5
- parameters.sort_by {|k,v| k.to_s }.map { |k,v|
6
- parameter = "--#{boundary}\r\nContent-Disposition: form-data; name=\"" +
7
- WEBrick::HTTPUtils.escape_form(k.to_s) + "\""
8
-
9
- if v.respond_to?(:path)
10
- parameter += "; filename=\"#{File.basename(v.path)}\"\r\n"
11
- parameter += "Content-Transfer-Encoding: binary\r\n"
12
- parameter += "Content-Type: text/plain"
13
- end
14
- parameter += "\r\n\r\n"
15
-
16
- if v.respond_to?(:path)
17
- parameter += v.read
18
- elsif
19
- parameter += v.to_s
20
- end
21
-
22
- parameter
23
- }.join("\r\n") + "\r\n--#{boundary}--\r\n"
24
- end
25
- end
@@ -1,7 +0,0 @@
1
-
2
- require 'net/https'
3
-
4
- # Unbreak Rubyforge 1.0.2 on Ruby1.9
5
- class Net::HTTP
6
- alias :use_ssl= :old_use_ssl=
7
- end