pushpop-twilio 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: b2d4a0667021de354a604b8e841c5a61021940ea
4
+ data.tar.gz: 9cade5c23576040aacacc431838748d475db77ea
5
+ SHA512:
6
+ metadata.gz: 8f6153ad17275a1c0b0959e00948fd463c8c7806a2898903f54b7992e267671bd216e09771659f41d63a94ebde7465dc15f26e91f8f3fceb5bb0673a961e7c90
7
+ data.tar.gz: 908d7983ce0c5608ecc67f1543d662397e45bbc676cdfae4ddc422dd9e5982a94be90cfd933d755acb12b8dc74383ce45a6a5d5b5a1b29a362a215b54686a1cf
data/README.md CHANGED
@@ -52,7 +52,7 @@ job 'send a few texts' do
52
52
 
53
53
  twilio do
54
54
  ['+18005555555','+18005555556'].each do |to_number|
55
- send_message(to_number, 'Quick, move your car!')
55
+ send_message(to_number, ENV['TWILIO_FROM'], 'Quick, move your car!')
56
56
  end
57
57
  end
58
58
 
@@ -27,8 +27,6 @@ module Pushpop
27
27
 
28
28
  if _to && _from && _body
29
29
  send_message(_to, _from, _body)
30
- else
31
- raise 'Please configure to, from, and body to send an SMS'
32
30
  end
33
31
  end
34
32
 
@@ -1,5 +1,5 @@
1
1
  module Pushpop
2
2
  class Twilio
3
- VERSION = '0.1.1'
3
+ VERSION = '0.1.2'
4
4
  end
5
5
  end
@@ -43,10 +43,8 @@ describe Pushpop::Twilio do
43
43
  from '+18555555556'
44
44
  end
45
45
  step.configure
46
- step.stub(:send_message).and_return(5)
47
- expect {
48
- step.run(365)
49
- }.to raise_error /Please configure/
46
+ expect(step).not_to receive(:send_message)
47
+ step.run(365)
50
48
  end
51
49
 
52
50
  it 'should not send a message if to not specified' do
@@ -55,11 +53,8 @@ describe Pushpop::Twilio do
55
53
  body "The response is #{response}"
56
54
  end
57
55
  step.configure
58
- step.stub(:send_message).and_return(5)
59
- expect {
60
- step.run(365)
61
- }.to raise_error /Please configure/
62
-
56
+ expect(step).not_to receive(:send_message)
57
+ step.run(365)
63
58
  end
64
59
 
65
60
  it 'should not send a message if from not specified' do
@@ -68,10 +63,8 @@ describe Pushpop::Twilio do
68
63
  body "The response is #{response}"
69
64
  end
70
65
  step.configure
71
- step.stub(:send_message).and_return(5)
72
- expect {
73
- step.run(365)
74
- }.to raise_error /Please configure/
66
+ expect(step).not_to receive(:send_message)
67
+ step.run(365)
75
68
  end
76
69
 
77
70
  end
metadata CHANGED
@@ -1,46 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pushpop-twilio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
5
- prerelease:
4
+ version: 0.1.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - Josh Dzielak
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2014-06-16 00:00:00.000000000 Z
11
+ date: 2015-11-18 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: pushpop
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - '>='
28
25
  - !ruby/object:Gem::Version
29
26
  version: '0'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: twilio-ruby
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - '>='
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - '>='
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  description:
@@ -62,27 +57,26 @@ files:
62
57
  - spec/spec_helper.rb
63
58
  homepage: https://github.com/pushpop-project/pushpop-twilio
64
59
  licenses: []
60
+ metadata: {}
65
61
  post_install_message:
66
62
  rdoc_options: []
67
63
  require_paths:
68
64
  - lib
69
65
  required_ruby_version: !ruby/object:Gem::Requirement
70
- none: false
71
66
  requirements:
72
- - - ! '>='
67
+ - - '>='
73
68
  - !ruby/object:Gem::Version
74
69
  version: '0'
75
70
  required_rubygems_version: !ruby/object:Gem::Requirement
76
- none: false
77
71
  requirements:
78
- - - ! '>='
72
+ - - '>='
79
73
  - !ruby/object:Gem::Version
80
74
  version: '0'
81
75
  requirements: []
82
76
  rubyforge_project:
83
- rubygems_version: 1.8.23
77
+ rubygems_version: 2.0.14
84
78
  signing_key:
85
- specification_version: 3
79
+ specification_version: 4
86
80
  summary: Twilio plugin for sending SMS messages from Pushpop
87
81
  test_files:
88
82
  - spec/pushpop-twilio_spec.rb