secretsanta 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8627f6fcafa7d53b775ead3e5172949b66c6d262859fc30c7326f6c259e66dcf
4
- data.tar.gz: 79ffedee4f36213ba310d61587a13fd1f9fc735221f079ecbdf124fc0a16e51c
3
+ metadata.gz: 3173eabef8c6f996fbc0ff484b24c304b1a3e63dc4259d281c7b61ce1c967996
4
+ data.tar.gz: 4a49421bd59a8738b9e74d83fc103fbcabde68aab3c108b8366df450f512552e
5
5
  SHA512:
6
- metadata.gz: 7d073ca068c561729ec1c60d93f4b70c203b6dbfbd3a2479f31c7ac7a1422a97e70d9b9abb58cc9cc42a8a6529e931a4e17156e87cdb9f502ac05124bf693379
7
- data.tar.gz: 9c80604c08ea95d339f5f98f9576bffdc70d60cf7a35bc3c87e8b3a3072c827bccf0a12ade0b566957b8a5dc1aeaa4617c08977971dcee1a85315d997ff6e252
6
+ metadata.gz: 69b46346b916c79c48053e957300bee61900da35fe9331dbb4a09cdf1c98767ad658d031946dbe578cb705f421c82a52850aeefbcb863e7bcf1eb6606f869727
7
+ data.tar.gz: c040c42729d270688ee4a366f81a7ab64fa0f5d1dac5ca55f5ea1bb617946770d1c435e7468d9a3b691e22e5f54bc8572ec34a890aaefb6a1bb36480872a0bb1
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.5.3
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- secretsanta (1.0.2)
4
+ secretsanta (1.0.3)
5
5
  dotenv (~> 2.5)
6
6
  twilio-ruby (~> 5.17)
7
7
 
data/README.md CHANGED
@@ -2,6 +2,9 @@
2
2
 
3
3
  > Send a text message to let everyone know their Secret Santa recipient!
4
4
 
5
+ [![Gem](https://img.shields.io/gem/v/secretsanta.svg?style=flat)](http://rubygems.org/gems/secretsanta)
6
+ [![Build Status](https://travis-ci.org/tylucaskelley/secret-santa.svg?branch=master)](https://travis-ci.org/tylucaskelley/secret-santa)
7
+
5
8
  ---
6
9
 
7
10
  ## Installation
@@ -35,6 +38,26 @@ Alternatively, set the following environment variables:
35
38
  - `TWILIO_AUTH_TOKEN`
36
39
  - `TWILIO_PHONE_NUMBER`
37
40
 
41
+ The participants file is a JSON file, containing an array of people going to your event. It needs to be formatted as
42
+ follows:
43
+
44
+ ```json
45
+ {
46
+ "participants": [
47
+ {
48
+ "name": "John Doe",
49
+ "number": "+1 (123) 456-7890",
50
+ "disallow": [
51
+ "Jane Doe"
52
+ ],
53
+ "is_assigned": false,
54
+ "has_assignment": false
55
+ }
56
+ }
57
+ ```
58
+
59
+ The `disallow` array is optional, and contains an array of people the participant is not allowed to be paired with.
60
+
38
61
  ## Development
39
62
 
40
63
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SecretSanta
4
- VERSION = '1.0.2'
4
+ VERSION = '1.0.3'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: secretsanta
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ty-Lucas Kelley
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-14 00:00:00.000000000 Z
11
+ date: 2018-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dotenv
@@ -132,6 +132,7 @@ extra_rdoc_files: []
132
132
  files:
133
133
  - ".gitignore"
134
134
  - ".rubocop.yml"
135
+ - ".ruby-version"
135
136
  - ".travis.yml"
136
137
  - Gemfile
137
138
  - Gemfile.lock