ruby-station 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -1,2 +1,3 @@
1
1
  pkg
2
2
  tmp
3
+ tests/development
data/README.mkd ADDED
@@ -0,0 +1,50 @@
1
+ RubyStation
2
+ ===========
3
+
4
+ Make desktop apps with web technology.
5
+
6
+ Website
7
+ =======
8
+ http://yhara.github.com/ruby-station/
9
+
10
+ Tips
11
+ ====
12
+
13
+ Autostart ruby-station on Mac OS X
14
+ ----------------------------------
15
+
16
+ Use launchd.
17
+
18
+ $ man launchd
19
+
20
+ ~/Library/LaunchAgents/net.route477.ruby_station.plist:
21
+
22
+ <?xml version="1.0" encoding="UTF-8"?>
23
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
24
+ <plist version="1.0">
25
+ <dict>
26
+ <key>Label</key>
27
+ <string>net.route477.ruby_station</string>
28
+ <key>OnDemand</key>
29
+ <false/>
30
+ <key>Porgram</key>
31
+ <string>/opt/local/bin/ruby</string>
32
+ <key>ProgramArguments</key>
33
+ <array>
34
+ <string>/Users/***your username***/.gem/ruby/1.8/bin/ruby-station</string>
35
+ </array>
36
+ <key>QueueDirectories</key>
37
+ <array/>
38
+ <key>RunAtLoad</key>
39
+ <true/>
40
+ <key>WatchPaths</key>
41
+ <array/>
42
+ </dict>
43
+ </plist>
44
+
45
+ Restart (or '$ launchctl start net.route477.ruby_station') and ruby-station starts.
46
+
47
+ Contact
48
+ =======
49
+ Yutaka HARA (yhara)
50
+ http://github.com/yhara/ruby-station/
data/Rakefile CHANGED
@@ -14,8 +14,10 @@ Jeweler::Tasks.new do |gemspec|
14
14
  gemspec.description = gemspec.summary
15
15
  gemspec.authors = ["Yutaka HARA"]
16
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')
17
+ gemspec.add_dependency('dm-core', '~> 1.0.0')
18
+ gemspec.add_dependency('dm-sqlite-adapter', '~> 1.0.0')
19
+ gemspec.add_dependency('dm-migrations', '~> 1.0.0')
20
+ gemspec.add_dependency('json')
19
21
  gemspec.add_development_dependency('rspec', '= 1.2.9')
20
22
  gemspec.add_development_dependency('cucumber', '= 0.4.2')
21
23
  gemspec.add_development_dependency('rack-test', '= 0.5.0')
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.5
1
+ 0.1.6
data/layout/default.xhtml CHANGED
@@ -54,9 +54,13 @@
54
54
  <a href="/">RubyStation</a>
55
55
  </h1>
56
56
  <div>
57
- #@content
57
+ #{@content}
58
58
  </div>
59
59
  </div>
60
+ <div id="footer">
61
+ RubyStation #{RubyStation::VERSION}<br>
62
+ Ruby #{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}
63
+ </div>
60
64
  </body>
61
65
  </html>
62
66
 
data/model/init.rb CHANGED
@@ -1,4 +1,6 @@
1
1
  require 'dm-core'
2
+ require 'dm-migrations'
3
+
2
4
  Ramaze::Log.info("opening database: #{Conf.db_path}")
3
5
  DataMapper.setup(:default, "sqlite3://#{Conf.db_path}")
4
6
 
data/ruby-station.gemspec CHANGED
@@ -1,22 +1,26 @@
1
1
  # Generated by jeweler
2
- # DO NOT EDIT THIS FILE
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{ruby-station}
8
- s.version = "0.1.5"
8
+ s.version = "0.1.6"
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"]
12
- s.date = %q{2009-10-24}
12
+ s.date = %q{2010-09-01}
13
13
  s.default_executable = %q{ruby-station}
14
14
  s.description = %q{Create, Distribute, and Install Ruby applications easily}
15
15
  s.email = %q{yutaka.hara/at/gmail.com}
16
16
  s.executables = ["ruby-station"]
