trick_bag 0.54.0 → 0.55.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/RELEASE_NOTES.md +5 -0
- data/lib/trick_bag/version.rb +1 -1
- metadata +2 -5
- data/lib/trick_bag/parsers/yaml_tools.rb +0 -18
- data/spec/trick_bag/parsers/yaml_tools_spec.rb +0 -29
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 768645a9651bf65821b78ea38047105f374f65d9
|
4
|
+
data.tar.gz: 5424fa9c01caea081e7b0215ba554a29273c74ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef6dc3e7939320304554e4ef73e72103379f1fb0c56a450f9b4239e23fb56c9ec897e43293b0d3ad85b0a41a57795368b1382a323f17dbcc7cc6e3890ce144e8
|
7
|
+
data.tar.gz: 49f68b998c1f5a0675fc6eecb208d3dba0976c22da83a0782d6ad7711f8d9e65f9fbc26ee7565052001a9a681212444a59e548e4c0c50511c70305893976dea8
|
data/RELEASE_NOTES.md
CHANGED
data/lib/trick_bag/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trick_bag
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.55.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Keith Bennett
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-09-
|
11
|
+
date: 2014-09-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: os
|
@@ -113,7 +113,6 @@ files:
|
|
113
113
|
- lib/trick_bag/numeric/start_and_max.rb
|
114
114
|
- lib/trick_bag/numeric/totals.rb
|
115
115
|
- lib/trick_bag/operators/operators.rb
|
116
|
-
- lib/trick_bag/parsers/yaml_tools.rb
|
117
116
|
- lib/trick_bag/system.rb
|
118
117
|
- lib/trick_bag/timing/timing.rb
|
119
118
|
- lib/trick_bag/validations/gem_dependency_script.rb
|
@@ -141,7 +140,6 @@ files:
|
|
141
140
|
- spec/trick_bag/numeric/start_and_max_spec.rb
|
142
141
|
- spec/trick_bag/numeric/totals_spec.rb
|
143
142
|
- spec/trick_bag/operators/operators_spec.rb
|
144
|
-
- spec/trick_bag/parsers/yaml_tools_spec.rb
|
145
143
|
- spec/trick_bag/system_spec.rb
|
146
144
|
- spec/trick_bag/timing/timing_spec.rb
|
147
145
|
- spec/trick_bag/validations/hash_validations_spec.rb
|
@@ -193,7 +191,6 @@ test_files:
|
|
193
191
|
- spec/trick_bag/numeric/start_and_max_spec.rb
|
194
192
|
- spec/trick_bag/numeric/totals_spec.rb
|
195
193
|
- spec/trick_bag/operators/operators_spec.rb
|
196
|
-
- spec/trick_bag/parsers/yaml_tools_spec.rb
|
197
194
|
- spec/trick_bag/system_spec.rb
|
198
195
|
- spec/trick_bag/timing/timing_spec.rb
|
199
196
|
- spec/trick_bag/validations/hash_validations_spec.rb
|
@@ -1,18 +0,0 @@
|
|
1
|
-
require 'yaml'
|
2
|
-
|
3
|
-
module TrickBag
|
4
|
-
|
5
|
-
module YamlTools
|
6
|
-
|
7
|
-
module_function
|
8
|
-
|
9
|
-
def string_to_mult_objects(string)
|
10
|
-
string_records = string.split(/^---$/)
|
11
|
-
string_records.map { |r| YAML.parse(r) }
|
12
|
-
end
|
13
|
-
|
14
|
-
def file_to_mult_objects(filespec)
|
15
|
-
string_to_mult_objects(File.read(filespec))
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
@@ -1,29 +0,0 @@
|
|
1
|
-
require_relative '../../spec_helper'
|
2
|
-
|
3
|
-
require 'trick_bag/parsers/yaml_tools'
|
4
|
-
|
5
|
-
module TrickBag
|
6
|
-
module Parsers
|
7
|
-
|
8
|
-
let(objects) { [
|
9
|
-
[1, 2, 3],
|
10
|
-
{ 'fruit' => 'mango', 'color' => 'orange' },
|
11
|
-
42,
|
12
|
-
'foo'
|
13
|
-
]}
|
14
|
-
|
15
|
-
let(yaml_string) { objects.to_yaml }
|
16
|
-
|
17
|
-
describe 'Parsers' do
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
end
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
end
|
28
|
-
end
|
29
|
-
|