custom_counter_cache 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -29,7 +29,7 @@ module CustomCounterCache::Model
29
29
  end
30
30
  # counter update method
31
31
  define_method "update_#{cache_column}" do
32
- send "#{cache_column}=", block.call(self)
32
+ update_attribute cache_column, block.call(self)
33
33
  end
34
34
  end
35
35
 
@@ -1,5 +1,5 @@
1
1
  module CustomCounterCache
2
2
 
3
- VERSION = '0.1.0'
3
+ VERSION = '0.1.1'
4
4
 
5
5
  end
metadata CHANGED
@@ -1,7 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: custom_counter_cache
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Cedric Howe
@@ -13,20 +14,23 @@ dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: rails
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
- - - ! '>='
19
+ - - ~>
18
20
  - !ruby/object:Gem::Version
19
21
  version: '3.1'
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
- - - ! '>='
27
+ - - ~>
25
28
  - !ruby/object:Gem::Version
26
29
  version: '3.1'
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: sqlite3
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
35
  - - ! '>='
32
36
  - !ruby/object:Gem::Version
@@ -34,6 +38,7 @@ dependencies:
34
38
  type: :development
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
43
  - - ! '>='
39
44
  - !ruby/object:Gem::Version
@@ -51,26 +56,30 @@ files:
51
56
  - test/test_helper.rb
52
57
  homepage: http://github.com/cedric/custom_counter_cache/
53
58
  licenses: []
54
- metadata: {}
55
59
  post_install_message:
56
60
  rdoc_options: []
57
61
  require_paths:
58
62
  - lib
59
63
  required_ruby_version: !ruby/object:Gem::Requirement
64
+ none: false
60
65
  requirements:
61
66
  - - ! '>='
62
67
  - !ruby/object:Gem::Version
63
68
  version: '0'
69
+ segments:
70
+ - 0
71
+ hash: 603101207245387797
64
72
  required_rubygems_version: !ruby/object:Gem::Requirement
73
+ none: false
65
74
  requirements:
66
75
  - - ! '>='
67
76
  - !ruby/object:Gem::Version
68
77
  version: 1.3.6
69
78
  requirements: []
70
79
  rubyforge_project: custom_counter_cache
71
- rubygems_version: 2.0.3
80
+ rubygems_version: 1.8.23
72
81
  signing_key:
73
- specification_version: 4
82
+ specification_version: 3
74
83
  summary: Custom counter_cache functionality that supports conditions and multiple
75
84
  models.
76
85
  test_files:
checksums.yaml DELETED
@@ -1,15 +0,0 @@
1
- ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- YWY5OTJjNDlkYTZhY2VjY2RkOGQ1YWUyMzMxNTBlNTgyZGFkNzcyNQ==
5
- data.tar.gz: !binary |-
6
- MjFmY2MxMTFkOGNlNTZlODgxMTg3ZTJmZTVmM2EzNWNkNmIyY2U1MQ==
7
- !binary "U0hBNTEy":
8
- metadata.gz: !binary |-
9
- Mzg5N2U5N2NlNTI4MjNmZjM5OWU5MWUyMGZlNTJjNjc2ODZlMTZiMmVlNzgx
10
- ZTk0YTg1YmIyY2JmZDJkYTA5NDA0N2NjZWQ1NDIxMTJiYzBkMTk4NjM1ZTE5
11
- OTQyOWViZWRkZTMyOWIxMjdmZDZmZDA4MGNiZDFmMDMzYzg2NTA=
12
- data.tar.gz: !binary |-
13
- YTk5NTg0NjY3ZWYwMDEyMGY3ZmE4MzRhYmE5NWRkYzMxMDFmNDNhZjQ0MTFl
14
- ZjZiY2Q0ODgyYTVjMmI4N2M2YTVjY2MyMTQ4NGQ5NTg0ODljYzE4MjdhYTA1
15
- ZGRiNjY3NTE3ZTVjNzFjOTMxZmMxMWU0MjY2ZGExODliMTI1ZWU=