mayu-css 0.1.0-aarch64-linux → 0.1.2-aarch64-linux

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: 598b27604b11dc548c3dc2ded1fe3f4e0c198f6495ceb3bd27d53611778423d6
4
- data.tar.gz: '0949e8fa6f4539f397a57461a0d6293f68cbfe3ca8a7e4e28296e4c82cda80f9'
3
+ metadata.gz: 1e0c4e68a863838628008af50954b62100843623998ab89c4d45f3c98f9fea30
4
+ data.tar.gz: 15a3bf90e3eef2aaf5d76e1c52db57c9fa7bd4a56efcf97f24b3d2b8ee6b9f29
5
5
  SHA512:
6
- metadata.gz: 8c6d0e360b19d6735064bf90bd28550ad2f6c3dfb1dc05a83e2b7cebed01b853483beccaf1b1b8543551e378da6e849d42d8200725cd5f04874611fd402e1d90
7
- data.tar.gz: 3ee8ed2a3448b9028ecef986e24c9564d0b74fd55bd050d1034ea2ef4fc8f42061a5f46a66b35cb76c08ab7a2a123af600ed69aac8a0915e656ee56c5616a6e8
6
+ metadata.gz: d5ef548d0840a68807cce7cb46db98abeea3214dd7142acca8636b0d23539c2dc6bb0a84f3ee655c8d1f8e18d721efae5a21a77dff83cfd250ca44adb0846e0c
7
+ data.tar.gz: 2e0e01ec4ce4e1a41057ba3fdc2dd407476f3a3587ba643f77afa0df1980ee72b7639d75b67d998b7497c1d13b9f5560241639ac1258e69e330f87a76a04b08d
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Mayu
4
4
  module CSS
5
- VERSION = "0.1.0"
5
+ VERSION = "0.1.2"
6
6
  end
7
7
  end
data/lib/mayu/css.rb CHANGED
@@ -60,17 +60,15 @@ module Mayu
60
60
  .then { JSON.parse(_1, symbolize_names: true) }
61
61
  .transform_keys(&:to_s)
62
62
  .transform_values do |export|
63
- export => { name:, composes:, isReferenced: }
64
-
65
63
  Export[
66
- name:,
67
- referenced?: isReferenced,
68
- composes: composes.map do |compose|
64
+ name: export[:name],
65
+ referenced?: export[:isReferenced],
66
+ composes: export[:composes].map do |compose|
69
67
  case compose
70
68
  in { type: "local", name: }
71
- ComposeLocal[name:]
69
+ ComposeLocal[name: name.to_sym]
72
70
  in { type: "dependency", name:, specifier: }
73
- ComposeDependency[name:, specifier:]
71
+ ComposeDependency[name: name.to_sym, specifier:]
74
72
  end
75
73
  end
76
74
  ]
@@ -93,13 +91,13 @@ module Mayu
93
91
 
94
92
  SerializeResult = Data.define(:rules, :sources, :source_map_urls, :license_comments) do
95
93
  def self.from_ext(data)
96
- JSON.parse(data, symbolize_names: true) => {
97
- rules:,
98
- sources:,
99
- sourceMapUrls: source_map_urls,
100
- licenseComments: license_comments,
101
- }
102
- new(rules:, sources:, source_map_urls:, license_comments:)
94
+ parsed = JSON.parse(data, symbolize_names: true)
95
+ new(
96
+ rules: parsed[:rules],
97
+ sources: parsed[:sources],
98
+ source_map_urls: parsed[:sourceMapUrls],
99
+ license_comments: parsed[:licenseComments]
100
+ )
103
101
  end
104
102
  end
105
103
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mayu-css
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: aarch64-linux
6
6
  authors:
7
7
  - Andreas Alin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-01-04 00:00:00.000000000 Z
11
+ date: 2024-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake-compiler
@@ -78,7 +78,6 @@ files:
78
78
  - README.md
79
79
  - lib/mayu/css.rb
80
80
  - lib/mayu/css/3.0/ext.so
81
- - lib/mayu/css/3.1/ext.so
82
81
  - lib/mayu/css/3.2/ext.so
83
82
  - lib/mayu/css/3.3/ext.so
84
83
  - lib/mayu/css/version.rb
Binary file