samsa 0.1.0 → 0.1.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 50ecc8c261ebb8875aac4b5613992b786647dbe98df2d156b4ee437592419b26
4
- data.tar.gz: c927929290f7c4697479e7457426eed9137cf75d5e538669fff00eecedafa18b
3
+ metadata.gz: e19a6410e805afe53bbde95d04c6a70b7097768824f48912764a2846e3e37361
4
+ data.tar.gz: 92033f3b2c91dbe0f631d5bec4fa827b50b8f0adbdaff75a1bd709bccdeab54f
5
5
  SHA512:
6
- metadata.gz: 618304b0fa77b181aa8dda3ccfe63fceb8a00d0a954db59356c11edf34f72a9bebabdcc474c5216d39a8ef4ddaefff8d9b5665ed3df9a7b7fb3739c097303014
7
- data.tar.gz: 6fb83823fd35a959400e3b4f36106ace921427cd84837d28478cade4b666101835029b1b6e044f21ef031880a67c86860616dd16b7c1644167e255046a8b1a61
6
+ metadata.gz: 833072f5386f330207139cbd42372b234dce64b52283510d6db24f7fdf5c6d261de713b6c5bcb3fc77569f94abd11ddd1cc53097e94b6d58746d4391939eff7f
7
+ data.tar.gz: a1651ea82c1e50c6f60875b3dca823ec3d067697590091a2f53a188c56638e177d779c3bef52a357eabd50110b14b19a2bd6e94d3dda46d48ba3d59b062f1ffa
data/CHANGELOG.md ADDED
@@ -0,0 +1,2 @@
1
+ # 0.1.0
2
+ * Initial release.
data/Gemfile.lock CHANGED
@@ -1,37 +1,37 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- samsa (0.1.0)
4
+ samsa (0.1.1)
5
5
  ramda-ruby (~> 0.16.0)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
10
  diff-lcs (1.3)
11
- rake (10.5.0)
11
+ rake (13.0.1)
12
12
  ramda-ruby (0.16.0)
13
- rspec (3.8.0)
14
- rspec-core (~> 3.8.0)
15
- rspec-expectations (~> 3.8.0)
16
- rspec-mocks (~> 3.8.0)
17
- rspec-core (3.8.1)
18
- rspec-support (~> 3.8.0)
19
- rspec-expectations (3.8.4)
13
+ rspec (3.9.0)
14
+ rspec-core (~> 3.9.0)
15
+ rspec-expectations (~> 3.9.0)
16
+ rspec-mocks (~> 3.9.0)
17
+ rspec-core (3.9.1)
18
+ rspec-support (~> 3.9.1)
19
+ rspec-expectations (3.9.1)
20
20
  diff-lcs (>= 1.2.0, < 2.0)
21
- rspec-support (~> 3.8.0)
22
- rspec-mocks (3.8.1)
21
+ rspec-support (~> 3.9.0)
22
+ rspec-mocks (3.9.1)
23
23
  diff-lcs (>= 1.2.0, < 2.0)
24
- rspec-support (~> 3.8.0)
25
- rspec-support (3.8.2)
24
+ rspec-support (~> 3.9.0)
25
+ rspec-support (3.9.2)
26
26
 
27
27
  PLATFORMS
28
28
  ruby
29
29
 
30
30
  DEPENDENCIES
31
31
  bundler (~> 2.0)
32
- rake (~> 10.0)
32
+ rake (~> 13.0)
33
33
  rspec (~> 3.0)
34
34
  samsa!
35
35
 
36
36
  BUNDLED WITH
37
- 2.0.1
37
+ 2.1.2
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2019 Ara Hacopian
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md CHANGED
@@ -20,7 +20,20 @@ Or install it yourself as:
20
20
 
21
21
  ## Usage
22
22
 
23
- TODO: Write usage instructions here
23
+ ```ruby
24
+ class AToBTransformer
25
+ include Samsa
26
+
27
+ transforms do
28
+ map from: "foo", to: "nested.key"
29
+ map from: "bar", to: "baz", default: "quux"
30
+ set true, "added"
31
+ end
32
+ end
33
+
34
+ a = { foo: 1 }
35
+ AToBTransformer.transform(a) # { nested: { key: 1 }, baz: "quux", added: true }
36
+ ```
24
37
 
25
38
  ## Development
26
39
 
data/lib/samsa/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Samsa
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
data/samsa.gemspec CHANGED
@@ -35,7 +35,7 @@ Gem::Specification.new do |spec|
35
35
  spec.require_paths = ["lib"]
36
36
 
37
37
  spec.add_development_dependency "bundler", "~> 2.0"
38
- spec.add_development_dependency "rake", "~> 10.0"
38
+ spec.add_development_dependency "rake", "~> 13.0"
39
39
  spec.add_development_dependency "rspec", "~> 3.0"
40
40
  spec.add_dependency "ramda-ruby", "~> 0.16.0"
41
41
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: samsa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ara Hacopian
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-06-14 00:00:00.000000000 Z
11
+ date: 2020-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '10.0'
33
+ version: '13.0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '10.0'
40
+ version: '13.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -75,9 +75,11 @@ extra_rdoc_files: []
75
75
  files:
76
76
  - ".gitignore"
77
77
  - ".travis.yml"
78
+ - CHANGELOG.md
78
79
  - CODE_OF_CONDUCT.md
79
80
  - Gemfile
80
81
  - Gemfile.lock
82
+ - LICENSE
81
83
  - README.md
82
84
  - Rakefile
83
85
  - bin/console
@@ -108,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
108
110
  - !ruby/object:Gem::Version
109
111
  version: '0'
110
112
  requirements: []
111
- rubygems_version: 3.0.3
113
+ rubygems_version: 3.1.2
112
114
  signing_key:
113
115
  specification_version: 4
114
116
  summary: DSL for transforming hashes.