slcsp 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/comments.md +2 -1
- data/lib/slcsp/cli.rb +0 -10
- data/lib/slcsp/version.rb +1 -1
- data/slcsp.gemspec +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 01dc79deff9936992c198fc68ea8bc12ef6f875aabfd7a78bb1ca1b9f85bdeed
|
4
|
+
data.tar.gz: ab678d04db9603600ef2c827c14f06954f9f9852ebc2931a885ad8c28e02cdf6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f186391d093076c8c54be08b3842fd7b4a0ca91171dc86205ed3fab70258828d4ff5961ebe55f27bc8c7b5d9a5c10780f11961b7f931e81a77007a7d361a5fe8
|
7
|
+
data.tar.gz: 37185cee3c3988e7a103c7f69d0dbe3d61aad6eec479379b50376a0a2ea5ee0c48ce84f8c3dbfb19fec98039e5d4a360adafd38b6ae53712dca453d5c7ee599a
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/comments.md
CHANGED
@@ -3,11 +3,12 @@
|
|
3
3
|
Welcome AdHoc professional. This is a repository with the source code of slcsp gem.
|
4
4
|
There are two ways to see the desired output:
|
5
5
|
|
6
|
-
## Installation
|
6
|
+
## Installation and usage
|
7
7
|
|
8
8
|
Provided, you have bundler installed
|
9
9
|
|
10
10
|
$ gem install slcsp
|
11
|
+
$ slcsp match
|
11
12
|
|
12
13
|
OR Use binary as is
|
13
14
|
|
data/lib/slcsp/cli.rb
CHANGED
@@ -17,15 +17,10 @@ module Slcsp
|
|
17
17
|
|
18
18
|
Slcsp::Config.configure do |config|
|
19
19
|
config.zips_file = File.join(dir, 'data', 'zips.csv')
|
20
|
-
say "configured zips file path to #{config.zips_file}"
|
21
20
|
config.plans_file = File.join(dir, 'data', 'plans.csv')
|
22
|
-
say "configured plans file path to #{config.plans_file}"
|
23
21
|
config.slcsp_file = File.join(dir, 'data', 'slcsp.csv')
|
24
|
-
say "configured slcsp file path to #{config.slcsp_file}"
|
25
22
|
config.output_medium = $stdout
|
26
|
-
say "configured output medium to be #{config.output_medium.inspect}"
|
27
23
|
config.target_level = 'Silver'
|
28
|
-
say "configured taregt level medium to be #{config.target_level}"
|
29
24
|
end
|
30
25
|
end
|
31
26
|
|
@@ -38,13 +33,8 @@ module Slcsp
|
|
38
33
|
zip_parser = Slcsp::ZipParser.new(Slcsp::Config.zips_file, zip_index)
|
39
34
|
plan_parser = Slcsp::PlanParser.new(Slcsp::Config.plans_file, plan_index)
|
40
35
|
|
41
|
-
say "Started indexing zips file..."
|
42
36
|
zip_parser.parse_and_record if zip_index.data.empty?
|
43
|
-
say "Completed indexing zips file. Total: #{zip_index.data.size} records."
|
44
|
-
|
45
|
-
say "Started indexing plans file..."
|
46
37
|
plan_parser.parse_and_record if plan_index.data.empty?
|
47
|
-
say "Completed indexing plans file. Total: #{plan_index.data.size} records."
|
48
38
|
|
49
39
|
return zip_index, plan_index
|
50
40
|
end
|
data/lib/slcsp/version.rb
CHANGED
data/slcsp.gemspec
CHANGED
@@ -5,8 +5,8 @@ require_relative "lib/slcsp/version"
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "slcsp"
|
7
7
|
spec.version = Slcsp::VERSION
|
8
|
-
spec.authors = ["
|
9
|
-
spec.email = ["
|
8
|
+
spec.authors = ["Anonymous"]
|
9
|
+
spec.email = ["anon@example.com"]
|
10
10
|
|
11
11
|
spec.summary = "Ad Hoc home assignment"
|
12
12
|
spec.description = "Calculate the second lowest cost silver plan"
|
metadata
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slcsp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- Anonymous
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
@@ -68,7 +68,7 @@ dependencies:
|
|
68
68
|
version: '0'
|
69
69
|
description: Calculate the second lowest cost silver plan
|
70
70
|
email:
|
71
|
-
-
|
71
|
+
- anon@example.com
|
72
72
|
executables:
|
73
73
|
- slcsp
|
74
74
|
extensions: []
|