init 1.1.0 → 1.2.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
@@ -1,3 +1,15 @@
1
+ === 1.2.0 / 2010-12-02
2
+
3
+ * 3 minor enhancements
4
+
5
+ * Library is no longer dependent on RubyGems (although the specs are)
6
+ * Removed semvar gem because of incompatibilities with the Ruby Packaging Standard
7
+ * Updated legal information
8
+
9
+ * 1 minor bugfix
10
+
11
+ * Fixed some typos in documentation
12
+
1
13
  === 1.1.0 / 2010-10-04
2
14
 
3
15
  * 3 minor enhancements
@@ -1,4 +1,3 @@
1
- .semver
2
1
  COPYING.txt
3
2
  History.txt
4
3
  Manifest.txt
@@ -6,7 +5,6 @@ README.rdoc
6
5
  Rakefile
7
6
  examples/mongrel.rb
8
7
  examples/murmur.rb
9
- init.gemspec
10
8
  lib/aef/init.rb
11
9
  lib/aef/init/init.rb
12
10
  spec/bin/mock_daemon.rb
@@ -11,15 +11,30 @@ Clean and simple *nix init scripts with Ruby
11
11
 
12
12
  == FEATURES/PROBLEMS:
13
13
 
14
- * Tested and fully working on:
15
- * Ubuntu Linux 9.10 (Karmic Koala) on x86_64
16
- * Ruby 1.8.7
17
- * Ruby 1.9.2
18
- * JRuby 1.5.3
19
- * Debian GNU/Linux 4.0 (Lenny) on x86
20
- * Ruby 1.8.7
21
- * Ruby 1.9.2
22
- * JRuby 1.5.3
14
+ Tested and fully working on:
15
+ * Ubuntu Linux 9.10 (Karmic Koala) on x86_64
16
+ * Ruby 1.8.7
17
+ * Ruby 1.9.2
18
+ * Ruby Enterprise Edition 2010.02
19
+ * JRuby 1.5.5
20
+ * Rubinius 1.1.1
21
+ * Microsoft Windows XP SP2 on x86
22
+ * Ruby 1.8.7
23
+ * Ruby 1.9.2
24
+ * JRuby 1.5.5
25
+ * Debian GNU/Linux 4.0 (Lenny) on x86
26
+ * Ruby 1.8.7
27
+ * Ruby 1.9.2
28
+ * JRuby 1.5.3
29
+
30
+ This projects tries to conform to:
31
+ * SemVer (and SemVerTag), http://semver.org/
32
+ * Ruby Packaging Standard, http://chneukirchen.github.com/rps/
33
+ * Gem Packaging: Best Practices, http://weblog.rubyonrails.org/2009/9/1/gem-packaging-best-practices
34
+
35
+ Additional facts:
36
+ * Written purely in Ruby
37
+ * Does not modify any exisiting classes or modules
23
38
 
24
39
  == SYNOPSIS:
25
40
 
@@ -81,14 +96,14 @@ class between Init and the final implementation:
81
96
  ...
82
97
  end
83
98
 
84
- See the examples folder and spec/bin/simple_ini.rb for working example classes.
99
+ See the examples folder and spec/bin/simple_init.rb for working example classes.
85
100
 
86
101
  == REQUIREMENTS:
87
102
 
88
- * rubygems
89
- * semver
103
+ none
90
104
 
91
105
  === Additional for automated testing
106
+ * rubygems
92
107
  * hoe
93
108
  * rspec
94
109
  * facets
@@ -122,7 +137,7 @@ have to install dependencies manually.
122
137
 
123
138
  === Automated testing
124
139
 
125
- You can test this package through rspec on your system. First find the path
140
+ You can test this package through RSpec on your system. First find the path
126
141
  where the gem was installed to:
127
142
 
128
143
  gem which init
@@ -132,10 +147,6 @@ to start the test runner:
132
147
 
133
148
  rake spec
134
149
 
135
- On Windows systems you have to run the following instead:
136
-
137
- spec spec/**/*_spec.rb
138
-
139
150
  If something goes wrong you should be noticed through failing examples.
140
151
 
141
152
  == DEVELOPMENT:
@@ -147,13 +158,12 @@ command:
147
158
  git clone git://github.com/aef/init.git
148
159
 
149
160
  Help on making this software better is always very appreciated. If you want your
150
- changes to be included in the official release, please send me a patch through
151
- the project's tracker[https://rubyforge.org/tracker/?group_id=7890] at
161
+ changes to be included in the official release, please send me pull request on github.com. Alternatevitely you can also send me a patch through the project's tracker[https://rubyforge.org/tracker/?group_id=7890] at
152
162
  rubyforge.org. You can generate a patch-file by the following command:
153
163
 
154
164
  git diff > patch.diff
155
165
 
156
- Please make sure to write tests for your changes and notice that I can't promise
166
+ Please write tests for your changes and notice that I can't promise
157
167
  to include your changes before reviewing them.
158
168
 
159
169
  == LICENSE:
data/Rakefile CHANGED
@@ -1,18 +1,17 @@
1
1
  # -*- ruby -*-
2
2
 
3
- require 'rubygems'
3
+ $LOAD_PATH.unshift('lib')
4
+
4
5
  require 'hoe'
5
- require 'semver'
6
+ require 'aef/init'
6
7
 
7
- Hoe.spec 'init' do |p|
8
+ Hoe.spec 'init' do
8
9
  developer('Alexander E. Fischer', 'aef@raxys.net')
9
10
 
10
- extra_deps << ['semver', '>= 0.2.2']
11
-
12
- extra_dev_deps << ['rspec', '>= 1.3.0']
13
- extra_dev_deps << ['facets', '>= 2.8.4']
11
+ extra_dev_deps << ['rspec', '~> 2.2.0']
12
+ extra_dev_deps << ['facets', '~> 2.9.0']
14
13
 
15
- self.version = SemVer.find.format '%M.%m.%p'
14
+ self.version = Aef::Init::VERSION
16
15
  self.rubyforge_name = 'aef'
17
16
  self.url = 'https://rubyforge.org/projects/aef/'
18
17
  self.readme_file = 'README.rdoc'
@@ -15,9 +15,7 @@
15
15
  # You should have received a copy of the GNU General Public License
16
16
  # along with this program. If not, see <http://www.gnu.org/licenses/>.
17
17
 
18
- require 'rubygems'
19
18
  require 'pathname'
20
- require 'semver'
21
19
 
22
20
  # Namespace for projects of Alexander E. Fischer <aef@raxys.net>
23
21
  #
@@ -17,7 +17,7 @@
17
17
 
18
18
  # Clean and simple *nix init scripts with Ruby
19
19
  class Aef::Init
20
- VERSION = SemVer.find
20
+ VERSION = '1.2.0'
21
21
 
22
22
  # Call this to begin commandline parsing
23
23
  #
@@ -41,7 +41,8 @@ class Aef::Init
41
41
  # This is neccessary because since ruby 1.9, the instance_methods method
42
42
  # returns an array of symbols instead of an array of strings which it did
43
43
  # in 1.8
44
- command = command.to_sym if Gem::Version.new("#{RUBY_VERSION}") >= Gem::Version.new('1.9')
44
+ ruby_version_components = RUBY_VERSION.split('.').map(&:to_i)
45
+ command = command.to_sym if ruby_version_components[0] >= 1 and ruby_version_components[1] >= 9
45
46
 
46
47
  if command == :default
47
48
  new.send(@@default_command)
@@ -17,6 +17,8 @@
17
17
  # You should have received a copy of the GNU General Public License
18
18
  # along with this program. If not, see <http://www.gnu.org/licenses/>.
19
19
 
20
+ require 'rbconfig'
21
+
20
22
  require 'aef/init'
21
23
 
22
24
  # A library in between the base and the final class
@@ -17,7 +17,6 @@
17
17
 
18
18
  require './spec/spec_helper'
19
19
 
20
- require 'rubygems'
21
20
  require 'facets/timer'
22
21
 
23
22
  describe Aef::Init do
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # This file is part of Init.
4
4
  #
5
- # Linebreak is free software: you can redistribute it and/or modify
5
+ # Init is free software: you can redistribute it and/or modify
6
6
  # it under the terms of the GNU General Public License as published by
7
7
  # the Free Software Foundation, either version 3 of the License, or
8
8
  # (at your option) any later version.
@@ -19,9 +19,7 @@ require 'rbconfig'
19
19
  require 'pathname'
20
20
  require 'tmpdir'
21
21
  require 'rubygems'
22
-
23
- $LOAD_PATH.unshift((Pathname.pwd + 'lib').to_s)
24
-
22
+ require 'rspec'
25
23
  require 'aef/init'
26
24
 
27
25
  module Aef::Init::SpecHelper
@@ -44,6 +42,6 @@ module Aef::Init::SpecHelper
44
42
  end
45
43
  end
46
44
 
47
- Spec::Runner.configure do |config|
45
+ RSpec.configure do |config|
48
46
  config.include Aef::Init::SpecHelper
49
47
  end
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 1
7
- - 1
7
+ - 2
8
8
  - 0
9
- version: 1.1.0
9
+ version: 1.2.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - Alexander E. Fischer
@@ -34,11 +34,11 @@ cert_chain:
34
34
  55akF+N8NbO6tpVDy6TMagqa10LfEpiQH6dvDHe/xdAqYOCrXKpmqzwu2PI=
35
35
  -----END CERTIFICATE-----
36
36
 
37
- date: 2010-10-04 00:00:00 +02:00
37
+ date: 2010-12-02 00:00:00 +01:00
38
38
  default_executable:
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
- name: semver
41
+ name: rubyforge
42
42
  prerelease: false
43
43
  requirement: &id001 !ruby/object:Gem::Requirement
44
44
  none: false
@@ -46,44 +46,44 @@ dependencies:
46
46
  - - ">="
47
47
  - !ruby/object:Gem::Version
48
48
  segments:
49
- - 0
50
49
  - 2
51
- - 2
52
- version: 0.2.2
53
- type: :runtime
50
+ - 0
51
+ - 4
52
+ version: 2.0.4
53
+ type: :development
54
54
  version_requirements: *id001
55
55
  - !ruby/object:Gem::Dependency
56
- name: rubyforge
56
+ name: rspec
57
57
  prerelease: false
58
58
  requirement: &id002 !ruby/object:Gem::Requirement
59
59
  none: false
60
60
  requirements:
61
- - - ">="
61
+ - - ~>
62
62
  - !ruby/object:Gem::Version
63
63
  segments:
64
64
  - 2
65
+ - 2
65
66
  - 0
66
- - 4
67
- version: 2.0.4
67
+ version: 2.2.0
68
68
  type: :development
69
69
  version_requirements: *id002
70
70
  - !ruby/object:Gem::Dependency
71
- name: rspec
71
+ name: facets
72
72
  prerelease: false
73
73
  requirement: &id003 !ruby/object:Gem::Requirement
74
74
  none: false
75
75
  requirements:
76
- - - ">="
76
+ - - ~>
77
77
  - !ruby/object:Gem::Version
78
78
  segments:
79
- - 1
80
- - 3
79
+ - 2
80
+ - 9
81
81
  - 0
82
- version: 1.3.0
82
+ version: 2.9.0
83
83
  type: :development
84
84
  version_requirements: *id003
85
85
  - !ruby/object:Gem::Dependency
86
- name: facets
86
+ name: hoe
87
87
  prerelease: false
88
88
  requirement: &id004 !ruby/object:Gem::Requirement
89
89
  none: false
@@ -92,26 +92,11 @@ dependencies:
92
92
  - !ruby/object:Gem::Version
93
93
  segments:
94
94
  - 2
95
- - 8
96
- - 4
97
- version: 2.8.4
95
+ - 7
96
+ - 0
97
+ version: 2.7.0
98
98
  type: :development
99
99
  version_requirements: *id004
100
- - !ruby/object:Gem::Dependency
101
- name: hoe
102
- prerelease: false
103
- requirement: &id005 !ruby/object:Gem::Requirement
104
- none: false
105
- requirements:
106
- - - ">="
107
- - !ruby/object:Gem::Version
108
- segments:
109
- - 2
110
- - 6
111
- - 2
112
- version: 2.6.2
113
- type: :development
114
- version_requirements: *id005
115
100
  description: Clean and simple *nix init scripts with Ruby
