spine-transform 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: b4ab6da369c4fb24c26a099255860a7704bd1348
4
+ data.tar.gz: 79ba8def7647c80be07de5a2ff669a1484d162c8
5
+ SHA512:
6
+ metadata.gz: ffcc2c6f9ab1730526b8e00990f3318216bc88c15c6bbb0b854c823d0fa26c3ab603987887b1d1a368f760a02f16164de0cff2db32de678885db146601960c52
7
+ data.tar.gz: b18cd1a765d423585dfb9ac179607b48fc5259dca827452b6b2f731b2b8a13837c51a78b5ff8230d2cbb4c7d5a0d492d00e0a472817da58ae84b3c2879448cce
data/.gitignore ADDED
@@ -0,0 +1,36 @@
1
+ *.gem
2
+ *.rbc
3
+ /.config
4
+ /coverage/
5
+ /InstalledFiles
6
+ /pkg/
7
+ /spec/reports/
8
+ /test/tmp/
9
+ /test/version_tmp/
10
+ /tmp/
11
+
12
+ ## Specific to RubyMotion:
13
+ .dat*
14
+ .repl_history
15
+ build/
16
+
17
+ ## Documentation cache and generated files:
18
+ /.yardoc/
19
+ /_yardoc/
20
+ /doc/
21
+ /rdoc/
22
+
23
+ ## Environment normalisation:
24
+ /bin/
25
+ /.bundle/
26
+ /vendor/bundle
27
+ /lib/bundler/man/
28
+
29
+ # for a library or gem, you might want to ignore these files since the code is
30
+ # intended to run in multiple environments; otherwise, check them in:
31
+ # Gemfile.lock
32
+ # .ruby-version
33
+ # .ruby-gemset
34
+
35
+ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
36
+ .rvmrc
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --color
2
+ --format documentation
3
+ --require config/default
data/CHANGELOG.md ADDED
@@ -0,0 +1,6 @@
1
+ Changelog
2
+ =========
3
+
4
+ 0.1.0
5
+ -----
6
+ - First public release
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in spine-transform.gemspec
4
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,42 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ spine-transform (0.1.0)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ codeclimate-test-reporter (0.4.7)
10
+ simplecov (>= 0.7.1, < 1.0.0)
11
+ diff-lcs (1.2.5)
12
+ docile (1.1.5)
13
+ json (1.8.2)
14
+ rake (10.4.2)
15
+ rspec (3.2.0)
16
+ rspec-core (~> 3.2.0)
17
+ rspec-expectations (~> 3.2.0)
18
+ rspec-mocks (~> 3.2.0)
19
+ rspec-core (3.2.3)
20
+ rspec-support (~> 3.2.0)
21
+ rspec-expectations (3.2.1)
22
+ diff-lcs (>= 1.2.0, < 2.0)
23
+ rspec-support (~> 3.2.0)
24
+ rspec-mocks (3.2.1)
25
+ diff-lcs (>= 1.2.0, < 2.0)
26
+ rspec-support (~> 3.2.0)
27
+ rspec-support (3.2.2)
28
+ simplecov (0.10.0)
29
+ docile (~> 1.1.0)
30
+ json (~> 1.8)
31
+ simplecov-html (~> 0.10.0)
32
+ simplecov-html (0.10.0)
33
+
34
+ PLATFORMS
35
+ ruby
36
+
37
+ DEPENDENCIES
38
+ bundler (~> 1.7)
39
+ codeclimate-test-reporter (~> 0.4)
40
+ rake (~> 10.0)
41
+ rspec (~> 3.2)
42
+ spine-transform!
data/LICENSE ADDED
@@ -0,0 +1,12 @@
1
+ Copyright (c) 2015, TOGGL LLC
2
+ All rights reserved.
3
+
4
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
5
+
6
+ 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
7
+
8
+ 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
9
+
10
+ 3. Neither the name of the TOGGL LLC nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
11
+
12
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
data/README.md ADDED
@@ -0,0 +1,43 @@
1
+ # Spine::Transform
2
+
3
+ [![Gem Version](https://badge.fury.io/rb/spine-transform.svg)](http://badge.fury.io/rb/spine-transform)
4
+ [![Dependency Status](https://gemnasium.com/rspine/transform.svg)](https://gemnasium.com/rspine/transform)
5
+ [![Test Coverage](https://codeclimate.com/github/rspine/transform/badges/coverage.svg)](https://codeclimate.com/github/rspine/transform/coverage)
6
+ [![Code Climate](https://codeclimate.com/github/rspine/transform/badges/gpa.svg)](https://codeclimate.com/github/rspine/transform)
7
+ [![Codeship Status for rspine/transform](https://codeship.com/projects/3bca5340-e429-0132-2690-16773c71d38d/status?branch=master)](https://codeship.com/projects/81799)
8
+
9
+ Transforms hash by defined commands. Here we focus on how to transform given
10
+ object, `Spine::Mappings` focuses on result and how to retrieve values for it.
11
+
12
+ ## Installation
13
+
14
+ To install it, add the gem to your Gemfile:
15
+
16
+ ```ruby
17
+ gem 'spine-transform'
18
+ ```
19
+
20
+ Then run `bundle`. If you're not using Bundler, just `gem install spine-transform`.
21
+
22
+ ## Usage
23
+
24
+ ```ruby
25
+ transformations = Spine::Transform.define do
26
+ integer :id
27
+ copy :name
28
+ decimal :price
29
+ boolean :is_available
30
+ transform :available, flatten: true do
31
+ date :from, to: :available_from
32
+ date :until, to: :available_until
33
+ end
34
+ end
35
+
36
+ transformations.transform(
37
+ id: '1',
38
+ name: 'Product',
39
+ price: 1.0,
40
+ is_available: true,
41
+ available: { from: '2014-01-01', until: '2015-01-01' }
42
+ )
43
+ ```
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,15 @@
1
+ module Spine
2
+ module Transform
3
+ module Commands
4
+ class Copy
5
+ def initialize(key, options = {})
6
+ @key = options.fetch(:to, key)
7
+ end
8
+
9
+ def execute(destination, value)
10
+ destination[@key] = value
11
+ end
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,18 @@
1
+ module Spine
2
+ module Transform
3
+ module Commands
4
+ class Intercept
5
+ def initialize(key, action, options = {})
6
+ @key = options.fetch(:to, key)
7
+ @action = action
8
+ end
9
+
10
+ def execute(destination, value)
11
+ destination[@key] = @action.call(value)
12
+ #rescue
13
+ # raise 'Uhuu'
14
+ end
15
+ end
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,12 @@
1
+ module Spine
2
+ module Transform
3
+ module Commands
4
+ module Null
5
+ extend self
6
+
7
+ def execute(destination, value)
8
+ end
9
+ end
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,21 @@
1
+ module Spine
2
+ module Transform
3
+ module Commands
4
+ class Transform
5
+ def initialize(key, options = {}, &block)
6
+ @options = options
7
+ @key = options.fetch(:to, key)
8
+ @dsl = block
9
+ end
10
+
11
+ def execute(destination, value)
12
+ if @options[:flatten]
13
+ Transformer.new(@dsl).transform(value, destination)
14
+ else
15
+ destination[@key] = Transformer.new(@dsl).transform(value)
16
+ end
17
+ end
18
+ end
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,9 @@
1
+ module Spine
2
+ module Transform
3
+ module Definition
4
+ def define(&block)
5
+ Transformer.new(block)
6
+ end
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,42 @@
1
+ module Spine
2
+ module Transform
3
+ class Mapping
4
+ include Syntax::Copy
5
+ include Syntax::Transform
6
+ include Syntax::Integer
7
+ include Syntax::Decimal
8
+ include Syntax::Boolean
9
+ include Syntax::Date
10
+ include Syntax::Timestamp
11
+
12
+ attr_reader :commands
13
+
14
+ def initialize(dsl)
15
+ @dsl = dsl
16
+ end
17
+
18
+ def commands
19
+ @commands ||= {}
20
+ end
21
+
22
+ def for(key)
23
+ commands[key] || Commands::Null
24
+ end
25
+
26
+ def parse
27
+ instance_eval &@dsl
28
+ end
29
+
30
+ private
31
+
32
+ def register(key, command)
33
+ commands[key] = command
34
+ command
35
+ end
36
+
37
+ def intercept(key, options = {}, &block)
38
+ Commands::Intercept.new(key, block, options)
39
+ end
40
+ end
41
+ end
42
+ end
@@ -0,0 +1,16 @@
1
+ module Spine
2
+ module Transform
3
+ module Syntax
4
+ module Boolean
5
+ FALSES = [nil, 0, false, 'f', 'false', '0'].freeze
6
+
7
+ def boolean(key, options = {})
8
+ register(
9
+ key,
10
+ intercept(key, options) { |value| !FALSES.include?(value) }
11
+ )
12
+ end
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,11 @@
1
+ module Spine
2
+ module Transform
3
+ module Syntax
4
+ module Copy
5
+ def copy(key, options = {})
6
+ register(key, Commands::Copy.new(key, options))
7
+ end
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,17 @@
1
+ module Spine
2
+ module Transform
3
+ module Syntax
4
+ module Date
5
+ def date(key, options = {})
6
+ register(
7
+ key,
8
+ intercept(key, options) { |value|
9
+ return value if value.is_a?(Date)
10
+ DateTime.iso8601(value.to_s).to_date
11
+ }
12
+ )
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,17 @@
1
+ module Spine
2
+ module Transform
3
+ module Syntax
4
+ module Decimal
5
+ def decimal(key, options = {})
6
+ register(
7
+ key,
8
+ intercept(key, options) { |value|
9
+ return value if value.is_a?(Float)
10
+ Float(value.to_s)
11
+ }
12
+ )
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,17 @@
1
+ module Spine
2
+ module Transform
3
+ module Syntax
4
+ module Integer
5
+ def integer(key, options = {})
6
+ register(
7
+ key,
8
+ intercept(key, options) { |value|
9
+ return value if value.is_a?(Integer)
10
+ Integer(value.to_s, 10)
11
+ }
12
+ )
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,17 @@
1
+ module Spine
2
+ module Transform
3
+ module Syntax
4
+ module Timestamp
5
+ def timestamp(key, options = {})
6
+ register(
7
+ key,
8
+ intercept(key, options) { |value|
9
+ return value if value.is_a?(DateTime)
10
+ DateTime.iso8601(value.to_s)
11
+ }
12
+ )
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,11 @@
1
+ module Spine
2
+ module Transform
3
+ module Syntax
4
+ module Transform
5
+ def transform(key, options = {}, &block)
6
+ register(key, Commands::Transform.new(key, options, &block))
7
+ end
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,21 @@
1
+ module Spine
2
+ module Transform
3
+ class Transformer
4
+ extend Definition
5
+
6
+ attr_reader :mapping
7
+
8
+ def initialize(dsl)
9
+ @mapping = Mapping.new(dsl)
10
+ @mapping.parse
11
+ end
12
+
13
+ def transform(source, destination = {})
14
+ source.reduce(destination) do |result, (key, value)|
15
+ mapping.for(key).execute(result, value)
16
+ result
17
+ end
18
+ end
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,5 @@
1
+ module Spine
2
+ module Transform
3
+ VERSION = '0.1.0'
4
+ end
5
+ end
@@ -0,0 +1,26 @@
1
+ module Spine
2
+ module Transform
3
+ autoload :Definition, 'spine/transform/definition'
4
+ autoload :Transformer, 'spine/transform/transformer'
5
+ autoload :Mapping, 'spine/transform/mapping'
6
+
7
+ module Syntax
8
+ autoload :Copy, 'spine/transform/syntax/copy'
9
+ autoload :Transform, 'spine/transform/syntax/transform'
10
+ autoload :Integer, 'spine/transform/syntax/integer'
11
+ autoload :Decimal, 'spine/transform/syntax/decimal'
12
+ autoload :Boolean, 'spine/transform/syntax/boolean'
13
+ autoload :Date, 'spine/transform/syntax/date'
14
+ autoload :Timestamp, 'spine/transform/syntax/timestamp'
15
+ end
16
+
17
+ module Commands
18
+ autoload :Null, 'spine/transform/commands/null'
19
+ autoload :Copy, 'spine/transform/commands/copy'
20
+ autoload :Transform, 'spine/transform/commands/transform'
21
+ autoload :Intercept, 'spine/transform/commands/intercept'
22
+ end
23
+
24
+ extend Definition
25
+ end
26
+ end
@@ -0,0 +1,4 @@
1
+ require './spec/config/default'
2
+
3
+ require 'codeclimate-test-reporter'
4
+ CodeClimate::TestReporter.start
@@ -0,0 +1,20 @@
1
+ RSpec.configure do |config|
2
+ config.filter_run :focus
3
+ config.run_all_when_everything_filtered = true
4
+
5
+ if config.files_to_run.one?
6
+ config.default_formatter = 'doc'
7
+ end
8
+
9
+ config.order = :random
10
+
11
+ Kernel.srand config.seed
12
+
13
+ config.expect_with :rspec do |expectations|
14
+ expectations.syntax = :expect
15
+ end
16
+
17
+ config.mock_with :rspec do |mocks|
18
+ mocks.syntax = :expect
19
+ end
20
+ end
@@ -0,0 +1,173 @@
1
+ require 'spine/transform'
2
+
3
+ module Spine
4
+ module Transform
5
+ describe Transformer do
6
+ context 'when transforming flat hash' do
7
+ let(:target) {
8
+ { customer_name: 'Elmo', vat_code: 'EEE12345' }
9
+ }
10
+
11
+ it 'copies defined attributes to destination' do
12
+ subject = Transformer.define do
13
+ copy :customer_name
14
+ end
15
+
16
+ result = subject.transform(target)
17
+ expect(result[:customer_name]).to eq(target[:customer_name])
18
+ end
19
+
20
+ it 'copies defined attributes to target destination' do
21
+ subject = Transformer.define do
22
+ copy :customer_name, to: :name
23
+ end
24
+
25
+ result = subject.transform(target)
26
+ expect(result[:name]).to eq(target[:customer_name])
27
+ end
28
+
29
+ it 'rejects undefined attributes' do
30
+ subject = Transformer.define do
31
+ copy :customer_name
32
+ end
33
+
34
+ result = subject.transform(target)
35
+ expect(result[:customer_name]).to be
36
+ expect(result[:vat_code]).not_to be
37
+ end
38
+ end
39
+
40
+ context 'when transforming nested hash' do
41
+ let(:target) {
42
+ {
43
+ customer_name: 'Elmo',
44
+ vat_code: 'EEE12345',
45
+ postal_address: address
46
+ }
47
+ }
48
+ let(:address) {
49
+ { address: 'Seesame Street', country: 'United States' }
50
+ }
51
+
52
+ it 'flattens to destination' do
53
+ subject = Transformer.define do
54
+ transform :postal_address, flatten: true do
55
+ copy :country
56
+ end
57
+ end
58
+
59
+ result = subject.transform(target)
60
+ expect(result[:country]).to eq(target[:postal_address][:country])
61
+ end
62
+
63
+ it 'copies defined attributes to destination' do
64
+ subject = Transformer.define do
65
+ transform :postal_address do
66
+ copy :country
67
+ end
68
+ end
69
+
70
+ result = subject.transform(target)
71
+ expect(result[:postal_address][:country])
72
+ .to eq(target[:postal_address][:country])
73
+ end
74
+
75
+ it 'copies defined attributes to target destination' do
76
+ subject = Transformer.define do
77
+ transform :postal_address, to: :address do
78
+ copy :address, to: :street
79
+ end
80
+ end
81
+
82
+ result = subject.transform(target)
83
+ expect(result[:address][:street]).to eq(target[:postal_address][:address])
84
+ end
85
+
86
+ it 'rejects undefined attributes' do
87
+ subject = Transformer.define do
88
+ transform :postal_address do
89
+ copy :address
90
+ end
91
+ end
92
+
93
+ result = subject.transform(target)
94
+ expect(result[:postal_address][:address]).to be
95
+ expect(result[:postal_address][:country]).not_to be
96
+ end
97
+ end
98
+
99
+ context 'when parsing values when transforming' do
100
+ it 'transforms value to integer' do
101
+ subject = Transformer.define do
102
+ integer :identity
103
+ end
104
+
105
+ result = subject.transform(identity: '1')
106
+ expect(result[:identity]).to eql(1)
107
+ end
108
+
109
+ it 'transforms value to decimal' do
110
+ subject = Transformer.define do
111
+ decimal :price
112
+ end
113
+
114
+ result = subject.transform(price: '1.25')
115
+ expect(result[:price]).to eql(1.25)
116
+ end
117
+
118
+ it 'transforms value to boolean' do
119
+ subject = Transformer.define do
120
+ boolean :active
121
+ end
122
+
123
+ result = subject.transform(active: nil)
124
+ expect(result[:active]).to eql(false)
125
+ end
126
+
127
+ it 'transforms value to boolean from integer' do
128
+ subject = Transformer.define do
129
+ boolean :active
130
+ end
131
+
132
+ expect(subject.transform(active: 0)[:active]).to eql(false)
133
+ expect(subject.transform(active: 1)[:active]).to eql(true)
134
+ end
135
+
136
+ it 'transforms value to boolean from string' do
137
+ subject = Transformer.define do
138
+ boolean :active
139
+ end
140
+
141
+ expect(subject.transform(active: 'f')[:active]).to eql(false)
142
+ expect(subject.transform(active: 't')[:active]).to eql(true)
143
+
144
+ expect(subject.transform(active: 'false')[:active]).to eql(false)
145
+ expect(subject.transform(active: 'true')[:active]).to eql(true)
146
+
147
+ expect(subject.transform(active: '0')[:active]).to eql(false)
148
+ expect(subject.transform(active: '1')[:active]).to eql(true)
149
+ end
150
+
151
+ it 'transforms value to date' do
152
+ subject = Transformer.define do
153
+ date :starts_at
154
+ end
155
+
156
+ date = Date.new(2014, 1, 1)
157
+ result = subject.transform(starts_at: date.iso8601)
158
+ expect(result[:starts_at]).to eql(date)
159
+ end
160
+
161
+ it 'transforms value to timestamp' do
162
+ subject = Transformer.define do
163
+ timestamp :starts_at
164
+ end
165
+
166
+ date = DateTime.new(2014, 1, 1, 12, 0, 0)
167
+ result = subject.transform(starts_at: date.iso8601)
168
+ expect(result[:starts_at]).to eql(date)
169
+ end
170
+ end
171
+ end
172
+ end
173
+ end
@@ -0,0 +1,24 @@
1
+ lib = File.expand_path('../lib', __FILE__)
2
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
+ require 'spine/transform/version'
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "spine-transform"
7
+ spec.version = Spine::Transform::VERSION
8
+ spec.authors = ["TOGGL LLC"]
9
+ spec.email = ["support@toggl.com"]
10
+ spec.summary = ''
11
+ spec.description = ''
12
+ spec.homepage = 'https://github.com/rspine/transform'
13
+ spec.license = 'BSD-3-Clause'
14
+
15
+ spec.files = `git ls-files -z`.split("\x0")
16
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
17
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
+ spec.require_paths = ["lib"]
19
+
20
+ spec.add_development_dependency 'bundler', "~> 1.7"
21
+ spec.add_development_dependency 'rake', "~> 10.0"
22
+ spec.add_development_dependency 'rspec', "~> 3.2"
23
+ spec.add_development_dependency 'codeclimate-test-reporter', "~> 0.4"
24
+ end
metadata ADDED
@@ -0,0 +1,131 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: spine-transform
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - TOGGL LLC
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-05-24 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.7'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.7'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.2'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.2'
55
+ - !ruby/object:Gem::Dependency
56
+ name: codeclimate-test-reporter
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '0.4'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '0.4'
69
+ description: ''
70
+ email:
71
+ - support@toggl.com
72
+ executables: []
73
+ extensions: []
74
+ extra_rdoc_files: []
75
+ files:
76
+ - ".gitignore"
77
+ - ".rspec"
78
+ - CHANGELOG.md
79
+ - Gemfile
80
+ - Gemfile.lock
81
+ - LICENSE
82
+ - README.md
83
+ - Rakefile
84
+ - lib/spine/transform.rb
85
+ - lib/spine/transform/commands/copy.rb
86
+ - lib/spine/transform/commands/intercept.rb
87
+ - lib/spine/transform/commands/null.rb
88
+ - lib/spine/transform/commands/transform.rb
89
+ - lib/spine/transform/definition.rb
90
+ - lib/spine/transform/mapping.rb
91
+ - lib/spine/transform/syntax/boolean.rb
92
+ - lib/spine/transform/syntax/copy.rb
93
+ - lib/spine/transform/syntax/date.rb
94
+ - lib/spine/transform/syntax/decimal.rb
95
+ - lib/spine/transform/syntax/integer.rb
96
+ - lib/spine/transform/syntax/timestamp.rb
97
+ - lib/spine/transform/syntax/transform.rb
98
+ - lib/spine/transform/transformer.rb
99
+ - lib/spine/transform/version.rb
100
+ - spec/config/coverage.rb
101
+ - spec/config/default.rb
102
+ - spec/spine/transform/transformer_spec.rb
103
+ - spine-transform.gemspec
104
+ homepage: https://github.com/rspine/transform
105
+ licenses:
106
+ - BSD-3-Clause
107
+ metadata: {}
108
+ post_install_message:
109
+ rdoc_options: []
110
+ require_paths:
111
+ - lib
112
+ required_ruby_version: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - ">="
115
+ - !ruby/object:Gem::Version
116
+ version: '0'
117
+ required_rubygems_version: !ruby/object:Gem::Requirement
118
+ requirements:
119
+ - - ">="
120
+ - !ruby/object:Gem::Version
121
+ version: '0'
122
+ requirements: []
123
+ rubyforge_project:
124
+ rubygems_version: 2.4.5
125
+ signing_key:
126
+ specification_version: 4
127
+ summary: ''
128
+ test_files:
129
+ - spec/config/coverage.rb
130
+ - spec/config/default.rb
131
+ - spec/spine/transform/transformer_spec.rb