cache_counters 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/Rakefile +1 -1
  2. data/VERSION +1 -1
  3. data/init.rb +1 -0
  4. data/rails/init.rb +5 -0
  5. metadata +3 -1
data/Rakefile CHANGED
@@ -11,7 +11,7 @@ begin
11
11
  gem.homepage = "http://github.com/bommaritobrianmatthew/cache_counters"
12
12
  gem.authors = ["Brian Bommarito"]
13
13
  gem.add_development_dependency "rspec", ">= 1.2.9"
14
- gem.files = FileList["[A-Z]*", "{bin,rails_generators,lib,spec}/**/*", 'lib/jeweler/templates/.gitignore']
14
+ gem.files = FileList["[A-Z]*", "{bin,rails_generators,lib,spec,rails}/**/*", 'lib/jeweler/templates/.gitignore', 'init.rb']
15
15
  # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
16
16
  end
17
17
  Jeweler::GemcutterTasks.new
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
data/init.rb ADDED
@@ -0,0 +1 @@
1
+ require File.dirname(__FILE__) + "/rails/init"
@@ -0,0 +1,5 @@
1
+ require 'cache_counters'
2
+
3
+ ActiveRecord::Base.send :include, ActiveRecord::Acts::CounterCaches
4
+
5
+ RAILS_DEFAULT_LOGGER.info "** acts_as_counter: initialized properly."
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cache_counters
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Bommarito
@@ -36,9 +36,11 @@ files:
36
36
  - README.rdoc
37
37
  - Rakefile
38
38
  - VERSION
39
+ - init.rb
39
40
  - lib/cache_counters.rb
40
41
  - lib/cache_counters/acts_as_cache.rb
41
42
  - lib/cache_counters/class_methods.rb
43
+ - rails/init.rb
42
44
  - rails_generators/cache_counters/cache_counters_generator.rb
43
45
  - rails_generators/cache_counters/templates/counter.rb
44
46
  - rails_generators/cache_counters/templates/migration.rb