tms_client 0.5.4 → 0.6.0

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: 02afad05a776d7326b6573004c848150c0f388c8
4
- data.tar.gz: 45c99c89f356a0842fbd80f18df3ecf21b688d0d
3
+ metadata.gz: 8cc9321227b08d55b275c0ed917d46f8166d3f59
4
+ data.tar.gz: 6ecbb961d727f5b467850ed3083183c6b6541164
5
5
  SHA512:
6
- metadata.gz: bb4937fc8493d31a08feecf5f3f0dab9df3b0636b8a16a550c27aaf764ee455de667dc5da02fad2ffea0cc0b1687509b6ebf0a8382eee7622e9ae49cb1459403
7
- data.tar.gz: cc6e3ccba576297991870a2b7ab093f382ada809e71d9acb106d3559f7cd60fc946ca13dde1a1466e67507bcca47b11e7a0bb3858f83b6682cfcd64c82e0ccea
6
+ metadata.gz: 3c48c6e4aab5cac8171fbd848c3f3c575532c153bc7b4deeeb826ee243a72ccbe004b8ef4b69446fb28a7bba2ea8d987108bbb5193e0db92387fa70da590727f
7
+ data.tar.gz: 45624ff8090a8a4d577b22ee2772757a08624bd7c5c60f3df7160a8e99e2904f3fdc1661f8b484d3d5e4fffc5d69b9dcec4495ec48b0f5ce4269d8e4761fe1f3
data/Rakefile CHANGED
@@ -1,5 +1,6 @@
1
1
  require "rubygems"
2
2
  require "bundler/setup"
3
+ require "bundler/gem_tasks"
3
4
  require 'rspec/core/rake_task'
4
5
  unless defined?(JRUBY_VERSION)
5
6
  require 'rubygems/tasks'
@@ -15,11 +16,5 @@ end
15
16
  RSpec::Core::RakeTask.new(:spec)
16
17
 
17
18
 
18
- desc "Run spec with all supported versions of active support"
19
- task :compatibility_spec do
20
- [2, 3, 4].each do |n|
21
- puts `ACTIVE_SUPPORT_VERSION='~> #{n}' bundle ; rake spec`
22
- end
23
- end
19
+ task :default => :spec
24
20
 
25
- task :default => :spec
@@ -6,7 +6,7 @@ class TMS::Client
6
6
 
7
7
  attr_accessor :connection, :href, :api_root, :logger
8
8
 
9
- DEFAULTS = {:api_root => 'http://localhost:3000', :logger => nil}.freeze
9
+ DEFAULTS = {:api_root => 'https://tms.govdelivery.com', :logger => nil}.freeze
10
10
 
11
11
  # Create a new client and issue a request for the available resources for a given account.
12
12
  #
@@ -17,8 +17,8 @@ module TMS #:nodoc:
17
17
  # @!parse attr_accessor :email, :macros
18
18
  writeable_attributes :email, :macros
19
19
 
20
- # @!parse attr_reader :completed_at
21
- readonly_attributes :completed_at
20
+ # @!parse attr_reader :completed_at, :status, :error_message
21
+ readonly_attributes :completed_at, :status, :error_message
22
22
 
23
23
  ##
24
24
  # A CollectionResource of EmailRecipientOpens for this EmailRecipient
@@ -16,7 +16,7 @@ module TMS #:nodoc:
16
16
  include InstanceResource
17
17
 
18
18
  # @!parse attr_accessor :play_url, :play_url
19
- writeable_attributes :play_url, :say_text
19
+ writeable_attributes :play_url, :say_text, :from_number
20
20
 
21
21
  # @!parse attr_reader :created_at, :completed_at, :status
22
22
  readonly_attributes :created_at, :completed_at, :status
@@ -1,3 +1,3 @@
1
1
  module TMS #:nodoc:
2
- VERSION = "0.5.4"
2
+ VERSION = "0.6.0"
3
3
  end
@@ -33,5 +33,9 @@ describe TMS::Client do
33
33
  its(:logger){ should be_falsey }
34
34
  its(:horse) { should be_kind_of(TMS::Horse) }
35
35
  end
