stephencelis-kvc 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,10 @@
1
+ === 0.0.2 / 2009-04-04
2
+
3
+ * 1 minor enhancement
4
+
5
+ * Move KVC::Settings under "lib" to meet gem expectations.
6
+
7
+
1
8
  === 0.0.1 / 2009-04-01
2
9
 
3
10
  * 1 major enhancement
data/Manifest.txt CHANGED
@@ -2,8 +2,8 @@ History.txt
2
2
  Manifest.txt
3
3
  README.txt
4
4
  Rakefile
5
- app/models/kvc/settings.rb
6
5
  lib/kvc.rb
6
+ lib/kvc/settings.rb
7
7
  lib/kvc/settings_proxy.rb
8
8
  tasks/kvc_tasks.rake
9
9
  test/kvc_test.rb
data/README.txt CHANGED
@@ -11,8 +11,8 @@ mutable app settings in the database.
11
11
 
12
12
  == FEATURES/PROBLEMS
13
13
 
14
- * Transparent: no generators or migrations to run.
15
- * Powerful: quick access; automatic updates; scales quickly.
14
+ * Transparent: no generators or migrations to run.
15
+ * Powerful: quick access; automatic updates; scales quickly.
16
16
 
17
17
  For more rigidity/safety: http://github.com/stephencelis/acts_as_singleton
18
18
 
@@ -52,7 +52,7 @@ If need be, validate specific key values in an initializer:
52
52
 
53
53
  == REQUIREMENTS
54
54
 
55
- * Rails 2.3.2 or greater.
55
+ * Rails 2.3.2 or greater.
56
56
 
57
57
 
58
58
  == INSTALL
@@ -61,7 +61,7 @@ class KVC::Settings < ActiveRecord::Base
61
61
  end
62
62
  end
63
63
 
64
- unless table_exists?
64
+ if !table_exists?
65
65
  ActiveRecord::Schema.define do
66
66
  create_table :kvc_settings do |t|
67
67
  t.string :key
data/lib/kvc.rb CHANGED
@@ -35,7 +35,7 @@
35
35
  #
36
36
  # Failed validations will raise <tt>ActiveRecord::RecordInvalid</tt>.
37
37
  module KVC
38
- VERSION = "0.0.1"
38
+ VERSION = "0.0.2"
39
39
 
40
40
  class << self
41
41
  private
data/uninstall.rb CHANGED
@@ -1,8 +1,8 @@
1
1
  require Rails.root.join("config", "environment")
2
2
 
3
3
  if KVC::Settings.table_exists?
4
- print "Also drop the KVC table? [Yn] "
5
- if STDIN.gets.chomp =~ /^(?:\s*$|y)/i
4
+ print "Also drop the KVC table? [yN] "
5
+ if STDIN.gets.chomp =~ /^y)/i
6
6
  ActiveRecord::Base.connection.drop_table :kvc_settings
7
7
  puts "Successfully dropped KVC::Settings."
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stephencelis-kvc
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-04-01 00:00:00 -07:00
12
+ date: 2009-04-04 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -38,8 +38,8 @@ files:
38
38
  - Manifest.txt
39
39
  - README.txt
40
40
  - Rakefile
41
- - app/models/kvc/settings.rb
42
41
  - lib/kvc.rb
42
+ - lib/kvc/settings.rb
43
43
  - lib/kvc/settings_proxy.rb
44
44
  - tasks/kvc_tasks.rake
45
45
  - test/kvc_test.rb