secret_santa_client 0.0.0 → 0.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/README.md +13 -2
- data/lib/mobile/secret_santa.rb +1 -1
- data/spec/mobile/secret_santa_spec.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 346f0f244b52d689d3276d7ff298ef918f211b3a
|
4
|
+
data.tar.gz: 813ae48e4ec00ca0fd6a0b24c0bba39d7409433f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6447ca418dbf2ad60f30609dd6c3ec5b640bedeed5b5d2d66d668a0d93c6390f726a57dad22320997f8e20ba23b35d9f3d5a56f0728194416baa72c2c6a0350d
|
7
|
+
data.tar.gz: c7990cd3b36eb7e9fe103da15392d9ac015fe8c3554a7d68febb25d0c953680c50a9f4cbe382983173e97eb4fced0f9f67b04d179e267462a2471d00421fb575
|
data/README.md
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
|
1
|
+
Secret Santa Client
|
2
2
|
============
|
3
3
|
|
4
4
|
## About
|
5
5
|
|
6
|
-
Use this to randomly generator pairing of people for Secret Santa.
|
6
|
+
Use this to randomly generator pairing of people for Secret Santa and send texts.
|
7
7
|
|
8
8
|
## Usage
|
9
9
|
|
@@ -36,6 +36,9 @@ secret_santa = Mobile::SecretSanta.new(:list => list, :logger => logger, :twilio
|
|
36
36
|
|
37
37
|
secret_santa.pair_list.send
|
38
38
|
|
39
|
+
the text will look something like this:
|
40
|
+
Yo Secret Santa, give this whiny little kid #{person} a gift, because we all know #{person} was a bad person this year and will be getting coal from the real Santa.
|
41
|
+
|
39
42
|
```
|
40
43
|
|
41
44
|
## Logging
|
@@ -47,6 +50,14 @@ Logging is optional, but in case something goes wrong, for example someone didn'
|
|
47
50
|
1. Twilio Integration
|
48
51
|
2. Logging
|
49
52
|
|
53
|
+
## Text Body
|
54
|
+
|
55
|
+
You can pass in a block if you don't want to use the default text body
|
56
|
+
|
57
|
+
```
|
58
|
+
secret_santa.pair_list.send(:text_body => Proc.new {|person| "hello #{person}."})
|
59
|
+
```
|
60
|
+
|
50
61
|
## Future Features
|
51
62
|
|
52
63
|
1. Resend email by phone number by looking through logs
|
data/lib/mobile/secret_santa.rb
CHANGED
@@ -59,7 +59,7 @@ module Mobile
|
|
59
59
|
end
|
60
60
|
|
61
61
|
def default_text_body(person)
|
62
|
-
"Yo Secret Santa, give this whiny little kid #{person} a gift, because we all know #{person} was a bad person this year and will be getting coal from the real Santa.
|
62
|
+
"Yo Secret Santa, give this whiny little kid #{person} a gift, because we all know #{person} was a bad person this year and will be getting coal from the real Santa."
|
63
63
|
end
|
64
64
|
end
|
65
65
|
end
|
@@ -98,5 +98,5 @@ class TestLogger < Logger
|
|
98
98
|
end
|
99
99
|
|
100
100
|
def text_body(person)
|
101
|
-
"Yo Secret Santa, give this whiny little kid #{person} a gift, because we all know #{person} was a bad person this year and will be getting coal from the real Santa.
|
101
|
+
"Yo Secret Santa, give this whiny little kid #{person} a gift, because we all know #{person} was a bad person this year and will be getting coal from the real Santa."
|
102
102
|
end
|