17
+ s.extra_rdoc_files = [
18
+ "README.mkd"
19
+ ]
17
20
  s.files = [
18
21
  ".gitignore",
19
22
  "History.txt",
23
+ "README.mkd",
20
24
  "Rakefile",
21
25
  "VERSION",
22
26
  "bin/ruby-station",
@@ -75,17 +79,19 @@ Gem::Specification.new do |s|
75
79
  s.homepage = %q{http://github.com/yhara/ruby-station}
76
80
  s.rdoc_options = ["--charset=UTF-8"]
77
81
  s.require_paths = ["lib"]
78
- s.rubygems_version = %q{1.3.5}
82
+ s.rubygems_version = %q{1.3.7}
79
83
  s.summary = %q{Create, Distribute, and Install Ruby applications easily}
80
84
 
81
85
  if s.respond_to? :specification_version then
82
86
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
83
87
  s.specification_version = 3
84
88
 
85
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
89
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
86
90
  s.add_runtime_dependency(%q<ramaze>, [">= 2009.07"])
87
- s.add_runtime_dependency(%q<dm-core>, ["= 0.10.1"])
88
- s.add_runtime_dependency(%q<do_sqlite3>, ["= 0.10.0"])
91
+ s.add_runtime_dependency(%q<dm-core>, ["~> 1.0.0"])
92
+ s.add_runtime_dependency(%q<dm-sqlite-adapter>, ["~> 1.0.0"])
93
+ s.add_runtime_dependency(%q<dm-migrations>, ["~> 1.0.0"])
94
+ s.add_runtime_dependency(%q<json>, [">= 0"])
89
95
  s.add_development_dependency(%q<rspec>, ["= 1.2.9"])
90
96
  s.add_development_dependency(%q<cucumber>, ["= 0.4.2"])
91
97
  s.add_development_dependency(%q<rack-test>, ["= 0.5.0"])
@@ -93,8 +99,10 @@ Gem::Specification.new do |s|
93
99
  s.add_development_dependency(%q<culerity>, ["= 0.2.3"])
94
100
  else
95
101
  s.add_dependency(%q<ramaze>, [">= 2009.07"])
96
- s.add_dependency(%q<dm-core>, ["= 0.10.1"])
97
- s.add_dependency(%q<do_sqlite3>, ["= 0.10.0"])
102
+ s.add_dependency(%q<dm-core>, ["~> 1.0.0"])
103
+ s.add_dependency(%q<dm-sqlite-adapter>, ["~> 1.0.0"])
104
+ s.add_dependency(%q<dm-migrations>, ["~> 1.0.0"])
105
+ s.add_dependency(%q<json>, [">= 0"])
98
106
  s.add_dependency(%q<rspec>, ["= 1.2.9"])
99
107
  s.add_dependency(%q<cucumber>, ["= 0.4.2"])
100
108
  s.add_dependency(%q<rack-test>, ["= 0.5.0"])
@@ -103,8 +111,10 @@ Gem::Specification.new do |s|
103
111
  end
104
112
  else
105
113
  s.add_dependency(%q<ramaze>, [">= 2009.07"])
106
- s.add_dependency(%q<dm-core>, ["= 0.10.1"])
107
- s.add_dependency(%q<do_sqlite3>, ["= 0.10.0"])
114
+ s.add_dependency(%q<dm-core>, ["~> 1.0.0"])
115
+ s.add_dependency(%q<dm-sqlite-adapter>, ["~> 1.0.0"])
116
+ s.add_dependency(%q<dm-migrations>, ["~> 1.0.0"])
117
+ s.add_dependency(%q<json>, [">= 0"])
108
118
  s.add_dependency(%q<rspec>, ["= 1.2.9"])
109
119
  s.add_dependency(%q<cucumber>, ["= 0.4.2"])
110
120
  s.add_dependency(%q<rack-test>, ["= 0.5.0"])
@@ -112,3 +122,4 @@ Gem::Specification.new do |s|
112
122
  s.add_dependency(%q<culerity>, ["= 0.2.3"])
113
123
  end
114
124
  end
125
+
data/tests/README CHANGED
@@ -17,12 +17,14 @@ Features
17
17
  1. install cucumber:
18
18
  $ gem install cucumber
19
19
 
20
- 2. install jruby (http://jruby.org/)
20
+ 2. install jruby (http://jruby.org/) and celerity
21
21
 
22
22
  JRuby must be executable by 'jruby'.
23
23
 
24
+ $ jgem install celerity
25
+
24
26
  3. install culerity:
25
- $ gem install langalex-culerity --source http://gems.github.com
27
+ $ gem install culerity
26
28
 
27
29
  4. run test
28
30
  $ rake cucumber
data/util/gem_manager.rb CHANGED
@@ -33,7 +33,7 @@ module GemManager
33
33
  ].join(" ")
34
34
 
35
35
  out, _ = gem_install(cmd)
36
- spec = YAML.load(`gem spec #{path}`)
36
+ spec = YAML.load(`#{Conf.gem_command} spec #{newpath}`)
37
37
  name, version = spec.name, spec.version.to_s
38
38
  make_data_dir(name, version)
39
39
 
@@ -98,6 +98,7 @@ module GemManager
98
98
  def self.uninstall(name, version)
99
99
  cmd = [
100
100
  Conf.gem_command, "uninstall", name,
101
+ "-x", #Uninstall applicable executables without confirmation
101
102
  "-v", version,
102
103
  "-i", Conf.gem_dir,
103
104
  "-n", Conf.gem_bin_dir
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-station
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 1
8
+ - 6
9
+ version: 0.1.6
5
10
  platform: ruby
6
11
  authors:
7
12
  - Yutaka HARA
@@ -9,100 +14,168 @@ autorequire:
9
14
  bindir: bin
10
15
  cert_chain: []
11
16
 
12
- date: 2009-10-24 00:00:00 +09:00
17
+ date: 2010-09-01 00:00:00 +09:00
13
18
  default_executable: ruby-station
14
19
  dependencies:
15
20
  - !ruby/object:Gem::Dependency
16
21
  name: ramaze
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
20
25
  requirements:
21
26
  - - ">="
22
27
  - !ruby/object:Gem::Version
28
+ segments:
29
+ - 2009
30
+ - 7
23
31
  version: "2009.07"
24
- version:
32
+ type: :runtime
33
+ version_requirements: *id001
25
34
  - !ruby/object:Gem::Dependency
26
35
  name: dm-core
36
+ prerelease: false
37
+ requirement: &id002 !ruby/object:Gem::Requirement
38
+ none: false
39
+ requirements:
40
+ - - ~>
41
+ - !ruby/object:Gem::Version
42
+ segments:
43
+ - 1
44
+ - 0
45
+ - 0
46
+ version: 1.0.0
27
47
  type: :runtime
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
48
+ version_requirements: *id002
49
+ - !ruby/object:Gem::Dependency
50
+ name: dm-sqlite-adapter
51
+ prerelease: false
52
+ requirement: &id003 !ruby/object:Gem::Requirement
53
+ none: false
30
54
  requirements:
31
- - - "="
55
+ - - ~>
32
56
  - !ruby/object:Gem::Version
33
- version: 0.10.1
34
- version:
57
+ segments:
58
+ - 1
59
+ - 0
60
+ - 0
61
+ version: 1.0.0
62
+ type: :runtime
63
+ version_requirements: *id003
35
64
  - !ruby/object:Gem::Dependency
36
- name: do_sqlite3
65
+ name: dm-migrations
66
+ prerelease: false
67
+ requirement: &id004 !ruby/object:Gem::Requirement
68
+ none: false
69
+ requirements:
70
+ - - ~>
71
+ - !ruby/object:Gem::Version
72
+ segments:
73
+ - 1
74
+ - 0
75
+ - 0
76
+ version: 1.0.0
37
77
  type: :runtime
38
- version_requirement:
39
- version_requirements: !ruby/object:Gem::Requirement
78
+ version_requirements: *id004
79
+ - !ruby/object:Gem::Dependency
80
+ name: json
81
+ prerelease: false
82
+ requirement: &id005 !ruby/object:Gem::Requirement
83
+ none: false
40
84
  requirements:
41
- - - "="
85
+ - - ">="
42
86
  - !ruby/object:Gem::Version
43
- version: 0.10.0
44
- version:
87
+ segments:
88
+ - 0
89
+ version: "0"
90
+ type: :runtime
91
+ version_requirements: *id005
45
92
  - !ruby/object:Gem::Dependency
46
93
  name: rspec
47
- type: :development
48
- version_requirement:
49
- version_requirements: !ruby/object:Gem::Requirement
94
+ prerelease: false
95
+ requirement: &id006 !ruby/object:Gem::Requirement
96
+ none: false
50
97
  requirements:
51
98
  - - "="
52
99
  - !ruby/object:Gem::Version
100
+ segments:
101
+ - 1
102
+ - 2
103
+ - 9
53
104
  version: 1.2.9
54
- version:
105
+ type: :development
106
+ version_requirements: *id006
55
107
  - !ruby/object:Gem::Dependency
56
108
  name: cucumber
57
- type: :development
58
- version_requirement:
59
- version_requirements: !ruby/object:Gem::Requirement
109
+ prerelease: false
110
+ requirement: &id007 !ruby/object:Gem::Requirement
111
+ none: false
60
112
  requirements:
61
113
  - - "="
62
114
  - !ruby/object:Gem::Version
115
+ segments:
116
+ - 0
117
+ - 4
118
+ - 2
63
119
  version: 0.4.2
64
- version:
120
+ type: :development
121
+ version_requirements: *id007
65
122
  - !ruby/object:Gem::Dependency
66
123
  name: rack-test
67
- type: :development
68
- version_requirement:
69
- version_requirements: !ruby/object:Gem::Requirement
124
+ prerelease: false
125
+ requirement: &id008 !ruby/object:Gem::Requirement
126
+ none: false
70
127
  requirements:
71
128
  - - "="
72
129
  - !ruby/object:Gem::Version
130
+ segments:
131
+ - 0
132
+ - 5
133
+ - 0
73
134
  version: 0.5.0
74
- version:
135
+ type: :development
136
+ version_requirements: *id008
75
137
  - !ruby/object:Gem::Dependency
76
138
  name: webrat
77
- type: :development
78
- version_requirement:
79
- version_requirements: !ruby/object:Gem::Requirement
139
+ prerelease: false
140
+ requirement: &id009 !ruby/object:Gem::Requirement
141
+ none: false
80
142
  requirements:
81
143
  - - "="
82
144
  - !ruby/object:Gem::Version
145
+ segments:
146
+ - 0
147
+ - 5
148
+ - 3
83
149
  version: 0.5.3
84
- version:
150
+ type: :development
151
+ version_requirements: *id009
85
152
  - !ruby/object:Gem::Dependency
86
153
  name: culerity
87
- type: :development
88
- version_requirement:
89
- version_requirements: !ruby/object:Gem::Requirement
154
+ prerelease: false
155
+ requirement: &id010 !ruby/object:Gem::Requirement
156
+ none: false
90
157
  requirements:
91
158
  - - "="
92
159
  - !ruby/object:Gem::Version
160
+ segments:
161
+ - 0
162
+ - 2
163
+ - 3
93
164
  version: 0.2.3
94
- version:
165
+ type: :development
166
+ version_requirements: *id010
95
167
  description: Create, Distribute, and Install Ruby applications easily
96
168
  email: yutaka.hara/at/gmail.com
97
169
  executables:
98
170
  - ruby-station
99
171
  extensions: []
100
172
 
101
- extra_rdoc_files: []
102
-
173
+ extra_rdoc_files:
174
+ - README.mkd
103
175
  files:
104
176
  - .gitignore
105
177
  - History.txt
178
+ - README.mkd
106
179
  - Rakefile
107
180
  - VERSION
108
181
  - bin/ruby-station
@@ -167,21 +240,25 @@ rdoc_options:
167
240
  require_paths:
168
241
  - lib
169
242
  required_ruby_version: !ruby/object:Gem::Requirement
243
+ none: false
170
244
  requirements:
171
245
  - - ">="
172
246
  - !ruby/object:Gem::Version
247
+ segments:
248
+ - 0
173
249
  version: "0"
174
- version:
175
250
  required_rubygems_version: !ruby/object:Gem::Requirement
251
+ none: false
176
252
  requirements:
177
253
  - - ">="
178
254
  - !ruby/object:Gem::Version
255
+ segments:
256
+ - 0
179
257
  version: "0"
180
- version:
181
258
  requirements: []
182
259
 
183
260
  rubyforge_project:
184
- rubygems_version: 1.3.5
261
+ rubygems_version: 1.3.7
185
262
  signing_key:
186
263
  specification_version: 3
187
264
  summary: Create, Distribute, and Install Ruby applications easily