cancancan-baby_squeel 0.1.0 → 0.2.0

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: 3b3caedaafaf77f1bcca26171be06f69ab78f32d
4
- data.tar.gz: 54696f9993172b8801e76c46b910dff1d7d96652
3
+ metadata.gz: 4d1446d4c5acc3b41bd7c759926f87c5123da5f8
4
+ data.tar.gz: 8da213bd5a7c80f2e760f90b2dfff02d24b2197e
5
5
  SHA512:
6
- metadata.gz: 76c95bd79b2dada16c7b636a3fd31d5ffae04831c13e864a6a26146e291e46f5e0634b704f5a70d46fb7096b61ac8f3444bdf92c6d15add97678923c4aa797d0
7
- data.tar.gz: 1e14a168786c8b5fe7b6dc29e999126b2d964d961ae217acec2cf7b8901c232148988a77661002b65f48dd8fcb6fae5d52287013d75cc4021d8acc04cf9cd74a
6
+ metadata.gz: dbe08a76601c6563f978d26da734de0bc1e1b6565b759604efa2ac5147385c56a28e1c26c6da1345819c4f182389c8e6b5c572191a0616a5a7adc890b3ded02d
7
+ data.tar.gz: 511ad26e2cd9c48fbfa0ad018545aed226d1e6f40151ccb000d177e69eca3c5a7506512e8334d4db2ef87daf7e102ea8acda66b028fd0a77cb9f03c91bbe04e1
@@ -1,5 +1,9 @@
1
1
  ## master
2
2
 
3
+ ## 0.2.0
4
+
5
+ Add support for CanCanCan 2.2
6
+
3
7
  ## 0.1.0
4
8
 
5
9
  Initial release -
@@ -28,7 +28,7 @@ Gem::Specification.new do |spec|
28
28
 
29
29
  spec.add_development_dependency 'sqlite3'
30
30
 
31
- spec.add_dependency 'activerecord', '>= 4.1'
31
+ spec.add_dependency 'activerecord', '>= 4.1', '< 5.2.1'
32
32
  spec.add_dependency 'cancancan', '>= 1.10'
33
- spec.add_dependency 'baby_squeel', '~> 1.1.5'
33
+ spec.add_dependency 'baby_squeel', '>= 1.1.5'
34
34
  end
@@ -5,4 +5,11 @@ class CanCanCan::BabySqueel::ActiveRecordDisabler
5
5
  false
6
6
  end
7
7
  end
8
+ if defined?(::CanCan::ModelAdapters::ActiveRecord5Adapter)
9
+ ::CanCan::ModelAdapters::ActiveRecord5Adapter.class_eval do
10
+ def self.for_class?(_)
11
+ false
12
+ end
13
+ end
14
+ end
8
15
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
  module CanCanCan; end
3
3
  module CanCanCan::BabySqueel
4
- VERSION = '0.1.0'
4
+ VERSION = '0.2.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cancancan-baby_squeel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Yap
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-01 00:00:00.000000000 Z
11
+ date: 2018-08-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -101,6 +101,9 @@ dependencies:
101
101
  - - ">="
102
102
  - !ruby/object:Gem::Version
103
103
  version: '4.1'
104
+ - - "<"
105
+ - !ruby/object:Gem::Version
106
+ version: 5.2.1
104
107
  type: :runtime
105
108
  prerelease: false
106
109
  version_requirements: !ruby/object:Gem::Requirement
@@ -108,6 +111,9 @@ dependencies:
108
111
  - - ">="
109
112
  - !ruby/object:Gem::Version
110
113
  version: '4.1'
114
+ - - "<"
115
+ - !ruby/object:Gem::Version
116
+ version: 5.2.1
111
117
  - !ruby/object:Gem::Dependency
112
118
  name: cancancan
113
119
  requirement: !ruby/object:Gem::Requirement
@@ -126,14 +132,14 @@ dependencies:
126
132
  name: baby_squeel
127
133
  requirement: !ruby/object:Gem::Requirement
128
134
  requirements:
129
- - - "~>"
135
+ - - ">="
130
136
  - !ruby/object:Gem::Version
131
137
  version: 1.1.5
132
138
  type: :runtime
133
139
  prerelease: false
134
140
  version_requirements: !ruby/object:Gem::Requirement
135
141
  requirements:
136
- - - "~>"
142
+ - - ">="
137
143
  - !ruby/object:Gem::Version
138
144
  version: 1.1.5
139
145
  description: Implements CanCanCan's rule-based record fetching using BabySqueel.
@@ -182,7 +188,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
182
188
  version: '0'
183
189
  requirements: []
184
190
  rubyforge_project:
185
- rubygems_version: 2.6.8
191
+ rubygems_version: 2.6.11
186
192
  signing_key:
187
193
  specification_version: 4
188
194
  summary: BabySqueel database adapter for CanCanCan.