skates 0.3.5 → 0.3.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,6 +2,8 @@
2
2
  require 'rubygems'
3
3
  require 'optparse'
4
4
 
5
+ $: << "." # Adding the local directory to the path, so we can safely require models, controllers and views.
6
+
5
7
  # default options
6
8
  OPTIONS = {
7
9
  :environment => "development",
@@ -19,10 +21,14 @@ ARGV.options do |o|
19
21
 
20
22
  o.on("-e", "--environment=env", String,
21
23
  "The environment to run the application (you should have defined the argument into config/config.yaml)",
22
- "Default: #{OPTIONS[:environment]}") { |OPTIONS[:environment]| }
24
+ "Default: #{OPTIONS[:environment]}") { |environment|
25
+ OPTIONS[:environment] = environment
26
+ }
23
27
  o.on("-n", "--name=app_name", String,
24
28
  "Name of your application. The pid_file will be name after this.",
25
- "Default: #{OPTIONS[:name]}") { |OPTIONS[:name]| }
29
+ "Default: #{OPTIONS[:name]}") { |name|
30
+ OPTIONS[:name] = name
31
+ }
26
32
 
27
33
  o.separator ""
28
34
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: skates
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 5
10
- version: 0.3.5
9
+ - 6
10
+ version: 0.3.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - julien Genestoux
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-08-17 00:00:00 +02:00
18
+ date: 2010-12-13 00:00:00 +01:00
19
19
  default_executable: skates
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency