torihiki 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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 4749f71c67656610525b0be4d494d353afb8f22b
4
+ data.tar.gz: 4a4284e6c6966d9ff342e90bede9d73bf99697d4
5
+ SHA512:
6
+ metadata.gz: 1e2491e48b8acd097f4d9eee050220af1ca8ea9bafee086f34ae60d7034d000c01ff92629c80dd9b32d0f658402434fd3a282454a2b47bf84e4da249d8536b30
7
+ data.tar.gz: 14f9f2e583de2551efd0062c24fdc5618c02b5cddf651922040e1635558de407e838b77545bf23738a08f875e8e679b7025300019ead7c348073ba09f25058e2
@@ -0,0 +1,45 @@
1
+ *.rbc
2
+ capybara-*.html
3
+ .rspec
4
+ .rspec_status
5
+ /log
6
+ /tmp
7
+ /db/*.sqlite3
8
+ /db/*.sqlite3-journal
9
+ /public/system
10
+ /coverage/
11
+ /spec/tmp
12
+ *.orig
13
+ rerun.txt
14
+ pickle-email-*.html
15
+
16
+ # TODO Comment out this rule if you are OK with secrets being uploaded to the repo
17
+ config/initializers/secret_token.rb
18
+
19
+ # Only include if you have production secrets in this file, which is no longer a Rails default
20
+ # config/secrets.yml
21
+
22
+ # dotenv
23
+ # TODO Comment out this rule if environment variables can be committed
24
+ .env
25
+
26
+ ## Environment normalization:
27
+ /.bundle
28
+ /vendor/bundle
29
+
30
+ # these should all be checked in to normalize the environment:
31
+ # Gemfile.lock, .ruby-version, .ruby-gemset
32
+
33
+ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
34
+ .rvmrc
35
+
36
+ # if using bower-rails ignore default bower_components path bower.json files
37
+ /vendor/assets/bower_components
38
+ *.bowerrc
39
+ bower.json
40
+
41
+ # Ignore pow environment settings
42
+ .powenv
43
+
44
+ # Ignore Byebug command history file.
45
+ .byebug_history
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.4.0
5
+ before_install: gem install bundler -v 1.14.6
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at v@vforvova.ru. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,2 @@
1
+ source :rubygems
2
+ gemspec
@@ -0,0 +1,59 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ torihiki (0.1.0)
5
+
6
+ GEM
7
+ remote: http://rubygems.org/
8
+ specs:
9
+ ast (2.3.0)
10
+ coderay (1.1.1)
11
+ diff-lcs (1.3)
12
+ method_source (0.8.2)
13
+ parallel (1.11.2)
14
+ parser (2.4.0.0)
15
+ ast (~> 2.2)
16
+ powerpack (0.1.1)
17
+ pry (0.10.4)
18
+ coderay (~> 1.1.0)
19
+ method_source (~> 0.8.1)
20
+ slop (~> 3.4)
21
+ rainbow (2.2.2)
22
+ rake
23
+ rake (12.0.0)
24
+ rspec (3.6.0)
25
+ rspec-core (~> 3.6.0)
26
+ rspec-expectations (~> 3.6.0)
27
+ rspec-mocks (~> 3.6.0)
28
+ rspec-core (3.6.0)
29
+ rspec-support (~> 3.6.0)
30
+ rspec-expectations (3.6.0)
31
+ diff-lcs (>= 1.2.0, < 2.0)
32
+ rspec-support (~> 3.6.0)
33
+ rspec-mocks (3.6.0)
34
+ diff-lcs (>= 1.2.0, < 2.0)
35
+ rspec-support (~> 3.6.0)
36
+ rspec-support (3.6.0)
37
+ rubocop (0.49.1)
38
+ parallel (~> 1.10)
39
+ parser (>= 2.3.3.1, < 3.0)
40
+ powerpack (~> 0.1)
41
+ rainbow (>= 1.99.1, < 3.0)
42
+ ruby-progressbar (~> 1.7)
43
+ unicode-display_width (~> 1.0, >= 1.0.1)
44
+ ruby-progressbar (1.8.1)
45
+ slop (3.6.0)
46
+ unicode-display_width (1.3.0)
47
+
48
+ PLATFORMS
49
+ ruby
50
+
51
+ DEPENDENCIES
52
+ bundler (>= 1.5.0)
53
+ pry (~> 0.10.4)
54
+ rspec (~> 3.2)
55
+ rubocop (~> 0.49.0)
56
+ torihiki!
57
+
58
+ BUNDLED WITH
59
+ 1.15.3
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2017 Vladimir Smyshlyaev
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.
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 Vladimir Smyshlyaev
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
13
+ all 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
21
+ THE SOFTWARE.
@@ -0,0 +1,81 @@
1
+ # Torihiki
2
+
3
+ Torihiki is a simple DSL inspired by [dry-transaction]() gem.
4
+ It builds a composition of functions which would help you create business transactions without magic.
5
+
6
+ Torihiki doesn’t include error handling out of the box, but you feel free to use [dry-either]()
7
+ or anything esle for error handling.
8
+
9
+ ## What function composition exactly is?
10
+
11
+ ## Usage
12
+ Include Torihiki into your class to make it store your composition
13
+ nclude DSL similar to dry-transaction.
14
+
15
+ ### Build simple composition
16
+ ```ruby
17
+ class Transaction
18
+ include Torihiki
19
+ include Torihiki::Handlers
20
+
21
+ map AuthenticationService
22
+ map ValidationService
23
+ map do
24
+ # some operations
25
+ end
26
+ map do
27
+ # persistence operation
28
+ end
29
+ end
30
+
31
+ Transaction.call(context)
32
+ ```
33
+ ### Build chainable composition
34
+ ### Usage with Dry::Either
35
+
36
+ ### Handlers
37
+
38
+ #### tap
39
+ ```ruby
40
+ def tap(input)
41
+ map do |context|
42
+ input.call(context)
43
+ context
44
+ end
45
+ end
46
+ ```
47
+
48
+ #### reduce / merge
49
+ ```ruby
50
+ def reduce(input)
51
+ map do |context|
52
+ context.merge(input.call context)
53
+ end
54
+ end
55
+ ```
56
+
57
+ #### try
58
+ ```ruby
59
+ def try(input)
60
+ map do |context|
61
+ input.call(context)
62
+ rescue
63
+ context
64
+ end
65
+ end
66
+ ```
67
+
68
+ #### either
69
+ ```ruby
70
+ def either(input)
71
+ map do |context|
72
+ Left(input.call(context))
73
+ rescue error
74
+ Right(error)
75
+ end
76
+ end
77
+ ```
78
+
79
+ #### sequence ???
80
+
81
+ ## Contribution Guide
@@ -0,0 +1,2 @@
1
+ require 'bundler'
2
+ Bundler::GemHelper.install_tasks
@@ -0,0 +1,10 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "torihiki"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ require "pry"
10
+ Pry.start
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,24 @@
1
+ require 'torihiki/composition'
2
+
3
+ module Torihiki
4
+ def self.included(host)
5
+ host.extend(ClassMethods)
6
+ end
7
+
8
+ module ClassMethods
9
+ def map(input)
10
+ @io = io.map(input.is_a?(Symbol) ? method(input) : input)
11
+ self
12
+ end
13
+
14
+ def call(context)
15
+ io.call(context)
16
+ end
17
+
18
+ private
19
+
20
+ def io
21
+ @io ||= Composition.new
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,23 @@
1
+ module Torihiki
2
+ class Composition
3
+ def initialize(composition = [])
4
+ @composition = composition.freeze
5
+ end
6
+
7
+ def call(context)
8
+ @composition.reduce(context) { |acc, func| func.call(acc) }
9
+ end
10
+
11
+ def map(callable = nil, &block)
12
+ input = block || callable
13
+ raise ComposedNonCallableError.new(@composition.size) unless input.respond_to? :call
14
+ self.class.new(@composition + [input])
15
+ end
16
+ end
17
+
18
+ class ComposedNonCallableError < StandardError
19
+ def message
20
+ "Composition recieved a function which does not respond to method call"
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,3 @@
1
+ module Torihiki
2
+ VERSION = '0.1.0'
3
+ end
@@ -0,0 +1,12 @@
1
+ require "bundler/setup"
2
+ require 'pry'
3
+ require "torihiki"
4
+
5
+ RSpec.configure do |config|
6
+ # Enable flags like --only-failures and --next-failure
7
+ config.example_status_persistence_file_path = ".rspec_status"
8
+
9
+ config.expect_with :rspec do |c|
10
+ c.syntax = :expect
11
+ end
12
+ end
@@ -0,0 +1,146 @@
1
+ require "spec_helper"
2
+
3
+ RSpec.describe Torihiki::Composition do
4
+ it { expect(subject.instance_variable_get(:@composition).frozen?).to be_truthy }
5
+ it { is_expected.to respond_to :map }
6
+ it { is_expected.to respond_to :call }
7
+
8
+ context 'with lambdas' do
9
+ let(:io) do
10
+ subject
11
+ .map(->(num) { num + 2 })
12
+ .map(->(sum) { sum * 2 })
13
+ end
14
+
15
+ describe '#map' do
16
+ it 'returns new object' do
17
+ expect(io).not_to eq subject
18
+ end
19
+
20
+ it 'returns object with expanded composition' do
21
+ expect(subject.instance_variable_get(:@composition).size).to be_zero
22
+ expect(io.instance_variable_get(:@composition).size).to eq 2
23
+ end
24
+ end
25
+
26
+ describe '#call' do
27
+ it 'does all the calculation through the composition' do
28
+ expect(io.call(0)).to eq 4
29
+ expect(io.call(1)).to eq 6
30
+ expect(io.call(2)).to eq 8
31
+ end
32
+ end
33
+ end
34
+
35
+ context 'with procs' do
36
+ let(:io) do
37
+ subject
38
+ .map(proc { |num| num + 2 })
39
+ .map(proc { |sum| sum * 2 })
40
+ end
41
+
42
+ describe '#map' do
43
+ it 'returns new object' do
44
+ expect(io).not_to eq subject
45
+ end
46
+
47
+ it 'returns object with expanded composition' do
48
+ expect(subject.instance_variable_get(:@composition).size).to be_zero
49
+ expect(io.instance_variable_get(:@composition).size).to eq 2
50
+ end
51
+ end
52
+
53
+ describe '#call' do
54
+ it 'does all the calculation through the composition' do
55
+ expect(io.call(0)).to eq 4
56
+ expect(io.call(1)).to eq 6
57
+ expect(io.call(2)).to eq 8
58
+ end
59
+ end
60
+ end
61
+
62
+ context 'with blocks' do
63
+ let(:io) do
64
+ subject
65
+ .map { |num| num + 2 }
66
+ .map { |sum| sum * 2 }
67
+ end
68
+
69
+ describe '#map' do
70
+ it 'returns new object' do
71
+ expect(io).not_to eq subject
72
+ end
73
+
74
+ it 'returns object with expanded composition' do
75
+ expect(subject.instance_variable_get(:@composition).size).to be_zero
76
+ expect(io.instance_variable_get(:@composition).size).to eq 2
77
+ end
78
+ end
79
+
80
+ describe '#call' do
81
+ it 'does all the calculation through the composition' do
82
+ expect(io.call(0)).to eq 4
83
+ expect(io.call(1)).to eq 6
84
+ expect(io.call(2)).to eq 8
85
+ end
86
+ end
87
+ end
88
+
89
+ context 'with callable' do
90
+ module Callable
91
+ class A
92
+ def call(context)
93
+ context + 2
94
+ end
95
+ end
96
+
97
+ module B
98
+ def self.call(context)
99
+ context * 2
100
+ end
101
+ end
102
+ end
103
+
104
+ let(:io) do
105
+ subject
106
+ .map(Callable::A.new)
107
+ .map(Callable::B)
108
+ end
109
+
110
+ describe '#map' do
111
+ it 'returns new object' do
112
+ expect(io).not_to eq subject
113
+ end
114
+
115
+ it 'returns object with expanded composition' do
116
+ expect(subject.instance_variable_get(:@composition).size).to be_zero
117
+ expect(io.instance_variable_get(:@composition).size).to eq 2
118
+ end
119
+ end
120
+
121
+ describe '#call' do
122
+ it 'does all the calculation through the composition' do
123
+ expect(io.call(0)).to eq 4
124
+ expect(io.call(1)).to eq 6
125
+ expect(io.call(2)).to eq 8
126
+ end
127
+ end
128
+ end
129
+
130
+ context 'with noncallable' do
131
+ module Noncallable; end
132
+
133
+ let(:io) do
134
+ subject.map(Noncallable)
135
+ end
136
+
137
+ describe '#map' do
138
+ it 'raises an error' do
139
+ expect { io }.to raise_error(
140
+ Torihiki::CompositionError,
141
+ 'You have to specify block or provide callable argument'
142
+ )
143
+ end
144
+ end
145
+ end
146
+ end
@@ -0,0 +1,63 @@
1
+ require "spec_helper"
2
+
3
+ RSpec.describe Torihiki do
4
+ it "has a version number" do
5
+ expect(Torihiki::VERSION).not_to be nil
6
+ end
7
+
8
+ context 'when included' do
9
+ class TransactionClass
10
+ include Torihiki
11
+ end
12
+
13
+ subject { TransactionClass }
14
+
15
+ it { is_expected.to respond_to :map }
16
+ it { is_expected.to respond_to :call }
17
+
18
+ describe 'operation inside' do
19
+ class A < TransactionClass
20
+ map ->(context) { context * 2 }
21
+ end
22
+
23
+ it 'returns expected value' do
24
+ expect(A.call(1)).to eq 2
25
+ end
26
+
27
+ it 'contains one operation' do
28
+ composition = A.send(:io).instance_variable_get(:@composition)
29
+ expect(composition.size).to eq 1
30
+ end
31
+ end
32
+
33
+ describe 'operation as pipeline' do
34
+ class B < TransactionClass
35
+ map ->(context) { context * 2 }
36
+ end
37
+ B.map ->(context) { context * 3 }
38
+
39
+ it 'returns correct result' do
40
+ expect(B.call(1)).to eq 6
41
+ end
42
+
43
+ it 'contains three operations' do
44
+ composition = B.send(:io).instance_variable_get(:@composition)
45
+ expect(composition.size).to eq 2
46
+ end
47
+ end
48
+
49
+ describe 'handler registration' do
50
+ class C < TransactionClass
51
+ def self.tap(input)
52
+ map ->(context) { input.call(context); context; }
53
+ end
54
+
55
+ tap ->(context) { context * 2 }
56
+ end
57
+
58
+ it 'returns correct result' do
59
+ expect(C.call(1)).to eq 1
60
+ end
61
+ end
62
+ end
63
+ end
@@ -0,0 +1,24 @@
1
+ # -*- encoding: utf-8 -*-
2
+ require File.expand_path("../lib/torihiki/version", __FILE__)
3
+
4
+ Gem::Specification.new do |s|
5
+ s.name = "torihiki"
6
+ s.version = Torihiki::VERSION
7
+ s.platform = Gem::Platform::RUBY
8
+ s.authors = ['Vladimir Smyshlyaev']
9
+ s.email = ['v@vforvova.ru']
10
+ s.homepage = ""
11
+ s.summary = ""
12
+ s.description = ""
13
+ s.required_rubygems_version = ">= 1.3.6"
14
+ s.rubyforge_project = "torihiki"
15
+
16
+ s.add_development_dependency "bundler", ">= 1.5.0"
17
+ s.add_development_dependency "rubocop", "~> 0.49.0"
18
+ s.add_development_dependency "rspec", "~> 3.2"
19
+ s.add_development_dependency "pry", "~> 0.10.4"
20
+
21
+ s.files = `git ls-files`.split("\n")
22
+ s.executables = `git ls-files`.split("\n").map{|f| f =~ /^bin\/(.*)/ ? $1 : nil}.compact
23
+ s.require_path = 'lib'
24
+ end
metadata ADDED
@@ -0,0 +1,119 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: torihiki
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Vladimir Smyshlyaev
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-09-02 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.5.0
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: 1.5.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: rubocop
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 0.49.0
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 0.49.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: pry
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 0.10.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.10.4
69
+ description: ''
70
+ email:
71
+ - v@vforvova.ru
72
+ executables:
73
+ - console
74
+ - setup
75
+ extensions: []
76
+ extra_rdoc_files: []
77
+ files:
78
+ - ".gitignore"
79
+ - ".travis.yml"
80
+ - CODE_OF_CONDUCT.md
81
+ - Gemfile
82
+ - Gemfile.lock
83
+ - LICENSE
84
+ - LICENSE.txt
85
+ - README.md
86
+ - Rakefile
87
+ - bin/console
88
+ - bin/setup
89
+ - lib/torihiki.rb
90
+ - lib/torihiki/composition.rb
91
+ - lib/torihiki/version.rb
92
+ - spec/spec_helper.rb
93
+ - spec/torihiki/composition_spec.rb
94
+ - spec/torihiki_spec.rb
95
+ - torihiki.gemspec
96
+ homepage: ''
97
+ licenses: []
98
+ metadata: {}
99
+ post_install_message:
100
+ rdoc_options: []
101
+ require_paths:
102
+ - lib
103
+ required_ruby_version: !ruby/object:Gem::Requirement
104
+ requirements:
105
+ - - ">="
106
+ - !ruby/object:Gem::Version
107
+ version: '0'
108
+ required_rubygems_version: !ruby/object:Gem::Requirement
109
+ requirements:
110
+ - - ">="
111
+ - !ruby/object:Gem::Version
112
+ version: 1.3.6
113
+ requirements: []
114
+ rubyforge_project: torihiki
115
+ rubygems_version: 2.6.8
116
+ signing_key:
117
+ specification_version: 4
118
+ summary: ''
119
+ test_files: []