approvals 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 96e09585ecdfdefb27653875816c7a1d8238f83f
4
+ data.tar.gz: 4ebf84a62a36b84674f13e9203fdb41bd193e9f1
5
+ SHA512:
6
+ metadata.gz: 0b3200ce60612d79ffe98db16fe29c6d178982affa6b3e627cbfa5f96325d37586b5a7ca4cc9949ef6043157e2866c1b8ad06ad62e34d454e8ac96406c2b0ac7
7
+ data.tar.gz: d6819699f6c9fae30a3778ef2c67b38174ea4057bf8ad212013c629a748080d1b13dd003ee978452a31018e6123a27330b431b233f540b229ab284dcd1e6a4ae
@@ -1,3 +1,3 @@
1
1
  module Approvals
2
- VERSION = '0.0.10'
2
+ VERSION = '0.0.11'
3
3
  end
@@ -3,11 +3,9 @@ module Approvals
3
3
  class ArrayWriter < TextWriter
4
4
 
5
5
  def format(data)
6
- s = ""
7
- data.each_with_index do |value, i|
8
- s << "[#{i.inspect}] #{value.inspect}\n"
9
- end
10
- s
6
+ data.map.with_index do |value, i|
7
+ "[#{i.inspect}] #{value.inspect}\n"
8
+ end.join
11
9
  end
12
10
 
13
11
  end
@@ -3,12 +3,11 @@ module Approvals
3
3
  class HashWriter < TextWriter
4
4
 
5
5
  def format(data)
6
- s = "{\n"
7
- data.each do |key, value|
8
- s << "\t#{key.inspect} => #{value.inspect}\n"
9
- end
10
- s << "}"
11
- s
6
+ lines = data.map do |key, value|
7
+ "\t#{key.inspect} => #{value.inspect}"
8
+ end.join("\n")
9
+
10
+ "{\n#{lines}\n}\n"
12
11
  end
13
12
 
14
13
  end
@@ -11,7 +11,7 @@ module Approvals
11
11
 
12
12
  apply_filters!(hash_or_array) if filters.any?
13
13
 
14
- JSON.pretty_generate(hash_or_array)
14
+ JSON.pretty_generate(hash_or_array) + "\n"
15
15
  end
16
16
 
17
17
  private
@@ -3,4 +3,4 @@
3
3
  :proteins => "90%"
4
4
  :price => 38
5
5
  :delicious => true
6
- }
6
+ }
@@ -4,4 +4,4 @@
4
4
  "color": "green",
5
5
  "name": "Anthony"
6
6
  }
7
- }
7
+ }
@@ -4,4 +4,4 @@
4
4
  "color": "green",
5
5
  "name": "Anthony"
6
6
  }
7
- }
7
+ }
@@ -4,4 +4,4 @@
4
4
  "color": "green",
5
5
  "name": "Anthony"
6
6
  }
7
- }
7
+ }
metadata CHANGED
@@ -1,78 +1,69 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: approvals
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
5
- prerelease:
4
+ version: 0.0.11
6
5
  platform: ruby
7
6
  authors:
8
7
  - Katrina Owen
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2014-01-30 00:00:00.000000000 Z
11
+ date: 2014-02-16 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rspec
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ~>
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
19
  version: '2.9'
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ~>
24
+ - - "~>"
28
25
  - !ruby/object:Gem::Version
29
26
  version: '2.9'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: json
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - ">="
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - ">="
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: thor
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - ">="
52
46
  - !ruby/object:Gem::Version
53
47
  version: '0'
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - ">="
60
53
  - !ruby/object:Gem::Version
61
54
  version: '0'
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: nokogiri
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ! '>='
59
+ - - ">="
68
60
  - !ruby/object:Gem::Version
69
61
  version: '0'
70
62
  type: :runtime
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ! '>='
66
+ - - ">="
76
67
  - !ruby/object:Gem::Version
77
68
  version: '0'
78
69
  description: Approval Tests for Ruby
@@ -83,8 +74,8 @@ executables:
83
74
  extensions: []
84
75
  extra_rdoc_files: []
85
76
  files:
86
- - .gitignore
87
- - .travis.yml
77
+ - ".gitignore"
78
+ - ".travis.yml"
88
79
  - Changelog.md
89
80
  - Gemfile
90
81
  - Gemfile.travis
@@ -186,27 +177,25 @@ files:
186
177
  - spec/utilities/system_command_spec.rb
187
178
  homepage: ''
188
179
  licenses: []
180
+ metadata: {}
189
181
  post_install_message:
190
182
  rdoc_options: []
191
183
  require_paths:
192
184
  - lib
193
185
  required_ruby_version: !ruby/object:Gem::Requirement
194
- none: false
195
186
  requirements:
196
- - - ! '>='
187
+ - - ">="
197
188
  - !ruby/object:Gem::Version
198
189
  version: '0'
199
190
  required_rubygems_version: !ruby/object:Gem::Requirement
200
- none: false
201
191
  requirements:
202
- - - ! '>='
192
+ - - ">="
203
193
  - !ruby/object:Gem::Version
204
194
  version: '0'
205
195
  requirements: []
206
196
  rubyforge_project: approvals
207
- rubygems_version: 1.8.23
197
+ rubygems_version: 2.2.0
208
198
  signing_key:
209
- specification_version: 3
199
+ specification_version: 4
210
200
  summary: Approval Tests for Ruby
211
201
  test_files: []
212
- has_rdoc: