proto-MPS7 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +11 -0
- data/.rspec +3 -0
- data/.travis.yml +7 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +56 -0
- data/HOMEWORK.md +59 -0
- data/LICENSE.txt +21 -0
- data/README.md +31 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/exe/proto_MPS7 +4 -0
- data/lib/proto/MPS7.rb +2 -0
- data/lib/proto/MPS7/cli.rb +10 -0
- data/lib/proto/MPS7/parser.rb +76 -0
- data/lib/proto/MPS7/version.rb +5 -0
- data/proto-MPS7.gemspec +47 -0
- data/txnlog.dat +0 -0
- metadata +182 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 539138dfb892f130d887e3a887348fe200ec25de
|
4
|
+
data.tar.gz: 94cc084c6ee9aac724773e6ae174f2490a788874
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: ab5de42a351f85e10cd8c9decaeda3e1ccf18382a269ba85894c0d4dbd1b5edec64261fecd93c67e95277785617a67338af692a7db8ead4f82462abee5e58f95
|
7
|
+
data.tar.gz: b2391a6e43811484c8c082d9ecafb4366ea34942ebce6d3823720b7919bfa510368b8e572f9e72d0088f8f150c16e266ab57dc4ea370687e0227bd3f64a61330
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -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 arbonap@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
data/Gemfile.lock
ADDED
@@ -0,0 +1,56 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
proto-MPS7 (0.1.0)
|
5
|
+
|
6
|
+
GEM
|
7
|
+
remote: https://rubygems.org/
|
8
|
+
specs:
|
9
|
+
activesupport (5.2.2)
|
10
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
11
|
+
i18n (>= 0.7, < 2)
|
12
|
+
minitest (~> 5.1)
|
13
|
+
tzinfo (~> 1.1)
|
14
|
+
artii (2.1.2)
|
15
|
+
awesome_print (1.8.0)
|
16
|
+
byebug (11.0.0)
|
17
|
+
concurrent-ruby (1.1.5)
|
18
|
+
diff-lcs (1.3)
|
19
|
+
i18n (1.6.0)
|
20
|
+
concurrent-ruby (~> 1.0)
|
21
|
+
minitest (5.11.3)
|
22
|
+
rake (10.5.0)
|
23
|
+
rspec (3.8.0)
|
24
|
+
rspec-core (~> 3.8.0)
|
25
|
+
rspec-expectations (~> 3.8.0)
|
26
|
+
rspec-mocks (~> 3.8.0)
|
27
|
+
rspec-core (3.8.0)
|
28
|
+
rspec-support (~> 3.8.0)
|
29
|
+
rspec-expectations (3.8.2)
|
30
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
31
|
+
rspec-support (~> 3.8.0)
|
32
|
+
rspec-mocks (3.8.0)
|
33
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
34
|
+
rspec-support (~> 3.8.0)
|
35
|
+
rspec-support (3.8.0)
|
36
|
+
thor (0.20.0)
|
37
|
+
thread_safe (0.3.6)
|
38
|
+
tzinfo (1.2.5)
|
39
|
+
thread_safe (~> 0.1)
|
40
|
+
|
41
|
+
PLATFORMS
|
42
|
+
ruby
|
43
|
+
|
44
|
+
DEPENDENCIES
|
45
|
+
activesupport
|
46
|
+
artii
|
47
|
+
awesome_print
|
48
|
+
bundler (~> 1.17)
|
49
|
+
byebug
|
50
|
+
proto-MPS7!
|
51
|
+
rake (~> 10.0)
|
52
|
+
rspec (~> 3.0)
|
53
|
+
thor (= 0.20.0)
|
54
|
+
|
55
|
+
BUNDLED WITH
|
56
|
+
1.17.1
|
data/HOMEWORK.md
ADDED
@@ -0,0 +1,59 @@
|
|
1
|
+
# Parse a custom protocol format
|
2
|
+
|
3
|
+
Your payment processing application must interface with an old-school mainframe format that we've named "MPS7".
|
4
|
+
This means consuming a proprietary binary protocol format that no one on your team is familiar with yet.
|
5
|
+
|
6
|
+
## Task
|
7
|
+
|
8
|
+
You must read in a transaction log, `txnlog.dat`, and parse it according to the
|
9
|
+
specification in Notes below.
|
10
|
+
|
11
|
+
You must answer the following questions:
|
12
|
+
|
13
|
+
* What is the total amount in dollars of debits?
|
14
|
+
* What is the total amount in dollars of credits?
|
15
|
+
* How many autopays were started?
|
16
|
+
* How many autopays were ended?
|
17
|
+
* What is balance of user ID 2456938384156277127?
|
18
|
+
|
19
|
+
You must supply your source code as part of your answer. Write your code in your
|
20
|
+
best programming language.
|
21
|
+
|
22
|
+
We will want to compile your code from source and run it, so please include the
|
23
|
+
complete instructions for doing so in a COMMENTS file.
|
24
|
+
|
25
|
+
## Notes
|
26
|
+
|
27
|
+
Because `txnlog.dat` is a binary file, it can't be read by a normal text editor like sublime or vim.
|
28
|
+
Instead, you'll need to read it programatically and parse the data you read in from there.
|
29
|
+
|
30
|
+
This is how the transaction log is structured:
|
31
|
+
|
32
|
+
Header:
|
33
|
+
|
34
|
+
| 4 byte magic string "MPS7" | 1 byte version | 4 byte (uint32) # of records |
|
35
|
+
|
36
|
+
The header contains the canonical information about how the records should be processed.
|
37
|
+
Note: there are fewer than 100 records in `txnlog.dat`.
|
38
|
+
|
39
|
+
Record:
|
40
|
+
|
41
|
+
| 1 byte record type enum | 4 byte (uint32) Unix timestamp | 8 byte (uint64) user ID |
|
42
|
+
|
43
|
+
Record type enum:
|
44
|
+
|
45
|
+
* 0x00: Debit
|
46
|
+
* 0x01: Credit
|
47
|
+
* 0x02: StartAutopay
|
48
|
+
* 0x03: EndAutopay
|
49
|
+
|
50
|
+
For Debit and Credit record types, there is an additional field, an 8 byte
|
51
|
+
(float64) amount in dollars, at the end of the record.
|
52
|
+
|
53
|
+
All multi-byte fields are encoded in network byte order.
|
54
|
+
|
55
|
+
The first record in the file, when fully parsed, will look something like this:
|
56
|
+
|
57
|
+
| Record type | Unix timestamp | user ID | amount in dollars |
|
58
|
+
|-------------|----------------|---------------------|-------------------|
|
59
|
+
| 'Debit' | 1393108945 | 4136353673894269217 | 604.274335557087 |
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2019 Patricia Arbona
|
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.
|
data/README.md
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
# Proto::MPS7
|
2
|
+
|
3
|
+
Put your Ruby code in the file `lib/proto/MPS7`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
+
|
5
|
+
|
6
|
+
## Installation
|
7
|
+
|
8
|
+
Or install it yourself as:
|
9
|
+
|
10
|
+
$ gem install proto-MPS7
|
11
|
+
$ bin/setup
|
12
|
+
|
13
|
+
## Usage
|
14
|
+
|
15
|
+
$ proto_MPS7 txnlog.dat
|
16
|
+
|
17
|
+
## Development
|
18
|
+
|
19
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
20
|
+
|
21
|
+
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).
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
## License
|
26
|
+
|
27
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
28
|
+
|
29
|
+
## Code of Conduct
|
30
|
+
|
31
|
+
Everyone interacting in the Proto::MPS7 project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "proto/MPS7"
|
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__)
|
data/bin/setup
ADDED
data/exe/proto_MPS7
ADDED
data/lib/proto/MPS7.rb
ADDED
@@ -0,0 +1,76 @@
|
|
1
|
+
require 'csv'
|
2
|
+
require "active_support/all"
|
3
|
+
require 'active_support/time_with_zone'
|
4
|
+
require 'awesome_print'
|
5
|
+
|
6
|
+
module Parser
|
7
|
+
class BinaryProtocol
|
8
|
+
attr_accessor :binary_file
|
9
|
+
|
10
|
+
def initialize(argv)
|
11
|
+
@binary_file = argv[0]
|
12
|
+
end
|
13
|
+
|
14
|
+
def self.ascii
|
15
|
+
# the artii gem creates ascii text
|
16
|
+
# this method shells it out
|
17
|
+
`artii proto-MPS7 Parser`
|
18
|
+
end
|
19
|
+
|
20
|
+
# byte_data = contents.bytes.slice(9..-1)
|
21
|
+
# header = ["MPS7", 1, 1191182336]
|
22
|
+
def open
|
23
|
+
contents = File.open("#{binary_file}", 'rb') { |f| f.read }
|
24
|
+
header = contents.unpack("a4CL>")
|
25
|
+
|
26
|
+
data = contents.bytes.slice!(9..-1).pack("C*")
|
27
|
+
index = 0
|
28
|
+
calculations = { :debit => 0,
|
29
|
+
:credit => 0,
|
30
|
+
:started_count => 0,
|
31
|
+
:ended_count => 0,
|
32
|
+
'2456938384156277127' => 0 }
|
33
|
+
|
34
|
+
while data[index].present?
|
35
|
+
# debit
|
36
|
+
if data[index].unpack("C")[0] == 0
|
37
|
+
record = data[index..index + 21].unpack("CL>Q>G")
|
38
|
+
puts record
|
39
|
+
# total amount in dollars of debits
|
40
|
+
calculations[:debit] += record[3].to_f
|
41
|
+
# for user ID 2456938384156277127,
|
42
|
+
if record[2] == 2456938384156277127
|
43
|
+
# sum the dollars of debits from the user's total balance
|
44
|
+
calculations['2456938384156277127'] += record[3].to_f
|
45
|
+
end
|
46
|
+
index += 21
|
47
|
+
# credit
|
48
|
+
elsif data[index].unpack("C")[0] == 1
|
49
|
+
record = data[index..index + 21].unpack("CL>Q>G")
|
50
|
+
puts record
|
51
|
+
# total amount in dollars of credits
|
52
|
+
calculations[:credit] += record[3].to_f
|
53
|
+
# for user ID 2456938384156277127,
|
54
|
+
if record[2] == 2456938384156277127
|
55
|
+
# subtract the dollars of credits from the user's total balance
|
56
|
+
calculations['2456938384156277127'] -= record[3].to_f
|
57
|
+
end
|
58
|
+
index += 21
|
59
|
+
# StartAutopay
|
60
|
+
elsif data[index].unpack("C")[0] == 2
|
61
|
+
puts data[index..index + 13].unpack("CL>Q>")
|
62
|
+
# increase the total count of how many times Autopay has been started
|
63
|
+
calculations[:started_count] += 1
|
64
|
+
index += 13
|
65
|
+
# EndAutopay
|
66
|
+
elsif data[index].unpack("C")[0] == 3
|
67
|
+
puts data[index..index + 13].unpack("CL>Q>")
|
68
|
+
# increase the total count of how many times Autopay has been started
|
69
|
+
calculations[:ended_count] += 1
|
70
|
+
index += 13
|
71
|
+
end
|
72
|
+
end
|
73
|
+
calculations
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
data/proto-MPS7.gemspec
ADDED
@@ -0,0 +1,47 @@
|
|
1
|
+
|
2
|
+
lib = File.expand_path("../lib", __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require "proto/MPS7/version"
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "proto-MPS7"
|
8
|
+
spec.version = Proto::MPS7::VERSION
|
9
|
+
spec.authors = ["Patricia Arbona"]
|
10
|
+
spec.email = ["arbonap@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{This gem is a payment processing application that consumes a proprietary binary protocol format named "MPS7", an old-school mainframe format 💻 }
|
13
|
+
spec.description = %q{Reads in and parses binary transaction log, txnlog.dat, according to the specifications in HOMEWORK.md }
|
14
|
+
spec.homepage = "https://github.com/arbonap/proto-MPS7"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
18
|
+
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
19
|
+
if spec.respond_to?(:metadata)
|
20
|
+
spec.metadata["allowed_push_host"] = "https://rubygems.org"
|
21
|
+
|
22
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
23
|
+
spec.metadata["source_code_uri"] = "https://github.com/arbonap/proto-MPS7"
|
24
|
+
spec.metadata["changelog_uri"] = "https://www.github.com/arbonap/proto-MPS7/changelog"
|
25
|
+
else
|
26
|
+
raise "RubyGems 2.0 or newer is required to protect against " \
|
27
|
+
"public gem pushes."
|
28
|
+
end
|
29
|
+
|
30
|
+
# Specify which files should be added to the gem when it is released.
|
31
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
32
|
+
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
33
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
34
|
+
end
|
35
|
+
spec.bindir = "exe"
|
36
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
37
|
+
spec.require_paths = ["lib"]
|
38
|
+
|
39
|
+
spec.add_development_dependency "bundler", "~> 1.17"
|
40
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
41
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
42
|
+
spec.add_development_dependency "activesupport"
|
43
|
+
spec.add_development_dependency "byebug"
|
44
|
+
spec.add_development_dependency "awesome_print"
|
45
|
+
spec.add_development_dependency "artii"
|
46
|
+
spec.add_development_dependency "thor", "0.20.0"
|
47
|
+
end
|
data/txnlog.dat
ADDED
Binary file
|
metadata
ADDED
@@ -0,0 +1,182 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: proto-MPS7
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Patricia Arbona
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-04-10 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.17'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.17'
|
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.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: activesupport
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: byebug
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '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'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: awesome_print
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: artii
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: thor
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - '='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 0.20.0
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - '='
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: 0.20.0
|
125
|
+
description: 'Reads in and parses binary transaction log, txnlog.dat, according to
|
126
|
+
the specifications in HOMEWORK.md '
|
127
|
+
email:
|
128
|
+
- arbonap@gmail.com
|
129
|
+
executables:
|
130
|
+
- proto_MPS7
|
131
|
+
extensions: []
|
132
|
+
extra_rdoc_files: []
|
133
|
+
files:
|
134
|
+
- ".gitignore"
|
135
|
+
- ".rspec"
|
136
|
+
- ".travis.yml"
|
137
|
+
- CODE_OF_CONDUCT.md
|
138
|
+
- Gemfile
|
139
|
+
- Gemfile.lock
|
140
|
+
- HOMEWORK.md
|
141
|
+
- LICENSE.txt
|
142
|
+
- README.md
|
143
|
+
- Rakefile
|
144
|
+
- bin/console
|
145
|
+
- bin/setup
|
146
|
+
- exe/proto_MPS7
|
147
|
+
- lib/proto/MPS7.rb
|
148
|
+
- lib/proto/MPS7/cli.rb
|
149
|
+
- lib/proto/MPS7/parser.rb
|
150
|
+
- lib/proto/MPS7/version.rb
|
151
|
+
- proto-MPS7.gemspec
|
152
|
+
- txnlog.dat
|
153
|
+
homepage: https://github.com/arbonap/proto-MPS7
|
154
|
+
licenses:
|
155
|
+
- MIT
|
156
|
+
metadata:
|
157
|
+
allowed_push_host: https://rubygems.org
|
158
|
+
homepage_uri: https://github.com/arbonap/proto-MPS7
|
159
|
+
source_code_uri: https://github.com/arbonap/proto-MPS7
|
160
|
+
changelog_uri: https://www.github.com/arbonap/proto-MPS7/changelog
|
161
|
+
post_install_message:
|
162
|
+
rdoc_options: []
|
163
|
+
require_paths:
|
164
|
+
- lib
|
165
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
166
|
+
requirements:
|
167
|
+
- - ">="
|
168
|
+
- !ruby/object:Gem::Version
|
169
|
+
version: '0'
|
170
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
171
|
+
requirements:
|
172
|
+
- - ">="
|
173
|
+
- !ruby/object:Gem::Version
|
174
|
+
version: '0'
|
175
|
+
requirements: []
|
176
|
+
rubyforge_project:
|
177
|
+
rubygems_version: 2.6.14
|
178
|
+
signing_key:
|
179
|
+
specification_version: 4
|
180
|
+
summary: "This gem is a payment processing application that consumes a proprietary
|
181
|
+
binary protocol format named \"MPS7\", an old-school mainframe format \U0001F4BB"
|
182
|
+
test_files: []
|