structured-acceptance-test 0.0.5 → 0.0.6

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
  SHA1:
3
- metadata.gz: c289f07723252f9e77cd5b4a5610057d89404275
4
- data.tar.gz: 62cc7ea7a262aacc4b173624a97f29c5f0f39dfe
3
+ metadata.gz: 0f581dbe460ec7e6c654bc3181df2fd8711a1b1a
4
+ data.tar.gz: 9bc1dc9372d8b0752531469be9ac83150d778750
5
5
  SHA512:
6
- metadata.gz: 2d0488e3123b07fd1ba6845e2091a4b4fe219a18fba10d7aa54c9f1b5611745267e458e93319705ed57ba35cd2e27de5bfecdb5c959282731765ab7f203f12ea
7
- data.tar.gz: 0a7c593ed3dc4d97183af8a9dcf096f02a09174385e68e2ee159792ff1d0b6172a7899dac34b94a10beb4b5d04e14534606ab746082fbeefa1f1b21243cf9a62
6
+ metadata.gz: 4b7826e641a54264490b0d6e985992cbb50b1d5c599c4b13835ae4e6ca42b48af15d26733fe8a5867ce2ef740b87212eb110f409a85159c20545bbdcda5c8ab0
7
+ data.tar.gz: 441400ecf15de90f27f44cf85512b47386bb65790e0f412f24990a2eec548954a737e6e86ac307327181962ced129e75148830b1b45ff033e648dcf94834a4d5
data/lib/JSONable.rb CHANGED
@@ -51,7 +51,7 @@ module StatModule
51
51
  self.instance_variables.each do |var|
52
52
  hash[var.to_s.delete "@"] = self.instance_variable_get var unless excluded_fields.is_a?(Array) && excluded_fields.include?(var.to_s.delete "@")
53
53
  end
54
- hash.to_json
54
+ JSON.pretty_generate(hash)
55
55
  end
56
56
 
57
57
  def self.from_json! string
data/lib/detail.rb CHANGED
@@ -4,8 +4,6 @@ module StatModule
4
4
  class Detail < JSONable
5
5
 
6
6
  def initialize(body, hash = nil)
7
- @trace = []
8
-
9
7
  if hash.is_a? Hash
10
8
  super(hash)
11
9
  return
data/lib/finding.rb CHANGED
@@ -4,9 +4,6 @@ module StatModule
4
4
  class Finding < JSONable
5
5
 
6
6
  def initialize(failure, rule, description, hash = nil)
7
- @categories = []
8
- @fixes = []
9
-
10
7
  if hash.is_a? Hash
11
8
  super(hash)
12
9
  return
@@ -95,7 +92,7 @@ module StatModule
95
92
 
96
93
  def fixes=(fixes)
97
94
  raise TypeException unless fixes.is_a?(Array)
98
- @fixes.each { |item|
95
+ fixes.each { |item|
99
96
  raise TypeException unless item.is_a?(StatModule::Fix)
100
97
  raise DuplicateElementException if @fixes.include?(item)
101
98
  @fixes.push(item)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: structured-acceptance-test
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Entriken
@@ -9,8 +9,68 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-02-17 00:00:00.000000000 Z
13
- dependencies: []
12
+ date: 2017-04-12 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: safe-enum
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - "~>"
19
+ - !ruby/object:Gem::Version
20
+ version: '0.3'
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: 0.3.0
24
+ type: :runtime
25
+ prerelease: false
26
+ version_requirements: !ruby/object:Gem::Requirement
27
+ requirements:
28
+ - - "~>"
29
+ - !ruby/object:Gem::Version
30
+ version: '0.3'
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 0.3.0
34
+ - !ruby/object:Gem::Dependency
35
+ name: json-schema
36
+ requirement: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '2.8'
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: 2.8.0
44
+ type: :runtime
45
+ prerelease: false
46
+ version_requirements: !ruby/object:Gem::Requirement
47
+ requirements:
48
+ - - "~>"
49
+ - !ruby/object:Gem::Version
50
+ version: '2.8'
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: 2.8.0
54
+ - !ruby/object:Gem::Dependency
55
+ name: colorize
56
+ requirement: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - "~>"
59
+ - !ruby/object:Gem::Version
60
+ version: '0.8'
61
+ - - ">="
62
+ - !ruby/object:Gem::Version
63
+ version: 0.8.1
64
+ type: :runtime
65
+ prerelease: false
66
+ version_requirements: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - "~>"
69
+ - !ruby/object:Gem::Version
70
+ version: '0.8'
71
+ - - ">="
72
+ - !ruby/object:Gem::Version
73
+ version: 0.8.1
14
74
  description: Structured acceptance test data structure gem
15
75
  email: github.com@phor.net
16
76
  executables: []
@@ -49,9 +109,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
49
109
  version: '0'
50
110
  requirements: []
51
111
  rubyforge_project:
52
- rubygems_version: 2.5.1
112
+ rubygems_version: 2.6.11
53
113
  signing_key:
54
114
  specification_version: 4
55
115
  summary: Structured acceptance test
56
116
  test_files: []
57
- has_rdoc: