pitcher 0.0.4 → 0.0.5

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/pitcher +22 -2
  3. data/lib/pitcher/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 328e98f99eb2f6629c7226a3947675f808a7d7ce
4
- data.tar.gz: e6d57af8766c452ea6a0fd10803072265865e265
3
+ metadata.gz: 3814b7c9184f37216cc870909f6f88d517b92a4c
4
+ data.tar.gz: 753087fba6ddfcf706686f8d3181ce65682edf2f
5
5
  SHA512:
6
- metadata.gz: 7d6f5e90415f8bbfa31c7d77ba9898c579b71e8cf4630bc5fb60ad74c83b082f8b216431c86a512e999fe97fab9cc51e14e964726df95b2adb6759ea38931a80
7
- data.tar.gz: 93c4137e9aca2a0e2aedd812c0e068df50c15c36d0844ca3eea1000c75105a64b40ea310c18418a8865fd2e34e64b42c32a7afbfe0b12a1cc0eff621ab77c7ec
6
+ metadata.gz: cca1f9568286b24cb2acbd54db6346413fed491ee0470b4eefe7ccf0c90b2d83631530e6fe8e7f867063a131647d0410cee89211403e551e5a005199e1c866f8
7
+ data.tar.gz: 14104e761607f7b839d5f58ef3eb2ab16fe19e5c063bd1948e72bf534c14bc81e046d0729ccf3064230acd6da7be35edfa4260fbee21242db142f92a3149aed2
@@ -1,9 +1,29 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  require 'pitcher'
4
+ require 'pitcher/settings'
4
5
 
5
6
  pitcher = Pitcher::Pitcher.new
7
+
6
8
  pitcheropts = Pitcher::PitcherOpts.new
7
9
  options = pitcheropts::parse(ARGV)
8
- csv = pitcher.load_csv(options[:csv])
9
- pitcher.create_message(csv,options)
10
+
11
+
12
+ if (!options[:settings] || !options[:csv])
13
+ puts 'The --settings and --csv paramters are required'
14
+ exit
15
+ end
16
+
17
+ if (options[:settings])
18
+ settings = Settings.new(options[:settings])
19
+ p settings
20
+ else
21
+ exit
22
+ end
23
+
24
+ if (options[:csv])
25
+ csv = pitcher.load_csv(options[:csv])
26
+ pitcher.create_message(csv,settings)
27
+ else
28
+ exit
29
+ end
@@ -1,3 +1,3 @@
1
1
  module Pitcher
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pitcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jamie Little