stephencelis-acts_as_singleton 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,10 @@
1
+ === 0.0.2 / 2009-04-13
2
+
3
+ * 1 minor enhancement
4
+
5
+ * Update regular expression to allow for a needed method.
6
+
7
+
1
8
  === 0.0.1 / 2009-03-30
2
9
 
3
10
  * 1 major enhancement
data/README.txt CHANGED
@@ -7,15 +7,18 @@ http://github.com/stephencelis/acts_as_singleton
7
7
 
8
8
  A lightweight singleton library for your Active Record models.
9
9
 
10
- It just makes sense to store mutable admin-level settings in the database. A
11
- key-value table may be more flexible, but maybe we don't want to be flexible!
10
+ It just makes sense to store mutable, site-wide, admin-level settings in the
11
+ database. Right? A key-value table may be more flexible, but maybe we don't
12
+ want to be flexible!
13
+
14
+ If you truly want that flexibility: http://github.com/stephencelis/kvc
12
15
 
13
16
 
14
17
  == FEATURES/PROBLEMS
15
18
 
16
19
  * Lightning-fast queries! Doesn't get any faster than this! (Guaranteed.)
17
20
  * Follows the ultra-cool "singleton" pattern! (Tell your friends.)
18
- * What? Singletons aren't cool in Ruby? (Don't tell your friends?)
21
+ * What? That's not the "cool" singleton in Ruby? (Don't tell your friends?)
19
22
 
20
23
 
21
24
  == SYNOPSIS
@@ -50,12 +53,17 @@ Don't even try to access it otherwise. It won't work!
50
53
 
51
54
  === As a gem
52
55
 
53
- Install:
56
+ From RubyForge:
57
+
58
+ % gem install acts_as_singleton
59
+
60
+
61
+ Or GitHub:
54
62
 
55
63
  % gem install stephencelis-acts_as_singleton --source=http://gems.github.com
56
64
 
57
65
 
58
- Configure:
66
+ And configure:
59
67
 
60
68
  config.gem "stephencelis-acts_as_singleton",
61
69
  :lib => "acts_as_singleton",
@@ -64,9 +72,17 @@ Configure:
64
72
 
65
73
  === As a plugin
66
74
 
75
+ Traditional:
76
+
67
77
  % script/plugin install git://github.com/stephencelis/acts_as_singleton.git
68
78
 
69
79
 
80
+ Or, as a submodule:
81
+
82
+ % git submodule add git://github.com/stephencelis/acts_as_singleton.git \
83
+ vendor/plugins/acts_as_singleton
84
+
85
+
70
86
  == LICENSE
71
87
 
72
88
  (The MIT License)
data/Rakefile CHANGED
@@ -6,6 +6,8 @@ require "acts_as_singleton"
6
6
 
7
7
  Hoe.new("acts_as_singleton", ActiveRecord::Singleton::VERSION) do |p|
8
8
  p.developer("Stephen Celis", "stephen@stephencelis.com")
9
+ p.remote_rdoc_dir = ''
10
+ p.rubyforge_name = %q{actsassingleton}
9
11
  end
10
12
 
11
13
  require 'rake'
@@ -28,6 +30,6 @@ Rake::RDocTask.new(:rdoc) do |rdoc|
28
30
  rdoc.rdoc_dir = 'rdoc'
29
31
  rdoc.title = 'acts_as_singleton'
30
32
  rdoc.options << '--line-numbers' << '--inline-source'
31
- rdoc.rdoc_files.include('README')
33
+ rdoc.rdoc_files.include('README.txt')
32
34
  rdoc.rdoc_files.include('lib/**/*.rb')
33
35
  end
@@ -17,11 +17,11 @@ module ActiveRecord
17
17
  # clash with the <tt>ActiveRecord::Singleton::PRIVATE</tt> pattern, or
18
18
  # define them after including the module.
19
19
  module Singleton
20
- VERSION = "0.0.1"
20
+ VERSION = "0.0.2"
21
21
 
22
22
  # This pattern matches methods that should be made private because they
23
23
  # should not be used in singleton classes.
24
- PRIVATE = /^all(?:oc.*)?$|alloc|create|find|firs|mini|max|new|d_sco|upd/
24
+ PRIVATE = /^all(?:oc.*)?$|alloc|create|find|firs|mini|max|new|d_sco|^upd/
25
25
 
26
26
  def self.included(model)
27
27
  model.class_eval do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stephencelis-acts_as_singleton
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Celis
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-03-30 00:00:00 -07:00
12
+ date: 2009-04-13 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -20,9 +20,9 @@ dependencies:
20
20
  requirements:
21
21
  - - ">="
22
22
  - !ruby/object:Gem::Version
23
- version: 1.11.0
23
+ version: 1.12.1
24
24
  version:
25
- description: A lightweight singleton library for your Active Record models. Sometimes it makes sense to store mutable admin-level settings in the database. A key-value table may be more flexible, but maybe we don't want to be flexible!
25
+ description: "A lightweight singleton library for your Active Record models. It just makes sense to store mutable, site-wide, admin-level settings in the database. Right? A key-value table may be more flexible, but maybe we don't want to be flexible! If you truly want that flexibility: http://github.com/stephencelis/kvc"
26
26
  email:
27
27
  - stephen@stephencelis.com
28
28
  executables: []
@@ -63,7 +63,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
63
63
  version:
64
64
  requirements: []
65
65
 
66
- rubyforge_project: acts_as_singleton
66
+ rubyforge_project: actsassingleton
67
67
  rubygems_version: 1.2.0
68
68
  signing_key:
69
69
  specification_version: 2