picnic 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,10 @@
1
- === 0.7 :: In progress...
1
+ === 0.7.1 :: 2008-11-10
2
+
3
+ * Fixed config file loading problems rooted in $APP_PATH inconsistencies.
4
+ $APP_PATH is now set to the root of the application installation, rather than
5
+ the bin or lib subdirectory.
6
+
7
+ === 0.7.0 :: 2008-10-28
2
8
 
3
9
  * Can now configure the CLI aspect of an app to respond to additional command-
4
10
  line flags. This is done by passing a block of OptionParser calls as
@@ -59,4 +65,4 @@
59
65
 
60
66
  === 0.5.0 :: 2007-12-20
61
67
 
62
- * First public release.
68
+ * First public release.
@@ -53,7 +53,7 @@ module Picnic
53
53
  def handle_cli_input
54
54
  if File.exists? options[:app_file]
55
55
  # try to use given app base path
56
- $APP_PATH = File.dirname(options[:app_file]).gsub(/\/lib\/?$/, '')
56
+ $APP_PATH = File.dirname(options[:app_file]).gsub(/\/(lib|bin)\/?$/, '')
57
57
  else
58
58
  require 'rubygems'
59
59
 
@@ -48,7 +48,7 @@ module Picnic
48
48
  caller.last =~ /^(.*?):\d+$/
49
49
  app_path = File.dirname(File.expand_path($1))
50
50
  end
51
- app_path+'/../config.example.yml'
51
+ app_path+'/config.example.yml'
52
52
  end
53
53
 
54
54
  # Copies the example config file into the appropriate
@@ -94,9 +94,9 @@ module Picnic
94
94
  # everything that it's doing to STDOUT.
95
95
  def initialize(app, options = {})
96
96
  @app = app
97
-
97
+
98
98
  @options = options
99
- @options[:bin_file] ||= File.expand_path(File.dirname(File.expand_path(__FILE__)))+"/#{app}"
99
+ @options[:bin_file] ||= "bin/#{app}"
100
100
  @options[:pid_file] ||= "/etc/#{app}/#{app}.pid"
101
101
  @options[:conf_file] ||= nil
102
102
  @options[:verbose] ||= false
@@ -155,7 +155,7 @@ module Picnic
155
155
  def start
156
156
  # use local app bin if it exists and is executable -- makes debugging easier
157
157
  bin = options[:bin_file]
158
-
158
+
159
159
  if File.exists?(bin)
160
160
  exec = "ruby #{bin}"
161
161
  else
@@ -271,4 +271,4 @@ module Picnic
271
271
  end
272
272
  end
273
273
  end
274
- end
274
+ end
@@ -2,7 +2,7 @@ module Picnic #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 7
5
- TINY = 0
5
+ TINY = 1
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: picnic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Zukowski
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-10-28 00:00:00 -04:00
12
+ date: 2008-11-11 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -107,7 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
107
107
  requirements: []
108
108
 
109
109
  rubyforge_project: picnic
110
- rubygems_version: 1.2.0
110
+ rubygems_version: 1.3.1
111
111
  signing_key:
112
112
  specification_version: 2
113
113
  summary: Camping for sissies