mongrel_status 0.2.2 → 0.2.3

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.
Binary file
@@ -0,0 +1,2 @@
1
+
2
+ v0.2.3. Signed gem.
@@ -0,0 +1,6 @@
1
+ README
2
+ Manifest
3
+ LICENSE
4
+ lib/mongrel_status/init.rb
5
+ COPYING
6
+ CHANGELOG
@@ -1,30 +1,32 @@
1
1
  require 'mongrel'
2
2
  require 'gem_plugin'
3
3
 
4
+
4
5
  class Status < GemPlugin::Plugin "/commands"
5
6
  include Mongrel::Command::Base
6
-
7
+
7
8
  def configure
8
9
  options [
9
10
  ['-c', '--chdir PATH', "Change to dir before starting (will be expanded)", :@cwd, Dir.pwd],
10
11
  ['-P', '--pid FILE', "Where to write the PID", :@pid_file, "log/mongrel.pid"]
11
- ]
12
+ ]
12
13
  end
13
14
 
14
15
  def validate
15
16
  @cwd = File.expand_path(@cwd)
16
17
  valid_dir? @cwd, "Invalid path to change to during daemon mode: #@cwd"
17
-
18
+
18
19
  @pid_file = File.join(@cwd,@pid_file)
19
20
  valid_exists? @pid_file, "PID file #@pid_file does not exist. Not running?"
20
-
21
+
21
22
  return @valid
22
23
  end
23
-
24
-
24
+
25
+
25
26
  def run
26
27
  pid = open(@pid_file) {|f| f.read }
27
28
  puts "Mongrel status:"
28
29
  puts "PID: #{pid}"
29
30
  end
30
31
  end
32
+
@@ -0,0 +1,44 @@
1
+
2
+ # Gem::Specification for Mongrel_status-0.2.3
3
+ # Originally generated by Echoe
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = %q{mongrel_status}
7
+ s.version = "0.2.3"
8
+
9
+ s.specification_version = 2 if s.respond_to? :specification_version=
10
+
11
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
+ s.authors = ["Zed A. Shaw"]
13
+ s.date = %q{2007-10-26}
14
+ s.description = %q{A sample plugin that reports the status of mongrel.}
15
+ s.email = %q{}
16
+ s.files = ["README", "Manifest", "LICENSE", "lib/mongrel_status/init.rb", "COPYING", "CHANGELOG", "mongrel_status.gemspec"]
17
+ s.has_rdoc = true
18
+ s.homepage = %q{}
19
+ s.require_paths = ["lib"]
20
+ s.rubyforge_project = %q{mongrel}
21
+ s.rubygems_version = %q{0.9.4.6}
22
+ s.summary = %q{A sample plugin that reports the status of mongrel.}
23
+
24
+ s.add_dependency(%q<gem_plugin>, [">= 0.2.3"])
25
+ s.add_dependency(%q<mongrel>, [">= 1.0.2"])
26
+ end
27
+
28
+
29
+ # # Original Rakefile source (requires the Echoe gem):
30
+ #
31
+ #
32
+ # require 'echoe'
33
+ #
34
+ # Echoe.new("mongrel_status") do |p|
35
+ # p.summary = "A sample plugin that reports the status of mongrel."
36
+ # p.project = "mongrel"
37
+ # p.author = "Zed A. Shaw"
38
+ # p.dependencies = ['gem_plugin >=0.2.3', 'mongrel >=1.0.2']
39
+ #
40
+ # p.need_tar_gz = false
41
+ # p.need_tgz = true
42
+ # p.require_signed = true
43
+ # end
44
+ #
metadata CHANGED
@@ -1,47 +1,97 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.8.11
3
- specification_version: 1
2
+ rubygems_version: 0.9.4.6
3
+ specification_version: 2
4
4
  name: mongrel_status
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.2.2
7
- date: 2006-03-15 00:00:00 -05:00
6
+ version: 0.2.3
7
+ date: 2007-10-26 00:00:00 -04:00
8
8
  summary: A sample plugin that reports the status of mongrel.
9
9
  require_paths:
10
10
  - lib
11
- email:
12
- homepage:
13
- rubyforge_project:
11
+ email: ""
12
+ homepage: ""
13
+ rubyforge_project: mongrel
14
14
  description: A sample plugin that reports the status of mongrel.
15
15
  autorequire:
16
16
  default_executable:
17
17
  bindir: bin
18
18
  has_rdoc: true
19
- required_ruby_version: !ruby/object:Gem::Version::Requirement
19
+ required_ruby_version: !ruby/object:Gem::Requirement
20
20
  requirements:
21
- - - ">"
21
+ - - ">="
22
22
  - !ruby/object:Gem::Version
23
- version: 0.0.0
23
+ version: "0"
24
+ version:
25
+ required_rubygems_version: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: "0"
24
30
  version:
25
31
  platform: ruby
26
32
  signing_key:
27
33
  cert_chain:
34
+ - |
35
+ -----BEGIN CERTIFICATE-----
36
+ MIIDUDCCAjigAwIBAgIBADANBgkqhkiG9w0BAQUFADBOMRwwGgYDVQQDDBNtb25n
37
+ cmVsLWRldmVsb3BtZW50MRkwFwYKCZImiZPyLGQBGRYJcnVieWZvcmdlMRMwEQYK
38
+ CZImiZPyLGQBGRYDb3JnMB4XDTA3MDkxNjEwMzI0OVoXDTA4MDkxNTEwMzI0OVow
39
+ TjEcMBoGA1UEAwwTbW9uZ3JlbC1kZXZlbG9wbWVudDEZMBcGCgmSJomT8ixkARkW
40
+ CXJ1Ynlmb3JnZTETMBEGCgmSJomT8ixkARkWA29yZzCCASIwDQYJKoZIhvcNAQEB
41
+ BQADggEPADCCAQoCggEBAMb9v3B01eOHk3FyypbQgKXzJplUE5P6dXoG+xpPm0Lv
42
+ P7BQmeMncOwqQ7zXpVQU+lTpXtQFTsOE3vL7KnhQFJKGvUAkbh24VFyopu1I0yqF
43
+ mGu4nRqNXGXVj8TvLSj4S1WpSRLAa0acLPNyKhGmoV9+crqQypSjM6XKjBeppifo
44
+ 4eBmWGjiJEYMIJBvJZPJ4rAVDDA8C6CM1m3gMBGNh8ELDhU8HI9AP3dMIkTI2Wx9
45
+ 9xkJwHdroAaS0IFFtYChrwee4FbCF1FHDgoTosMwa47DrLHg4hZ6ojaKwK5QVWEV
46
+ XGb6ju5UqpktnSWF2W+Lvl/K0tI42OH2CAhebT1gEVUCAwEAAaM5MDcwCQYDVR0T
47
+ BAIwADALBgNVHQ8EBAMCBLAwHQYDVR0OBBYEFGHChyMSZ16u9WOzKhgJSQ9lqDc5
48
+ MA0GCSqGSIb3DQEBBQUAA4IB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AkFflYk3SUcXaXWxu/eCHgqfW1m76RNSp5djpKE
68
+ CgNPK9lGIWpB3CHzDaVNAgMBAAGjOTA3MAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSw
69
+ MB0GA1UdDgQWBBT5aonPfFBdJ5rWFG+8dZwgyB54LjANBgkqhkiG9w0BAQUFAAOC
70
+ AQEAiKbzWgMcvZs/TPwJxr8tJ+7mSGz7+zDkWcbBl8FpQq1DtRcATh1oyTkQT7t+
71
+ rFEBYMmb0FxbbUnojQp8hIFgFkUwFpStwWBL/okLSehntzI2iwjuEtfj4ac9Q3Y2
72
+ uSdbmZqsQTuu+lEUc5C4qLK7YKwToaul+cx7vWxyk1YendcVwRlFLIBqA5cPrwo3
73
+ yyGLTHlRYn2c9PSbM1B63Yg+LqSSAa4QSU3Wv9pNdffVpvwHPVEQpO7ZDo5slQFL
74
+ Gf6+gbD/eZAvhpvmn8JlXb+LxKaFVMs2Yvrk1xOuT76SsPjEGWxkr7jZCIpsYfgQ
75
+ ALN3mi/9z0Mf1YroliUgF0v5Yw==
76
+ -----END CERTIFICATE-----
77
+
78
+ post_install_message:
28
79
  authors:
29
80
  - Zed A. Shaw
30
81
  files:
31
- - COPYING
32
- - LICENSE
33
82
  - README
34
- - Rakefile
35
- - test/test_empty.rb
36
- - lib/mongrel_status
83
+ - Manifest
84
+ - LICENSE
37
85
  - lib/mongrel_status/init.rb
38
- - tools/rakehelp.rb
39
- test_files:
40
- - test/test_empty.rb
86
+ - COPYING
87
+ - CHANGELOG
88
+ - mongrel_status.gemspec
89
+ test_files: []
90
+
41
91
  rdoc_options: []
42
92
 
43
- extra_rdoc_files:
44
- - README
93
+ extra_rdoc_files: []
94
+
45
95
  executables: []
46
96
 
47
97
  extensions: []
@@ -50,20 +100,20 @@ requirements: []
50
100
 
51
101
  dependencies:
52
102
  - !ruby/object:Gem::Dependency
53
- name: mongrel
103
+ name: gem_plugin
54
104
  version_requirement:
55
- version_requirements: !ruby/object:Gem::Version::Requirement
105
+ version_requirements: !ruby/object:Gem::Requirement
56
106
  requirements:
57
107
  - - ">="
58
108
  - !ruby/object:Gem::Version
59
- version: 0.3.11
109
+ version: 0.2.3
60
110
  version:
61
111
  - !ruby/object:Gem::Dependency
62
- name: gem_plugin
112
+ name: mongrel
63
113
  version_requirement:
64
- version_requirements: !ruby/object:Gem::Version::Requirement
114
+ version_requirements: !ruby/object:Gem::Requirement
65
115
  requirements:
66
116
  - - ">="
67
117
  - !ruby/object:Gem::Version
68
- version: 0.2.1
118
+ version: 1.0.2
69
119
  version:
