vega 0.3.0 → 0.3.1

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: d69aac9d3f05caa9f76daa8c205c111749e0dc2d1405b4976f605b23827f0b24
4
- data.tar.gz: ca69219af1e2660a708c9b82a8752e1070045cc243fe6df6caf18eae85e3df7f
3
+ metadata.gz: 910224c90daca83128bd03303309f86e84a5ddd709db65630c2b9bf7948e0c7c
4
+ data.tar.gz: 7f8773556565b0ddaab7668e41f38cd9fa1a88cea51e4199e4997494340cfb6f
5
5
  SHA512:
6
- metadata.gz: 612e45412420f9684e4dfc075bccfec94c8692675682b5cd94d105bd76865c650f437344881469ed4f034dc5907997c7ea8db6939db6d470305f886d75342a11
7
- data.tar.gz: d350d462c5d24ce1ee568b1146d8bf2e2ad1d6ac7266a6189a26921d2f018b41ea8bdd5a9a57bfb2ca259f6afee3cd96a62d6d9da800aa45c5c5d79006de136f
6
+ metadata.gz: 2b73aa8eeb149fe75bfeb2edfb316de4ba209be855a7b1ad0200da13cf97a9ef365ed8ea5d590e734a071fde51c3bfc10d122a28002a9d70a62fccdd563d9230
7
+ data.tar.gz: 175848178fa7ade33c0a1401037fce8c2abb1f164bb3f820f27fd69ecb4e2742adfd67177044fde6928e21d23db02d783cb9eb16b1a83360ee1058b38d2b12dd
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 0.3.1 (2023-02-21)
2
+
3
+ - Updated Vega-Lite to 5.6.1 and Vega-Embed to 6.21.3
4
+ - Added support for Polars data frames
5
+
1
6
  ## 0.3.0 (2022-12-05)
2
7
 
3
8
  - Updated Vega-Lite to 5.6.0
@@ -45,6 +45,7 @@ module Vega
45
45
  end
46
46
 
47
47
  def data_value(value)
48
+ value = value.rows(named: true) if defined?(Polars::DataFrame) && value.is_a?(Polars::DataFrame)
48
49
  value = value.to_a if defined?(Rover::DataFrame) && value.is_a?(Rover::DataFrame)
49
50
  value = value.to_a[0] if defined?(Daru::DataFrame) && value.is_a?(Daru::DataFrame)
50
51
  case value
data/lib/vega/spec.rb CHANGED
@@ -36,8 +36,8 @@ module Vega
36
36
  paths: {
37
37
  'vega': 'https://cdn.jsdelivr.net/npm/vega@5.22.1/build/vega.min',
38
38
  'vega-util': 'https://cdn.jsdelivr.net/npm/vega-util@1.17.0/build/vega-util.min',
39
- 'vega-lite': 'https://cdn.jsdelivr.net/npm/vega-lite@5.6.0/build/vega-lite.min',
40
- 'vega-embed': 'https://cdn.jsdelivr.net/npm/vega-embed@6.21.0/build/vega-embed.min'
39
+ 'vega-lite': 'https://cdn.jsdelivr.net/npm/vega-lite@5.6.1/build/vega-lite.min',
40
+ 'vega-embed': 'https://cdn.jsdelivr.net/npm/vega-embed@6.21.3/build/vega-embed.min'
41
41
  }
42
42
  });
43
43
  require(['vega', 'vega-util', 'vega-lite', 'vega-embed'], function(vega, vegaUtil, vegaLite, vegaEmbed) {
data/lib/vega/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Vega
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end