116
101
  email:
117
102
  - aef@raxys.net
@@ -125,7 +110,6 @@ extra_rdoc_files:
125
110
  - Manifest.txt
126
111
  - README.rdoc
127
112
  files:
128
- - .semver
129
113
  - COPYING.txt
130
114
  - History.txt
131
115
  - Manifest.txt
@@ -133,7 +117,6 @@ files:
133
117
  - Rakefile
134
118
  - examples/mongrel.rb
135
119
  - examples/murmur.rb
136
- - init.gemspec
137
120
  - lib/aef/init.rb
138
121
  - lib/aef/init/init.rb
139
122
  - spec/bin/mock_daemon.rb
metadata.gz.sig CHANGED
Binary file
data/.semver DELETED
@@ -1,5 +0,0 @@
1
- ---
2
- :major: "1"
3
- :minor: "1"
4
- :patch: "0"
5
- :special: ""
@@ -1,47 +0,0 @@
1
- # -*- encoding: utf-8 -*-
2
-
3
- Gem::Specification.new do |s|
4
- s.name = %q{init}
5
- s.version = "1.1.0"
6
-
7
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
- s.authors = ["Alexander E. Fischer"]
9
- s.cert_chain = ["/home/dimedo/.gem/gem-public_cert.pem"]
10
- s.date = %q{2010-10-04}
11
- s.description = %q{Clean and simple *nix init scripts with Ruby}
12
- s.email = ["aef@raxys.net"]
13
- s.extra_rdoc_files = ["COPYING.txt", "History.txt", "Manifest.txt", "README.rdoc"]
14
- s.files = [".semver", "COPYING.txt", "History.txt", "Manifest.txt", "README.rdoc", "Rakefile", "examples/mongrel.rb", "examples/murmur.rb", "init.gemspec", "lib/aef/init.rb", "lib/aef/init/init.rb", "spec/bin/mock_daemon.rb", "spec/bin/simple_init.rb", "spec/init_spec.rb", "spec/spec_helper.rb"]
15
- s.homepage = %q{https://rubyforge.org/projects/aef/}
16
- s.rdoc_options = ["--main", "README.rdoc", "--inline-source", "--line-numbers", "--title", "Init"]
17
- s.require_paths = ["lib"]
18
- s.rubyforge_project = %q{aef}
19
- s.rubygems_version = %q{1.3.7}
20
- s.signing_key = %q{/home/dimedo/.gem/gem-private_key.pem}
21
- s.summary = %q{Clean and simple *nix init scripts with Ruby}
22
-
23
- if s.respond_to? :specification_version then
24
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
25
- s.specification_version = 3
26
-
27
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
28
- s.add_runtime_dependency(%q<semver>, [">= 0.2.2"])
29
- s.add_development_dependency(%q<rubyforge>, [">= 2.0.4"])
30
- s.add_development_dependency(%q<rspec>, [">= 1.3.0"])
31
- s.add_development_dependency(%q<facets>, [">= 2.8.4"])
32
- s.add_development_dependency(%q<hoe>, [">= 2.6.2"])
33
- else
34
- s.add_dependency(%q<semver>, [">= 0.2.2"])
35
- s.add_dependency(%q<rubyforge>, [">= 2.0.4"])
36
- s.add_dependency(%q<rspec>, [">= 1.3.0"])
37
- s.add_dependency(%q<facets>, [">= 2.8.4"])
38
- s.add_dependency(%q<hoe>, [">= 2.6.2"])
39
- end
40
- else
41
- s.add_dependency(%q<semver>, [">= 0.2.2"])
42
- s.add_dependency(%q<rubyforge>, [">= 2.0.4"])
43
- s.add_dependency(%q<rspec>, [">= 1.3.0"])
44
- s.add_dependency(%q<facets>, [">= 2.8.4"])
45
- s.add_dependency(%q<hoe>, [">= 2.6.2"])
46
- end
47
- end