36
+
37
+ it 'defaults to the public API URL' do
38
+ expect(TMS::Client.new('auth_token').api_root).to eq('https://tms.govdelivery.com')
39
+ end
36
40
  end
37
41
  end
metadata CHANGED
@@ -1,60 +1,60 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tms_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.4
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GovDelivery
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-04 00:00:00.000000000 Z
11
+ date: 2015-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
15
- requirement: !ruby/object:Gem::Requirement
15
+ version_requirements: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
20
+ requirement: !ruby/object:Gem::Requirement
23
21
  requirements:
24
22
  - - '>='
25
23
  - !ruby/object:Gem::Version
26
24
  version: '0'
25
+ prerelease: false
26
+ type: :runtime
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: faraday
29
- requirement: !ruby/object:Gem::Requirement
29
+ version_requirements: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '>='
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
34
+ requirement: !ruby/object:Gem::Requirement
37
35
  requirements:
38
36
  - - '>='
39
37
  - !ruby/object:Gem::Version
40
38
  version: '0'
39
+ prerelease: false
40
+ type: :runtime
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: faraday_middleware
43
- requirement: !ruby/object:Gem::Requirement
43
+ version_requirements: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - '>='
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
- type: :runtime
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
48
+ requirement: !ruby/object:Gem::Requirement
51
49
  requirements:
52
50
  - - '>='
53
51
  - !ruby/object:Gem::Version
54
52
  version: '0'
55
- description: "A reference implementation, written in Ruby,\n to
56
- interact with GovDelivery's TMS API. The client is\n compatible
57
- with Ruby 1.9 and 2.0. "
53
+ prerelease: false
54
+ type: :runtime
55
+ description: "A reference implementation, written in Ruby,\n to\
56
+ \ interact with GovDelivery's TMS API. The client is\n compatible\
57
+ \ with Ruby 1.9 and 2.0. "
58
58
  email:
59
59
  - support@govdelivery.com
60
60
  executables: []
@@ -65,6 +65,7 @@ files:
65
65
  - README.md
66
66
  - Rakefile
67
67
  - tms_client.gemspec
68
+ - lib/tms_client.rb
68
69
  - lib/tms_client/base.rb
69
70
  - lib/tms_client/client.rb
70
71
  - lib/tms_client/collection_resource.rb
@@ -73,6 +74,7 @@ files:
73
74
  - lib/tms_client/instance_resource.rb
74
75
  - lib/tms_client/link_header.rb
75
76
  - lib/tms_client/logger.rb
77
+ - lib/tms_client/version.rb
76
78
  - lib/tms_client/mail/delivery_method.rb
77
79
  - lib/tms_client/resource/collections.rb
78
80
  - lib/tms_client/resource/command.rb
@@ -100,8 +102,6 @@ files:
100
102
  - lib/tms_client/resource/webhook.rb
101
103
  - lib/tms_client/util/core_ext.rb
102
104
  - lib/tms_client/util/hal_link_parser.rb
103
- - lib/tms_client/version.rb
104
- - lib/tms_client.rb
105
105
  - spec/client_spec.rb
106
106
  - spec/command_types_spec.rb
107
107
  - spec/email_message_spec.rb
@@ -126,7 +126,7 @@ files:
126
126
  homepage: http://govdelivery.com
127
127
  licenses: []
128
128
  metadata: {}
129
- post_install_message:
129
+ post_install_message:
130
130
  rdoc_options: []
131
131
  require_paths:
132
132
  - lib
@@ -141,9 +141,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
141
141
  - !ruby/object:Gem::Version
142
142
  version: '0'
143
143
  requirements: []
144
- rubyforge_project:
145
- rubygems_version: 2.0.14
146
- signing_key:
144
+ rubyforge_project:
145
+ rubygems_version: 2.1.9
146
+ signing_key:
147
147
  specification_version: 4
148
148
  summary: A ruby client to interact with the GovDelivery TMS REST API.
149
149
  test_files:
@@ -168,3 +168,4 @@ test_files:
168
168
  - spec/tms_client_spec.rb
169
169
  - spec/voice_message_spec.rb
170
170
  - spec/voice_messages_spec.rb
171
+ has_rdoc: