signalwire 1.0.0.rc1 → 1.0.0

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: b8c269b5b78e89a98819b68a62c130263dfdcff42607c6e95dc8e67622ee15c8
4
- data.tar.gz: de8005aaefa577fbece7ff3b8227c267b9c64d328ab969c57823c36f60b11819
3
+ metadata.gz: 4567ca0e9c75e90cfd2704e51aa64e9482d53327ff9132476cec52b3b804be79
4
+ data.tar.gz: 2bd64750713bc6f359429958397fe27927f1be0d01bb890586df29c5450a0c64
5
5
  SHA512:
6
- metadata.gz: 9152b9da999f73f1b8b320c9aa6aab288347a3341b6d4211de88339b4ebe3b2c5cee79d3734526d033b068c1af14b7a7070fbaad9669b281fd67b83067bd2080
7
- data.tar.gz: fe827f663f862382c399cc642f681236a4d6f1fe480783118771f97b81ed8c18d5c20b539f2b971e79ccc82392172ce4e5174454ed713d1c9d4ad89cd4551ed9
6
+ metadata.gz: f748eefe17a9b2ddb3476f72996b99eed0967818255496242922882c85985a93ce7caec575d108a90d31ce155e61ce758927e85816934334839678aa1904fca4
7
+ data.tar.gz: 52209bc1025b2f7c21629013873f980840332d2c44be8429d09a29d50441a6261357f67b9c16c9290f7f20c3a2a877b61bc8363bd0dc93d70c720bcfaadd3991
data/Dockerfile ADDED
@@ -0,0 +1,8 @@
1
+ FROM ruby:latest
2
+
3
+ COPY . /app
4
+ WORKDIR /app
5
+
6
+ RUN bundle install
7
+ CMD ["bundle", "exec", "rspec"]
8
+
data/README.md CHANGED
@@ -59,7 +59,13 @@ puts response.to_s
59
59
  </Response>
60
60
  ```
61
61
 
62
- == Contributing to signalwire-client-ruby
62
+ ## Tests
63
+
64
+ A `Dockerfile` is provided for your testing convenience.
65
+
66
+ Run `docker run -it $(docker build -q .)` to execute the specs, or `docker run -it $(docker build -q .) sh` to get a shell.
67
+
68
+ ## Contributing to signalwire-client-ruby
63
69
 
64
70
  * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
65
71
  * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
@@ -69,7 +75,7 @@ puts response.to_s
69
75
  * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
70
76
  * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
71
77
 
72
- == Copyright
78
+ ## Copyright
73
79
 
74
80
  Copyright (c) 2018 SignalWire Inc. See LICENSE.txt for
75
81
  further details.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0.rc1
1
+ 1.0.0
@@ -6,6 +6,7 @@ require 'signalwire/sdk/configuration'
6
6
  require 'signalwire/sdk/twilio_set_host'
7
7
  require 'signalwire/sdk/domain'
8
8
  require 'signalwire/sdk/voice_response'
9
+ require 'signalwire/sdk/messaging_response'
9
10
  require 'signalwire/rest/client'
10
11
 
11
12
  module Signalwire
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Signalwire::Sdk
4
+ class MessagingResponse < Twilio::TwiML::MessagingResponse
5
+ end
6
+ end
7
+
8
+
data/signalwire.gemspec CHANGED
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: signalwire 1.0.0.rc1 ruby lib
5
+ # stub: signalwire 1.0.0 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "signalwire".freeze
9
- s.version = "1.0.0.rc1"
9
+ s.version = "1.0.0"
10
10
 
11
- s.required_rubygems_version = Gem::Requirement.new("> 1.3.1".freeze) if s.respond_to? :required_rubygems_version=
11
+ s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib".freeze]
13
13
  s.authors = ["SignalWire Team".freeze]
14
- s.date = "2018-09-21"
14
+ s.date = "2018-10-04"
15
15
  s.email = "open.source@signalwire.com".freeze
16
16
  s.extra_rdoc_files = [
17
17
  "LICENSE.txt",
@@ -22,6 +22,7 @@ Gem::Specification.new do |s|
22
22
  ".rspec",
23
23
  ".rubocop.yml",
24
24
  "AUTHORS.md",
25
+ "Dockerfile",
25
26
  "Gemfile",
26
27
  "Gemfile.lock",
27
28
  "Guardfile",
@@ -34,11 +35,13 @@ Gem::Specification.new do |s|
34
35
  "lib/signalwire/sdk.rb",
35
36
  "lib/signalwire/sdk/configuration.rb",
36
37
  "lib/signalwire/sdk/domain.rb",
38
+ "lib/signalwire/sdk/messaging_response.rb",
37
39
  "lib/signalwire/sdk/twilio_set_host.rb",
38
40
  "lib/signalwire/sdk/voice_response.rb",
39
41
  "signalwire.gemspec",
40
42
  "spec/signalwire/rest/client_spec.rb",
41
43
  "spec/signalwire/sdk/configuration_spec.rb",
44
+ "spec/signalwire/sdk/messaging_response_spec.rb",
42
45
  "spec/signalwire/sdk/voice_response_spec.rb",
43
46
  "spec/signalwire/sdk_spec.rb",
44
47
  "spec/spec_helper.rb"
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'spec_helper'
4
+
5
+ module Signalwire
6
+ RSpec.describe Sdk::MessagingResponse do
7
+ it 'generates the correct LAML' do
8
+ response = Signalwire::Sdk::MessagingResponse.new do |r|
9
+ r.message body: 'hello from a SignalWire SMS'
10
+ end
11
+
12
+ expect(response.to_s).to eq "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Response>\n"\
13
+ "<Message>hello from a SignalWire SMS</Message>\n</Response>\n"
14
+ end
15
+ end
16
+ end
17
+
18
+
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: signalwire
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.rc1
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - SignalWire Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-21 00:00:00.000000000 Z
11
+ date: 2018-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: twilio-ruby
@@ -162,6 +162,7 @@ files:
162
162
  - ".rspec"
163
163
  - ".rubocop.yml"
164
164
  - AUTHORS.md
165
+ - Dockerfile
165
166
  - Gemfile
166
167
  - Gemfile.lock
167
168
  - Guardfile
@@ -174,11 +175,13 @@ files:
174
175
  - lib/signalwire/sdk.rb
175
176
  - lib/signalwire/sdk/configuration.rb
176
177
  - lib/signalwire/sdk/domain.rb
178
+ - lib/signalwire/sdk/messaging_response.rb
177
179
  - lib/signalwire/sdk/twilio_set_host.rb
178
180
  - lib/signalwire/sdk/voice_response.rb
179
181
  - signalwire.gemspec
180
182
  - spec/signalwire/rest/client_spec.rb
181
183
  - spec/signalwire/sdk/configuration_spec.rb
184
+ - spec/signalwire/sdk/messaging_response_spec.rb
182
185
  - spec/signalwire/sdk/voice_response_spec.rb
183
186
  - spec/signalwire/sdk_spec.rb
184
187
  - spec/spec_helper.rb
@@ -197,9 +200,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
197
200
  version: '0'
198
201
  required_rubygems_version: !ruby/object:Gem::Requirement
199
202
  requirements:
200
- - - ">"
203
+ - - ">="
201
204
  - !ruby/object:Gem::Version
202
- version: 1.3.1
205
+ version: '0'
203
206
  requirements: []
204
207
  rubyforge_project:
205
208
  rubygems_version: 2.7.3