shale-builder 0.2.4 → 0.3.0
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/.ruby-version +1 -1
- data/CHANGELOG.md +50 -0
- data/Gemfile +0 -1
- data/Gemfile.lock +6 -36
- data/lib/shale/builder/version.rb +1 -1
- data/lib/tapioca/dsl/compilers/shale.rb +9 -2
- metadata +3 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f414f7972ec3166248e62fff4de18535943acbf50716be2d5c44a7554ea478a
|
4
|
+
data.tar.gz: ba908e4c6a3eacf20454c0414c17d6030aac70c46a107e9cdc6787ace36c4dcb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b577f88840d98b081b093a2c55c21b002b70234692459a8f3cae3af8f02b57b3baddfa5a196c3c922cb3bbf48b1586544488ece5e5891e8a93eef86694f52e8
|
7
|
+
data.tar.gz: 999ef9a4ea5e36dd0bff06d0046c27b243ada40ba5d49688ae9d8b2c8bda4e35496784918796fd8a634b2e82a921eced59979b7a0142ca59cc58bd4bfd0d672b
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.
|
1
|
+
3.4.5
|
data/CHANGELOG.md
CHANGED
@@ -1,50 +1,100 @@
|
|
1
|
+
# Changelog
|
2
|
+
|
3
|
+
All notable changes to this project will be documented in this file.
|
4
|
+
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7
|
+
|
8
|
+
## [0.3.0] - 2024-09-24
|
9
|
+
|
10
|
+
[Diff](https://github.com/Verseth/ruby-shale-builder/compare/v0.3.0...v0.2.1)
|
11
|
+
|
12
|
+
### Changes
|
13
|
+
- Add additional sorbet type documentation
|
14
|
+
|
1
15
|
## [0.2.1] - 2024-07-16
|
2
16
|
|
17
|
+
[Diff](https://github.com/Verseth/ruby-shale-builder/compare/v0.2.1...v0.2.0)
|
18
|
+
|
19
|
+
### Changes
|
3
20
|
- Add additional sorbet type documentation
|
4
21
|
|
5
22
|
## [0.2.0] - 2024-06-11
|
6
23
|
|
24
|
+
[Diff](https://github.com/Verseth/ruby-shale-builder/compare/v0.2.0...v0.1.9)
|
25
|
+
|
26
|
+
### Changes
|
7
27
|
- Add support for `return_type` and `setter_type` in custom primitive shale types
|
8
28
|
- Add a more thorough description of sorbet and tapioca support in the README
|
9
29
|
|
10
30
|
## [0.1.9] - 2024-06-03
|
11
31
|
|
32
|
+
[Diff](https://github.com/Verseth/ruby-shale-builder/compare/v0.1.9...v0.1.8)
|
33
|
+
|
34
|
+
### Changes
|
12
35
|
- Fix the signature of `new` class method
|
13
36
|
|
14
37
|
## [0.1.8] - 2024-05-15
|
15
38
|
|
39
|
+
[Diff](https://github.com/Verseth/ruby-shale-builder/compare/v0.1.8...v0.1.7)
|
40
|
+
|
41
|
+
### Changes
|
16
42
|
- Sort attribute names in the tapioca compiler
|
17
43
|
|
18
44
|
## [0.1.7] - 2024-05-13
|
19
45
|
|
46
|
+
[Diff](https://github.com/Verseth/ruby-shale-builder/compare/v0.1.7...v0.1.6)
|
47
|
+
|
48
|
+
### Changes
|
20
49
|
- Drop support for Ruby 3.0
|
21
50
|
- Add support for Ruby 3.3
|
22
51
|
|
23
52
|
## [0.1.6] - 2024-05-13
|
24
53
|
|
54
|
+
[Diff](https://github.com/Verseth/ruby-shale-builder/compare/v0.1.6...v0.1.5)
|
55
|
+
|
56
|
+
### Changes
|
25
57
|
- Add support for doc strings in the tapioca compiler
|
26
58
|
|
27
59
|
## [0.1.5] - 2024-05-13
|
28
60
|
|
61
|
+
[Diff](https://github.com/Verseth/ruby-shale-builder/compare/v0.1.5...v0.1.4)
|
62
|
+
|
63
|
+
### Changes
|
29
64
|
- Fix a bug in the tapioca compiler
|
30
65
|
|
31
66
|
## [0.1.4] - 2024-05-13
|
32
67
|
|
68
|
+
[Diff](https://github.com/Verseth/ruby-shale-builder/compare/v0.1.4...v0.1.3)
|
69
|
+
|
70
|
+
### Changes
|
33
71
|
- Add a tapioca compiler for shale and shale builder
|
34
72
|
|
35
73
|
## [0.1.3] - 2023-11-23
|
36
74
|
|
75
|
+
[Diff](https://github.com/Verseth/ruby-shale-builder/compare/v0.1.3...v0.1.2)
|
76
|
+
|
77
|
+
### Changes
|
37
78
|
- Change shale version dependency from `< 1.0` to `< 2.0`
|
38
79
|
|
39
80
|
## [0.1.2] - 2023-10-11
|
40
81
|
|
82
|
+
[Diff](https://github.com/Verseth/ruby-shale-builder/compare/v0.1.2...v0.1.1)
|
83
|
+
|
84
|
+
### Changes
|
41
85
|
- Add support for collections
|
42
86
|
- Drop support for Ruby 2.7
|
43
87
|
|
44
88
|
## [0.1.1] - 2023-02-22
|
45
89
|
|
90
|
+
[Diff](https://github.com/Verseth/ruby-shale-builder/compare/v0.1.1...v0.1.0)
|
91
|
+
|
92
|
+
### Changes
|
46
93
|
- Add support for inheritance
|
47
94
|
|
48
95
|
## [0.1.0] - 2023-02-21
|
49
96
|
|
97
|
+
[Diff](https://github.com/Verseth/ruby-shale-builder/compare/v0.1.0...v0.0.0)
|
98
|
+
|
99
|
+
### Changes
|
50
100
|
- Initial release
|
data/Gemfile
CHANGED
@@ -10,6 +10,5 @@ gem 'minitest', '~> 5.0' # test framework
|
|
10
10
|
gem 'rake', '~> 13.0' # automation tasks
|
11
11
|
gem 'rubocop-espago', '~> 1.0' # ruby linter
|
12
12
|
gem 'shoulda-context', '~> 2.0' # more pleasant test syntax
|
13
|
-
gem 'solargraph', '~> 0.48' # language server
|
14
13
|
gem 'sorbet', '>= 0.5' # static typechecker
|
15
14
|
gem 'tapioca', '> 0.13' # RBI generator for sorbet
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
shale-builder (0.
|
4
|
+
shale-builder (0.3.0)
|
5
5
|
booleans (>= 0.1)
|
6
6
|
shale (< 2.0)
|
7
7
|
sorbet-runtime (> 0.5)
|
@@ -10,38 +10,23 @@ GEM
|
|
10
10
|
remote: https://rubygems.org/
|
11
11
|
specs:
|
12
12
|
ast (2.4.2)
|
13
|
-
|
14
|
-
benchmark (0.2.1)
|
13
|
+
bigdecimal (3.2.3)
|
15
14
|
booleans (0.1.1)
|
16
15
|
byebug (11.1.3)
|
17
|
-
diff-lcs (1.5.0)
|
18
|
-
e2mmap (0.1.0)
|
19
16
|
erubi (1.12.0)
|
20
|
-
jaro_winkler (1.5.4)
|
21
17
|
json (2.6.3)
|
22
|
-
kramdown (2.4.0)
|
23
|
-
rexml
|
24
|
-
kramdown-parser-gfm (1.1.0)
|
25
|
-
kramdown (~> 2.0)
|
26
18
|
minitest (5.17.0)
|
27
19
|
netrc (0.11.0)
|
28
|
-
nokogiri (1.16.5-arm64-darwin)
|
29
|
-
racc (~> 1.4)
|
30
|
-
nokogiri (1.16.5-x86_64-linux)
|
31
|
-
racc (~> 1.4)
|
32
20
|
parallel (1.22.1)
|
33
21
|
parser (3.2.1.0)
|
34
22
|
ast (~> 2.4.1)
|
35
23
|
prism (0.29.0)
|
36
|
-
racc (1.7.3)
|
37
24
|
rainbow (3.1.1)
|
38
25
|
rake (13.0.6)
|
39
26
|
rbi (0.1.13)
|
40
27
|
prism (>= 0.18.0, < 1.0.0)
|
41
28
|
sorbet-runtime (>= 0.5.9204)
|
42
29
|
regexp_parser (2.7.0)
|
43
|
-
reverse_markdown (2.1.1)
|
44
|
-
nokogiri
|
45
30
|
rexml (3.2.5)
|
46
31
|
rubocop (1.45.1)
|
47
32
|
json (~> 2.3)
|
@@ -58,23 +43,9 @@ GEM
|
|
58
43
|
rubocop-espago (1.0.2)
|
59
44
|
rubocop
|
60
45
|
ruby-progressbar (1.11.0)
|
61
|
-
shale (
|
46
|
+
shale (1.2.2)
|
47
|
+
bigdecimal
|
62
48
|
shoulda-context (2.0.0)
|
63
|
-
solargraph (0.48.0)
|
64
|
-
backport (~> 1.2)
|
65
|
-
benchmark
|
66
|
-
bundler (>= 1.17.2)
|
67
|
-
diff-lcs (~> 1.4)
|
68
|
-
e2mmap
|
69
|
-
jaro_winkler (~> 1.5)
|
70
|
-
kramdown (~> 2.3)
|
71
|
-
kramdown-parser-gfm (~> 1.1)
|
72
|
-
parser (~> 3.0)
|
73
|
-
reverse_markdown (>= 1.0.5, < 3)
|
74
|
-
rubocop (>= 0.52)
|
75
|
-
thor (~> 1.0)
|
76
|
-
tilt (~> 2.0)
|
77
|
-
yard (~> 0.9, >= 0.9.24)
|
78
49
|
sorbet (0.5.11372)
|
79
50
|
sorbet-static (= 0.5.11372)
|
80
51
|
sorbet-runtime (0.5.11372)
|
@@ -98,7 +69,6 @@ GEM
|
|
98
69
|
thor (>= 1.2.0)
|
99
70
|
yard-sorbet
|
100
71
|
thor (1.2.1)
|
101
|
-
tilt (2.1.0)
|
102
72
|
unicode-display_width (2.4.2)
|
103
73
|
webrick (1.7.0)
|
104
74
|
yard (0.9.28)
|
@@ -110,6 +80,7 @@ GEM
|
|
110
80
|
PLATFORMS
|
111
81
|
arm64-darwin-20
|
112
82
|
arm64-darwin-22
|
83
|
+
arm64-darwin-24
|
113
84
|
x86_64-linux
|
114
85
|
|
115
86
|
DEPENDENCIES
|
@@ -119,9 +90,8 @@ DEPENDENCIES
|
|
119
90
|
rubocop-espago (~> 1.0)
|
120
91
|
shale-builder!
|
121
92
|
shoulda-context (~> 2.0)
|
122
|
-
solargraph (~> 0.48)
|
123
93
|
sorbet (>= 0.5)
|
124
94
|
tapioca (> 0.13)
|
125
95
|
|
126
96
|
BUNDLED WITH
|
127
|
-
2.
|
97
|
+
2.7.2
|
@@ -3,6 +3,7 @@
|
|
3
3
|
|
4
4
|
require 'shale'
|
5
5
|
require 'booleans'
|
6
|
+
require 'bigdecimal'
|
6
7
|
begin
|
7
8
|
require 'shale/builder'
|
8
9
|
rescue LoadError
|
@@ -148,7 +149,9 @@ module Tapioca
|
|
148
149
|
::Shale::Type::Time => Time,
|
149
150
|
::Shale::Type::Date => Date,
|
150
151
|
::Shale::Type::Boolean => T::Boolean,
|
151
|
-
}.
|
152
|
+
}.tap do |h|
|
153
|
+
h[::Shale::Type::Decimal] = BigDecimal if defined?(::Shale::Type::Decimal)
|
154
|
+
end.freeze,
|
152
155
|
T::Hash[Class, Object],
|
153
156
|
)
|
154
157
|
|
@@ -162,7 +165,11 @@ module Tapioca
|
|
162
165
|
::Shale::Type::Time => Time,
|
163
166
|
::Shale::Type::Date => Date,
|
164
167
|
::Shale::Type::Boolean => Object,
|
165
|
-
}.
|
168
|
+
}.tap do |h|
|
169
|
+
if defined?(::Shale::Type::Decimal)
|
170
|
+
h[::Shale::Type::Decimal] = T.any(BigDecimal, String, Float, Integer, NilClass)
|
171
|
+
end
|
172
|
+
end.freeze,
|
166
173
|
T::Hash[Class, Object],
|
167
174
|
)
|
168
175
|
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shale-builder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mateusz Drewniak
|
8
|
-
autorequire:
|
9
8
|
bindir: exe
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: booleans
|
@@ -81,7 +80,6 @@ metadata:
|
|
81
80
|
source_code_uri: https://github.com/Verseth/ruby-shale-builder
|
82
81
|
changelog_uri: https://github.com/Verseth/ruby-shale-builder/blob/main/CHANGELOG.md
|
83
82
|
rubygems_mfa_required: 'true'
|
84
|
-
post_install_message:
|
85
83
|
rdoc_options: []
|
86
84
|
require_paths:
|
87
85
|
- lib
|
@@ -96,8 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
96
94
|
- !ruby/object:Gem::Version
|
97
95
|
version: '0'
|
98
96
|
requirements: []
|
99
|
-
rubygems_version: 3.
|
100
|
-
signing_key:
|
97
|
+
rubygems_version: 3.7.2
|
101
98
|
specification_version: 4
|
102
99
|
summary: An addon to the shale Ruby gem which adds a simple yet powerful builder DSL.
|
103
100
|
test_files: []
|