shale-builder 0.1.7 → 0.1.8

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: 6ef41ff823790ea71cc583be49928a51e255cdcf2b3fbc40f15e4b723869a122
4
- data.tar.gz: be505058e2e5dfc7eb1c135e057584a3106bacb218c42364ca5ad71825cb2c52
3
+ metadata.gz: cbe778d73cceabc621cd8f6a519f5ae1918f9f0adaca89440f4bbc40a26d2c82
4
+ data.tar.gz: 8fca87cc033853a3f2bb11fd2a40c1c96f2a3253018418ab03759431d6d07111
5
5
  SHA512:
6
- metadata.gz: 1042febdd9dc03e8b26ff1be008dd4373873bea67654033bc8571735ff3d9fafc9f11cf35fd6c5ebf042f4e80f92524fd5bcb0786fcedd44ee18bbc730b2e737
7
- data.tar.gz: ba567d0e318cc4ef01d23ebf7e705ccbb7fa8bfe07e7d5c4fae86e9ca518993b68be3e2ef28801125d25269d8037de7de811e6d76fff8f7bf4cb207ecd09b53e
6
+ metadata.gz: bbbe39c11d85f4dfae32313d72d751ba72d69e7a3bf13c8fcf9ba19df598975a67b6de20a4db66a1335d3a6b6a5c2adff8c102ddc7fc31d8f1505c7742e5939e
7
+ data.tar.gz: d446a57ccf5eb4be78014d1bf8852017463ceee2fcb4af3746be191c8b11240fc50a65129b9daffb8c33ea35cc29733b30dc53a47fac28fbd7996ddd84d15521
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [0.1.8] - 2024-05-15
2
+
3
+ - Sort attribute names in the tapioca compiler
4
+
1
5
  ## [0.1.7] - 2024-05-13
2
6
 
3
7
  - Drop support for Ruby 3.0
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- shale-builder (0.1.7)
4
+ shale-builder (0.1.8)
5
5
  booleans (>= 0.1)
6
6
  shale (< 2.0)
7
7
  sorbet-runtime (> 0.5)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Shale
4
4
  module Builder
5
- VERSION = '0.1.7'
5
+ VERSION = '0.1.8'
6
6
  end
7
7
  end
@@ -34,8 +34,9 @@ module Tapioca
34
34
  mod = klass.create_module(SHALE_ATTRIBUTE_MODULE)
35
35
  klass.create_include(SHALE_ATTRIBUTE_MODULE)
36
36
  # For each attribute defined in the class
37
- constant.attributes.each_value do |attribute|
38
- attribute = T.let(attribute, ::Shale::Attribute)
37
+ attribute_names = constant.attributes.keys.sort
38
+ attribute_names.each do |attribute_name|
39
+ attribute = T.let(constant.attributes[attribute_name], ::Shale::Attribute)
39
40
  non_nilable_type, nilable_type = shale_type_to_sorbet_type(attribute)
40
41
  type = nilable_type
41
42
  if attribute.collection?
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shale-builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mateusz Drewniak
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-05-13 00:00:00.000000000 Z
11
+ date: 2024-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: booleans