@@ -0,0 +1,2 @@
1
+ o�i �ɵ�Ǫ��N��d ve�̍Ph�i'�Wd�*��o�[`���[�v���<8x`0���Y�+ڿ ��d��K!I{h�����G�Z�hɈb]�?�jE�%�輢>Jz�#8�&�� yh�0��n��§%���r��Q� D��J]!)�$g'v�YB����������4��DX�jإQ��%���fx�O ��,D�q�ٔPZ���AP��%
2
+ �(�JW�m�����R4�^�����e�BdӮO�
data/Rakefile DELETED
@@ -1,36 +0,0 @@
1
- require 'rake'
2
- require 'rake/testtask'
3
- require 'rake/clean'
4
- require 'rake/gempackagetask'
5
- require 'rake/rdoctask'
6
- require 'tools/rakehelp'
7
- require 'fileutils'
8
- include FileUtils
9
-
10
- setup_tests
11
- setup_clean ["pkg", "lib/*.bundle", "*.gem", ".config"]
12
-
13
- setup_rdoc ['README', 'LICENSE', 'COPYING', 'lib/**/*.rb', 'doc/**/*.rdoc']
14
-
15
- desc "Does a full compile, test run"
16
- task :default => [:test, :package]
17
-
18
- version="0.2.2"
19
- name="mongrel_status"
20
-
21
- setup_gem(name, version) do |spec|
22
- spec.summary = "A sample plugin that reports the status of mongrel."
23
- spec.description = spec.summary
24
- spec.test_file = "test/test_empty.rb"
25
- spec.author="Zed A. Shaw"
26
- spec.add_dependency('mongrel', '>= 0.3.11')
27
- spec.add_dependency('gem_plugin', '>= 0.2.1')
28
- end
29
-
30
- task :install => [:test, :package] do
31
- sh %{sudo gem install pkg/#{name}-#{version}.gem}
32
- end
33
-
34
- task :uninstall => [:clean] do
35
- sh %{sudo gem uninstall #{name}}
36
- end
@@ -1,7 +0,0 @@
1
- require 'test/unit'
2
-
3
- class EmptyTest < Test::Unit::TestCase
4
- def test_nothing
5
- end
6
- end
7
-
@@ -1,106 +0,0 @@
1
-
2
- def make(makedir)
3
- Dir.chdir(makedir) do
4
- sh(PLATFORM =~ /win32/ ? 'nmake' : 'make')
5
- end
6
- end
7
-
8
-
9
- def extconf(dir)
10
- Dir.chdir(dir) do ruby "extconf.rb" end
11
- end
12
-
13
-
14
- def setup_tests
15
- Rake::TestTask.new do |t|
16
- t.libs << "test"
17
- t.test_files = FileList['test/test*.rb']
18
- t.verbose = true
19
- end
20
- end
21
-
22
-
23
- def setup_clean otherfiles
24
- files = ['build/*', '**/*.o', '**/*.so', '**/*.a', 'lib/*-*', '**/*.log'] + otherfiles
25
- CLEAN.include(files)
26
- end
27
-
28
-
29
- def setup_rdoc files
30
- Rake::RDocTask.new do |rdoc|
31
- rdoc.rdoc_dir = 'doc/rdoc'
32
- rdoc.options << '--line-numbers'
33
- rdoc.rdoc_files.add(files)
34
- end
35
- end
36
-
37
-
38
- def setup_extension(dir, extension)
39
- ext = "ext/#{dir}"
40
- ext_so = "#{ext}/#{extension}.#{Config::CONFIG['DLEXT']}"
41
- ext_files = FileList[
42
- "#{ext}/*.c",
43
- "#{ext}/*.h",
44
- "#{ext}/extconf.rb",
45
- "#{ext}/Makefile",
46
- "lib"
47
- ]
48
-
49
- task "lib" do
50
- directory "lib"
51
- end
52
-
53
- desc "Builds just the #{extension} extension"
54
- task extension.to_sym => ["#{ext}/Makefile", ext_so ]
55
-
56
- file "#{ext}/Makefile" => ["#{ext}/extconf.rb"] do
57
- extconf "#{ext}"
58
- end
59
-
60
- file ext_so => ext_files do
61
- make "#{ext}"
62
- cp ext_so, "lib"
63
- end
64
- end
65
-
66
-
67
- def base_gem_spec(pkg_name, pkg_version)
68
- pkg_version = pkg_version
69
- pkg_name = pkg_name
70
- pkg_file_name = "#{pkg_name}-#{pkg_version}"
71
- Gem::Specification.new do |s|
72
- s.name = pkg_name
73
- s.version = pkg_version
74
- s.platform = Gem::Platform::RUBY
75
- s.has_rdoc = true
76
- s.extra_rdoc_files = [ "README" ]
77
-
78
- s.files = %w(COPYING LICENSE README Rakefile) +
79
- Dir.glob("{bin,doc/rdoc,test,lib}/**/*") +
80
- Dir.glob("ext/**/*.{h,c,rb}") +
81
- Dir.glob("examples/**/*.rb") +
82
- Dir.glob("tools/*.rb")
83
-
84
- s.require_path = "lib"
85
- s.extensions = FileList["ext/**/extconf.rb"].to_a
86
- s.bindir = "bin"
87
- end
88
- end
89
-
90
- def setup_gem(pkg_name, pkg_version)
91
- spec = base_gem_spec(pkg_name, pkg_version)
92
- yield spec if block_given?
93
-
94
- Rake::GemPackageTask.new(spec) do |p|
95
- p.gem_spec = spec
96
- # win32 chokes on this
97
- p.need_tar = true if RUBY_PLATFORM !~ /mswin/
98
- end
99
- end
100
-
101
- def setup_win32_gem(pkg_name, pkg_version)
102
- spec = base_gem_spec(pkg_name, pkg_version)
103
- yield spec if block_given?
104
-
105
- Gem::Builder.new(spec).build
106
- end