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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3f259abff125112cc37f5956a7d89733e166b6c3a240ad8fb6ffe80843ef2a82
4
- data.tar.gz: 955262b575ddd2af637f89c43ecd20f0c28b250123462a65a55065ae401770c1
3
+ metadata.gz: 80e8d30a87ace90e06e00f092eb863afcbde700adc9295193e87dfbbd89ad81c
4
+ data.tar.gz: 65e5cbe2494a8422968dda3ee0bfa9a5f1bdb615b07730d4f944d1eb1c952317
5
5
  SHA512:
6
- metadata.gz: 4340c4789d7f76bf7323c0c10ab27c03797bf156b284cfe3e9318b83e73bc5a5214481532f0260ea401536ca240e2f3c2063c40b6469ea36b61a6017a99a012c
7
- data.tar.gz: 9565c6f2bb8e0b6e89af05c7c70b54371f72c208e610286bbeac1233a8598e4da0b1054e47ba0bf698a8f1b60666bd4cf26e9d1debb2c4df4e23372be195b6c9
6
+ metadata.gz: d9e084632cd57f693653727086612374141e8d4d4de26ef1837db3b40eb5ae9cf74325ea4dc48cd57bc98cc786f290bee145edf117381d163a25d97a97581667
7
+ data.tar.gz: 26c39e544274bbdd11307ec2836c7860cfac858a0ef490eeb93096342c54bc02a35bf63223c61d93e0a69cea534b19c3b96a527e75c47edd0fdd91ace387a0db
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- stairwell (0.6.0)
5
- activerecord (>= 4.2.11)
4
+ stairwell (0.6.2)
5
+ activerecord (~> 7.0, >= 7.0.1)
6
6
  rake
7
7
  zeitwerk (~> 2.5)
8
8
 
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
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Stairwell
4
+ # Stairwell.configure do |config|
5
+ # config.path = 'app/queries/'
6
+ # end
7
+ class Configuration
8
+ attr_accessor :path
9
+ end
10
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stairwell
4
- VERSION = '0.6.1'
4
+ VERSION = '0.6.2'
5
5
  end
data/lib/stairwell.rb CHANGED
@@ -22,7 +22,7 @@ module Stairwell
22
22
 
23
23
  class << self
24
24
  def configuration
25
- @configuration ||= Configuration.new
25
+ @configuration ||= Stairwell::Configuration.new
26
26
  end
27
27
 
28
28
  def configure
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.add_dependency 'activerecord', '>= 4.2.11'
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.1
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-13 00:00:00.000000000 Z
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: 4.2.11
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: 4.2.11
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