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 +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 +11 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7ff9566546cf590673a7cadc4eec67aa44e91a3ad2d0c04610d8a8d928464a57
|
4
|
+
data.tar.gz: 4e505d2aa2274290fa2beadf0d00988acf96948451c20d5a84ffa2097e3ef819
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.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:
|
42
|
+
email:
|
43
|
+
- alex.stathis@angellist.com
|
43
44
|
executables: []
|
44
45
|
extensions: []
|
45
46
|
extra_rdoc_files: []
|
46
47
|
files:
|
47
|
-
-
|
48
|
-
|
49
|
-
|
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:
|
74
|
+
summary: Custom Tapioca compilers
|
70
75
|
test_files: []
|