stairwell 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/README.md +2 -1
- data/lib/stairwell/configuration.rb +10 -0
- data/lib/stairwell/version.rb +1 -1
- data/lib/stairwell.rb +1 -1
- data/stairwell.gemspec +1 -1
- metadata +11 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 80e8d30a87ace90e06e00f092eb863afcbde700adc9295193e87dfbbd89ad81c
|
4
|
+
data.tar.gz: 65e5cbe2494a8422968dda3ee0bfa9a5f1bdb615b07730d4f944d1eb1c952317
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d9e084632cd57f693653727086612374141e8d4d4de26ef1837db3b40eb5ae9cf74325ea4dc48cd57bc98cc786f290bee145edf117381d163a25d97a97581667
|
7
|
+
data.tar.gz: 26c39e544274bbdd11307ec2836c7860cfac858a0ef490eeb93096342c54bc02a35bf63223c61d93e0a69cea534b19c3b96a527e75c47edd0fdd91ace387a0db
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -94,7 +94,7 @@ end
|
|
94
94
|
|
95
95
|
# in Rails:
|
96
96
|
Stairwell.configure do |config|
|
97
|
-
config.path = "#{Rails.root}/app/queries"
|
97
|
+
config.path = "#{Rails.root}/app/queries/"
|
98
98
|
end
|
99
99
|
|
100
100
|
```
|
@@ -118,6 +118,7 @@ end
|
|
118
118
|
|
119
119
|
* nil/NULL values are not completely supported, since many databases require `IS NULL`, or `IS NOT NULL`, you can use the null_type here, but it will only accept `nil`, and it will possibly not support what you're trying to do. YMMV.
|
120
120
|
* Date/Datetime are not validated for their format, it is expected that you will pass the correct format.
|
121
|
+
* Casting values with colons like postgres is currently not supported: `SELECT '100'::integer;` etc.
|
121
122
|
|
122
123
|
|
123
124
|
## Development
|
data/lib/stairwell/version.rb
CHANGED
data/lib/stairwell.rb
CHANGED
data/stairwell.gemspec
CHANGED
@@ -28,7 +28,7 @@ Gem::Specification.new do |spec|
|
|
28
28
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
29
29
|
spec.require_paths = ['lib']
|
30
30
|
|
31
|
-
spec.
|
31
|
+
spec.add_runtime_dependency 'activerecord', '~> 7.0', '>= 7.0.1'
|
32
32
|
spec.add_dependency 'rake'
|
33
33
|
spec.add_dependency 'zeitwerk', '~> 2.5'
|
34
34
|
end
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stairwell
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- tobyond
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-11-
|
11
|
+
date: 2023-11-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '7.0'
|
17
20
|
- - ">="
|
18
21
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
22
|
+
version: 7.0.1
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
27
|
+
- - "~>"
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '7.0'
|
24
30
|
- - ">="
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
32
|
+
version: 7.0.1
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: rake
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -73,6 +79,7 @@ files:
|
|
73
79
|
- bin/setup
|
74
80
|
- lib/stairwell.rb
|
75
81
|
- lib/stairwell/bind_transformer.rb
|
82
|
+
- lib/stairwell/configuration.rb
|
76
83
|
- lib/stairwell/query.rb
|
77
84
|
- lib/stairwell/type_object_assigner.rb
|
78
85
|
- lib/stairwell/types/base_type.rb
|