structured-acceptance-test 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/process.rb +1 -1
  3. data/lib/stat.rb +3 -3
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bace531ec0260581c1e5b2aa28bfd98ec7b6a9e4
4
- data.tar.gz: 3fed5545f1df6cc46db8e40e683802c34bf453d6
3
+ metadata.gz: c289f07723252f9e77cd5b4a5610057d89404275
4
+ data.tar.gz: 62cc7ea7a262aacc4b173624a97f29c5f0f39dfe
5
5
  SHA512:
6
- metadata.gz: fc7b741da4e4feb8df4280eee9d8859f6fc40a9575dc75a2761999204d53dde76914b5fd718a6023735604ec4cd0dda4b9e03f28cfcfe9d014a48d4dae747daa
7
- data.tar.gz: a5d22273371412299471f09fd4eb47fa08132754ba63f3f65412cacf26437e839f46216103508e31aca54860364bdcd1d9d3e148c7502f2e356c412186e177ba
6
+ metadata.gz: 2d0488e3123b07fd1ba6845e2091a4b4fe219a18fba10d7aa54c9f1b5611745267e458e93319705ed57ba35cd2e27de5bfecdb5c959282731765ab7f203f12ea
7
+ data.tar.gz: 0a7c593ed3dc4d97183af8a9dcf096f02a09174385e68e2ee159792ff1d0b6172a7899dac34b94a10beb4b5d04e14534606ab746082fbeefa1f1b21243cf9a62
data/lib/process.rb CHANGED
@@ -4,7 +4,7 @@ module StatModule
4
4
 
5
5
  class Process < JSONable
6
6
 
7
- def initialize(name, hash)
7
+ def initialize(name, hash = nil)
8
8
  if hash.is_a? Hash
9
9
  super(hash)
10
10
  return
data/lib/stat.rb CHANGED
@@ -55,9 +55,9 @@ module StatModule
55
55
  @finding_print_index = 0
56
56
  hash = {}
57
57
  hash['statVersion'] = @statVersion
58
- hash['process'] = @process.to_json
58
+ hash['process'] = @process
59
59
  hash['findings'] = []
60
- result = hash.to_json.to_s
60
+ result = hash.to_json
61
61
  result = result[0..result.length - 3]
62
62
  puts(result)
63
63
  puts
@@ -68,7 +68,7 @@ module StatModule
68
68
  if @finding_print_index < @findings.length
69
69
  result = @findings[@finding_print_index].to_json
70
70
  result += ',' unless @finding_print_index >= @findings.length - 1
71
- puts(result)
71
+ puts result
72
72
  puts
73
73
  $stdout.flush
74
74
  @finding_print_index += 1
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.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Entriken
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-03-02 00:00:00.000000000 Z
12
+ date: 2017-02-17 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Structured acceptance test data structure gem
15
15
  email: github.com@phor.net