mq-ruby 0.1.36 → 0.1.37

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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/Cargo.lock +45 -12
  3. data/Cargo.toml +3 -3
  4. data/src/value.rs +8 -5
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '0964557447a34e5b87097358be3181a26d57a5adac4c2709948e45fd7c7b246d'
4
- data.tar.gz: 5e3b4b18697c82a6d8366cc0408ccf5999f983b4b300dd1c0fc7832f8dc137e7
3
+ metadata.gz: 27309551137d17bf8f660275162b08125ac5535e25800d2aebad86262d81f206
4
+ data.tar.gz: fdbb2cb0cf6bdc71f899d875eb90d6a2c1fdd795b602f6e6b39efebf8b9bf4ac
5
5
  SHA512:
6
- metadata.gz: ee6229cea656495669ec87e56650469556208d64deca9ea9d84f8e5ce62132411461e4193d4de1526ed5681e47cb12333cd91edd9c1ccfa67fb6a65f2403bfa9
7
- data.tar.gz: eef0f6c0e34c51b43391e53481bb95877104f9950c6d0a70a3639cd4f306f29a5c6832c375f78c5534ef0d6c2834d107134bf71ca664a825af47e07132ee3077
6
+ metadata.gz: 70bfec6b71af681c275f753db529a02883cbb752167acb02a078243624bf50b63fb98d66e7220a793e7badbe8fcfaa767eb1526ed2efd5b83fac1395dae1f6c8
7
+ data.tar.gz: c74d0f43a5275327bb98e91ed4bade22de153d85bc1b891cec91e1c7130514c79d4de978a0f7922629649d081f52d2dc1b11fd4973fa4f92d541efe307ee8916
data/Cargo.lock CHANGED
@@ -121,6 +121,15 @@ version = "1.12.1"
121
121
  source = "registry+https://github.com/rust-lang/crates.io-index"
122
122
  checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04"
123
123
 
124
+ [[package]]
125
+ name = "caseless"
126
+ version = "0.2.2"
127
+ source = "registry+https://github.com/rust-lang/crates.io-index"
128
+ checksum = "8b6fd507454086c8edfd769ca6ada439193cdb209c7681712ef6275cccbfe5d8"
129
+ dependencies = [
130
+ "unicode-normalization",
131
+ ]
132
+
124
133
  [[package]]
125
134
  name = "cc"
126
135
  version = "1.3.0"
@@ -328,9 +337,9 @@ dependencies = [
328
337
 
329
338
  [[package]]
330
339
  name = "dirs"
331
- version = "6.0.0"
340
+ version = "7.0.0"
332
341
  source = "registry+https://github.com/rust-lang/crates.io-index"
333
- checksum = "c3e8aa94d75141228480295a7d0e7feb620b1a5ad9f12bc40be62411e38cce4e"
342
+ checksum = "8d57d423b3c82e89b9a24ca3091fee61f456a26edbd28d26c65906f4bc1dcd8f"
334
343
  dependencies = [
335
344
  "dirs-sys",
336
345
  ]
@@ -869,12 +878,13 @@ checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"
869
878
 
870
879
  [[package]]
871
880
  name = "mq-lang"
872
- version = "0.8.5"
881
+ version = "0.9.0"
873
882
  source = "registry+https://github.com/rust-lang/crates.io-index"
874
- checksum = "c7252d68684df367d15ec7db56408cec893b92f709a5ae592d6cfa35aed5636d"
883
+ checksum = "83af2c040a49fad25ca6158e63c3ad769998af355cc50df5dc465af17f690eae"
875
884
  dependencies = [
876
885
  "ammonia",
877
886
  "base64",
887
+ "caseless",
878
888
  "chrono",
879
889
  "ciborium",
880
890
  "csv",
@@ -884,6 +894,7 @@ dependencies = [
884
894
  "getrandom 0.4.3",
885
895
  "glob",
886
896
  "html-escape",
897
+ "indexmap",
887
898
  "itertools 0.15.0",
888
899
  "md5",
889
900
  "miette",
@@ -908,6 +919,8 @@ dependencies = [
908
919
  "thiserror",
909
920
  "toml",
910
921
  "toon-format",
922
+ "unicode-normalization",
923
+ "unicode-segmentation",
911
924
  "unicode-width 0.2.2",
912
925
  "url",
913
926
  "uuid",
@@ -918,9 +931,9 @@ dependencies = [
918
931
 
919
932
  [[package]]
920
933
  name = "mq-macros"
921
- version = "0.8.5"
934
+ version = "0.9.0"
922
935
  source = "registry+https://github.com/rust-lang/crates.io-index"
923
- checksum = "e63c21039aeeb646be2791d2168db4f34178f52b4df66ad50b3cc32d5aa196c7"
936
+ checksum = "539dc8924e977ff8b00d7dbbdd62dcb06d23d8b975af1a7c30e5ffe8b3b4d8e5"
924
937
  dependencies = [
925
938
  "proc-macro2",
926
939
  "quote",
@@ -929,9 +942,9 @@ dependencies = [
929
942
 
930
943
  [[package]]
931
944
  name = "mq-markdown"
932
- version = "0.8.5"
945
+ version = "0.9.0"
933
946
  source = "registry+https://github.com/rust-lang/crates.io-index"
934
- checksum = "c182a42c959c77101dd461c257e62b919309cf92339e2c7bb289ce21b7fc3e99"
947
+ checksum = "e8d90b4f7838e1ea5e38799c3cdf3fa7f7bfe0110fdcdf44d6b235ef146ab161"
935
948
  dependencies = [
936
949
  "ego-tree",
937
950
  "itertools 0.15.0",
@@ -949,7 +962,7 @@ dependencies = [
949
962
 
950
963
  [[package]]
951
964
  name = "mq-ruby"
952
- version = "0.1.36"
965
+ version = "0.1.37"
953
966
  dependencies = [
954
967
  "magnus",
955
968
  "mq-lang",
@@ -1571,6 +1584,12 @@ dependencies = [
1571
1584
  "zerovec",
1572
1585
  ]
1573
1586
 
1587
+ [[package]]
1588
+ name = "tinyvec"
1589
+ version = "1.13.3"
1590
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1591
+ checksum = "fd3ca314f692efd6c868f8408f53fe444634a845f96c028b97d35f6a1f79f0ee"
1592
+
1574
1593
  [[package]]
1575
1594
  name = "toml"
1576
1595
  version = "1.1.3+spec-1.1.0"
@@ -1640,6 +1659,21 @@ version = "1.0.24"
1640
1659
  source = "registry+https://github.com/rust-lang/crates.io-index"
1641
1660
  checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
1642
1661
 
1662
+ [[package]]
1663
+ name = "unicode-normalization"
1664
+ version = "0.1.25"
1665
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1666
+ checksum = "5fd4f6878c9cb28d874b009da9e8d183b5abc80117c40bbd187a1fde336be6e8"
1667
+ dependencies = [
1668
+ "tinyvec",
1669
+ ]
1670
+
1671
+ [[package]]
1672
+ name = "unicode-segmentation"
1673
+ version = "1.13.3"
1674
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1675
+ checksum = "c6f5d3c3b1bf09027a88a6bc961fc00497d651009560b5463668dc81b0fa87a8"
1676
+
1643
1677
  [[package]]
1644
1678
  name = "unicode-width"
1645
1679
  version = "0.1.14"
@@ -1846,12 +1880,11 @@ checksum = "1ffae5123b2d3fc086436f8834ae3ab053a283cfac8fe0a0b8eaae044768a4c4"
1846
1880
 
1847
1881
  [[package]]
1848
1882
  name = "yaml-rust2"
1849
- version = "0.12.0"
1883
+ version = "0.13.0"
1850
1884
  source = "registry+https://github.com/rust-lang/crates.io-index"
1851
- checksum = "c6edb26322e610d4f04b7cd34478317685d24d0999437e551fb97c5441151041"
1885
+ checksum = "57e5b818a27a4cd30884ea380857a5e56f7ec3ba24a3990a3cc0b95af3238e18"
1852
1886
  dependencies = [
1853
1887
  "arraydeque",
1854
- "encoding_rs",
1855
1888
  "hashlink",
1856
1889
  ]
1857
1890
 
data/Cargo.toml CHANGED
@@ -10,7 +10,7 @@ name = "mq-ruby"
10
10
  publish = false
11
11
  readme = "README.md"
12
12
  repository = "https://github.com/harehare/mq"
13
- version = "0.1.36"
13
+ version = "0.1.37"
14
14
 
15
15
  [lib]
16
16
  crate-type = ["cdylib"]
@@ -18,8 +18,8 @@ name = "mq_ruby"
18
18
 
19
19
  [dependencies]
20
20
  magnus = {version = "0.8"}
21
- mq-lang = {version = "0.8.5", features = ["css-selector"]}
22
- mq-markdown = "0.8.5"
21
+ mq-lang = {version = "0.9.0", features = ["css-selector"]}
22
+ mq-markdown = "0.9.0"
23
23
  # Pinned below the rb-sys releases (0.9.120+) that added Ruby 4.x-specific
24
24
  # ABI handling, which is buggy on Ruby 4.0 under magnus 0.8.2 and breaks
25
25
  # TypedData class conversion (see MQ::Result CI failures on Ruby 4.0).
data/src/value.rs CHANGED
@@ -110,17 +110,20 @@ impl From<mq_lang::RuntimeValue> for MQValue {
110
110
  mq_lang::RuntimeValue::Boolean(b) => MQValue::Markdown {
111
111
  value: b.to_string(),
112
112
  },
113
- mq_lang::RuntimeValue::Function(..)
114
- | mq_lang::RuntimeValue::NativeFunction(..)
115
- | mq_lang::RuntimeValue::Module(..) => MQValue::Markdown {
116
- value: "".to_string(),
117
- },
113
+ mq_lang::RuntimeValue::Closure(..) | mq_lang::RuntimeValue::NativeFunction(..) => {
114
+ MQValue::Markdown {
115
+ value: "".to_string(),
116
+ }
117
+ }
118
118
  mq_lang::RuntimeValue::None => MQValue::Markdown {
119
119
  value: "".to_string(),
120
120
  },
121
121
  mq_lang::RuntimeValue::Bytes(b) => MQValue::Markdown {
122
122
  value: String::from_utf8_lossy(&b).to_string(),
123
123
  },
124
+ _ => MQValue::Markdown {
125
+ value: "".to_string(),
126
+ },
124
127
  }
125
128
  }
126
129
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mq-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.36
4
+ version: 0.1.37
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takahiro Sato