nntp 1.0.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.
@@ -0,0 +1,34 @@
1
+ desc 'Release the website and new gem version'
2
+ task :deploy => [:check_version, :website, :release] do
3
+ puts "Remember to create SVN tag:"
4
+ puts "svn copy svn+ssh://#{rubyforge_username}@rubyforge.org/var/svn/#{PATH}/trunk " +
5
+ "svn+ssh://#{rubyforge_username}@rubyforge.org/var/svn/#{PATH}/tags/REL-#{VERS} "
6
+ puts "Suggested comment:"
7
+ puts "Tagging release #{CHANGES}"
8
+ end
9
+
10
+ desc 'Runs tasks website_generate and install_gem as a local deployment of the gem'
11
+ task :local_deploy => [:website_generate, :install_gem]
12
+
13
+ task :check_version do
14
+ unless ENV['VERSION']
15
+ puts 'Must pass a VERSION=x.y.z release version'
16
+ exit
17
+ end
18
+ unless ENV['VERSION'] == VERS
19
+ puts "Please update your version.rb to match the release version, currently #{VERS}"
20
+ exit
21
+ end
22
+ end
23
+
24
+ desc 'Install the package as a gem, without generating documentation(ri/rdoc)'
25
+ task :install_gem_no_doc => [:clean, :package] do
26
+ sh "#{'sudo ' unless Hoe::WINDOZE }gem install pkg/*.gem --no-rdoc --no-ri"
27
+ end
28
+
29
+ namespace :manifest do
30
+ desc 'Recreate Manifest.txt to include ALL files'
31
+ task :refresh do
32
+ `rake check_manifest | patch -p0 > Manifest.txt`
33
+ end
34
+ end
@@ -0,0 +1,7 @@
1
+ task :ruby_env do
2
+ RUBY_APP = if RUBY_PLATFORM =~ /java/
3
+ "jruby"
4
+ else
5
+ "ruby"
6
+ end unless defined? RUBY_APP
7
+ end
@@ -0,0 +1,17 @@
1
+ desc 'Generate website files'
2
+ task :website_generate => :ruby_env do
3
+ (Dir['website/**/*.txt'] - Dir['website/version*.txt']).each do |txt|
4
+ sh %{ #{RUBY_APP} script/txt2html #{txt} > #{txt.gsub(/txt$/,'html')} }
5
+ end
6
+ end
7
+
8
+ desc 'Upload website files to rubyforge'
9
+ task :website_upload do
10
+ host = "#{rubyforge_username}@rubyforge.org"
11
+ remote_dir = "/var/www/gforge-projects/#{PATH}/"
12
+ local_dir = 'website'
13
+ sh %{rsync -aCv #{local_dir}/ #{host}:#{remote_dir}}
14
+ end
15
+
16
+ desc 'Generate and upload website files'
17
+ task :website => [:website_generate, :website_upload, :publish_docs]
@@ -0,0 +1,2 @@
1
+ require 'test/unit'
2
+ require File.dirname(__FILE__) + '/../lib/nntp'
@@ -0,0 +1,11 @@
1
+ require File.dirname(__FILE__) + '/test_helper.rb'
2
+
3
+ class TestNntp < Test::Unit::TestCase
4
+
5
+ def setup
6
+ end
7
+
8
+ def test_truth
9
+ assert true
10
+ end
11
+ end
metadata ADDED
@@ -0,0 +1,99 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: nntp
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Balwinder Singh Dheeman
8
+ - Albert Vernon
9
+ - Bob Schafer
10
+ - Mark Triggs
11
+ autorequire:
12
+ bindir: bin
13
+ cert_chain:
14
+ - |
15
+ -----BEGIN CERTIFICATE-----
16
+ MIIDCjCCAfKgAwIBAgIBADANBgkqhkiG9w0BAQUFADArMREwDwYDVQQDDAhhZXZl
17
+ cm5vbjEWMBQGCgmSJomT8ixkARkWBm5vc3BhbTAeFw0wNzEyMjEyMzU1NTRaFw0w
18
+ ODEyMjAyMzU1NTRaMCsxETAPBgNVBAMMCGFldmVybm9uMRYwFAYKCZImiZPyLGQB
19
+ GRYGbm9zcGFtMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsFJWe3ZH
20
+ PGtyiqIT5Opdm5USm2LTq4S7Tw7ILbCqF/LSKSJRXwuJeiK4t06EbMBcy13mZDuV
21
+ LWW8Pj/gl7iTujP3tcN8g0omTQN5GaQNjzrbhjDyHwsHz/xqj1vnP5vJQiUKQnCS
22
+ qRdQyze2J8+UqwkuYNLhiCgQuytqciHRQt9CI6eJAF1OhdFSTTUVSP3Bj7RGppZZ
23
+ MUDsbzIZP+kNaSfYzWjQiUMmP62jEWk7nUAi5N+RZyMZ9EL4swT8zJmYm3di9rF5
24
+ fv2ctfqOZCKg8sWGGhAMX4hpS4j2ModGAkj+tkCxwZU4QUFBym7W/yA2yNq7L513
25
+ BIIeOa66y4WEGQIDAQABozkwNzAJBgNVHRMEAjAAMAsGA1UdDwQEAwIEsDAdBgNV
26
+ HQ4EFgQU0M3JIT0mtnofHn2w4gJJ2aymc8MwDQYJKoZIhvcNAQEFBQADggEBAGbj
27
+ +TJm3Guw0AXUYeg7Zl2lXrveWUHIrDkCY5y1eBY/a41EPYN0iIOd/2F9x05EWjuN
28
+ /I74K8kavcYDPB4Do4kHAN0+88ySbBxCGwa9SR5fIlnlAoT1vOrHTsnu2Fo9f9t0
29
+ wDCuqb3wmtkajsioYyuEzWtoSqWekDrAbzDZhyGWBx/Xfm/KneL1BI+DFuAM360t
30
+ eVzF90ioBG96y1Fr3e6qtOEIk1a7cccym1PAPIl8ZoJWeIAvNCRNv31hYRbfhZSy
31
+ wYBEqrIgaFh9HsWamnLXit3UKhfyXdA0MZfX6VPcW15wVv/ywPtXXrnfb6rqu1Hh
32
+ pXAR8AvUc87ehy4mlWg=
33
+ -----END CERTIFICATE-----
34
+
35
+ date: 2007-12-21 00:00:00 -05:00
36
+ default_executable:
37
+ dependencies: []
38
+
39
+ description: Net::NNTP client library for Network News Transfer Protocol
40
+ email: aevernon@nospam@rubyforge.org
41
+ executables: []
42
+
43
+ extensions: []
44
+
45
+ extra_rdoc_files:
46
+ - History.txt
47
+ - License.txt
48
+ - Manifest.txt
49
+ - README.txt
50
+ files:
51
+ - History.txt
52
+ - License.txt
53
+ - Manifest.txt
54
+ - README.txt
55
+ - Rakefile
56
+ - config/hoe.rb
57
+ - config/requirements.rb
58
+ - lib/nntp.rb
59
+ - lib/nntp/version.rb
60
+ - nntp_rb.html.patch
61
+ - script/destroy
62
+ - script/generate
63
+ - script/txt2html
64
+ - setup.rb
65
+ - tasks/deployment.rake
66
+ - tasks/environment.rake
67
+ - tasks/website.rake
68
+ - test/test_helper.rb
69
+ - test/test_nntp.rb
70
+ has_rdoc: true
71
+ homepage: http://nntp.rubyforge.org
72
+ post_install_message:
73
+ rdoc_options:
74
+ - --main
75
+ - README.txt
76
+ require_paths:
77
+ - lib
78
+ required_ruby_version: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: "0"
83
+ version:
84
+ required_rubygems_version: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ version: "0"
89
+ version:
90
+ requirements: []
91
+
92
+ rubyforge_project: nntp
93
+ rubygems_version: 1.0.1
94
+ signing_key:
95
+ specification_version: 2
96
+ summary: Net::NNTP client library for Network News Transfer Protocol
97
+ test_files:
98
+ - test/test_helper.rb
99
+ - test/test_nntp.rb
Binary file