picnic 0.6.4 → 0.6.5

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.txt CHANGED
@@ -1,49 +1 @@
1
- === 0.6.4 :: 2008-05-26
2
-
3
- * Patched bundled Camping library to allow setting expiry time on cookies.
4
- * CLI initializer can now be fed an alternate module name for your application.
5
- This will override the module that would have been guessed based on the
6
- app's name.
7
- * Fixed bug where HTTPS operation didn't work under Webrick. You should now
8
- again be able to serve over HTTPS when using webrick by supplying the
9
- ssl_cert configuration option.
10
- See: http://code.google.com/p/rubycas-server/issues/detail?id=45
11
- * Fixed bug where the log file was being truncuated whenever the server
12
- was started in daemon mode.
13
-
14
- === 0.6.3 :: 2008-03-14
15
-
16
- * Fixed bug in mongrel postamble that prevented the server from starting when
17
- the log level was set to DEBUG.
18
-
19
- === 0.6.2 :: 2008-03-06
20
-
21
- * Fixed some loading problems having to do with the new CAS authenticator
22
- introduced in 0.6.0.
23
-
24
- === 0.6.1 :: 2008-02-28
25
-
26
- * Fixed bug introduced in 0.6.0 where webrick and mongrel postambles were
27
- broken for apps that don't define any public directories.
28
- * Each public directory mount is now logged during startup. Also resolved
29
- some potential issues with the uri_path config option. Multiple /'s
30
- in the path are now automatically removed.
31
-
32
- === 0.6.0 :: 2008-02-26
33
-
34
- * Added support for CAS authentication. See picnic/authentication.rb for
35
- details.
36
- * Webrick and Mongrel can now be made to bind to a specific IP address using
37
- the :bind_address option. If no :bind_address is specified, the server will
38
- listen on all addresses (i.e. '0.0.0.0').
39
- * The Public controller for serving the '/public' directory is gone. It has
40
- been replaced by respective Webrick and Mongrel mechanisms for serving
41
- directory contents, since these are much faster. If you're using CGI/FastCGI,
42
- you'll have to manually configure your web server (i.e. probably Apache)
43
- to serve your public directory contents.
44
- * The gem package now correctly recognizes markaby as a required
45
- dependency.
46
-
47
- === 0.5.0 :: 2007-12-20
48
-
49
- * First public release.
1
+ See History.txt
data/History.txt ADDED
@@ -0,0 +1,53 @@
1
+ === 0.6.5 :: 2008-09-18
2
+
3
+ * Fixed compatibility with ActiveSupport 2.1.
4
+
5
+ === 0.6.4 :: 2008-05-26
6
+
7
+ * Patched bundled Camping library to allow setting expiry time on cookies.
8
+ * CLI initializer can now be fed an alternate module name for your application.
9
+ This will override the module that would have been guessed based on the
10
+ app's name.
11
+ * Fixed bug where HTTPS operation didn't work under Webrick. You should now
12
+ again be able to serve over HTTPS when using webrick by supplying the
13
+ ssl_cert configuration option.
14
+ See: http://code.google.com/p/rubycas-server/issues/detail?id=45
15
+ * Fixed bug where the log file was being truncuated whenever the server
16
+ was started in daemon mode.
17
+
18
+ === 0.6.3 :: 2008-03-14
19
+
20
+ * Fixed bug in mongrel postamble that prevented the server from starting when
21
+ the log level was set to DEBUG.
22
+
23
+ === 0.6.2 :: 2008-03-06
24
+
25
+ * Fixed some loading problems having to do with the new CAS authenticator
26
+ introduced in 0.6.0.
27
+
28
+ === 0.6.1 :: 2008-02-28
29
+
30
+ * Fixed bug introduced in 0.6.0 where webrick and mongrel postambles were
31
+ broken for apps that don't define any public directories.
32
+ * Each public directory mount is now logged during startup. Also resolved
33
+ some potential issues with the uri_path config option. Multiple /'s
34
+ in the path are now automatically removed.
35
+
36
+ === 0.6.0 :: 2008-02-26
37
+
38
+ * Added support for CAS authentication. See picnic/authentication.rb for
39
+ details.
40
+ * Webrick and Mongrel can now be made to bind to a specific IP address using
41
+ the :bind_address option. If no :bind_address is specified, the server will
42
+ listen on all addresses (i.e. '0.0.0.0').
43
+ * The Public controller for serving the '/public' directory is gone. It has
44
+ been replaced by respective Webrick and Mongrel mechanisms for serving
45
+ directory contents, since these are much faster. If you're using CGI/FastCGI,
46
+ you'll have to manually configure your web server (i.e. probably Apache)
47
+ to serve your public directory contents.
48
+ * The gem package now correctly recognizes markaby as a required
49
+ dependency.
50
+
51
+ === 0.5.0 :: 2007-12-20
52
+
53
+ * First public release.
data/Manifest.txt CHANGED
@@ -1,4 +1,5 @@
1
1
  CHANGELOG.txt
2
+ History.txt
2
3
  LICENSE.txt
3
4
  Manifest.txt
