freyr 0.3.3 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,21 @@
1
+ ## MAC OS
2
+ .DS_Store
3
+
4
+ ## TEXTMATE
5
+ *.tmproj
6
+ tmtags
7
+
8
+ ## EMACS
9
+ *~
10
+ \#*
11
+ .\#*
12
+
13
+ ## VIM
14
+ *.swp
15
+
16
+ ## PROJECT::GENERAL
17
+ coverage
18
+ rdoc
19
+ pkg
20
+
21
+ ## PROJECT::SPECIFIC
data/Gemfile CHANGED
@@ -1,3 +1,8 @@
1
1
  source "http://rubygems.org"
2
2
 
3
- gemspec
3
+ group :development do
4
+ gem "rspec", ">= 1.2.9"
5
+ gem "yard", ">= 0"
6
+ end
7
+
8
+ gem 'thor', ">= 0.10"
data/Gemfile.lock CHANGED
@@ -1,19 +1,7 @@
1
- PATH
2
- remote: .
3
- specs:
4
- freyr (0.3.2)
5
- thor (>= 0.10)
6
-
7
1
  GEM
8
2
  remote: http://rubygems.org/
9
3
  specs:
10
4
  diff-lcs (1.1.2)
11
- git (1.2.5)
12
- jeweler (1.6.2)
13
- bundler (~> 1.0)
14
- git (>= 1.2.5)
15
- rake
16
- rake (0.9.2)
17
5
  rspec (2.6.0)
18
6
  rspec-core (~> 2.6.0)
19
7
  rspec-expectations (~> 2.6.0)
@@ -23,13 +11,12 @@ GEM
23
11
  diff-lcs (~> 1.1.2)
24
12
  rspec-mocks (2.6.0)
25
13
  thor (0.14.6)
26
- yard (0.7.1)
14
+ yard (0.7.2)
27
15
 
28
16
  PLATFORMS
29
17
  ruby
30
18
 
31
19
  DEPENDENCIES
32
- freyr!
33
- jeweler
34
20
  rspec (>= 1.2.9)
21
+ thor (>= 0.10)
35
22
  yard
data/Rakefile CHANGED
@@ -1,50 +1,15 @@
1
- require 'rubygems'
1
+ require 'bundler/gem_tasks'
2
2
  require 'rake'
3
-
4
- begin
5
- require 'jeweler'
6
- Jeweler::Tasks.new do |gem|
7
- gem.name = "freyr"
8
- gem.summary = %Q{Service manager and runner}
9
- gem.description = %Q{Define all services you need to run and this will launch,daemonize,and monitor them for you.}
10
- gem.email = "me@tal.by"
11
- gem.homepage = "http://github.com/Talby/freyr"
12
- gem.authors = ["Tal Atlas"]
13
- gem.add_development_dependency "rspec", ">= 1.2.9"
14
- gem.add_development_dependency "yard", ">= 0"
15
- gem.add_dependency 'thor', ">= 0.10"
16
- end
17
- Jeweler::GemcutterTasks.new
18
- rescue LoadError
19
- puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
3
+ if !defined?(sh) && defined?(Rake::DSL)
4
+ include Rake::DSL
20
5
  end
21
6
 
22
- begin
23
- require 'spec/rake/spectask'
24
- Spec::Rake::SpecTask.new(:spec) do |spec|
25
- spec.libs << 'lib' << 'spec'
26
- spec.spec_files = FileList['spec/**/*_spec.rb']
27
- end
28
-
29
-
30
- Spec::Rake::SpecTask.new(:rcov) do |spec|
31
- spec.libs << 'lib' << 'spec'
32
- spec.pattern = 'spec/**/*_spec.rb'
33
- spec.rcov = true
34
- end
35
-
36
- task :spec => :check_dependencies
37
-
38
- task :default => :spec
39
- rescue LoadError
40
- puts "Expecting rspec to be installed. Please install with: gem install rspec"
41
- end
7
+ require 'rspec/core'
8
+ require 'rspec/core/rake_task'
42
9
 
43
- begin
44
- require 'yard'
45
- YARD::Rake::YardocTask.new
46
- rescue LoadError
47
- task :yardoc do
48
- abort "YARD is not available. In order to run yardoc, you must: sudo gem install yard"
49
- end
10
+ RSpec::Core::RakeTask.new(:rcov) do |spec|
11
+ spec.pattern = 'spec/**/*_spec.rb'
12
+ spec.rcov = true
50
13
  end
14
+
15
+ task :default => :spec
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.3
1
+ 0.3.4
data/freyr.gemspec CHANGED
@@ -1,104 +1,24 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
1
  # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "freyr/version"
5
4
 
6
5
  Gem::Specification.new do |s|
7
- s.name = %q{freyr}
8
- s.version = "0.3.3"
9
-
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Tal Atlas"]
12
- s.date = %q{2011-06-15}
13
- s.default_executable = %q{freyr}
14
- s.description = %q{Define all services you need to run and this will launch,daemonize,and monitor them for you.}
6
+ s.name = "freyr"
7
+ s.version = Freyr::VERSION
8
+ s.authors = ["Tal Atlas"]
15
9
  s.email = %q{me@tal.by}
16
- s.executables = ["freyr"]
17
- s.extra_rdoc_files = [
18
- "LICENSE",
19
- "README.markdown"
20
- ]
21
- s.files = [
22
- ".document",
23
- ".irbrc",
24
- ".rvmrc",
25
- "Freyrfile",
26
- "Gemfile",
27
- "Gemfile.lock",
28
- "LICENSE",
29
- "README.markdown",
30
- "Rakefile",
31
- "VERSION",
32
- "bin/freyr",
33
- "freyr.gemspec",
34
- "lib/freyr.rb",
35
- "lib/freyr/cli.rb",
36
- "lib/freyr/cli/helpers.rb",
37
- "lib/freyr/cli/launching.rb",
38
- "lib/freyr/cli/management.rb",
39
- "lib/freyr/cli/monitor.rb",
40
- "lib/freyr/command.rb",
41
- "lib/freyr/pinger.rb",
42
- "lib/freyr/process_info.rb",
43
- "lib/freyr/process_info_list.rb",
44
- "lib/freyr/service.rb",
45
- "lib/freyr/service_group.rb",
46
- "lib/freyr/service_info.rb",
47
- "spec/freyr_spec.rb",
48
- "spec/spec.opts",
49
- "spec/spec_helper.rb"
50
- ]
51
10
  s.homepage = %q{http://github.com/Talby/freyr}
52
- s.require_paths = ["lib"]
53
- s.rubygems_version = %q{1.6.2}
11
+
12
+ s.description = %q{Define all services you need to run and this will launch,daemonize,and monitor them for you.}
54
13
  s.summary = %q{Service manager and runner}
55
14
 
56
- if s.respond_to? :specification_version then
57
- s.specification_version = 3
15
+ s.files = `git ls-files`.split("\n")
16
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
17
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
18
+ s.default_executable = %q{freyr}
19
+ s.require_paths = ["lib"]
58
20
 
59
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
60
- s.add_runtime_dependency(%q<freyr>, [">= 0"])
61
- s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
62
- s.add_development_dependency(%q<yard>, [">= 0"])
63
- s.add_development_dependency(%q<jeweler>, [">= 0"])
64
- s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
65
- s.add_development_dependency(%q<yard>, [">= 0"])
66
- s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
67
- s.add_development_dependency(%q<yard>, [">= 0"])
68
- s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
69
- s.add_development_dependency(%q<yard>, [">= 0"])
70
- s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
71
- s.add_development_dependency(%q<yard>, [">= 0"])
72
- s.add_runtime_dependency(%q<thor>, [">= 0.10"])
73
- else
74
- s.add_dependency(%q<freyr>, [">= 0"])
75
- s.add_dependency(%q<rspec>, [">= 1.2.9"])
76
- s.add_dependency(%q<yard>, [">= 0"])
77
- s.add_dependency(%q<jeweler>, [">= 0"])
78
- s.add_dependency(%q<rspec>, [">= 1.2.9"])
79
- s.add_dependency(%q<yard>, [">= 0"])
80
- s.add_dependency(%q<rspec>, [">= 1.2.9"])
81
- s.add_dependency(%q<yard>, [">= 0"])
82
- s.add_dependency(%q<rspec>, [">= 1.2.9"])
83
- s.add_dependency(%q<yard>, [">= 0"])
84
- s.add_dependency(%q<rspec>, [">= 1.2.9"])
85
- s.add_dependency(%q<yard>, [">= 0"])
86
- s.add_dependency(%q<thor>, [">= 0.10"])
87
- end
88
- else
89
- s.add_dependency(%q<freyr>, [">= 0"])
90
- s.add_dependency(%q<rspec>, [">= 1.2.9"])
91
- s.add_dependency(%q<yard>, [">= 0"])
92
- s.add_dependency(%q<jeweler>, [">= 0"])
93
- s.add_dependency(%q<rspec>, [">= 1.2.9"])
94
- s.add_dependency(%q<yard>, [">= 0"])
95
- s.add_dependency(%q<rspec>, [">= 1.2.9"])
96
- s.add_dependency(%q<yard>, [">= 0"])
97
- s.add_dependency(%q<rspec>, [">= 1.2.9"])
98
- s.add_dependency(%q<yard>, [">= 0"])
99
- s.add_dependency(%q<rspec>, [">= 1.2.9"])
100
- s.add_dependency(%q<yard>, [">= 0"])
101
- s.add_dependency(%q<thor>, [">= 0.10"])
102
- end
21
+ s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
22
+ s.add_development_dependency(%q<yard>, [">= 0"])
23
+ s.add_runtime_dependency(%q<thor>, [">= 0.10"])
103
24
  end
104
-
@@ -0,0 +1,3 @@
1
+ module Freyr
2
+ VERSION = File.open(File.expand_path(File.dirname(__FILE__)+'/../../VERSION')).read
3
+ end
data/lib/freyr.rb CHANGED
@@ -1,9 +1,9 @@
1
1
  require 'forwardable'
2
2
 
3
3
  module Freyr
4
- VERSION = File.open(File.expand_path(File.dirname(__FILE__)+'/../VERSION')).read
4
+
5
5
  end
6
6
 
7
- %w{service_info service_group service command pinger process_info process_info_list}.each do |f|
7
+ %w{version service_info service_group service command pinger process_info process_info_list}.each do |f|
8
8
  require File.expand_path(File.dirname(__FILE__)+"/freyr/#{f}.rb")
9
9
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: freyr
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 3
10
- version: 0.3.3
9
+ - 4
10
+ version: 0.3.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tal Atlas
@@ -19,66 +19,9 @@ date: 2011-06-15 00:00:00 -04:00
19
19
  default_executable: freyr
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
- type: :runtime
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- none: false
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- hash: 3
29
- segments:
30
- - 0
31
- version: "0"
32
- name: freyr
33
- version_requirements: *id001
34
- prerelease: false
35
- - !ruby/object:Gem::Dependency
36
- type: :development
37
- requirement: &id002 !ruby/object:Gem::Requirement
38
- none: false
39
- requirements:
40
- - - ">="
41
- - !ruby/object:Gem::Version
42
- hash: 13
43
- segments:
44
- - 1
45
- - 2
46
- - 9
47
- version: 1.2.9
48
22
  name: rspec
49
- version_requirements: *id002
50
23
  prerelease: false
51
- - !ruby/object:Gem::Dependency
52
- type: :development
53
- requirement: &id003 !ruby/object:Gem::Requirement
54
- none: false
55
- requirements:
56
- - - ">="
57
- - !ruby/object:Gem::Version
58
- hash: 3
59
- segments:
60
- - 0
61
- version: "0"
62
- name: yard
63
- version_requirements: *id003
64
- prerelease: false
65
- - !ruby/object:Gem::Dependency
66
- type: :development
67
- requirement: &id004 !ruby/object:Gem::Requirement
68
- none: false
69
- requirements:
70
- - - ">="
71
- - !ruby/object:Gem::Version
72
- hash: 3
73
- segments:
74
- - 0
75
- version: "0"
76
- name: jeweler
77
- version_requirements: *id004
78
- prerelease: false
79
- - !ruby/object:Gem::Dependency
80
- type: :development
81
- requirement: &id005 !ruby/object:Gem::Requirement
24
+ requirement: &id001 !ruby/object:Gem::Requirement
82
25
  none: false
83
26
  requirements:
84
27
  - - ">="
@@ -89,72 +32,12 @@ dependencies:
89
32
  - 2
90
33
  - 9
91
34
  version: 1.2.9
92
- name: rspec
93
- version_requirements: *id005
94
- prerelease: false
95
- - !ruby/object:Gem::Dependency
96
- type: :development
97
- requirement: &id006 !ruby/object:Gem::Requirement
98
- none: false
99
- requirements:
100
- - - ">="
101
- - !ruby/object:Gem::Version
102
- hash: 3
103
- segments:
104
- - 0
105
- version: "0"
106
- name: yard
107
- version_requirements: *id006
108
- prerelease: false
109
- - !ruby/object:Gem::Dependency
110
35
  type: :development
111
- requirement: &id007 !ruby/object:Gem::Requirement
112
- none: false
113
- requirements:
114
- - - ">="
115
- - !ruby/object:Gem::Version
116
- hash: 13
117
- segments:
118
- - 1
119
- - 2
120
- - 9
121
- version: 1.2.9
122
- name: rspec
123
- version_requirements: *id007
124
- prerelease: false
36
+ version_requirements: *id001
125
37
  - !ruby/object:Gem::Dependency
126
- type: :development
127
- requirement: &id008 !ruby/object:Gem::Requirement
128
- none: false
129
- requirements:
130
- - - ">="
131
- - !ruby/object:Gem::Version
132
- hash: 3
133
- segments:
134
- - 0
135
- version: "0"
136
38
  name: yard
137
- version_requirements: *id008
138
- prerelease: false
139
- - !ruby/object:Gem::Dependency
140
- type: :development
141
- requirement: &id009 !ruby/object:Gem::Requirement
142
- none: false
143
- requirements:
144
- - - ">="
145
- - !ruby/object:Gem::Version
146
- hash: 13
147
- segments:
148
- - 1
149
- - 2
150
- - 9
151
- version: 1.2.9
152
- name: rspec
153
- version_requirements: *id009
154
39
  prerelease: false
155
- - !ruby/object:Gem::Dependency
156
- type: :development
157
- requirement: &id010 !ruby/object:Gem::Requirement
40
+ requirement: &id002 !ruby/object:Gem::Requirement
158
41
  none: false
159
42
  requirements:
160
43
  - - ">="
@@ -163,42 +46,12 @@ dependencies:
163
46
  segments:
164
47
  - 0
165
48
  version: "0"
166
- name: yard
167
- version_requirements: *id010
168
- prerelease: false
169
- - !ruby/object:Gem::Dependency
170
49
  type: :development
171
- requirement: &id011 !ruby/object:Gem::Requirement
172
- none: false
173
- requirements:
174
- - - ">="
175
- - !ruby/object:Gem::Version
176
- hash: 13
177
- segments:
178
- - 1
179
- - 2
180
- - 9
181
- version: 1.2.9
182
- name: rspec
183
- version_requirements: *id011
184
- prerelease: false
50
+ version_requirements: *id002
185
51
  - !ruby/object:Gem::Dependency
186
- type: :development
187
- requirement: &id012 !ruby/object:Gem::Requirement
188
- none: false
189
- requirements:
190
- - - ">="
191
- - !ruby/object:Gem::Version
192
- hash: 3
193
- segments:
194
- - 0
195
- version: "0"
196
- name: yard
197
- version_requirements: *id012
52
+ name: thor
198
53
  prerelease: false
199
- - !ruby/object:Gem::Dependency
200
- type: :runtime
201
- requirement: &id013 !ruby/object:Gem::Requirement
54
+ requirement: &id003 !ruby/object:Gem::Requirement
202
55
  none: false
203
56
  requirements:
204
57
  - - ">="
@@ -208,20 +61,19 @@ dependencies:
208
61
  - 0
209
62
  - 10
210
63
  version: "0.10"
211
- name: thor
212
- version_requirements: *id013
213
- prerelease: false
64
+ type: :runtime
65
+ version_requirements: *id003
214
66
  description: Define all services you need to run and this will launch,daemonize,and monitor them for you.
215
67
  email: me@tal.by
216
68
  executables:
217
69
  - freyr
218
70
  extensions: []
219
71
 
220
- extra_rdoc_files:
221
- - LICENSE
222
- - README.markdown
72
+ extra_rdoc_files: []
73
+
223
74
  files:
224
75
  - .document
76
+ - .gitignore
225
77
  - .irbrc
226
78
  - .rvmrc
227
79
  - Freyrfile
@@ -246,6 +98,7 @@ files:
246
98
  - lib/freyr/service.rb
247
99
  - lib/freyr/service_group.rb
248
100
  - lib/freyr/service_info.rb
101
+ - lib/freyr/version.rb
249
102
  - spec/freyr_spec.rb
250
103
  - spec/spec.opts
251
104
  - spec/spec_helper.rb
@@ -283,5 +136,7 @@ rubygems_version: 1.6.2
283
136
  signing_key:
284
137
  specification_version: 3
285
138
  summary: Service manager and runner
286
- test_files: []
287
-
139
+ test_files:
140
+ - spec/freyr_spec.rb
141
+ - spec/spec.opts
142
+ - spec/spec_helper.rb