procore-sift 0.16.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -1
- data/lib/sift/filter_validator.rb +1 -5
- data/lib/sift/value_parser.rb +1 -5
- data/lib/sift/version.rb +1 -1
- metadata +28 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1594b92ce7a641195d2c67b981f3f138648566196d8e56d80d0089689dd7a7b3
|
4
|
+
data.tar.gz: 97efc53749c62bdaad7b5888c5108c52ccf0c091af730a7ab12a9c7bee3d5f3a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 302c1147b6c5402449a4999492f176aceedf6648180673b5710fb21b522501e8de58945868dd487e286e0de7a403e8c6669431cbcf9565fa42c0b54041da5ffd
|
7
|
+
data.tar.gz: 0d050ee3c4fbeb0a270cb5994efcdd71f926901f3c2db1b79b38d241a17ebe14428b386de10f8b128885c331b334d20b5fedd4b3d153d047bf7a6f17bd9774bf
|
data/README.md
CHANGED
@@ -318,10 +318,16 @@ We have some future plans to remove the rails dependency so that other framework
|
|
318
318
|
|
319
319
|
## Contributing
|
320
320
|
|
321
|
+
Installing gems before running tests:
|
322
|
+
|
323
|
+
```bash
|
324
|
+
$ bundle exec appraisal install
|
325
|
+
```
|
326
|
+
|
321
327
|
Running tests:
|
322
328
|
|
323
329
|
```bash
|
324
|
-
$ bundle exec rake test
|
330
|
+
$ bundle exec appraisal rake test
|
325
331
|
```
|
326
332
|
|
327
333
|
## Publishing
|
@@ -52,11 +52,7 @@ module Sift
|
|
52
52
|
|
53
53
|
def to_type(filter)
|
54
54
|
if filter.type == :boolean
|
55
|
-
|
56
|
-
ActiveRecord::Type::Boolean.new.cast(filter_params[filter.param])
|
57
|
-
else
|
58
|
-
ActiveRecord::Type::Boolean.new.type_cast_from_user(filter_params[filter.param])
|
59
|
-
end
|
55
|
+
ActiveRecord::Type::Boolean.new.cast(filter_params[filter.param])
|
60
56
|
elsif filter.validation_field == :sort
|
61
57
|
sort_params
|
62
58
|
else
|
data/lib/sift/value_parser.rb
CHANGED
@@ -69,11 +69,7 @@ module Sift
|
|
69
69
|
end
|
70
70
|
|
71
71
|
def boolean_value
|
72
|
-
|
73
|
-
ActiveRecord::Type::Boolean.new.cast(value)
|
74
|
-
else
|
75
|
-
ActiveRecord::Type::Boolean.new.type_cast_from_user(value)
|
76
|
-
end
|
72
|
+
ActiveRecord::Type::Boolean.new.cast(value)
|
77
73
|
end
|
78
74
|
|
79
75
|
def normalized_value(raw_value, type)
|
data/lib/sift/version.rb
CHANGED
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: procore-sift
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Procore Technologies
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-04-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: activerecord
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: '6.1'
|
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:
|
26
|
+
version: '6.1'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: pry
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '6.1'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '6.1'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rake
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -94,6 +94,20 @@ dependencies:
|
|
94
94
|
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: appraisal
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
97
111
|
description: Easily write arbitrary filters
|
98
112
|
email:
|
99
113
|
- dev@procore.com
|
@@ -124,7 +138,7 @@ homepage: https://github.com/procore/sift
|
|
124
138
|
licenses:
|
125
139
|
- MIT
|
126
140
|
metadata: {}
|
127
|
-
post_install_message:
|
141
|
+
post_install_message:
|
128
142
|
rdoc_options: []
|
129
143
|
require_paths:
|
130
144
|
- lib
|
@@ -132,15 +146,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
132
146
|
requirements:
|
133
147
|
- - ">="
|
134
148
|
- !ruby/object:Gem::Version
|
135
|
-
version: 2.
|
149
|
+
version: 2.7.0
|
136
150
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
137
151
|
requirements:
|
138
152
|
- - ">="
|
139
153
|
- !ruby/object:Gem::Version
|
140
154
|
version: '0'
|
141
155
|
requirements: []
|
142
|
-
rubygems_version: 3.
|
143
|
-
signing_key:
|
156
|
+
rubygems_version: 3.4.8
|
157
|
+
signing_key:
|
144
158
|
specification_version: 4
|
145
159
|
summary: Summary of Sift.
|
146
160
|
test_files: []
|