counter_culture 0.1.26 → 0.1.27

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 46f513670a73b530008f4051a11a67e46def6f0c
4
- data.tar.gz: 3f004c832368bcff24aa5f1fd6b0121d89d38fe6
3
+ metadata.gz: 0a6617f402a2f12b17289ebbc288430b8c4131b2
4
+ data.tar.gz: c8deddb0f6d99f335f6d898c80b6155122b492d3
5
5
  SHA512:
6
- metadata.gz: 149514535d47feb3fac3d3ea389945c7bd66dd2c578e321b35cb3bd33b242b3130fb3c9824dfd665a0b21c6611327f23d7244f3d841cf3b05ac6d9a428704922
7
- data.tar.gz: c4621358a00d034452b0b56f43e56664480c7a6b7058bbf956cda52409a9789ce8803da216001e70cb07ff1250ad2044b8477ba787756e709784e348dea8b4d0
6
+ metadata.gz: 7f850d6a52092714787e92a01a161c3ddcde4610cd6fe2bd9fdddeb52db180f2f32bed5804b7842e0287614aadbab94cfa2ee06c4bc45ad0329fcf2f78e42eed
7
+ data.tar.gz: 892d46d65415814bb4b395499ccaa27a74306a7dfc03a8f601da813a99d59eb8702da3c89a46c823981c4244f093d8f2bd393c2b967b28e0b65d84a40a1f5104
data/Gemfile CHANGED
@@ -9,7 +9,6 @@ group :development, :test do
9
9
  gem "rake"
10
10
  gem "rails", '>= 3.1.0'
11
11
  gem "rspec", "~> 2.10.0"
12
- gem "after_commit_action"
13
12
  gem "awesome_print"
14
13
  end
15
14
 
data/Gemfile.lock CHANGED
@@ -28,8 +28,6 @@ GEM
28
28
  thread_safe (~> 0.1)
29
29
  tzinfo (~> 1.1)
30
30
  addressable (2.3.6)
31
- after_commit_action (0.1.3)
32
- activerecord (>= 3.0.0)
33
31
  arel (5.0.1.20140414130214)
34
32
  awesome_print (1.2.0)
35
33
  builder (3.2.2)
@@ -130,7 +128,6 @@ PLATFORMS
130
128
  ruby
131
129
 
132
130
  DEPENDENCIES
133
- after_commit_action
134
131
  awesome_print
135
132
  bundler (>= 1.2.0)
136
133
  database_cleaner (>= 1.1.1)
