maseti 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: b78a7bcd6e162f787a3319ccc220cbaf54dfb1448bb4f3346b8547869f02bcd7
4
+ data.tar.gz: 11e16704bb905e4bfee850e3f43d0e83663fdc44cdb1b03939cb54ed6db90ca2
5
+ SHA512:
6
+ metadata.gz: 02f4c98c2128889f8850650df035f426d0bfe40cc07b51478686c662fee0d604507e625cc0ae4573fa72378fbf3b39194afc96ead8210d846f011017f255dd86
7
+ data.tar.gz: fcbcba2c934d832755cb47fbad717d423a1a2705fd9f4751bac7c1199146e359dc55a67d9c00fc0856e5a99482104d1571941f9a16c8f1f134fa33706a3a8886
@@ -0,0 +1,58 @@
1
+ *.gem
2
+ *.rbc
3
+ /.config
4
+ /coverage/
5
+ /InstalledFiles
6
+ /pkg/
7
+ /spec/reports/
8
+ /spec/examples.txt
9
+ /test/tmp/
10
+ /test/version_tmp/
11
+ /tmp/
12
+
13
+ # Used by dotenv library to load environment variables.
14
+ # .env
15
+
16
+ # Ignore Byebug command history file.
17
+ .byebug_history
18
+
19
+ ## Specific to RubyMotion:
20
+ .dat*
21
+ .repl_history
22
+ build/
23
+ *.bridgesupport
24
+ build-iPhoneOS/
25
+ build-iPhoneSimulator/
26
+
27
+ ## Specific to RubyMotion (use of CocoaPods):
28
+ #
29
+ # We recommend against adding the Pods directory to your .gitignore. However
30
+ # you should judge for yourself, the pros and cons are mentioned at:
31
+ # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
32
+ #
33
+ # vendor/Pods/
34
+
35
+ ## Documentation cache and generated files:
36
+ /.yardoc/
37
+ /_yardoc/
38
+ /doc/
39
+ /rdoc/
40
+
41
+ ## Environment normalization:
42
+ /.bundle/
43
+ /vendor/bundle
44
+ /lib/bundler/man/
45
+
46
+ # for a library or gem, you might want to ignore these files since the code is
47
+ # intended to run in multiple environments; otherwise, check them in:
48
+ # Gemfile.lock
49
+ # .ruby-version
50
+ # .ruby-gemset
51
+
52
+ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
53
+ .rvmrc
54
+
55
+ # Used by RuboCop. Remote config files pulled in from inherit_from directive.
56
+ # .rubocop-https?--*
57
+
58
+ .DS_Store
@@ -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 contact@jasonchalom.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 [https://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: https://contributor-covenant.org
74
+ [version]: https://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,7 @@
1
+ source "https://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in maseti.gemspec
4
+ gemspec
5
+
6
+ gem "rake", "~> 12.0"
7
+ gem "minitest", "~> 5.0"
@@ -0,0 +1,114 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ maseti (0.1.0)
5
+ active_attr (~> 0.15)
6
+ httparty (~> 0.18)
7
+ nokogiri (~> 1.10.9)
8
+
9
+ GEM
10
+ remote: https://rubygems.org/
11
+ specs:
12
+ actionpack (6.0.3.2)
13
+ actionview (= 6.0.3.2)
14
+ activesupport (= 6.0.3.2)
15
+ rack (~> 2.0, >= 2.0.8)
16
+ rack-test (>= 0.6.3)
17
+ rails-dom-testing (~> 2.0)
18
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
19
+ actionview (6.0.3.2)
20
+ activesupport (= 6.0.3.2)
21
+ builder (~> 3.1)
22
+ erubi (~> 1.4)
23
+ rails-dom-testing (~> 2.0)
24
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
25
+ active_attr (0.15.0)
26
+ actionpack (>= 3.0.2, < 6.1)
27
+ activemodel (>= 3.0.2, < 6.1)
28
+ activesupport (>= 3.0.2, < 6.1)
29
+ activemodel (6.0.3.2)
30
+ activesupport (= 6.0.3.2)
31
+ activesupport (6.0.3.2)
32
+ concurrent-ruby (~> 1.0, >= 1.0.2)
33
+ i18n (>= 0.7, < 2)
34
+ minitest (~> 5.1)
35
+ tzinfo (~> 1.1)
36
+ zeitwerk (~> 2.2, >= 2.2.2)
37
+ addressable (2.7.0)
38
+ public_suffix (>= 2.0.2, < 5.0)
39
+ ansi (1.5.0)
40
+ builder (3.2.4)
41
+ coderay (1.1.3)
42
+ concurrent-ruby (1.1.6)
43
+ crack (0.4.3)
44
+ safe_yaml (~> 1.0.0)
45
+ crass (1.0.6)
46
+ erubi (1.9.0)
47
+ hashdiff (1.0.1)
48
+ httparty (0.18.1)
49
+ mime-types (~> 3.0)
50
+ multi_xml (>= 0.5.2)
51
+ i18n (1.8.3)
52
+ concurrent-ruby (~> 1.0)
53
+ loofah (2.6.0)
54
+ crass (~> 1.0.2)
55
+ nokogiri (>= 1.5.9)
56
+ method_source (1.0.0)
57
+ mime-types (3.3.1)
58
+ mime-types-data (~> 3.2015)
59
+ mime-types-data (3.2020.0512)
60
+ mini_portile2 (2.4.0)
61
+ minitest (5.14.1)
62
+ minitest-focus (1.1.2)
63
+ minitest (>= 4, < 6)
64
+ minitest-reporters (1.4.2)
65
+ ansi
66
+ builder
67
+ minitest (>= 5.0)
68
+ ruby-progressbar
69
+ mocha (1.11.2)
70
+ multi_xml (0.6.0)
71
+ nokogiri (1.10.9)
72
+ mini_portile2 (~> 2.4.0)
73
+ pry (0.13.1)
74
+ coderay (~> 1.1)
75
+ method_source (~> 1.0)
76
+ public_suffix (4.0.5)
77
+ rack (2.2.3)
78
+ rack-test (1.1.0)
79
+ rack (>= 1.0, < 3)
80
+ rails-dom-testing (2.0.3)
81
+ activesupport (>= 4.2.0)
82
+ nokogiri (>= 1.6)
83
+ rails-html-sanitizer (1.3.0)
84
+ loofah (~> 2.3)
85
+ rake (12.3.3)
86
+ ruby-progressbar (1.10.1)
87
+ safe_yaml (1.0.5)
88
+ thread_safe (0.3.6)
89
+ timecop (0.9.1)
90
+ tzinfo (1.2.7)
91
+ thread_safe (~> 0.1)
92
+ webmock (3.8.3)
93
+ addressable (>= 2.3.6)
94
+ crack (>= 0.3.2)
95
+ hashdiff (>= 0.4.0, < 2.0.0)
96
+ zeitwerk (2.3.1)
97
+
98
+ PLATFORMS
99
+ ruby
100
+
101
+ DEPENDENCIES
102
+ bundler (~> 2.1.4)
103
+ maseti!
104
+ minitest (~> 5.0)
105
+ minitest-focus (~> 1.1.2)
106
+ minitest-reporters (~> 1.4.2)
107
+ mocha (~> 1.11.2)
108
+ pry (~> 0.13)
109
+ rake (~> 12.0)
110
+ timecop (~> 0.9.1)
111
+ webmock (~> 3.8.3)
112
+
113
+ BUNDLED WITH
114
+ 2.1.4
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2020 Jason Chalom
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) 2020 trex22
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,44 @@
1
+ # Maseti
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/maseti`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'maseti'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle install
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install maseti
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ 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.
30
+
31
+ 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).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/maseti. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/maseti/blob/master/CODE_OF_CONDUCT.md).
36
+
37
+
38
+ ## License
39
+
40
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
41
+
42
+ ## Code of Conduct
43
+
44
+ Everyone interacting in the Maseti project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/maseti/blob/master/CODE_OF_CONDUCT.md).
@@ -0,0 +1,10 @@
1
+ require "bundler/gem_tasks"
2
+ require "rake/testtask"
3
+
4
+ Rake::TestTask.new(:test) do |t|
5
+ t.libs << "test"
6
+ t.libs << "lib"
7
+ t.test_files = FileList["test/**/*_test.rb"]
8
+ end
9
+
10
+ task :default => :test
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "maseti"
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 "pry"
14
+ 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
data/console ADDED
@@ -0,0 +1,11 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "luno"
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
@@ -0,0 +1,15 @@
1
+ require 'httparty'
2
+ require 'nokogiri'
3
+
4
+ # Constants
5
+ require 'maseti/version'
6
+ require 'maseti/constants'
7
+
8
+ # Client
9
+ require 'maseti/web_page_parser'
10
+ require 'maseti/file_downloader'
11
+ require 'maseti/client'
12
+
13
+ module Maseti
14
+ class Error < StandardError; end
15
+ end
@@ -0,0 +1,22 @@
1
+ module Maseti
2
+ class Client
3
+ include ::Maseti::Constants
4
+ include ::Maseti::WebPageParser
5
+ include ::Maseti::FileDownloader
6
+
7
+ attr_reader :model, :save_data, :save_path, :read_from_save_path
8
+
9
+ def initialize(model: nil, save_data: false, save_path: '', read_from_save_path: false)
10
+ @model = model
11
+ @save_data = save_data
12
+ @save_path = save_path
13
+ @read_from_save_path = read_from_save_path
14
+ end
15
+
16
+ private
17
+
18
+ def get_micro_second_time
19
+ (Time.now.to_f * 1000000).to_i
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,33 @@
1
+ module Maseti
2
+ module Constants
3
+ # https://www.justice.gov.za/master/maseti/bfn/bfn_estates1.xls
4
+ BASE_URL = 'https://www.justice.gov.za/master/maseti/'
5
+ PAGES = [ 'maseti.html', 'maseti02.html' ] # TODO: Future proof?
6
+
7
+ COUNTRY_CODE = {
8
+ bho: "Bhisho",
9
+ bfn: "Bloemfontein",
10
+ ctn: "Cape Town",
11
+ dbn: "Durban",
12
+ ght: "Grahamstown",
13
+ jhb: "Johannesburg",
14
+ kmb: "Kimberley",
15
+ mbt: "Mmabatho",
16
+ pmb: "Pietermaritzburg",
17
+ pol: "Polokwane",
18
+ plz: "Port Elizabeth",
19
+ pta: "Pretoria",
20
+ tho: "Thohoyandou",
21
+ uta: "Umtata"
22
+ }
23
+
24
+ TYPE = {
25
+ "estates": 0,
26
+ "trust": 1,
27
+ "insolve": 2,
28
+ "guard": 3
29
+ }
30
+
31
+ FILE_TYPE = '.xls'
32
+ end
33
+ end
@@ -0,0 +1,39 @@
1
+ module Maseti
2
+ module FileDownloader
3
+ def download_all_files
4
+ fetch_xls_paths_from_pages.map do |file_path|
5
+ download(file_path)
6
+ end
7
+ end
8
+
9
+ # save_path is defined in client.rb
10
+ def download(file_path)
11
+ raise "save_path is undefined" if save_data && save_path == ''
12
+
13
+ start_time = get_micro_second_time
14
+
15
+ file_data = HTTParty.get("#{Maseti::Constants::BASE_URL}/#{file_path}")
16
+
17
+ # TODO: Use the time
18
+ end_time = get_micro_second_time
19
+
20
+ if save_data
21
+ File.open("#{save_path}/#{compute_filename(file_path)}", 'wb') do |file|
22
+ file.write(file_data.body)
23
+ end
24
+ end
25
+
26
+ file_data
27
+ end
28
+
29
+ def compute_hash_of(data)
30
+ { data: data }.hash
31
+ end
32
+
33
+ private
34
+
35
+ def compute_filename(file_path)
36
+ file_path.scan(/[\/]\S+/).last
37
+ end
38
+ end
39
+ end
@@ -0,0 +1,3 @@
1
+ module Maseti
2
+ VERSION = "0.1.0"
3
+ end
@@ -0,0 +1,34 @@
1
+ module Maseti
2
+ module WebPageParser
3
+ def fetch_xls_paths_from_pages
4
+ Maseti::Constants::PAGES.flat_map do |page|
5
+ fetch_page(page)
6
+ end
7
+ end
8
+
9
+ def fetch_page(page)
10
+ start_time = get_micro_second_time
11
+
12
+ response = HTTParty.get("#{Maseti::Constants::BASE_URL}/#{page}")
13
+
14
+ # TODO: Use the time
15
+ end_time = get_micro_second_time
16
+ extract_excel_urls(response, start_time, end_time)
17
+ end
18
+
19
+ private
20
+
21
+ def extract_excel_urls(response, start_time, end_time)
22
+ parse_html(response)
23
+ .css('a')
24
+ .to_a
25
+ .map { |link| link['href'] }
26
+ .compact
27
+ .select { |link| link.include? Maseti::Constants::FILE_TYPE }
28
+ end
29
+
30
+ def parse_html(raw_html)
31
+ Nokogiri::HTML(raw_html)
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,37 @@
1
+ require_relative 'lib/maseti/version'
2
+
3
+ Gem::Specification.new do |spec|
4
+ spec.name = "maseti"
5
+ spec.version = Maseti::VERSION
6
+ spec.authors = ["trex22"]
7
+ spec.email = ["contact@jasonchalom.com"]
8
+
9
+ spec.summary = "Client to download and process the Maseti dataset. justice.gov.za/master/maseti/maseti.html"
10
+ spec.description = "Client to download and process the Maseti dataset. justice.gov.za/master/maseti/maseti.html"
11
+ spec.homepage = "https://github.com/TRex22/maseti"
12
+ spec.license = "MIT"
13
+
14
+ # Specify which files should be added to the gem when it is released.
15
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
16
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
17
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
+ end
19
+ spec.bindir = "exe"
20
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
+ spec.require_paths = ["lib"]
22
+
23
+ spec.add_dependency "httparty", "~> 0.18"
24
+ spec.add_dependency "active_attr", "~> 0.15"
25
+ spec.add_dependency "nokogiri", "~> 1.10.9"
26
+
27
+ # Development dependancies
28
+ spec.add_development_dependency "bundler", "~> 2.1.4"
29
+ spec.add_development_dependency "rake", "~> 13.0"
30
+ spec.add_development_dependency "minitest", "~> 5.0"
31
+ spec.add_development_dependency "minitest-focus", "~> 1.1.2"
32
+ spec.add_development_dependency "minitest-reporters", "~> 1.4.2"
33
+ spec.add_development_dependency "timecop", "~> 0.9.1"
34
+ spec.add_development_dependency "mocha", "~> 1.11.2"
35
+ spec.add_development_dependency "pry", "~> 0.13"
36
+ spec.add_development_dependency "webmock", "~> 3.8.3"
37
+ end
data/setup ADDED
@@ -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
metadata ADDED
@@ -0,0 +1,230 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: maseti
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - trex22
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2020-07-04 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: httparty
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '0.18'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '0.18'
27
+ - !ruby/object:Gem::Dependency
28
+ name: active_attr
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '0.15'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '0.15'
41
+ - !ruby/object:Gem::Dependency
42
+ name: nokogiri
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 1.10.9
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 1.10.9
55
+ - !ruby/object:Gem::Dependency
56
+ name: bundler
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 2.1.4
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 2.1.4
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '13.0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '13.0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: minitest
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '5.0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '5.0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: minitest-focus
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: 1.1.2
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: 1.1.2
111
+ - !ruby/object:Gem::Dependency
112
+ name: minitest-reporters
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: 1.4.2
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: 1.4.2
125
+ - !ruby/object:Gem::Dependency
126
+ name: timecop
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: 0.9.1
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: 0.9.1
139
+ - !ruby/object:Gem::Dependency
140
+ name: mocha
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: 1.11.2
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: 1.11.2
153
+ - !ruby/object:Gem::Dependency
154
+ name: pry
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: '0.13'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "~>"
165
+ - !ruby/object:Gem::Version
166
+ version: '0.13'
167
+ - !ruby/object:Gem::Dependency
168
+ name: webmock
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - "~>"
172
+ - !ruby/object:Gem::Version
173
+ version: 3.8.3
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - "~>"
179
+ - !ruby/object:Gem::Version
180
+ version: 3.8.3
181
+ description: Client to download and process the Maseti dataset. justice.gov.za/master/maseti/maseti.html
182
+ email:
183
+ - contact@jasonchalom.com
184
+ executables: []
185
+ extensions: []
186
+ extra_rdoc_files: []
187
+ files:
188
+ - ".gitignore"
189
+ - CODE_OF_CONDUCT.md
190
+ - Gemfile
191
+ - Gemfile.lock
192
+ - LICENSE
193
+ - LICENSE.txt
194
+ - README.md
195
+ - Rakefile
196
+ - bin/console
197
+ - bin/setup
198
+ - console
199
+ - lib/maseti.rb
200
+ - lib/maseti/client.rb
201
+ - lib/maseti/constants.rb
202
+ - lib/maseti/file_downloader.rb
203
+ - lib/maseti/version.rb
204
+ - lib/maseti/web_page_parser.rb
205
+ - maseti.gemspec
206
+ - setup
207
+ homepage: https://github.com/TRex22/maseti
208
+ licenses:
209
+ - MIT
210
+ metadata: {}
211
+ post_install_message:
212
+ rdoc_options: []
213
+ require_paths:
214
+ - lib
215
+ required_ruby_version: !ruby/object:Gem::Requirement
216
+ requirements:
217
+ - - ">="
218
+ - !ruby/object:Gem::Version
219
+ version: '0'
220
+ required_rubygems_version: !ruby/object:Gem::Requirement
221
+ requirements:
222
+ - - ">="
223
+ - !ruby/object:Gem::Version
224
+ version: '0'
225
+ requirements: []
226
+ rubygems_version: 3.1.4
227
+ signing_key:
228
+ specification_version: 4
229
+ summary: Client to download and process the Maseti dataset. justice.gov.za/master/maseti/maseti.html
230
+ test_files: []