bullet 4.11.0 → 4.11.1

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: db6af7eda5d3f19441a8e60b5aae5bf09d4dd3f8
4
- data.tar.gz: 94510322d9e3190c200e5b18351c9b11c255e19a
3
+ metadata.gz: 26834c8b3aa613fbbfb1412e9ca1f110803a1999
4
+ data.tar.gz: 3663f72e8096a5ea3bdaf10f54679f3e405b958d
5
5
  SHA512:
6
- metadata.gz: 2f1be7c449021b691ba83e2ea42c39d0701ce5c89f6517c9218dc563eaac0d6a18e626025e113470d30a7d8ce9c77ab7da784b030f983b32784079dba3312bd1
7
- data.tar.gz: 0306d0092a4c164e5b650f7c3e5b42b4e3b16d3359bd82ff20e9b5b1cd2414af1e236f91a07a147ed374d4d9bf6d98a1eedb50b1dd4bf09e9922a222568bdfb1
6
+ metadata.gz: ec4e25e4414f2bda73683bbc21fd417ddaf74d7c09b889bc1d61524a20978ad1ba58d00a9e7636c14e4fa7fbe5589fb5e4cebedc4d1ad9295440e8ba82a215c1
7
+ data.tar.gz: a0176fa4fa2e434a65fdc349119d130e7302f6deb017e0065b23202009a36488f40bedd8e825875beb2fe004f04f187d785e43cd490fb0fb9f4d39b79c343f07
@@ -17,8 +17,8 @@ Gem::Specification.new do |s|
17
17
 
18
18
  s.required_rubygems_version = ">= 1.3.6"
19
19
 
20
- s.add_runtime_dependency "activesupport"
21
- s.add_runtime_dependency "uniform_notifier", "~> 1.6.0"
20
+ s.add_runtime_dependency "activesupport", ">= 3.0.0"
21
+ s.add_runtime_dependency "uniform_notifier", ">= 1.6.0"
22
22
 
23
23
  s.files = `git ls-files`.split("\n")
24
24
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
@@ -1,6 +1,6 @@
1
1
  class Object
2
2
  def bullet_ar_key
3
- if self.is_a? ActiveRecord::Base
3
+ if self.class.respond_to?(:primary_key) && self.class.primary_key
4
4
  "#{self.class}:#{self.send self.class.primary_key}"
5
5
  else
6
6
  "#{self.class}:#{self.id}"
@@ -1,4 +1,4 @@
1
1
  # encoding: utf-8
2
2
  module Bullet
3
- VERSION = "4.11.0"
3
+ VERSION = "4.11.1"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bullet
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.11.0
4
+ version: 4.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Huang
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-24 00:00:00.000000000 Z
11
+ date: 2014-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -16,26 +16,26 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: 3.0.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: 3.0.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: uniform_notifier
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: 1.6.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: 1.6.0
41
41
  description: help to kill N+1 queries and unused eager loading.