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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e67311c748ff4dd088b8ff7a34325568e2d95342
4
- data.tar.gz: c87d4b6673889d0910abe3cf7f681518654e94c4
3
+ metadata.gz: 346f0f244b52d689d3276d7ff298ef918f211b3a
4
+ data.tar.gz: 813ae48e4ec00ca0fd6a0b24c0bba39d7409433f
5
5
  SHA512:
6
- metadata.gz: 336adf8659d7327c31ff58aca3d03d12ddec8d13bc0f4547be11b959974e0b87512959302b679aac5107f5bf15110a744fc16da166b94795e05f66983203c082
7
- data.tar.gz: 24eb51b5ede23d8b5c50faf950872ca228ed8b0af2afb72c2b68511f7681340418bd47d697101ee8c6fffbc64492663046842da2f082119958801f7893b2eab1
6
+ metadata.gz: 6447ca418dbf2ad60f30609dd6c3ec5b640bedeed5b5d2d66d668a0d93c6390f726a57dad22320997f8e20ba23b35d9f3d5a56f0728194416baa72c2c6a0350d
7
+ data.tar.gz: c7990cd3b36eb7e9fe103da15392d9ac015fe8c3554a7d68febb25d0c953680c50a9f4cbe382983173e97eb4fced0f9f67b04d179e267462a2471d00421fb575
data/README.md CHANGED
@@ -1,9 +1,9 @@
1
- secret_santa
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
@@ -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. Sincerly, The Cool Tak's Secret Santa #{Time.now.year}."
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. Sincerly, The Cool Tak's Secret Santa 2015."
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: secret_santa_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Taka Goto