proactive_support 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/Gemfile.lock +1 -1
- data/app/helpers/proactive_support/flags_helper.rb +3 -2
- data/lib/proactive_support/version.rb +1 -1
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
N2U2MWJhN2RjMDJmNDA2NGFjOWM2ZGYwOTJlMjFkNzBjNjE1ZGFlYw==
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 82e96ab1d1dc1c812448aea2c615f8fb56b0fd9e
|
4
|
+
data.tar.gz: d17981b7e6a2fd9466c2970a76033b8d7afde4d0
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
ZDM1ZjY2MzNiNzNjMWRhOGZlZTRlZmIxM2YxZTc4N2MzOWZlMzE4YTk3NzEz
|
11
|
-
ODJmMjVlZmJiNWYyOWQzMzFlZGViYjc0NDg3YTVjMDdjOTExYWQ=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
NDA3NjFhZWE3YmU0MTA3MzgyM2YwZjQxZjc5NDA0ODE2YjBkYWIwYWNmMmE5
|
14
|
-
MjkxN2RjOTJiZDUxNzNiOGExOGQ3MzYzNjM3YmFlYmQ3MTU0YjhmZTQwZGQ5
|
15
|
-
YzcyZmFlMmM5MThiODIzNzkyMWJmY2JlMDU4YmY4NjY2ZjkzYWE=
|
6
|
+
metadata.gz: b742e1983aea592a5d9097bff44015c275958ea49447d537e21e9a8595cb83e61d81e1558198f2c2cdf5048914b8226ed0c460b32373ecf322cb9a74f5d29b54
|
7
|
+
data.tar.gz: e61c91a59a22567ed44066c19149e52b6dfd140d3558de7bfc67e6b5827d1e83fb812b40f61d1f544b13b2f2c380d37adc3d2154959bddcbde15d8dac5fa8609
|
data/Gemfile.lock
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
module ProactiveSupport
|
2
2
|
module FlagsHelper
|
3
|
-
def get_flag_groupings(customer_id, filter_transients = true)
|
3
|
+
def get_flag_groupings(customer_id = nil, filter_transients = true)
|
4
4
|
flags = {}
|
5
|
-
ar = ::ProactiveSupport::Flag.where(
|
5
|
+
ar = ::ProactiveSupport::Flag.where(is_active: true)
|
6
|
+
ar = ar.where(customer_id: customer_id) if customer_id
|
6
7
|
ar = ar.filter_transients if filter_transients
|
7
8
|
ar.each do |f|
|
8
9
|
flags[f.level] ||= {}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: proactive_support
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steve Frank
|
@@ -14,28 +14,28 @@ dependencies:
|
|
14
14
|
name: activerecord
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '3'
|
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
26
|
version: '3'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: sqlite3
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
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: '0'
|
41
41
|
description: Proactive Support module.
|
@@ -45,8 +45,8 @@ executables: []
|
|
45
45
|
extensions: []
|
46
46
|
extra_rdoc_files: []
|
47
47
|
files:
|
48
|
-
- .gitignore
|
49
|
-
- .ruby-gemset
|
48
|
+
- ".gitignore"
|
49
|
+
- ".ruby-gemset"
|
50
50
|
- Gemfile
|
51
51
|
- Gemfile.lock
|
52
52
|
- MIT-LICENSE
|
@@ -129,12 +129,12 @@ require_paths:
|
|
129
129
|
- lib
|
130
130
|
required_ruby_version: !ruby/object:Gem::Requirement
|
131
131
|
requirements:
|
132
|
-
- -
|
132
|
+
- - ">="
|
133
133
|
- !ruby/object:Gem::Version
|
134
134
|
version: '0'
|
135
135
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
136
136
|
requirements:
|
137
|
-
- -
|
137
|
+
- - ">="
|
138
138
|
- !ruby/object:Gem::Version
|
139
139
|
version: '0'
|
140
140
|
requirements: []
|