otb_job_queue 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 93b7a1ae26b497459d19707e053485b8fc6fa240336dfb99affe54d4e0dda745
4
+ data.tar.gz: f130cc222121c16a99c974810f83d0dc0cb71ed8f5fcb9f3abcf87becf8ed42b
5
+ SHA512:
6
+ metadata.gz: 78ea3674c8b05d87c10e2d9163ffac5b9338ece76a84de06574a39210070fd78f36a90bece78c8230c2fc889a5a8bdd4a1fb4939588585c4c9e5a580169175d7
7
+ data.tar.gz: 3d0ad83877fbff306dd3f54b4bdd7325ea398493013f9c1374c3e28deefc4941b546e2f1643680bbe5c12604382309fe856e98f0a0db98a0f07c54303b1f963d
@@ -0,0 +1,8 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
@@ -0,0 +1,17 @@
1
+ AllCops:
2
+ Exclude:
3
+ - 'bin/*'
4
+ TargetRubyVersion: 2.5.1
5
+
6
+ Metrics/LineLength:
7
+ Max: 100
8
+
9
+ Style/FrozenStringLiteralComment:
10
+ EnforcedStyle: always
11
+
12
+ Style/StringLiterals:
13
+ EnforcedStyle: double_quotes
14
+
15
+ Style/GuardClause:
16
+ Enabled: false
17
+
@@ -0,0 +1,7 @@
1
+ ---
2
+ sudo: false
3
+ language: ruby
4
+ cache: bundler
5
+ rvm:
6
+ - 2.5.1
7
+ before_install: gem install bundler -v 1.16.5
@@ -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 mariozugaj@gmail.com. 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,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
6
+
7
+ # Specify your gem's dependencies in otb_job_queue.gemspec
8
+ gemspec
@@ -0,0 +1,71 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ otb_job_queue (0.1.0)
5
+ dry-validation (~> 0.12.2)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ ast (2.4.0)
11
+ byebug (10.0.2)
12
+ concurrent-ruby (1.1.3)
13
+ dry-configurable (0.7.0)
14
+ concurrent-ruby (~> 1.0)
15
+ dry-container (0.6.0)
16
+ concurrent-ruby (~> 1.0)
17
+ dry-configurable (~> 0.1, >= 0.1.3)
18
+ dry-core (0.4.7)
19
+ concurrent-ruby (~> 1.0)
20
+ dry-equalizer (0.2.1)
21
+ dry-inflector (0.1.2)
22
+ dry-logic (0.4.2)
23
+ dry-container (~> 0.2, >= 0.2.6)
24
+ dry-core (~> 0.2)
25
+ dry-equalizer (~> 0.2)
26
+ dry-types (0.13.3)
27
+ concurrent-ruby (~> 1.0)
28
+ dry-container (~> 0.3)
29
+ dry-core (~> 0.4, >= 0.4.4)
30
+ dry-equalizer (~> 0.2)
31
+ dry-inflector (~> 0.1, >= 0.1.2)
32
+ dry-logic (~> 0.4, >= 0.4.2)
33
+ dry-validation (0.12.2)
34
+ concurrent-ruby (~> 1.0)
35
+ dry-configurable (~> 0.1, >= 0.1.3)
36
+ dry-core (~> 0.2, >= 0.2.1)
37
+ dry-equalizer (~> 0.2)
38
+ dry-logic (~> 0.4, >= 0.4.0)
39
+ dry-types (~> 0.13.1)
40
+ jaro_winkler (1.5.1)
41
+ minitest (5.11.3)
42
+ parallel (1.12.1)
43
+ parser (2.5.3.0)
44
+ ast (~> 2.4.0)
45
+ powerpack (0.1.2)
46
+ rainbow (3.0.0)
47
+ rake (10.5.0)
48
+ rubocop (0.60.0)
49
+ jaro_winkler (~> 1.5.1)
50
+ parallel (~> 1.10)
51
+ parser (>= 2.5, != 2.5.1.1)
52
+ powerpack (~> 0.1)
53
+ rainbow (>= 2.2.2, < 4.0)
54
+ ruby-progressbar (~> 1.7)
55
+ unicode-display_width (~> 1.4.0)
56
+ ruby-progressbar (1.10.0)
57
+ unicode-display_width (1.4.0)
58
+
59
+ PLATFORMS
60
+ ruby
61
+
62
+ DEPENDENCIES
63
+ bundler (~> 1.16)
64
+ byebug (~> 10.0)
65
+ minitest (~> 5.0)
66
+ otb_job_queue!
67
+ rake (~> 10.0)
68
+ rubocop (~> 0.60.0)
69
+
70
+ BUNDLED WITH
71
+ 1.16.5
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 Mario Zugaj
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,84 @@
1
+ # OtbJobQueue
2
+
3
+ Solution for the OTB Job Queue Challenge
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'otb_job_queue'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install otb_job_queue
20
+
21
+ ## Usage
22
+
23
+ ```ruby
24
+ require "otb_job_queue"
25
+
26
+ # create a new job sequencer instance with a parser dependency
27
+ sequencer = OtbJobQueue::JobsSequencer.new(OtbJobQueue::JobsParser)
28
+
29
+ # job sequencing is invoked by calling .call method on the sequencer, with the appropriate input
30
+ sequencer.call("a => ")
31
+ #=> "a"
32
+ sequencer.call("a => b, b => ")
33
+ #=> "ba"
34
+ sequencer.call("a => , b => c, c => ")
35
+ #=> "acb"
36
+ sequencer.call("a => ,b => c, c => f, d => a, e => b, f => ")
37
+ #=> "afcbde"
38
+
39
+ # as long as the input format is (job) => (dependency), it will sequence the string
40
+ sequencer.call("a => \nb => c\nc => f\nd => a \ne => b\n f => ")
41
+ #=> "afcbde"
42
+ sequencer.call("a => b => c c => f d => a e => b f => ")
43
+ #=> "afcbde"
44
+ ```
45
+
46
+ ### Error Handling
47
+
48
+ ```ruby
49
+ require "otb_job_queue"
50
+
51
+ sequencer = OtbJobQueue::JobsSequencer.new(OtbJobQueue::JobsParser)
52
+
53
+ # If the job => dependency list has a circular dependency, CircularDependencyError will be raised
54
+ sequencer.call("a => \nb => c\nc => f\nd => a \ne => \n f => b")
55
+ #=> OtbJobQueue::JobsSequencer::CircularDependencyError (Jobs can't have circular dependencies: topological sort failed: ["b", "c", "f"])
56
+
57
+ # If the job => dependency list has a self dependency, SelfDependencyError will be raised
58
+ sequencer.call("a => , b => c, c => c")
59
+ #=> OtbJobQueue::JobsSequencer::SelfDependencyError (Jobs can't depend on themselves: c => c)
60
+
61
+ # If the invalid input type or invalid string format is given, InputError will be raised
62
+ sequencer.call({})
63
+ #=> OtbJobQueue::JobsParser::InputError ({:jobs_input=>["must be String", "must be empty or is in invalid format"]})
64
+ sequencer.call("a=>b=>cc=>c")
65
+ #=> OtbJobQueue::JobsParser::InputError ({:jobs_input=>["must be empty or is in invalid format"]})
66
+ ```
67
+
68
+ ## Development
69
+
70
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
71
+
72
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
73
+
74
+ ## Contributing
75
+
76
+ Bug reports and pull requests are welcome on GitLab at https://gitlab.com/chanjman/otb-job-queue. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
77
+
78
+ ## License
79
+
80
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
81
+
82
+ ## Code of Conduct
83
+
84
+ Everyone interacting in the OtbJobQueue project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://gitlab.com/chanjman/otb-job-queue/blob/master/CODE_OF_CONDUCT.md).
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rake/testtask"
5
+
6
+ Rake::TestTask.new(:test) do |t|
7
+ t.libs << "test"
8
+ t.libs << "lib"
9
+ t.test_files = FileList["test/**/*_test.rb"]
10
+ end
11
+
12
+ task default: :test
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "otb_job_queue"
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
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
@@ -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,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "otb_job_queue/version"
4
+
5
+ require "otb_job_queue/core_extensions"
6
+ require "otb_job_queue/jobs_parser"
7
+ require "otb_job_queue/jobs_sequencer"
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "tsort"
4
+
5
+ # Extends the Hash class to use Tsort's tsort method
6
+ class Hash
7
+ include TSort
8
+
9
+ alias tsort_each_node each_key
10
+ def tsort_each_child(node, &block)
11
+ fetch(node).each(&block)
12
+ end
13
+ end
@@ -0,0 +1,58 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "dry-validation"
4
+
5
+ module OtbJobQueue
6
+ # Parses a string of jobs into an hash
7
+ class JobsParser
8
+ JOBS_QUEUE_FORMAT = /(\w) => (\w|)/.freeze
9
+
10
+ private_class_method :new
11
+
12
+ class InputError < TypeError; end
13
+
14
+ # Creates a new instance of the JobsParser with the valid jobs_input param
15
+ # @param jobs_input [String] jobs string
16
+ def initialize(jobs_input)
17
+ @jobs_input = jobs_input
18
+ end
19
+
20
+ # JobsParser's Validation schema
21
+ # Successful validation if input is an empty String or a String of valid format
22
+ Schema = Dry::Validation.Schema do
23
+ required(:jobs_input) { type?(String) & (empty? | format?(JOBS_QUEUE_FORMAT)) }
24
+ end
25
+
26
+ # Creates a new JobsParser instance and calls the .call method on it
27
+ # @api public
28
+ # @return [JobsParser.new(jobs_input).call, InputError] the jobs hash
29
+ # @example
30
+ # OtbJobQueue::JobsParser.call('a => \nb => \nc => b')
31
+ # => { "a"=> [], "b"=> [], "c" => ["b"] }
32
+ # OtbJobQueue::JobsParser.call('Hello World!')
33
+ # => InputError ({ :jobs_input => ["must be empty or is in invalid format"] })
34
+ def self.call(jobs_input)
35
+ validation = self::Schema.call(jobs_input: jobs_input)
36
+ if validation.success?
37
+ new(jobs_input).call
38
+ else
39
+ raise InputError, validation.messages
40
+ end
41
+ end
42
+
43
+ def call
44
+ parse
45
+ end
46
+
47
+ private
48
+
49
+ # Parses a string of jobs into an hash
50
+ # @api private
51
+ # @return [Hash] the jobs hash
52
+ def parse
53
+ @jobs_input.scan(JOBS_QUEUE_FORMAT).each_with_object({}) do |(job, dependency), memo|
54
+ memo[job] = dependency.empty? ? [] : [dependency]
55
+ end
56
+ end
57
+ end
58
+ end
@@ -0,0 +1,44 @@
1
+ # frozen_string_literal: true
2
+
3
+ module OtbJobQueue
4
+ # Sequences jobs order based on their dependencies
5
+ class JobsSequencer
6
+ class SelfDependencyError < StandardError; end
7
+ class CircularDependencyError < StandardError; end
8
+
9
+ # Creates a new instance of the JobsSequencer with a parser as a param
10
+ # @param parser
11
+ def initialize(parser)
12
+ @parser = parser
13
+ end
14
+
15
+ # Parses an input of jobs into a string or raises Errors
16
+ # @api public
17
+ # @return [String] correct sequence of jobs
18
+ # @example
19
+ # sequencer = OtbJobQueue::JobsSequencer.new(OtbJobQueue::JobsParser)
20
+ # sequencer.call("a => ") #=> "a"
21
+ # sequencer.call("a => b\nb => c\nc => ") #=> 'cba'
22
+ def call(jobs_input)
23
+ jobs_to_sequence = @parser.call(jobs_input)
24
+ check_self_dependecies(jobs_to_sequence)
25
+ jobs_to_sequence.tsort.join
26
+ rescue TSort::Cyclic => error
27
+ raise CircularDependencyError, "Jobs can't have circular dependencies: #{error.message}"
28
+ end
29
+
30
+ private
31
+
32
+ # Verifies if the jobs_to_sequence has self dependencies
33
+ # @api private
34
+ # @param [Hash] jobs to sequence hash
35
+ # @return [SelfDependencyError, void]
36
+ def check_self_dependecies(jobs_to_sequence)
37
+ jobs_to_sequence.each do |job, dependency|
38
+ if job == dependency.first
39
+ raise SelfDependencyError, "Jobs can't depend on themselves: #{job} => #{dependency.first}"
40
+ end
41
+ end
42
+ end
43
+ end
44
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module OtbJobQueue
4
+ VERSION = "0.1.0"
5
+ end
@@ -0,0 +1,34 @@
1
+ # frozen_string_literal: true
2
+
3
+ lib = File.expand_path("lib", __dir__)
4
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
+ require "otb_job_queue/version"
6
+
7
+ Gem::Specification.new do |spec|
8
+ spec.name = "otb_job_queue"
9
+ spec.version = OtbJobQueue::VERSION
10
+ spec.authors = ["Mario Zugaj"]
11
+ spec.email = ["mariozugaj@gmail.com"]
12
+
13
+ spec.summary = "OTB Job Queue"
14
+ spec.description = "Solution for the OTB Job Queue Challenge"
15
+ spec.homepage = "https://gitlab.com/chanjman/otb-job-queue"
16
+ spec.license = "MIT"
17
+
18
+ # Specify which files should be added to the gem when it is released.
19
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
20
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
21
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
22
+ end
23
+ spec.bindir = "exe"
24
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
25
+ spec.require_paths = ["lib"]
26
+
27
+ spec.add_development_dependency "bundler", "~> 1.16"
28
+ spec.add_development_dependency "byebug", "~> 10.0"
29
+ spec.add_development_dependency "minitest", "~> 5.0"
30
+ spec.add_development_dependency "rake", "~> 10.0"
31
+ spec.add_development_dependency "rubocop", "~> 0.60.0"
32
+
33
+ spec.add_dependency "dry-validation", "~> 0.12.2"
34
+ end
metadata ADDED
@@ -0,0 +1,145 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: otb_job_queue
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Mario Zugaj
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2018-12-05 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.16'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.16'
27
+ - !ruby/object:Gem::Dependency
28
+ name: byebug
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: minitest
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '5.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '5.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '10.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '10.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rubocop
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 0.60.0
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 0.60.0
83
+ - !ruby/object:Gem::Dependency
84
+ name: dry-validation
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 0.12.2
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 0.12.2
97
+ description: Solution for the OTB Job Queue Challenge
98
+ email:
99
+ - mariozugaj@gmail.com
100
+ executables: []
101
+ extensions: []
102
+ extra_rdoc_files: []
103
+ files:
104
+ - ".gitignore"
105
+ - ".rubocop.yml"
106
+ - ".travis.yml"
107
+ - CODE_OF_CONDUCT.md
108
+ - Gemfile
109
+ - Gemfile.lock
110
+ - LICENSE.txt
111
+ - README.md
112
+ - Rakefile
113
+ - bin/console
114
+ - bin/setup
115
+ - lib/otb_job_queue.rb
116
+ - lib/otb_job_queue/core_extensions.rb
117
+ - lib/otb_job_queue/jobs_parser.rb
118
+ - lib/otb_job_queue/jobs_sequencer.rb
119
+ - lib/otb_job_queue/version.rb
120
+ - otb_job_queue.gemspec
121
+ homepage: https://gitlab.com/chanjman/otb-job-queue
122
+ licenses:
123
+ - MIT
124
+ metadata: {}
125
+ post_install_message:
126
+ rdoc_options: []
127
+ require_paths:
128
+ - lib
129
+ required_ruby_version: !ruby/object:Gem::Requirement
130
+ requirements:
131
+ - - ">="
132
+ - !ruby/object:Gem::Version
133
+ version: '0'
134
+ required_rubygems_version: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ requirements: []
140
+ rubyforge_project:
141
+ rubygems_version: 2.7.6
142
+ signing_key:
143
+ specification_version: 4
144
+ summary: OTB Job Queue
145
+ test_files: []