diver_down 0.0.1.alpha1 → 0.0.1.alpha2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -2
- data/lib/diver_down/definition.rb +0 -5
- data/lib/diver_down/version.rb +1 -1
- data/lib/diver_down/web/definition_loader.rb +0 -6
- data/lib/diver_down.rb +0 -1
- metadata +2 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dcbd27bf351ca574fcdcd4c01766efed1355a466244da2e7edd44afaf01a01f8
|
4
|
+
data.tar.gz: 436603ba87645fa2cdccb025d3d1eafba4a17b6287f59abac416ed2d555a85a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a97b9d87ce9b77a67f9638de411d362adcd697857ae66ca10926eb719d9daa086e89db4e00738fe8c7fc578784f9cc9a450ae82a1d6304dfe19f3dbe077f295f
|
7
|
+
data.tar.gz: d1675fc5858fffd12fcc21f8b7264b0b1199e099402a8c4f9d55af15c10f5b59b2570b1b206318283a6caeddf7fed1109dc3d7af89f61b50371b313343f47210
|
data/README.md
CHANGED
@@ -58,7 +58,7 @@ end
|
|
58
58
|
```
|
59
59
|
|
60
60
|
The analysis results should be output to a specific directory.
|
61
|
-
Files saved in `.
|
61
|
+
Files saved in `.json` or `.yaml` can be read by `DiverDown::Web`.
|
62
62
|
|
63
63
|
```ruby
|
64
64
|
dir = 'tmp/diver_down'
|
@@ -67,7 +67,6 @@ definition = tracer.trace do
|
|
67
67
|
# do something
|
68
68
|
end
|
69
69
|
|
70
|
-
File.binwrite(File.join(dir, "#{definition.title}.msgpack"), definition.to_msgpack)
|
71
70
|
File.write(File.join(dir, "#{definition.title}.json"), definition.to_h.to_json)
|
72
71
|
File.write(File.join(dir, "#{definition.title}.yaml"), definition.to_h.to_yaml)
|
73
72
|
```
|
data/lib/diver_down/version.rb
CHANGED
@@ -8,8 +8,6 @@ module DiverDown
|
|
8
8
|
hash = case File.extname(path)
|
9
9
|
when '.yaml', '.yml'
|
10
10
|
from_yaml(path)
|
11
|
-
when '.msgpack'
|
12
|
-
from_msgpack(path)
|
13
11
|
when '.json'
|
14
12
|
from_json(path)
|
15
13
|
else
|
@@ -28,10 +26,6 @@ module DiverDown
|
|
28
26
|
def from_yaml(path)
|
29
27
|
YAML.load_file(path)
|
30
28
|
end
|
31
|
-
|
32
|
-
def from_msgpack(path)
|
33
|
-
MessagePack.unpack(File.binread(path))
|
34
|
-
end
|
35
29
|
end
|
36
30
|
end
|
37
31
|
end
|
data/lib/diver_down.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: diver_down
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.1.
|
4
|
+
version: 0.0.1.alpha2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- alpaca-tc
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-04-
|
11
|
+
date: 2024-04-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -24,20 +24,6 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 7.0.0
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: msgpack
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: 1.7.0
|
34
|
-
type: :runtime
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ">="
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: 1.7.0
|
41
27
|
- !ruby/object:Gem::Dependency
|
42
28
|
name: rack-contrib
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|