impressionist2 1.5.4 → 1.5.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8145657243c7a649bd9a112ba51dc6ecfa3e1d40
4
- data.tar.gz: 41149da716a02dc4e739266b282dc273f403b016
3
+ metadata.gz: 329f448777bdc3a34c8e6ddfb74ff41050537881
4
+ data.tar.gz: 345c1f4f60bb5c35a43dcd9f57ce773139fc2dd2
5
5
  SHA512:
6
- metadata.gz: a89cc9e5272af95e0fedd951dd56cdaa09d4cb7c91dfea982ee0499309519eb7deb723607bdb645943b1826634904cbbd402f67088ee12762e2504565c3a4666
7
- data.tar.gz: b4708e316b276d07fc4701d0941e76939dff202b2c0fb75f5de88e61a7a3d2b4f8c116d20be16e5a515644867aa73f59d26d33f45eae4ed124498b6006be455e
6
+ metadata.gz: 635f1a437fe6f7baeabcf72b202d54fdfab47afd39f42d4776d3a299c6b7944ebfffad69296d3423f2562b58c3393b55d7d081f95a70f5bc2714402fbdb9277d
7
+ data.tar.gz: a1c3e0243a40bb0914b72d9867a630915e6e22c5db4175e202bb8de2b2d8ea8ea38837079646b34c41419a2237658be816a3466c8c9f4fb51166b4b8f2c9e0fb
@@ -41,7 +41,7 @@ module Impressionist
41
41
 
42
42
  # Count all distinct impressions unless the :all filter is provided.
43
43
  distinct = options[:filter] != :all
44
- if Rails::VERSION::MAJOR >= 4
44
+ if Rails::VERSION::MAJOR == 4
45
45
  distinct ? imps.select(options[:filter]).distinct.count : imps.count
46
46
  else
47
47
  distinct ? imps.count(options[:filter], :distinct => true) : imps.count
@@ -1,3 +1,3 @@
1
1
  module Impressionist
2
- VERSION = "1.5.4"
2
+ VERSION = "1.5.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: impressionist2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.4
4
+ version: 1.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - johnmcaliley