ruby-station 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +3 -3
- data/VERSION +1 -1
- data/config.rb +5 -0
- data/model/application.rb +7 -0
- data/ruby-station.gemspec +10 -10
- metadata +4 -4
data/Rakefile
CHANGED
@@ -13,9 +13,9 @@ Jeweler::Tasks.new do |gemspec|
|
|
13
13
|
gemspec.homepage = "http://github.com/yhara/#{PROJECT_NAME}"
|
14
14
|
gemspec.description = gemspec.summary
|
15
15
|
gemspec.authors = ["Yutaka HARA"]
|
16
|
-
gemspec.add_dependency('ramaze', '
|
17
|
-
gemspec.add_dependency('dm-core')
|
18
|
-
gemspec.add_dependency('do_sqlite3')
|
16
|
+
gemspec.add_dependency('ramaze', '>= 2009.07')
|
17
|
+
gemspec.add_dependency('dm-core', '>= 0.10.1')
|
18
|
+
gemspec.add_dependency('do_sqlite3', '>= 0.10.0')
|
19
19
|
gemspec.add_development_dependency('rspec', '>= 1.2.8')
|
20
20
|
gemspec.add_development_dependency('cucumber', '>= 0.3.101')
|
21
21
|
gemspec.executables = ["ruby-station"]
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.3
|
data/config.rb
CHANGED
@@ -27,6 +27,11 @@ class Conf
|
|
27
27
|
o.on("--home PATH", "path to save ruby-station data (default: #@home)"){|path|
|
28
28
|
@home = File.expand_path(path)
|
29
29
|
}
|
30
|
+
o.on("-v", "--version", "show version"){
|
31
|
+
puts "RubyStation version #{RubyStation::VERSION}"
|
32
|
+
puts "(runtime version: #{RubyStation::RUNTIME_VERSION})"
|
33
|
+
exit
|
34
|
+
}
|
30
35
|
o.on("-h", "--help", "show this message"){
|
31
36
|
puts @opt.to_s
|
32
37
|
exit
|
data/model/application.rb
CHANGED
@@ -11,12 +11,15 @@ class Application
|
|
11
11
|
return if self.pid
|
12
12
|
|
13
13
|
cmd = [
|
14
|
+
gem_env(),
|
14
15
|
Conf.ruby_command,
|
15
16
|
script_path,
|
16
17
|
"--port", self.port.to_s,
|
17
18
|
"--data-dir", data_dir,
|
18
19
|
].join(" ")
|
19
20
|
|
21
|
+
Ramaze::Log.info "starting app: #{cmd}"
|
22
|
+
|
20
23
|
self.pid = Servant.watch(cmd){
|
21
24
|
stopped
|
22
25
|
}
|
@@ -49,6 +52,10 @@ class Application
|
|
49
52
|
def data_dir
|
50
53
|
File.join(Conf.data_dir, full_name)
|
51
54
|
end
|
55
|
+
|
56
|
+
def gem_env
|
57
|
+
"GEM_HOME='#{Conf.gem_dir}'"
|
58
|
+
end
|
52
59
|
end
|
53
60
|
DataMapper.auto_upgrade!
|
54
61
|
|
data/ruby-station.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{ruby-station}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Yutaka HARA"]
|
@@ -77,22 +77,22 @@ Gem::Specification.new do |s|
|
|
77
77
|
s.specification_version = 3
|
78
78
|
|
79
79
|
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
80
|
-
s.add_runtime_dependency(%q<ramaze>, ["
|
81
|
-
s.add_runtime_dependency(%q<dm-core>, [">= 0"])
|
82
|
-
s.add_runtime_dependency(%q<do_sqlite3>, [">= 0"])
|
80
|
+
s.add_runtime_dependency(%q<ramaze>, [">= 2009.07"])
|
81
|
+
s.add_runtime_dependency(%q<dm-core>, [">= 0.10.1"])
|
82
|
+
s.add_runtime_dependency(%q<do_sqlite3>, [">= 0.10.0"])
|
83
83
|
s.add_development_dependency(%q<rspec>, [">= 1.2.8"])
|
84
84
|
s.add_development_dependency(%q<cucumber>, [">= 0.3.101"])
|
85
85
|
else
|
86
|
-
s.add_dependency(%q<ramaze>, ["
|
87
|
-
s.add_dependency(%q<dm-core>, [">= 0"])
|
88
|
-
s.add_dependency(%q<do_sqlite3>, [">= 0"])
|
86
|
+
s.add_dependency(%q<ramaze>, [">= 2009.07"])
|
87
|
+
s.add_dependency(%q<dm-core>, [">= 0.10.1"])
|
88
|
+
s.add_dependency(%q<do_sqlite3>, [">= 0.10.0"])
|
89
89
|
s.add_dependency(%q<rspec>, [">= 1.2.8"])
|
90
90
|
s.add_dependency(%q<cucumber>, [">= 0.3.101"])
|
91
91
|
end
|
92
92
|
else
|
93
|
-
s.add_dependency(%q<ramaze>, ["
|
94
|
-
s.add_dependency(%q<dm-core>, [">= 0"])
|
95
|
-
s.add_dependency(%q<do_sqlite3>, [">= 0"])
|
93
|
+
s.add_dependency(%q<ramaze>, [">= 2009.07"])
|
94
|
+
s.add_dependency(%q<dm-core>, [">= 0.10.1"])
|
95
|
+
s.add_dependency(%q<do_sqlite3>, [">= 0.10.0"])
|
96
96
|
s.add_dependency(%q<rspec>, [">= 1.2.8"])
|
97
97
|
s.add_dependency(%q<cucumber>, [">= 0.3.101"])
|
98
98
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-station
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yutaka HARA
|
@@ -18,7 +18,7 @@ dependencies:
|
|
18
18
|
version_requirement:
|
19
19
|
version_requirements: !ruby/object:Gem::Requirement
|
20
20
|
requirements:
|
21
|
-
- - "
|
21
|
+
- - ">="
|
22
22
|
- !ruby/object:Gem::Version
|
23
23
|
version: "2009.07"
|
24
24
|
version:
|
@@ -30,7 +30,7 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 0.10.1
|
34
34
|
version:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: do_sqlite3
|
@@ -40,7 +40,7 @@ dependencies:
|
|
40
40
|
requirements:
|
41
41
|
- - ">="
|
42
42
|
- !ruby/object:Gem::Version
|
43
|
-
version:
|
43
|
+
version: 0.10.0
|
44
44
|
version:
|
45
45
|
- !ruby/object:Gem::Dependency
|
46
46
|
name: rspec
|