activerecord-update_counters_with_values 1.0.1 → 1.0.2

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
  SHA256:
3
- metadata.gz: 96bed34674b23690a58379c3f9ce40391434b6c121bb45c6cc7665efac71c506
4
- data.tar.gz: 11213973b8ac619cda4c684bb1afd32db6661ab3f1c45392dd773c0bb473e56f
3
+ metadata.gz: 4cd9c681c80eb7d0c9432998a11084a5df42f76a5fc0b65c18410bf8873199fc
4
+ data.tar.gz: c1172c5e903cc9f36030c92c897fb2a427bc14cc57f22129188b6e2e4cd0b134
5
5
  SHA512:
6
- metadata.gz: 4814b1f029c5c395347f22724d1ea36a9cbd6e9ee874634d5400c14d6b78b28a50d9f03b78204b5e4b447d18f46f38b83500614ac47dc35caa797eede53bcd96
7
- data.tar.gz: 42e388b98223f5faec75fc3d7f88cb913552353fb274baa4bc70df5e55023538be1b67ff9febcb4769642d413bc77830c338c16dc0c98d113e55014b0f7b7948
6
+ metadata.gz: e06a0cdedda7d129379e7b5428890769e55e0f92f3281b08dcf59a946a82c3464c3ad87168b39cac7eb89617e9b8a54c814b0d74c699fc40f32724d01a5c21e0
7
+ data.tar.gz: 83199c99a49bd32e9e594f7a30a0e06ed19e62f7a3abdb2eb4ed4656d8168525ddd921f818cb2ed56235ddca9826d1949d681d5af99e8191f0cb5e99aa621328
data/README.md CHANGED
@@ -50,11 +50,11 @@ document.increment_counter_with_value(:comments_count)
50
50
  document.decrement_counter_with_value(:comments_count)
51
51
  ```
52
52
 
53
- ## Development
53
+ ## Credits
54
54
 
55
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
55
+ Sponsored by [JetRockets](http://www.jetrockets.pro).
56
56
 
57
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
57
+ ![JetRockets](http://jetrockets.pro/JetRockets.jpg)
58
58
 
59
59
  ## License
60
60
 
@@ -12,9 +12,10 @@ module ActiveRecord
12
12
 
13
13
  counters.each do |key, value|
14
14
  write_attribute(key, results[key.to_s])
15
- clear_attribute_changes(key)
16
15
  end
17
16
 
17
+ clear_attribute_changes(counters.keys)
18
+
18
19
  self
19
20
  end
20
21
 
@@ -1,5 +1,5 @@
1
1
  module ActiveRecord
2
2
  module UpdateCountersWithValues
3
- VERSION = "1.0.1"
3
+ VERSION = "1.0.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-update_counters_with_values
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Alexandrov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-26 00:00:00.000000000 Z
11
+ date: 2019-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord