boba 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6617f4443fb1796f5d0a55766e42dec078ab79b0090e6df248fbb02224ebc9fc
|
|
4
|
+
data.tar.gz: 0c3f0c9e08b090e076a3d0a446541fb46341f2a630cd2e4718a9a4873eab218a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 971bd8bada42707d12ca53ffb760cf765c2b203c118a6259de66089014e61bb47cce73ab9b0fd8175052e4c15ece1c800870b39802aca9ed093e8b838147628b
|
|
7
|
+
data.tar.gz: e1fc1a2051aa58506c10ffabc2d3419ddfdb977445b28ad734e4b7b17dceceba3066ace8c635782255070f45a97652a5b87d591464ddff54757f7d266197411c
|
data/lib/boba/version.rb
CHANGED
|
@@ -150,7 +150,7 @@ module Tapioca
|
|
|
150
150
|
|
|
151
151
|
sig { params(column_name: String).returns([String, String]) }
|
|
152
152
|
def column_type_for(column_name)
|
|
153
|
-
return ["T.untyped", "T.untyped"] if
|
|
153
|
+
return ["T.untyped", "T.untyped"] if column_type_option.untyped?
|
|
154
154
|
|
|
155
155
|
nilable_column = !has_non_null_database_constraint?(column_name) &&
|
|
156
156
|
!has_unconditional_presence_validator?(column_name)
|
|
@@ -169,7 +169,7 @@ module Tapioca
|
|
|
169
169
|
getter_type
|
|
170
170
|
end
|
|
171
171
|
|
|
172
|
-
if
|
|
172
|
+
if column_type_option.persisted? && (virtual_attribute?(column_name) || !nilable_column)
|
|
173
173
|
[getter_type, setter_type]
|
|
174
174
|
else
|
|
175
175
|
getter_type = as_nilable_type(getter_type) unless column_type_helper.send(
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: boba
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Angellist
|
|
@@ -59,9 +59,9 @@ licenses:
|
|
|
59
59
|
- MIT
|
|
60
60
|
metadata:
|
|
61
61
|
bug_tracker_uri: https://github.com/angellist/boba/issues
|
|
62
|
-
changelog_uri: https://github.com/angellist/boba/blob/0.0.
|
|
62
|
+
changelog_uri: https://github.com/angellist/boba/blob/0.0.7/History.md
|
|
63
63
|
homepage_uri: https://github.com/angellist/boba
|
|
64
|
-
source_code_uri: https://github.com/angellist/boba/tree/0.0.
|
|
64
|
+
source_code_uri: https://github.com/angellist/boba/tree/0.0.7
|
|
65
65
|
rubygems_mfa_required: 'true'
|
|
66
66
|
post_install_message:
|
|
67
67
|
rdoc_options: []
|