4
5
  README.txt
data/Rakefile CHANGED
@@ -54,6 +54,9 @@ hoe = Hoe.new(GEM_NAME, VERS) do |p|
54
54
  #p.extra_deps - An array of rubygem dependencies.
55
55
  #p.spec_extras - A hash of extra values to set in the gemspec.
56
56
 
57
- # note that camping-1.5.0.180 is now bundled with picnic the vendor directory,
58
- p.extra_deps = ['markaby']
57
+ # note that camping-1.5.0.180 is now bundled with picnic in the vendor directory.
58
+ p.extra_deps = [
59
+ 'markaby',
60
+ ['activesupport', '>=2.0.2']
61
+ ]
59
62
  end
data/lib/picnic.rb CHANGED
@@ -1,12 +1,13 @@
1
1
  $: << File.dirname(File.expand_path(__FILE__))
2
2
  $: << File.dirname(File.expand_path(__FILE__))+"/../vendor/camping-1.5.180/lib"
3
3
 
4
-
5
4
  unless Object.const_defined?(:ActiveSupport)
6
5
  begin
7
6
  require 'active_support'
8
7
  rescue LoadError
9
8
  require 'rubygems'
9
+ gem 'activesupport', '>=2.0.2'
10
+ gem 'activerecord', '>=2.0.2'
10
11
  require 'active_support'
11
12
  end
12
13
  end
@@ -40,7 +41,7 @@ class Module
40
41
  def init_logger
41
42
  puts "Initializing #{self} logger..."
42
43
  $LOG = Picnic::Utils::Logger.new(self::Conf.log[:file])
43
- $LOG.level = "Picnic::Utils::Logger::#{self::Conf.log[:level]}".constantize
44
+ $LOG.level = Picnic::Utils::Logger.const_get(self::Conf.log[:level])
44
45
  end
45
46
  module_function :init_logger
46
47
 
@@ -53,7 +54,7 @@ class Module
53
54
  if self::Conf.db_log
54
55
  log_file = self::Conf.db_log[:file] || "#{self.to_s.downcase}_db.log"
55
56
  self::Models::Base.logger = Picnic::Utils::Logger.new(log_file)
56
- self::Models::Base.logger.level = "Picnic::Utils::Logger::#{self::Conf.db_log[:level] || 'DEBUG'}".constantize
57
+ self::Models::Base.logger.level = Picnic::Utils::Logger.const_get(self::Conf.db_log[:level] || 'DEBUG')
57
58
  $LOG.debug "Logging database queries to #{log_file.inspect}"
58
59
  end
59
60
  rescue Errno::EACCES => e
@@ -84,7 +85,7 @@ class Module
84
85
  #
85
86
  def authenticate_using(mod)
86
87
  require 'picnic/authentication'
87
- mod = "#{self}::Authentication::#{mod.to_s.camelize}".constantize unless mod.kind_of? Module
88
+ mod = self::Authentication.const_get(mod.to_s.camelize) unless mod.kind_of? Module
88
89
 
89
90
  $LOG.info("Enabling authentication for all requests using #{mod.inspect}.")
90
91
 
@@ -131,4 +132,4 @@ class Module
131
132
  self::Conf.load(self)
132
133
  init_logger
133
134
  end
134
- end
135
+ end
@@ -2,7 +2,7 @@ module Picnic #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 6
5
- TINY = 4
5
+ TINY = 5
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.6.4
4
+ version: 0.6.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Zukowski
@@ -9,11 +9,12 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-05-26 00:00:00 -04:00
12
+ date: 2008-09-26 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: markaby
17
+ type: :runtime
17
18
  version_requirement:
18
19
  version_requirements: !ruby/object:Gem::Requirement
19
20
  requirements:
@@ -21,6 +22,26 @@ dependencies:
21
22
  - !ruby/object:Gem::Version
22
23
  version: "0"
23
24
  version:
25
+ - !ruby/object:Gem::Dependency
26
+ name: activesupport
27
+ type: :runtime
28
+ version_requirement:
29
+ version_requirements: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 2.0.2
34
+ version:
35
+ - !ruby/object:Gem::Dependency
36
+ name: hoe
37
+ type: :development
38
+ version_requirement:
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: 1.7.0
44
+ version:
24
45
  description: Camping for sissies
25
46
  email: matt@roughest.net
26
47
  executables: []
@@ -29,11 +50,13 @@ extensions: []
29
50
 
30
51
  extra_rdoc_files:
31
52
  - CHANGELOG.txt
53
+ - History.txt
32
54
  - LICENSE.txt
33
55
  - Manifest.txt
34
56
  - README.txt
35
57
  files:
36
58
  - CHANGELOG.txt
59
+ - History.txt
37
60
  - LICENSE.txt
38
61
  - Manifest.txt
39
62
  - README.txt
@@ -84,7 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
84
107
  requirements: []
85
108
 
86
109
  rubyforge_project: picnic
87
- rubygems_version: 1.0.1
110
+ rubygems_version: 1.2.0
88
111
  signing_key:
89
112
  specification_version: 2
90
113
  summary: Camping for sissies