boba 0.0.0 → 0.0.1

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: 3bfe9d8d1884d0b76b245e52f84f91700c9f0912e263c20aeb9cfc0450c82494
4
- data.tar.gz: c99aff34c22dad11aaae294470abf382327529c699a0ed88b1785f7217a60ac3
3
+ metadata.gz: 7ff9566546cf590673a7cadc4eec67aa44e91a3ad2d0c04610d8a8d928464a57
4
+ data.tar.gz: 4e505d2aa2274290fa2beadf0d00988acf96948451c20d5a84ffa2097e3ef819
5
5
  SHA512:
6
- metadata.gz: f9464beb95f46c3a9afca5d6278a8b4635561a12a664173037d96bce31f995bd2d5a1c285bb78dd40033bd74f095a3e26a3c5bbfdbccbb3c6d6e352efe664445
7
- data.tar.gz: f9efcb9b2128e95d05ee67b1242359c2662ccaa03e0058b771c774d87f8097ddbdf3c8634c750bf6ad58c64d845ab6b98bcf3b59c3f871cf49236146e61fc33d
6
+ metadata.gz: 15db509c3ae4d466b7b2a1e6e3cc863a62bc1326446be905b7945705a22aff99c09024edceb1fd82e7a6fdd6fbdca111b331b32830d236c8dadbc6f487d43692
7
+ data.tar.gz: 66df338170b5d2ecb3054c05fd0b707d163b3262f7e0f6a82dcd4014abfdea6124f69b23be53b8335609b273da467b936f3cc77ae8604f32e2e9ca508318a15d
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 AngelList
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,35 @@
1
+ # Boba
2
+
3
+ > :warning: This gem is in pre-release and is not ready for use.
4
+
5
+ Boba is a collection of compilers for Sorbet & Tapioca.
6
+
7
+ Tapioca is very opinionated about what types of compilers or changes are accepted into the repository. See
8
+ [here](https://github.com/Shopify/tapioca?tab=readme-ov-file#dsl-compilers). Boba come in all
9
+ different shapes, sizes, consistencies, etc, and is much less opinionated about what is or is not accepted. Think of
10
+ Boba like a collection of compilers that you can pick and choose from.
11
+
12
+ ## Usage
13
+
14
+ Add Boba to your development dependencies in your gemfile:
15
+ ```ruby
16
+ group :development do
17
+ gem 'boba'
18
+ end
19
+ ```
20
+
21
+ We recommend you also use the `only` configuration option in your Tapioca config (typically `sorbet/tapioca/config.yml`)
22
+ to specify only the Tapioca compilers you wish to use.
23
+ ```yml
24
+ dsl:
25
+ only:
26
+ Compiler1
27
+ Compiler2
28
+ ```
29
+
30
+ ## Todo
31
+
32
+ 1. Contributing Section
33
+ 2. Specs & spec harness
34
+ 3. Docs & doc harness
35
+ 4. Rubocop
@@ -0,0 +1,3 @@
1
+ module Boba
2
+ VERSION = '0.0.1'
3
+ end
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
- # typed: true
2
+ # typed: strict
3
+
4
+ return unless defined?(::MoneyRails)
3
5
 
4
6
  require 'tapioca/helpers/rbi_helper'
5
7
 
@@ -23,6 +25,8 @@ module Tapioca
23
25
 
24
26
  sig { override.void }
25
27
  def decorate
28
+ return if constant.monetized_attributes.empty?
29
+
26
30
  root.create_path(constant) do |klass|
27
31
  instance_module_name = 'MoneyRailsGeneratedMethods'
28
32
  instance_module = RBI::Module.new(instance_module_name)
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.0
4
+ version: 0.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Angellist
@@ -39,14 +39,19 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0.16'
41
41
  description:
42
- email: alex.stathis@angellist.com
42
+ email:
43
+ - alex.stathis@angellist.com
43
44
  executables: []
44
45
  extensions: []
45
46
  extra_rdoc_files: []
46
47
  files:
47
- - lib/tapioca/compilers/money_rails.rb
48
- homepage: https://rubygems.org/gems/hola
49
- licenses: []
48
+ - LICENSE
49
+ - README.md
50
+ - lib/boba/version.rb
51
+ - lib/tapioca/dsl/compilers/money_rails.rb
52
+ homepage: https://github.com/angellist/boba
53
+ licenses:
54
+ - MIT
50
55
  metadata: {}
51
56
  post_install_message:
52
57
  rdoc_options: []
@@ -66,5 +71,5 @@ requirements: []
66
71
  rubygems_version: 3.5.16
67
72
  signing_key:
68
73
  specification_version: 4
69
- summary: Compilers, RBIs, and other files accompanying Sorbet & Tapioca.
74
+ summary: Custom Tapioca compilers
70
75
  test_files: []