hash_engine 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.rspec +1 -0
- data/Gemfile +9 -0
- data/Gemfile.lock +52 -0
- data/Guardfile +24 -0
- data/README.txt +320 -0
- data/Rakefile +3 -0
- data/hash_engine.gemspec +21 -0
- data/lib/hash_engine.rb +20 -0
- data/lib/hash_engine/actions.rb +82 -0
- data/lib/hash_engine/add_error.rb +13 -0
- data/lib/hash_engine/conditionals.rb +32 -0
- data/lib/hash_engine/csv_parse.rb +49 -0
- data/lib/hash_engine/extract.rb +139 -0
- data/lib/hash_engine/fetchers.rb +27 -0
- data/lib/hash_engine/format.rb +62 -0
- data/lib/hash_engine/transform.rb +196 -0
- data/spec/hash_engine/actions_spec.rb +146 -0
- data/spec/hash_engine/conditional_spec.rb +28 -0
- data/spec/hash_engine/csv_parse_spec.rb +42 -0
- data/spec/hash_engine/csv_transform_spec.rb +90 -0
- data/spec/hash_engine/ds_spec.rb +178 -0
- data/spec/hash_engine/extract_spec.rb +144 -0
- data/spec/hash_engine/fetchers_spec.rb +30 -0
- data/spec/hash_engine/format_spec.rb +55 -0
- data/spec/hash_engine/transform_spec.rb +365 -0
- data/spec/hash_engine_spec.rb +0 -0
- data/spec/spec_helper.rb +12 -0
- metadata +82 -0
File without changes
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
# require_relative was introduced in 1.9.2. This makes it
|
2
|
+
# available to younger rubies.
|
3
|
+
# From: http://stackoverflow.com/questions/4333286/ruby-require-vs-require-relative-best-practice-to-workaround-running-in-both-r/4338241#4338241
|
4
|
+
unless Kernel.respond_to?(:require_relative)
|
5
|
+
module Kernel
|
6
|
+
def require_relative(path)
|
7
|
+
# puts 'IN NEW REQUIRE_RELATIVE ' + path.to_s
|
8
|
+
require File.join(File.dirname(caller[0]), path.to_str)
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
metadata
ADDED
@@ -0,0 +1,82 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: hash_engine
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.3.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Michael King
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2018-09-06 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: HashEngine converts input data, including a hash, csv string, or objects,
|
14
|
+
using provided instructions into an output hash.
|
15
|
+
email:
|
16
|
+
- kingmt@gmail.com
|
17
|
+
executables: []
|
18
|
+
extensions: []
|
19
|
+
extra_rdoc_files: []
|
20
|
+
files:
|
21
|
+
- ".rspec"
|
22
|
+
- Gemfile
|
23
|
+
- Gemfile.lock
|
24
|
+
- Guardfile
|
25
|
+
- README.txt
|
26
|
+
- Rakefile
|
27
|
+
- hash_engine.gemspec
|
28
|
+
- lib/hash_engine.rb
|
29
|
+
- lib/hash_engine/actions.rb
|
30
|
+
- lib/hash_engine/add_error.rb
|
31
|
+
- lib/hash_engine/conditionals.rb
|
32
|
+
- lib/hash_engine/csv_parse.rb
|
33
|
+
- lib/hash_engine/extract.rb
|
34
|
+
- lib/hash_engine/fetchers.rb
|
35
|
+
- lib/hash_engine/format.rb
|
36
|
+
- lib/hash_engine/transform.rb
|
37
|
+
- spec/hash_engine/actions_spec.rb
|
38
|
+
- spec/hash_engine/conditional_spec.rb
|
39
|
+
- spec/hash_engine/csv_parse_spec.rb
|
40
|
+
- spec/hash_engine/csv_transform_spec.rb
|
41
|
+
- spec/hash_engine/ds_spec.rb
|
42
|
+
- spec/hash_engine/extract_spec.rb
|
43
|
+
- spec/hash_engine/fetchers_spec.rb
|
44
|
+
- spec/hash_engine/format_spec.rb
|
45
|
+
- spec/hash_engine/transform_spec.rb
|
46
|
+
- spec/hash_engine_spec.rb
|
47
|
+
- spec/spec_helper.rb
|
48
|
+
homepage: ''
|
49
|
+
licenses: []
|
50
|
+
metadata: {}
|
51
|
+
post_install_message:
|
52
|
+
rdoc_options: []
|
53
|
+
require_paths:
|
54
|
+
- lib
|
55
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
56
|
+
requirements:
|
57
|
+
- - ">="
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: '0'
|
60
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
61
|
+
requirements:
|
62
|
+
- - ">="
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: '0'
|
65
|
+
requirements: []
|
66
|
+
rubyforge_project: hash_engine
|
67
|
+
rubygems_version: 2.6.14
|
68
|
+
signing_key:
|
69
|
+
specification_version: 4
|
70
|
+
summary: HashEngine converts input data and intructions into output data.
|
71
|
+
test_files:
|
72
|
+
- spec/hash_engine/actions_spec.rb
|
73
|
+
- spec/hash_engine/conditional_spec.rb
|
74
|
+
- spec/hash_engine/csv_parse_spec.rb
|
75
|
+
- spec/hash_engine/csv_transform_spec.rb
|
76
|
+
- spec/hash_engine/ds_spec.rb
|
77
|
+
- spec/hash_engine/extract_spec.rb
|
78
|
+
- spec/hash_engine/fetchers_spec.rb
|
79
|
+
- spec/hash_engine/format_spec.rb
|
80
|
+
- spec/hash_engine/transform_spec.rb
|
81
|
+
- spec/hash_engine_spec.rb
|
82
|
+
- spec/spec_helper.rb
|