secretsanta 1.0.0 → 1.0.1
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.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/bin/secretsanta +6 -6
- data/lib/secretsanta/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6be34e4668586f954289ca28cc3fef3f857fd7741e98c0341fa9885352e60808
|
4
|
+
data.tar.gz: 845a684cfffcff6f33435abc0f507905975079e8f33b5f73d1254fc7de1079f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 26b3ac2b61b8a4830cc00d82fd78197ff00c11390d7a9cc3789558177005370cfbb20579cdc1856d863cc4f944374bcc8d39f8b990d9b9f6d1c1dbeedfd4cbd6
|
7
|
+
data.tar.gz: c1f97093f6f87f7d1a86a1b9cf7fd4d23d839133195d583591b14fcf34ec752a42e979e10409762694c1041b43533b23e383653a71b26a02f165744ce330410f
|
data/Gemfile.lock
CHANGED
data/bin/secretsanta
CHANGED
@@ -22,24 +22,24 @@ begin
|
|
22
22
|
opt_parser = OptionParser.new do |opts|
|
23
23
|
opts.banner = SecretSanta.help_text
|
24
24
|
|
25
|
-
opts.on
|
25
|
+
opts.on('-h', '--help', 'Show this help message') do
|
26
26
|
puts opts
|
27
|
-
exit
|
27
|
+
exit 0
|
28
28
|
end
|
29
29
|
|
30
|
-
opts.on
|
30
|
+
opts.on('-a', '--twilio-account-sid=SID', 'Twilio AccountSID') do |sid|
|
31
31
|
options.twilio_account_sid = sid
|
32
32
|
end
|
33
33
|
|
34
|
-
opts.on
|
34
|
+
opts.on('-t', '--twilio-auth-token=TOKEN', 'Twilio authentication token') do |token|
|
35
35
|
options.twilio_auth_token = token
|
36
36
|
end
|
37
37
|
|
38
|
-
opts.on
|
38
|
+
opts.on('-f', '--from_number=NUM', 'Twilio phone number') do |num|
|
39
39
|
options.from_number = num
|
40
40
|
end
|
41
41
|
|
42
|
-
opts.on
|
42
|
+
opts.on('-p', '--participants=JSON_FILE', 'JSON file with participants') do |participants_file|
|
43
43
|
options.participants = JSON.parse(File.read(participants_file), symbolize_names: true)[:participants]
|
44
44
|
rescue StandardError => e
|
45
45
|
puts e
|
data/lib/secretsanta/version.rb
CHANGED