boba 0.0.5 → 0.0.7

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: e16935e2db06568259ab419c305c0ed064d4fba98c58d4a1f20dab74dd7daa26
4
- data.tar.gz: 96a1a1e8220ce8dc7a3e9a7c2a7a9b0c675fbfcf4e0c5544b033889265c3c1e4
3
+ metadata.gz: 6617f4443fb1796f5d0a55766e42dec078ab79b0090e6df248fbb02224ebc9fc
4
+ data.tar.gz: 0c3f0c9e08b090e076a3d0a446541fb46341f2a630cd2e4718a9a4873eab218a
5
5
  SHA512:
6
- metadata.gz: 246e8b2873276f8e87909aae71dc14143e5635f201246a0b1c9a91a8aa60cec73dfa6e1871672a6e050099f217e646777c0c08a5e9bf5d2ff56cfd71a15de90a
7
- data.tar.gz: 9eb1b1c15ba3939c3aec1e76ed83258940d3f3c2afa1f6f054d6189edcbcd65a2f4f853c81a925c2245ed2dd512563eeb689febf7d12fd756f368c2487c20478
6
+ metadata.gz: 971bd8bada42707d12ca53ffb760cf765c2b203c118a6259de66089014e61bb47cce73ab9b0fd8175052e4c15ece1c800870b39802aca9ed093e8b838147628b
7
+ data.tar.gz: e1fc1a2051aa58506c10ffabc2d3419ddfdb977445b28ad734e4b7b17dceceba3066ace8c635782255070f45a97652a5b87d591464ddff54757f7d266197411c
data/lib/boba/version.rb CHANGED
@@ -2,5 +2,5 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Boba
5
- VERSION = "0.0.5"
5
+ VERSION = "0.0.7"
6
6
  end
@@ -1,7 +1,9 @@
1
1
  # typed: ignore
2
2
  # frozen_string_literal: true
3
3
 
4
- return unless defined?(ActiveRecord::Base)
4
+ require "tapioca/dsl/compilers/active_record_associations"
5
+
6
+ return unless defined?(Tapioca::Dsl::Compilers::ActiveRecordAssociations)
5
7
 
6
8
  module Tapioca
7
9
  module Dsl
@@ -1,7 +1,9 @@
1
1
  # typed: ignore
2
2
  # frozen_string_literal: true
3
3
 
4
- return unless defined?(ActiveRecord::Base)
4
+ require "tapioca/dsl/compilers/active_record_columns"
5
+
6
+ return unless defined?(Tapioca::Dsl::Compilers::ActiveRecordColumns)
5
7
 
6
8
  require "tapioca/dsl/helpers/active_record_column_type_helper"
7
9
 
@@ -148,7 +150,7 @@ module Tapioca
148
150
 
149
151
  sig { params(column_name: String).returns([String, String]) }
150
152
  def column_type_for(column_name)
151
- return ["T.untyped", "T.untyped"] if @column_type_option.untyped?
153
+ return ["T.untyped", "T.untyped"] if column_type_option.untyped?
152
154
 
153
155
  nilable_column = !has_non_null_database_constraint?(column_name) &&
154
156
  !has_unconditional_presence_validator?(column_name)
@@ -167,7 +169,7 @@ module Tapioca
167
169
  getter_type
168
170
  end
169
171
 
170
- if @column_type_option.persisted? && (virtual_attribute?(column_name) || !nilable_column)
172
+ if column_type_option.persisted? && (virtual_attribute?(column_name) || !nilable_column)
171
173
  [getter_type, setter_type]
172
174
  else
173
175
  getter_type = as_nilable_type(getter_type) unless column_type_helper.send(
@@ -1,10 +1,10 @@
1
1
  # typed: ignore
2
2
  # frozen_string_literal: true
3
3
 
4
- return unless defined?(Tapioca)
5
-
6
4
  require "tapioca/dsl/compilers/state_machines"
7
5
 
6
+ return unless defined?(Tapioca::Dsl::Compilers::StateMachines)
7
+
8
8
  module Tapioca
9
9
  module Dsl
10
10
  module Compilers
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: boba
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Angellist
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-22 00:00:00.000000000 Z
11
+ date: 2024-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sorbet-static-and-runtime
@@ -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.5/History.md
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.5
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: []