tms_client 0.0.2 → 0.0.3

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.
data/README.md CHANGED
@@ -2,6 +2,18 @@ TMS Client
2
2
  ===========
3
3
  This is a ruby client to interact with the GovDelivery TMS REST API.
4
4
 
5
+ Installation
6
+ ------------
7
+ ### Using Bundler
8
+ ``` ruby
9
+ gem 'tms_client'
10
+ ```
11
+
12
+ ### Standalone
13
+ ```
14
+ $ gem install tms_client
15
+ ```
16
+
5
17
 
6
18
  Usage
7
19
  -----
@@ -120,6 +132,10 @@ client = TMS::Client.new('username', 'password', :logger => logger)
120
132
 
121
133
  ```
122
134
 
135
+ Compatibility
136
+ -------------
137
+ This project is tested and compatible with REE 1.8.7 and MRI 1.9.3.
138
+
123
139
  License
124
140
  -------
125
141
  Copyright (c) 2013, GovDelivery, Inc.
@@ -31,7 +31,7 @@ class TMS::Keywords
31
31
  include TMS::CollectionResource
32
32
  end
33
33
 
34
- class TMS::InboundMessages
34
+ class TMS::InboundSmsMessages
35
35
  include TMS::CollectionResource
36
36
  end
37
37
 
@@ -46,4 +46,4 @@ end
46
46
  # client.command_types.collection.each {|at| ... }
47
47
  class TMS::CommandTypes
48
48
  include TMS::CollectionResource
49
- end
49
+ end
@@ -1,7 +1,7 @@
1
1
  module TMS #:nodoc:
2
- class InboundMessage
2
+ class InboundSmsMessage
3
3
  include InstanceResource
4
4
 
5
5
  readonly_attributes :created_at, :completed_at, :from, :body, :to
6
6
  end
7
- end
7
+ end
@@ -1,3 +1,3 @@
1
1
  module TMS #:nodoc:
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
data/lib/tms_client.rb CHANGED
@@ -22,7 +22,7 @@ require 'tms_client/resource/recipient'
22
22
  require 'tms_client/resource/email_recipient'
23
23
  require 'tms_client/resource/sms_message'
24
24
  require 'tms_client/resource/voice_message'
25
- require 'tms_client/resource/inbound_message'
25
+ require 'tms_client/resource/inbound_sms_message'
26
26
  require 'tms_client/resource/command_type'
27
27
  require 'tms_client/resource/command'
28
28
  require 'tms_client/resource/commands'
@@ -1,12 +1,12 @@
1
1
  require 'spec_helper'
2
2
 
3
- describe TMS::InboundMessages do
3
+ describe TMS::InboundSmsMessages do
4
4
  context "creating a new inbound messages list" do
5
5
  let(:client) do
6
6
  double('client')
7
7
  end
8
8
  before do
9
- @messages = TMS::InboundMessages.new(client, '/inbound_messages')
9
+ @messages = TMS::InboundSmsMessages.new(client, '/inbound_sms_messages')
10
10
  end
11
11
  it 'should GET itself' do
12
12
  body = [{:body=>"HELP", :from=>"+16125551212", :created_at=>"a while ago", :to=>"(651) 433-6258"}, {:body=>"STOP", :from=>"+16125551212", :created_at=>"a while ago", :to=>"(651) 433-6258"}]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tms_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-15 00:00:00.000000000 Z
12
+ date: 2013-01-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: faraday
@@ -148,7 +148,7 @@ files:
148
148
  - lib/tms_client/resource/commands.rb
149
149
  - lib/tms_client/resource/email.rb
150
150
  - lib/tms_client/resource/email_recipient.rb
151
- - lib/tms_client/resource/inbound_message.rb
151
+ - lib/tms_client/resource/inbound_sms_message.rb
152
152
  - lib/tms_client/resource/keyword.rb
153
153
  - lib/tms_client/resource/recipient.rb
154
154
  - lib/tms_client/resource/sms_message.rb
@@ -159,7 +159,7 @@ files:
159
159
  - lib/tms_client.rb
160
160
  - spec/client_spec.rb
161
161
  - spec/command_types_spec.rb
162
- - spec/inbound_messages_spec.rb
162
+ - spec/inbound_sms_messages_spec.rb
163
163
  - spec/keyword_spec.rb
164
164
  - spec/keywords_spec.rb
165
165
  - spec/message_spec.rb
@@ -178,18 +178,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
178
178
  - - ! '>='
179
179
  - !ruby/object:Gem::Version
180
180
  version: '0'
181
- segments:
182
- - 0
183
- hash: 335366191
184
181
  required_rubygems_version: !ruby/object:Gem::Requirement
185
182
  none: false
186
183
  requirements:
187
184
  - - ! '>='
188
185
  - !ruby/object:Gem::Version
189
186
  version: '0'
190
- segments:
191
- - 0
192
- hash: 335366191
193
187
  requirements: []
194
188
  rubyforge_project:
195
189
  rubygems_version: 1.8.24
@@ -199,7 +193,7 @@ summary: A ruby client to interact with the GovDelivery TMS REST API.
199
193
  test_files:
200
194
  - spec/client_spec.rb
201
195
  - spec/command_types_spec.rb
202
- - spec/inbound_messages_spec.rb
196
+ - spec/inbound_sms_messages_spec.rb
203
197
  - spec/keyword_spec.rb
204
198
  - spec/keywords_spec.rb
205
199
  - spec/message_spec.rb