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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bf5b2ef9c9c924ef031b2626d1acc7a89fe5fce882410c01ff0d0b784640e9be
4
- data.tar.gz: 5adf8202ac47b3cfeea5244480de98a27737fad342a8c138d3338b0dd7eb27f6
3
+ metadata.gz: 1594b92ce7a641195d2c67b981f3f138648566196d8e56d80d0089689dd7a7b3
4
+ data.tar.gz: 97efc53749c62bdaad7b5888c5108c52ccf0c091af730a7ab12a9c7bee3d5f3a
5
5
  SHA512:
6
- metadata.gz: 1b0e77176f7c0648832374c63f60087695519ba1878e4ad325bd13453d9c77c584cb25d975d2ec129fb42b20ce8abc1afd1fc33e0e1ed0dc92af4108d96adf05
7
- data.tar.gz: e633d786d9dbafd79f551e8c41dd6e1031658a4c299c2b6d11a4821561fde62b98b47696c0820f7800d464c0e69cd53a240880d7959bde837981e83ea00598f2
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
- if Rails.version.starts_with?('5') || Rails.version.starts_with?('6')
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
@@ -69,11 +69,7 @@ module Sift
69
69
  end
70
70
 
71
71
  def boolean_value
72
- if Rails.version.to_i >= 5
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
@@ -1,3 +1,3 @@
1
1
  module Sift
2
- VERSION = "0.16.0".freeze
2
+ VERSION = "1.0.0".freeze
3
3
  end
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.16.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: 2021-03-16 00:00:00.000000000 Z
11
+ date: 2023-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: rails
14
+ name: activerecord
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 4.2.0
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: 4.2.0
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: '5.1'
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: '5.1'
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.3.0
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.0.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: []