cased-ruby 0.4.6 → 0.4.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/cased/cli/asciinema/file.rb +5 -0
- data/lib/cased/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4592facfed9641c5f262e1c82905e77b8ba687cf3a32e056688a7521573ea3ca
|
4
|
+
data.tar.gz: bb5c406b6423b618a0ad9c6356fcfe4e67cfce24c80fc97951aea1cbb846f138
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 86d308c4698823a52959e7fcd32f62c4d023539162fea109d4c893f524e43bb57a845140a21a8177c2e2c1c0fbde5e58832ec8637383b4ea76db0e6f49605ad5
|
7
|
+
data.tar.gz: fe135b92df5a2987e01f2b8272af7b45479bc59ea9a73c35c246602c4ffe7b0e42bd766049b4867d574c14113b5fb83ff515f9e1ad62027a4a1aa347e0a1eb87
|
data/Gemfile.lock
CHANGED
@@ -15,12 +15,17 @@ module Cased
|
|
15
15
|
end
|
16
16
|
|
17
17
|
def self.from_cast(cast)
|
18
|
+
return if cast.blank?
|
19
|
+
|
18
20
|
stream = cast.split("\n").collect do |data|
|
19
21
|
JSON.parse(data)
|
20
22
|
end
|
21
23
|
header = stream.shift
|
24
|
+
return unless header.is_a?(Hash)
|
22
25
|
|
23
26
|
new(header, stream)
|
27
|
+
rescue JSON::ParserError
|
28
|
+
nil
|
24
29
|
end
|
25
30
|
|
26
31
|
# Required
|
data/lib/cased/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cased-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Garrett Bjerkhoel
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-04-
|
11
|
+
date: 2021-04-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|