mayu-css 0.1.1-arm64-darwin → 0.1.2-arm64-darwin

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: ebd4c7246b982dc91412b2f4672848c7d001c4f096bbe0f7ba0d10470443a6f1
4
- data.tar.gz: e53c0dc923acc8762013be07d8f90f41d493fb4a257b2596f4a6d504a269b4f3
3
+ metadata.gz: 39cfb9a1a78d083077b647c3fbfdb481ec8dbb0527dede7747e6357f07f47c53
4
+ data.tar.gz: f200976dfbaff5e95485333c63ca96e8630d21f24de32e2807728aef61234216
5
5
  SHA512:
6
- metadata.gz: a09ec148756a18db65229ad2adb6e7a35629e4d66279b721870fd9043ebae64f7d8f158c82650f4dfaab7aa23de175063ee02af09361854ab515dea8f8b89a1a
7
- data.tar.gz: 6d2b4db5e1bb29cf5081a90bc2ff59c43e15281282ca9f77a0fc0cd7054c564fb917e47f8ee16cd2a80bcf0c40d27704ea958a724dbc5e8df5d1af45a5086b88
6
+ metadata.gz: d5473513661ce8f3cf4578b8e5ea42b336927d6acc0ee4bd99861f4bb34979d89226bbac5eb6c2698a9cfa5cdaa027b92c1304e2e4fab0826d3ca0c39f737f03
7
+ data.tar.gz: 9acc40640b0e8dadb860f184b7a79e1a4c5a7ef2029dd60dcfb0a1f94d18f4b8387b45bec627d3d335e0ce5d819d9041bdc9887b545e1c04c3c51716098f4685
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Mayu
4
4
  module CSS
5
- VERSION = "0.1.1"
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.1
4
+ version: 0.1.2
5
5
  platform: arm64-darwin
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.bundle
81
- - lib/mayu/css/3.1/ext.bundle
82
81
  - lib/mayu/css/3.2/ext.bundle
83
82
  - lib/mayu/css/3.3/ext.bundle
84
83
  - lib/mayu/css/version.rb
Binary file