flipper-active_record 0.7.4 → 0.7.5

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: d13661911ab5c8c2be9ff965915e6390cc607383
4
- data.tar.gz: 32f05438d1786ec2a2f4fc941d05b90d70c0e2e6
3
+ metadata.gz: a81520344638895f43c0e1b4993d3e5d5fae5667
4
+ data.tar.gz: 1629de83c8f79141b91978b1aaf603e37e09f85e
5
5
  SHA512:
6
- metadata.gz: 83ef2ea18173d84f5ab8c2ffc87f7c00826a7cbbf7d7f30986b13e9f8adb559ab467f6461a35f4acbfa0686d91bc63ab21b648d02f75e5e120134b807fe2b7f1
7
- data.tar.gz: cfe7d0b466d1689490815bcecd7a900ee11103db71887dc95aedfa062e729f39d832d8798cc2950599817d81d7537b8080ad418e7ca1e440c1a053422d6ca0f8
6
+ metadata.gz: b02a26809928457bee641aba482c3b955827f8d6b46f338f9a5665358d7fe75c4a78f50e8b7717b072b28a1a7d0e60eccf997a6831ce9cc306d8b2b9f698667b
7
+ data.tar.gz: d09d90bacb12b8a7ec37089c3e2c357a7b40351f666ff611cef7cbf6a5f1a482ff4e45d7385fbb8a4b92b14d74837a1882c151a2a77127867517b4eb38c3d72c
@@ -55,7 +55,7 @@ module Flipper
55
55
  # Public: Removes a feature from the set of known features.
56
56
  def remove(feature)
57
57
  @feature_class.transaction do
58
- @feature_class.delete_all(key: feature.key)
58
+ @feature_class.where(key: feature.key).delete_all
59
59
  clear(feature)
60
60
  end
61
61
  true
@@ -63,7 +63,7 @@ module Flipper
63
63
 
64
64
  # Public: Clears the gate values for a feature.
65
65
  def clear(feature)
66
- @gate_class.delete_all(feature_key: feature.key)
66
+ @gate_class.where(feature_key: feature.key).delete_all
67
67
  true
68
68
  end
69
69
 
@@ -141,7 +141,7 @@ module Flipper
141
141
  value: thing.value.to_s,
142
142
  })
143
143
  when :set
144
- @gate_class.delete_all(feature_key: feature.key, key: gate.key, value: thing.value)
144
+ @gate_class.where(feature_key: feature.key, key: gate.key, value: thing.value).delete_all
145
145
  else
146
146
  unsupported_data_type gate.data_type
147
147
  end
@@ -1,3 +1,3 @@
1
1
  module Flipper
2
- VERSION = "0.7.4"
2
+ VERSION = "0.7.5"
3
3
  end
@@ -2,8 +2,8 @@ require "rails/generators/active_record"
2
2
 
3
3
  module Flipper
4
4
  module Generators
5
- class ActiveRecordGenerator < Rails::Generators::Base
6
- include Rails::Generators::Migration
5
+ class ActiveRecordGenerator < ::Rails::Generators::Base
6
+ include ::Rails::Generators::Migration
7
7
  desc "Generates migration for flipper tables"
8
8
 
9
9
  source_paths << File.join(File.dirname(__FILE__), "templates")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flipper-active_record
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.4
4
+ version: 0.7.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Nunemaker
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-05 00:00:00.000000000 Z
11
+ date: 2016-02-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: flipper
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.7.4
19
+ version: 0.7.5
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.7.4
26
+ version: 0.7.5
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: activerecord
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -82,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
82
82
  version: '0'
83
83
  requirements: []
84
84
  rubyforge_project:
85
- rubygems_version: 2.2.2
85
+ rubygems_version: 2.4.5.1
86
86
  signing_key:
87
87
  specification_version: 4
88
88
  summary: ActiveRecord adapter for Flipper