ruby-stix2 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/lib/stix2/bundle.rb +5 -1
- data/lib/stix2/version.rb +1 -1
- data/ruby-stix2.gemspec +2 -2
- metadata +14 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1325e9bc73496954969bda48fbd2a096c63be31098e6207d72c8260e23a5118f
|
4
|
+
data.tar.gz: d3e59d85404608530150a0fce245f79a0de28598f0daa14bc68e96c598d623e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4fa484ea080ce69d832a71fc45c27dc081385f769895fbbf345ef1eb81109982fa5b1b4bb187b1da6104dc1ee37acf75183164b2b11160609cb607db1c4976d7
|
7
|
+
data.tar.gz: 68ca00c8308ca9d3fd1b978ecd0525d81f169f4b85d21b03eef9ead386e7f0d4228a594755b442c77ea9c1f6ef1b4bf673c47834e71171fad725853cf30c9dca
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
ruby-stix2 (0.1.
|
4
|
+
ruby-stix2 (0.1.3)
|
5
5
|
hashie (~> 5.0.0)
|
6
6
|
|
7
7
|
GEM
|
@@ -84,13 +84,13 @@ DEPENDENCIES
|
|
84
84
|
bundler (~> 2.3)
|
85
85
|
irb (~> 1.7.0)
|
86
86
|
minitest (~> 5.18.1)
|
87
|
-
mutex_m
|
87
|
+
mutex_m (~> 0.2.0)
|
88
88
|
pry (~> 0.13.0)
|
89
89
|
pry-byebug (~> 3.10.1)
|
90
90
|
rake (~> 13.0)
|
91
91
|
ruby-stix2!
|
92
92
|
simplecov (~> 0.22.0)
|
93
|
-
standardrb
|
93
|
+
standardrb (~> 1.0.1)
|
94
94
|
|
95
95
|
BUNDLED WITH
|
96
96
|
2.3.26
|
data/lib/stix2/bundle.rb
CHANGED
@@ -1,6 +1,10 @@
|
|
1
1
|
module Stix2
|
2
2
|
class Bundle < Stix2::Common
|
3
3
|
property :type, required: true, coerce: String
|
4
|
-
property :objects, coerce: ->(array)
|
4
|
+
property :objects, coerce: ->(array) do
|
5
|
+
array.all? do |element|
|
6
|
+
element.is_a?(::Stix2::Common) || Stix2.parse(element).is_a?(::Stix2::Common) || raise("Invalid Object")
|
7
|
+
end && array
|
8
|
+
end
|
5
9
|
end
|
6
10
|
end
|
data/lib/stix2/version.rb
CHANGED
data/ruby-stix2.gemspec
CHANGED
@@ -26,6 +26,6 @@ Gem::Specification.new do |spec|
|
|
26
26
|
spec.add_development_dependency "minitest", "~> 5.18.1"
|
27
27
|
spec.add_development_dependency "simplecov", "~> 0.22.0"
|
28
28
|
spec.add_development_dependency "irb", "~> 1.7.0"
|
29
|
-
spec.add_development_dependency "mutex_m"
|
30
|
-
spec.add_development_dependency "standardrb"
|
29
|
+
spec.add_development_dependency "mutex_m", "~> 0.2.0"
|
30
|
+
spec.add_development_dependency "standardrb", "~> 1.0.1"
|
31
31
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-stix2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dario Lombardo
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-11-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: hashie
|
@@ -126,30 +126,30 @@ dependencies:
|
|
126
126
|
name: mutex_m
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
|
-
- - "
|
129
|
+
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version:
|
131
|
+
version: 0.2.0
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
|
-
- - "
|
136
|
+
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version:
|
138
|
+
version: 0.2.0
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: standardrb
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
|
-
- - "
|
143
|
+
- - "~>"
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version:
|
145
|
+
version: 1.0.1
|
146
146
|
type: :development
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
|
-
- - "
|
150
|
+
- - "~>"
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version:
|
152
|
+
version: 1.0.1
|
153
153
|
description: 'Ruby implementation for the STIX protocol version 2.1. Full specs: https://docs.oasis-open.org/cti/stix/v2.1/stix-v2.1.html'
|
154
154
|
email: lomato@gmail.com
|
155
155
|
executables: []
|
@@ -248,7 +248,7 @@ homepage: https://github.com/crondaemon/ruby-stix2
|
|
248
248
|
licenses:
|
249
249
|
- GPL-2.0-or-later
|
250
250
|
metadata: {}
|
251
|
-
post_install_message:
|
251
|
+
post_install_message:
|
252
252
|
rdoc_options: []
|
253
253
|
require_paths:
|
254
254
|
- lib
|
@@ -263,8 +263,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
263
263
|
- !ruby/object:Gem::Version
|
264
264
|
version: '0'
|
265
265
|
requirements: []
|
266
|
-
rubygems_version: 3.
|
267
|
-
signing_key:
|
266
|
+
rubygems_version: 3.5.16
|
267
|
+
signing_key:
|
268
268
|
specification_version: 4
|
269
269
|
summary: Ruby implementation for the STIX protocol version 2.1
|
270
270
|
test_files: []
|