boba 0.0.0 → 0.0.2
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 +4 -4
- data/LICENSE +21 -0
- data/README.md +35 -0
- data/lib/boba/version.rb +3 -0
- data/lib/tapioca/{compilers → dsl/compilers}/money_rails.rb +5 -1
- metadata +14 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 27ee83d22576856c1cc2c546cd1c49bb69ccbe5dc168858be21ffa0bce985e62
|
4
|
+
data.tar.gz: 146fd90b3e40b8db91b1a71ca8b850594922a0178ef4e8cb4a18d46ba94eaca1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/boba/version.rb
ADDED
@@ -1,5 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
-
# typed:
|
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.
|
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:
|
42
|
+
email:
|
43
|
+
- alex.stathis@angellist.com
|
43
44
|
executables: []
|
44
45
|
extensions: []
|
45
46
|
extra_rdoc_files: []
|
46
47
|
files:
|
47
|
-
-
|
48
|
-
|
49
|
-
|
50
|
-
|
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:
|
76
|
+
summary: Custom Tapioca compilers
|
70
77
|
test_files: []
|