data/README.md CHANGED
@@ -243,7 +243,7 @@ counter_culture currently does *not* support polymorphic associations. Check [th
243
243
 
244
244
  counter_culture will not update counters in your automated tests *if* you use transactional fixtures. That's because transactional fixtures roll back all your database transactions and they are never committed. But counter_culture will only update its counters in the ```after_commit``` callback, which in this case will never run.
245
245
 
246
- counter_culture itself has extensive automated tests so there should not be a need to test counter caches in your own tests. I therefore recommend removing any checks of counter caches as that will avoid this issue. If that is not an option for you, you will have to turn off transactional fixtures and use something like [database_cleaner](https://github.com/bmabey/database_cleaner) instead to clean your database between tests.
246
+ counter_culture itself has extensive automated tests so there should not be a need to test counter caches in your own tests. I therefore recommend removing any checks of counter caches as that will avoid this issue. If that is not an option for you, you can use the [`test_after_commit` gem](https://github.com/grosser/test_after_commit) to trigger `after_commit` callbacks even with transactional fitures enabled. Another option is to turn off transactional fixtures and use something like [database_cleaner](https://github.com/bmabey/database_cleaner) instead to clean your database between tests.
247
247
 
248
248
  ## Contributing to counter_culture
249
249
 
data/Rakefile CHANGED
@@ -21,6 +21,8 @@ Jeweler::Tasks.new do |gem|
21
21
  gem.description = %Q{counter_culture provides turbo-charged counter caches that are kept up-to-date not just on create and destroy, that support multiple levels of indirection through relationships, allow dynamic column names and that avoid deadlocks by updating in the after_commit callback.}
22
22
  gem.email = "magnus@vonkoeller.de"
23
23
  gem.authors = ["Magnus von Koeller"]
24
+
25
+ gem.add_dependency 'after_commit_action', '~> 0.1.3'
24
26
  end
25
27
  Jeweler::RubygemsDotOrgTasks.new
26
28
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.26
1
+ 0.1.27
@@ -2,11 +2,11 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: counter_culture 0.1.26 ruby lib
5
+ # stub: counter_culture 0.1.27 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "counter_culture"
9
- s.version = "0.1.26"
9
+ s.version = "0.1.27"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
@@ -116,30 +116,30 @@ Gem::Specification.new do |s|
116
116
  s.add_development_dependency(%q<rake>, [">= 0"])
117
117
  s.add_development_dependency(%q<rails>, [">= 3.1.0"])
118
118
  s.add_development_dependency(%q<rspec>, ["~> 2.10.0"])
119
- s.add_development_dependency(%q<after_commit_action>, [">= 0"])
120
119
  s.add_development_dependency(%q<awesome_print>, [">= 0"])
121
120
  s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
122
121
  s.add_development_dependency(%q<bundler>, [">= 1.2.0"])
123
122
  s.add_development_dependency(%q<jeweler>, ["~> 2.0.1"])
123
+ s.add_runtime_dependency(%q<after_commit_action>, ["~> 0.1.3"])
124
124
  else
125
125
  s.add_dependency(%q<rake>, [">= 0"])
126
126
  s.add_dependency(%q<rails>, [">= 3.1.0"])
127
127
  s.add_dependency(%q<rspec>, ["~> 2.10.0"])
128
- s.add_dependency(%q<after_commit_action>, [">= 0"])
129
128
  s.add_dependency(%q<awesome_print>, [">= 0"])
130
129
  s.add_dependency(%q<rdoc>, ["~> 3.12"])
131
130
  s.add_dependency(%q<bundler>, [">= 1.2.0"])
132
131
  s.add_dependency(%q<jeweler>, ["~> 2.0.1"])
132
+ s.add_dependency(%q<after_commit_action>, ["~> 0.1.3"])
133
133
  end
134
134
  else
135
135
  s.add_dependency(%q<rake>, [">= 0"])
136
136
  s.add_dependency(%q<rails>, [">= 3.1.0"])
137
137
  s.add_dependency(%q<rspec>, ["~> 2.10.0"])
138
- s.add_dependency(%q<after_commit_action>, [">= 0"])
139
138
  s.add_dependency(%q<awesome_print>, [">= 0"])
140
139
  s.add_dependency(%q<rdoc>, ["~> 3.12"])
141
140
  s.add_dependency(%q<bundler>, [">= 1.2.0"])
142
141
  s.add_dependency(%q<jeweler>, ["~> 2.0.1"])
142
+ s.add_dependency(%q<after_commit_action>, ["~> 0.1.3"])
143
143
  end
144
144
  end
145
145
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: counter_culture
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.26
4
+ version: 0.1.27
5
5
  platform: ruby
6
6
  authors:
7
7
  - Magnus von Koeller
@@ -52,20 +52,6 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: 2.10.0
55
- - !ruby/object:Gem::Dependency
56
- name: after_commit_action
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: '0'
69
55
  - !ruby/object:Gem::Dependency
70
56
  name: awesome_print
71
57
  requirement: !ruby/object:Gem::Requirement
@@ -122,6 +108,20 @@ dependencies:
122
108
  - - "~>"
123
109
  - !ruby/object:Gem::Version
124
110
  version: 2.0.1
111
+ - !ruby/object:Gem::Dependency
112
+ name: after_commit_action
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: 0.1.3
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: 0.1.3
125
125
  description: counter_culture provides turbo-charged counter caches that are kept up-to-date
126
126
  not just on create and destroy, that support multiple levels of indirection through
127
127
  relationships, allow dynamic column names and that avoid deadlocks by updating in