stairwell 0.6.1 → 0.6.3
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: 4c773eb4fd8a16628ad3e7c7bc6081160b51159a905561a26e65901cd5329c61
|
4
|
+
data.tar.gz: cb35a2a8c8c2417020c9ea197c03bed635915c3a9683ff05b6fce00b3347359e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d3ed832de22d30066f2267807e2ef1ed21d677440a19822df9e3ebe231bf581a1ab7b683c38d094377220e2409c462d68efc49e4a812d9d720d92e8c7c5aeda
|
7
|
+
data.tar.gz: cad38f806123f21104c208d8d25c344dbb7f560abbd17c5299172341dbdd6b751bf9c939b1703dcb993b88b5c810fdd775eafeae90d075519f51918ff5da41ee
|
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.3
|
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
|