boba 0.0.0 → 0.0.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: 3bfe9d8d1884d0b76b245e52f84f91700c9f0912e263c20aeb9cfc0450c82494
4
- data.tar.gz: c99aff34c22dad11aaae294470abf382327529c699a0ed88b1785f7217a60ac3
3
+ metadata.gz: 27ee83d22576856c1cc2c546cd1c49bb69ccbe5dc168858be21ffa0bce985e62
4
+ data.tar.gz: 146fd90b3e40b8db91b1a71ca8b850594922a0178ef4e8cb4a18d46ba94eaca1
5
5
  SHA512:
6
- metadata.gz: f9464beb95f46c3a9afca5d6278a8b4635561a12a664173037d96bce31f995bd2d5a1c285bb78dd40033bd74f095a3e26a3c5bbfdbccbb3c6d6e352efe664445
7
- data.tar.gz: f9efcb9b2128e95d05ee67b1242359c2662ccaa03e0058b771c774d87f8097ddbdf3c8634c750bf6ad58c64d845ab6b98bcf3b59c3f871cf49236146e61fc33d
6
+ metadata.gz: c8bbdbedbc56f12ac239dd8ad75c04bc6782d2b8448dc7f289c430d9ea592458f44b3461c304daaff218689bad83c4779a701d449d14f2d6babf7c2bb06c367a
7
+ data.tar.gz: '068e9cf37630c8fd608a04280b35a46f769a432ecb6605cedbc7c03991d1cec5d6f67306a38803069e0eaa8be5f27889c362b5fb9aa622714653775540e7c88d'
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', require: false
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.2'
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.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Angellist
@@ -39,15 +39,22 @@ 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: []
50
- metadata: {}
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
55
+ metadata:
56
+ source_code_uri: https://github.com/angellist/boba/tree/v0.0.2
57
+ rubygems_mfa_required: 'true'
51
58
  post_install_message:
52
59
  rdoc_options: []
53
60
  require_paths:
@@ -66,5 +73,5 @@ requirements: []
66
73
  rubygems_version: 3.5.16
67
74
  signing_key:
68
75
  specification_version: 4
69
- summary: Compilers, RBIs, and other files accompanying Sorbet & Tapioca.
76
+ summary: Custom Tapioca compilers
70
77
  test_files: []