clockworksms 1.1.0 → 1.2.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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 450e85fc680bce613a59f96008cceead7f67c156
4
+ data.tar.gz: c36c1c47426c39f47adcbe707de3513efc01b777
5
+ SHA512:
6
+ metadata.gz: 91f9d8fcedd15f1eeca4568aee53e9f3489bc1fba9955f1f513d8b91a4fdc3d5cde23680e35b92a3a8f0e02324612b46e85e7868a273d4924cede635b5538516
7
+ data.tar.gz: f672c7dab613a575879122867ae6e31d805c60d5d4d4091aba3e1eec41869d2f6b2a180fb5d4d05d426d8306cc4242984da20cdcf3cd63404eeb33d49bbd5c0e
data/Gemfile CHANGED
@@ -1,9 +1,8 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem 'nokogiri'
4
3
  gem 'faraday'
5
4
 
6
5
  group :development do
7
6
  gem 'rake'
8
7
  gem 'rspec'
9
- end
8
+ end
data/LICENSE CHANGED
@@ -1,13 +1,19 @@
1
1
  Copyright (C) 2012, Mediaburst Limited <hello@mediaburst.co.uk>
2
2
 
3
- Permission to use, copy, modify, and/or distribute this software for any
4
- purpose with or without fee is hereby granted, provided that the above
5
- copyright notice and this permission notice appear in all copies.
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
6
9
 
7
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
8
- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
9
- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
10
- ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
11
- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
12
- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
13
- OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE
10
+ The above copyright notice and this permission notice shall be included in
11
+ all copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
+ THE SOFTWARE.
data/README.md CHANGED
@@ -86,7 +86,7 @@ You should not use the `Clockwork::Message#deliver` method for each message, but
86
86
 
87
87
  ## License
88
88
 
89
- This project is licensed under the ISC open-source license.
89
+ This project is licensed under the MIT open-source license.
90
90
 
91
91
  A copy of this license can be found in LICENSE.
92
92
 
@@ -99,6 +99,8 @@ The project is hosted on GitHub at [http://www.github.com/mediaburst/clockwork-r
99
99
  If you would like to contribute a bug fix or improvement please fork the project
100
100
  and submit a pull request. Please add RSpec tests for your use case.
101
101
 
102
+ If we don't respond to your bug report or pull request within a few days please email [hello@clockworksms.com][2] or remind [@ClockworkSMS on Twitter][7], we probably haven't spotted the notification.
103
+
102
104
  ### Test Setup
103
105
 
104
106
  First, create a file at spec/spec_authentication_details containing the following:
@@ -115,6 +117,7 @@ Then, run `rspec`.
115
117
  [4]: http://rubydoc.info/github/mediaburst/clockwork-ruby/master/Clockwork/API
116
118
  [5]: http://rubydoc.info/github/mediaburst/clockwork-ruby/master/Clockwork/SMS
117
119
  [6]: http://rubydoc.info/github/mediaburst/clockwork-ruby/master/Clockwork/SMS/Response
120
+ [7]: http://twitter.com/ClockworkSMS
118
121
 
119
122
  ## Changelog
120
123
 
@@ -124,4 +127,8 @@ Then, run `rspec`.
124
127
 
125
128
  ### 1.1.0 (10th September, 2012)
126
129
 
127
- * API#credit is now deprecated: use API#balance instead.
130
+ * API#credit is now deprecated: use API#balance instead.
131
+
132
+ ### 1.2.0 (30th June, 2014)
133
+
134
+ * Compatability fixes for Ruby 1.8, 2.0 and 2.1 (Tested with 1.8.7-p375, 1.9.3-p547, 2.0.0-p481 and 2.1.2)
@@ -2,6 +2,8 @@ lib_dir = File.expand_path(File.dirname(__FILE__))
2
2
  $LOAD_PATH.unshift lib_dir unless $LOAD_PATH.include?(lib_dir)
3
3
 
4
4
  require 'net/http'
5
+ require 'net/https'
6
+ require 'openssl'
5
7
  require 'nokogiri'
6
8
 
7
9
  require 'clockwork/error'
@@ -28,7 +28,7 @@ module Clockwork
28
28
  # @see Clockwork::SMS
29
29
  # Create a new instance of Clockwork::SMS in this MessageCollection.
30
30
  def build params = {}
31
- sms = Clockwork::SMS.new({ api: @api }.merge(params))
31
+ sms = Clockwork::SMS.new({ :api => @api }.merge(params))
32
32
  sms.wrapper_id = @messages.count
33
33
  @messages << sms
34
34
  sms
metadata CHANGED
@@ -1,92 +1,101 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clockworksms
3
3
  version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 1.1.0
4
+ version: 1.2.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Mediaburst
9
- autorequire:
8
+ autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-09-11 00:00:00.000000000 Z
11
+ date: 2014-06-30 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
- name: rake-compiler
14
+ name: nokogiri
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: 1.5.2
20
+ type: :runtime
21
+ prerelease: false
16
22
  version_requirements: !ruby/object:Gem::Requirement
17
23
  requirements:
18
- - - ! '>='
24
+ - - ~>
19
25
  - !ruby/object:Gem::Version
20
- version: '0'
21
- none: false
26
+ version: 1.5.2
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake-compiler
22
29
  requirement: !ruby/object:Gem::Requirement
23
30
  requirements:
24
- - - ! '>='
31
+ - - '>='
25
32
  - !ruby/object:Gem::Version
26
33
  version: '0'
27
- none: false
28
- prerelease: false
29
34
  type: :development
30
- - !ruby/object:Gem::Dependency
31
- name: rspec
35
+ prerelease: false
32
36
  version_requirements: !ruby/object:Gem::Requirement
33
37
  requirements:
34
- - - ! '>='
38
+ - - '>='
35
39
  - !ruby/object:Gem::Version
36
40
  version: '0'
37
- none: false
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
38
43
  requirement: !ruby/object:Gem::Requirement
39
44
  requirements:
40
- - - ! '>='
45
+ - - '>='
41
46
  - !ruby/object:Gem::Version
42
47
  version: '0'
43
- none: false
44
- prerelease: false
45
48
  type: :development
46
- description: Ruby Gem for the Clockwork API. Send text messages with the easy to use SMS API from Mediaburst.
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ description: Ruby Gem for the Clockwork API. Send text messages with the easy to use
56
+ SMS API from Mediaburst.
47
57
  email: hello@mediaburst.co.uk
48
58
  executables: []
49
59
  extensions: []
50
60
  extra_rdoc_files: []
51
61
  files:
52
- - lib/clockwork.rb
53
62
  - lib/clockwork/api.rb
54
63
  - lib/clockwork/error.rb
55
64
  - lib/clockwork/http.rb
56
65
  - lib/clockwork/message_collection.rb
57
- - lib/clockwork/sms.rb
58
66
  - lib/clockwork/sms/response.rb
67
+ - lib/clockwork/sms.rb
59
68
  - lib/clockwork/xml/balance.rb
60
69
  - lib/clockwork/xml/credit.rb
61
70
  - lib/clockwork/xml/sms.rb
62
71
  - lib/clockwork/xml/xml.rb
72
+ - lib/clockwork.rb
63
73
  - Gemfile
64
74
  - Gemfile.lock
65
75
  - LICENSE
66
76
  - README.md
67
77
  homepage: http://www.clockworksms.com/
68
- licenses: []
69
- post_install_message:
78
+ licenses:
79
+ - MIT
80
+ metadata: {}
81
+ post_install_message:
70
82
  rdoc_options: []
71
83
  require_paths:
72
84
  - lib
73
85
  required_ruby_version: !ruby/object:Gem::Requirement
74
86
  requirements:
75
- - - ! '>='
87
+ - - '>='
76
88
  - !ruby/object:Gem::Version
77
89
  version: '0'
78
- none: false
79
90
  required_rubygems_version: !ruby/object:Gem::Requirement
80
91
  requirements:
81
- - - ! '>='
92
+ - - '>='
82
93
  - !ruby/object:Gem::Version
83
94
  version: '0'
84
- none: false
85
95
  requirements: []
86
- rubyforge_project:
87
- rubygems_version: 1.8.24
88
- signing_key:
89
- specification_version: 3
96
+ rubyforge_project:
97
+ rubygems_version: 2.0.14
98
+ signing_key:
99
+ specification_version: 4
90
100
  summary: Ruby Gem for the Clockwork API.
91
101
  test_files: []
92
- ...