flipper-active_record 0.7.3 → 0.7.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/flipper-active_record.gemspec +7 -3
- data/lib/flipper/version.rb +1 -1
- data/lib/generators/flipper/templates/migration.rb +22 -0
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d13661911ab5c8c2be9ff965915e6390cc607383
|
4
|
+
data.tar.gz: 32f05438d1786ec2a2f4fc941d05b90d70c0e2e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83ef2ea18173d84f5ab8c2ffc87f7c00826a7cbbf7d7f30986b13e9f8adb559ab467f6461a35f4acbfa0686d91bc63ab21b648d02f75e5e120134b807fe2b7f1
|
7
|
+
data.tar.gz: cfe7d0b466d1689490815bcecd7a900ee11103db71887dc95aedfa062e729f39d832d8798cc2950599817d81d7537b8080ad418e7ca1e440c1a053422d6ca0f8
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
require File.expand_path('../lib/flipper/version', __FILE__)
|
3
3
|
|
4
|
-
|
4
|
+
flipper_active_record_files = lambda { |file|
|
5
5
|
file =~ /active_record/
|
6
6
|
}
|
7
7
|
|
@@ -13,8 +13,12 @@ Gem::Specification.new do |gem|
|
|
13
13
|
gem.license = "MIT"
|
14
14
|
gem.homepage = "https://github.com/jnunemaker/flipper"
|
15
15
|
|
16
|
-
|
17
|
-
|
16
|
+
extra_files = [
|
17
|
+
"lib/generators/flipper/templates/migration.rb",
|
18
|
+
"lib/flipper/version.rb",
|
19
|
+
]
|
20
|
+
gem.files = `git ls-files`.split("\n").select(&flipper_active_record_files) + extra_files
|
21
|
+
gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n").select(&flipper_active_record_files)
|
18
22
|
gem.name = "flipper-active_record"
|
19
23
|
gem.require_paths = ["lib"]
|
20
24
|
gem.version = Flipper::VERSION
|
data/lib/flipper/version.rb
CHANGED
@@ -0,0 +1,22 @@
|
|
1
|
+
class CreateFlipperTables < ActiveRecord::Migration
|
2
|
+
def self.up
|
3
|
+
create_table :flipper_features do |t|
|
4
|
+
t.string :key, null: false
|
5
|
+
t.timestamps null: false
|
6
|
+
end
|
7
|
+
add_index :flipper_features, :key, unique: true
|
8
|
+
|
9
|
+
create_table :flipper_gates do |t|
|
10
|
+
t.string :feature_key, null: false
|
11
|
+
t.string :key, null: false
|
12
|
+
t.string :value
|
13
|
+
t.timestamps null: false
|
14
|
+
end
|
15
|
+
add_index :flipper_gates, [:feature_key, :key, :value], unique: true
|
16
|
+
end
|
17
|
+
|
18
|
+
def self.down
|
19
|
+
drop_table :flipper_gates
|
20
|
+
drop_table :flipper_features
|
21
|
+
end
|
22
|
+
end
|
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
|
+
version: 0.7.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Nunemaker
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-05 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.
|
19
|
+
version: 0.7.4
|
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.
|
26
|
+
version: 0.7.4
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: activerecord
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -59,6 +59,7 @@ files:
|
|
59
59
|
- lib/flipper/adapters/active_record.rb
|
60
60
|
- lib/flipper/version.rb
|
61
61
|
- lib/generators/flipper/active_record_generator.rb
|
62
|
+
- lib/generators/flipper/templates/migration.rb
|
62
63
|
- spec/flipper/adapters/active_record_spec.rb
|
63
64
|
- test/generators/flipper/active_record_generator_test.rb
|
64
65
|
homepage: https://github.com/jnunemaker/flipper
|
@@ -81,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
81
82
|
version: '0'
|
82
83
|
requirements: []
|
83
84
|
rubyforge_project:
|
84
|
-
rubygems_version: 2.
|
85
|
+
rubygems_version: 2.2.2
|
85
86
|
signing_key:
|
86
87
|
specification_version: 4
|
87
88
|
summary: ActiveRecord adapter for Flipper
|