sms_aero 0.1.2 → 0.1.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ee41b1be5aeaa61ce83c74ca4e3605d45f981c4e
4
- data.tar.gz: bfd499ee848d4ed0848c80d5bd0920055518c9d6
3
+ metadata.gz: 0f84a82915f090c625d64126b0fad70a3f6a3fce
4
+ data.tar.gz: 78513f3ea714029ca398e3a3cdc1b811614a8ef6
5
5
  SHA512:
6
- metadata.gz: 8bb5adc819ed5576a3df4de08db3e9f72376c1446dfa53b6eb70fc5f14bf1363cf4a23043670d185511a9e997c01638f97fd4a2f1f94e28c8c8fb0711ad279d9
7
- data.tar.gz: e72f8ea396e6c79fcead9a9232081976a67e38f579db861cb0e9a59fe62ee53746dc13e812acabaea196344e195d17b82af2f13369f730e12c7c2d9c2969b95b
6
+ metadata.gz: be015d7d74874431cf49ae7baf123cb20df0a12f17993cde6e839d21ad819a5c31d6dce9aa6ea6068b10583c70a89dccf3e222cebd2d53eb60ab43782341eeb6
7
+ data.tar.gz: 29602ab530dbdefa47917c2dd879d63aa3af356d619ea21a3e8d3d0567473283e80c2c202d5305c752523d0999827c706704fc47b20b840e7186b45c4d30ab57
@@ -5,10 +5,17 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](http://keepachangelog.com/)
6
6
  and this project adheres to [Semantic Versioning](http://semver.org/).
7
7
 
8
+ ## [0.1.3] - [2018-01-05]
9
+
10
+ ### Changed
11
+ - update dependency from [evil-client] to v3.0+ (nepalez)
12
+
13
+ The gem doesn't raise `Evil::Client::ValidationError` any more. Instead, the origin `StandardError` exceptions are risen.
14
+
8
15
  ## [0.1.2] - [2017-12-03]
9
16
 
10
17
  ### Added
11
- - checking existance & availability of phone number using methods `#hlr` and `#hlr_status id` (@Earendil95)
18
+ - checking existance & availability of phone number using methods `#hlr` and `#hlr_status id` (Earendil95)
12
19
 
13
20
  ## [0.1.1] - [2017-09-02]
14
21
 
@@ -35,12 +42,12 @@ Some changes in the interface has been made as well.
35
42
  ## [0.0.9] - [2017-06-23]
36
43
 
37
44
  ### Fixed
38
- - Always add `#success` to answers to `#send_sms` (@nepalez)
45
+ - Always add `#success` to answers to `#send_sms` (nepalez)
39
46
 
40
47
  ## [0.0.8] - [2017-06-23]
41
48
 
42
49
  ### Added
43
- - Weakened dependency from [dry-types], allowing v0.0.9 (@nepalez)
50
+ - Weakened dependency from [dry-types], allowing v0.0.9 (nepalez)
44
51
 
45
52
  [evil-client]: https://github.com/evilmartians/evil-client
46
53
  [dry-types]: https://github.com/dry-rb/dry-types
@@ -48,4 +55,5 @@ Some changes in the interface has been made as well.
48
55
  [0.0.9]: https://github.com/nepalez/sms_aero/compare/v0.0.8...v0.0.9
49
56
  [0.1.0]: https://github.com/nepalez/sms_aero/compare/v0.0.9...v0.1.0
50
57
  [0.1.1]: https://github.com/nepalez/sms_aero/compare/v0.1.0...v0.1.1
51
- [0.1.2]: https://github.com/nepalez/sms_aero/compare/v0.1.0...v0.1.2
58
+ [0.1.2]: https://github.com/nepalez/sms_aero/compare/v0.1.1...v0.1.2
59
+ [0.1.3]: https://github.com/nepalez/sms_aero/compare/v0.1.2...v0.1.3
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |gem|
2
2
  gem.name = "sms_aero"
3
- gem.version = "0.1.2"
3
+ gem.version = "0.1.3"
4
4
  gem.author = "Andrew Kozin (nepalez)"
5
5
  gem.email = "andrew.kozin@gmail.com"
6
6
  gem.homepage = "https://github.com/nepalez/sms_aero"
@@ -13,7 +13,7 @@ Gem::Specification.new do |gem|
13
13
 
14
14
  gem.required_ruby_version = ">= 2.2"
15
15
 
16
- gem.add_runtime_dependency "evil-client", "~> 2.0"
16
+ gem.add_runtime_dependency "evil-client", "~> 3.0"
17
17
 
18
18
  gem.add_development_dependency "rake", ">= 10"
19
19
  gem.add_development_dependency "rspec", "~> 3.0"
@@ -81,7 +81,7 @@ RSpec.describe SmsAero, "#add_blacklist" do
81
81
  before { params[:phone] = "foobar23" }
82
82
 
83
83
  it "raises an exception" do
84
- expect { subject }.to raise_error(Evil::Client::ValidationError, /23/)
84
+ expect { subject }.to raise_error(StandardError, /23/)
85
85
  end
86
86
  end
87
87
 
@@ -89,7 +89,7 @@ RSpec.describe SmsAero, "#add_blacklist" do
89
89
  before { params.delete :phone }
90
90
 
91
91
  it "raises an exception" do
92
- expect { subject }.to raise_error(Evil::Client::ValidationError, /phone/)
92
+ expect { subject }.to raise_error(StandardError, /phone/)
93
93
  end
94
94
  end
95
95
  end
@@ -65,7 +65,7 @@ RSpec.describe SmsAero, "#add_group" do
65
65
  before { params[:group] = "" }
66
66
 
67
67
  it "raises an exception" do
68
- expect { subject }.to raise_error(Evil::Client::ValidationError)
68
+ expect { subject }.to raise_error(StandardError)
69
69
  end
70
70
  end
71
71
 
@@ -73,7 +73,7 @@ RSpec.describe SmsAero, "#add_group" do
73
73
  before { params.delete :group }
74
74
 
75
75
  it "raises an exception" do
76
- expect { subject }.to raise_error(Evil::Client::ValidationError, /group/)
76
+ expect { subject }.to raise_error(StandardError, /group/)
77
77
  end
78
78
  end
79
79
  end
@@ -56,7 +56,7 @@ RSpec.describe SmsAero, "#add_phone" do
56
56
  before { params[:phone] = "1324" }
57
57
 
58
58
  it "raises an exception" do
59
- expect { subject }.to raise_error(Evil::Client::ValidationError, /1324/)
59
+ expect { subject }.to raise_error(StandardError, /1324/)
60
60
  end
61
61
  end
62
62
 
@@ -64,7 +64,7 @@ RSpec.describe SmsAero, "#add_phone" do
64
64
  before { params.delete :phone }
65
65
 
66
66
  it "raises an exception" do
67
- expect { subject }.to raise_error(Evil::Client::ValidationError)
67
+ expect { subject }.to raise_error(StandardError)
68
68
  end
69
69
  end
70
70
 
@@ -128,7 +128,7 @@ RSpec.describe SmsAero, "#add_phone" do
128
128
  before { params[:group] = "" }
129
129
 
130
130
  it "raises an exception" do
131
- expect { subject }.to raise_error(Evil::Client::ValidationError)
131
+ expect { subject }.to raise_error(StandardError)
132
132
  end
133
133
  end
134
134
 
@@ -192,7 +192,7 @@ RSpec.describe SmsAero, "#add_phone" do
192
192
  before { params[:bday] = "foo" }
193
193
 
194
194
  it "raises an exception" do
195
- expect { subject }.to raise_error(Evil::Client::ValidationError, /foo/)
195
+ expect { subject }.to raise_error(StandardError, /foo/)
196
196
  end
197
197
  end
198
198
  end
@@ -65,7 +65,7 @@ RSpec.describe SmsAero, "#check_senders" do
65
65
  before { params[:sign] = "" }
66
66
 
67
67
  it "raises an exception" do
68
- expect { subject }.to raise_error(Evil::Client::ValidationError)
68
+ expect { subject }.to raise_error(StandardError)
69
69
  end
70
70
  end
71
71
 
@@ -73,7 +73,7 @@ RSpec.describe SmsAero, "#check_senders" do
73
73
  before { params.delete :sign }
74
74
 
75
75
  it "raises an exception" do
76
- expect { subject }.to raise_error(Evil::Client::ValidationError)
76
+ expect { subject }.to raise_error(StandardError)
77
77
  end
78
78
  end
79
79
 
@@ -65,7 +65,7 @@ RSpec.describe SmsAero, "#check_sending" do
65
65
  before { params[:id] = "" }
66
66
 
67
67
  it "raises an exception" do
68
- expect { subject }.to raise_error(Evil::Client::ValidationError)
68
+ expect { subject }.to raise_error(StandardError)
69
69
  end
70
70
  end
71
71
 
@@ -73,7 +73,7 @@ RSpec.describe SmsAero, "#check_sending" do
73
73
  before { params.delete :id }
74
74
 
75
75
  it "raises an exception" do
76
- expect { subject }.to raise_error(Evil::Client::ValidationError)
76
+ expect { subject }.to raise_error(StandardError)
77
77
  end
78
78
  end
79
79
  end
@@ -64,7 +64,7 @@ RSpec.describe SmsAero, "#check_sign" do
64
64
  before { params[:sign] = "" }
65
65
 
66
66
  it "raises an exception" do
67
- expect { subject }.to raise_error(Evil::Client::ValidationError)
67
+ expect { subject }.to raise_error(StandardError)
68
68
  end
69
69
  end
70
70
 
@@ -72,7 +72,7 @@ RSpec.describe SmsAero, "#check_sign" do
72
72
  before { params.delete :sign }
73
73
 
74
74
  it "raises an exception" do
75
- expect { subject }.to raise_error(Evil::Client::ValidationError)
75
+ expect { subject }.to raise_error(StandardError)
76
76
  end
77
77
  end
78
78
  end
@@ -65,7 +65,7 @@ RSpec.describe SmsAero, "#check_status" do
65
65
  before { params[:id] = "" }
66
66
 
67
67
  it "raises an exception" do
68
- expect { subject }.to raise_error(Evil::Client::ValidationError)
68
+ expect { subject }.to raise_error(StandardError)
69
69
  end
70
70
  end
71
71
 
@@ -73,7 +73,7 @@ RSpec.describe SmsAero, "#check_status" do
73
73
  before { params.delete :id }
74
74
 
75
75
  it "raises an exception" do
76
- expect { subject }.to raise_error(Evil::Client::ValidationError)
76
+ expect { subject }.to raise_error(StandardError)
77
77
  end
78
78
  end
79
79
  end
@@ -65,7 +65,7 @@ RSpec.describe SmsAero, "#delete_group" do
65
65
  before { params[:group] = "" }
66
66
 
67
67
  it "raises an exception" do
68
- expect { subject }.to raise_error(Evil::Client::ValidationError)
68
+ expect { subject }.to raise_error(StandardError)
69
69
  end
70
70
  end
71
71
 
@@ -73,7 +73,7 @@ RSpec.describe SmsAero, "#delete_group" do
73
73
  before { params.delete :group }
74
74
 
75
75
  it "raises an exception" do
76
- expect { subject }.to raise_error(Evil::Client::ValidationError)
76
+ expect { subject }.to raise_error(StandardError)
77
77
  end
78
78
  end
79
79
  end
@@ -85,7 +85,7 @@ RSpec.describe SmsAero, "#delete_phone" do
85
85
  before { params[:group] = "" }
86
86
 
87
87
  it "raises an exception" do
88
- expect { subject }.to raise_error(Evil::Client::ValidationError)
88
+ expect { subject }.to raise_error(StandardError)
89
89
  end
90
90
  end
91
91
 
@@ -93,7 +93,7 @@ RSpec.describe SmsAero, "#delete_phone" do
93
93
  before { params[:phone] = "234" }
94
94
 
95
95
  it "raises an exception" do
96
- expect { subject }.to raise_error(Evil::Client::ValidationError, /234/)
96
+ expect { subject }.to raise_error(StandardError, /234/)
97
97
  end
98
98
  end
99
99
 
@@ -101,7 +101,7 @@ RSpec.describe SmsAero, "#delete_phone" do
101
101
  before { params.delete :phone }
102
102
 
103
103
  it "raises an exception" do
104
- expect { subject }.to raise_error(Evil::Client::ValidationError, /phone/)
104
+ expect { subject }.to raise_error(StandardError, /phone/)
105
105
  end
106
106
  end
107
107
  end
@@ -28,7 +28,7 @@ describe SmsAero do
28
28
  let(:params) { { phone: "123" } }
29
29
 
30
30
  it "raises an exception" do
31
- expect { subject }.to raise_error(Evil::Client::ValidationError, /123/)
31
+ expect { subject }.to raise_error(StandardError, /123/)
32
32
  end
33
33
  end
34
34
 
@@ -36,7 +36,7 @@ describe SmsAero do
36
36
  let(:params) { {} }
37
37
 
38
38
  it "raises an exception" do
39
- expect { subject }.to raise_error(ArgumentError)
39
+ expect { subject }.to raise_error(StandardError)
40
40
  end
41
41
  end
42
42
  end
@@ -107,7 +107,7 @@ RSpec.describe SmsAero, "#send_sms" do
107
107
  before { params[:to] = "1324" }
108
108
 
109
109
  it "raises an exception" do
110
- expect { subject }.to raise_error(Evil::Client::ValidationError, /1324/)
110
+ expect { subject }.to raise_error(StandardError, /1324/)
111
111
  end
112
112
  end
113
113
 
@@ -115,7 +115,7 @@ RSpec.describe SmsAero, "#send_sms" do
115
115
  before { params.delete :to }
116
116
 
117
117
  it "raises an exception" do
118
- expect { subject }.to raise_error(Evil::Client::ValidationError)
118
+ expect { subject }.to raise_error(StandardError)
119
119
  end
120
120
  end
121
121
 
@@ -124,7 +124,7 @@ RSpec.describe SmsAero, "#send_sms" do
124
124
  before { params.delete :to }
125
125
 
126
126
  it "raises an exception" do
127
- expect { subject }.to raise_error(Evil::Client::ValidationError)
127
+ expect { subject }.to raise_error(StandardError)
128
128
  end
129
129
  end
130
130
 
@@ -132,7 +132,7 @@ RSpec.describe SmsAero, "#send_sms" do
132
132
  before { params[:group] = "readers" }
133
133
 
134
134
  it "raises an exception" do
135
- expect { subject }.to raise_error(Evil::Client::ValidationError)
135
+ expect { subject }.to raise_error(StandardError)
136
136
  end
137
137
  end
138
138
 
@@ -161,7 +161,7 @@ RSpec.describe SmsAero, "#send_sms" do
161
161
  before { params[:date] = (Date.today - 1) }
162
162
 
163
163
  it "raises an exception" do
164
- expect { subject }.to raise_error(Evil::Client::ValidationError)
164
+ expect { subject }.to raise_error(StandardError)
165
165
  end
166
166
  end
167
167
 
@@ -169,7 +169,7 @@ RSpec.describe SmsAero, "#send_sms" do
169
169
  before { params[:date] = "foo" }
170
170
 
171
171
  it "raises an exception" do
172
- expect { subject }.to raise_error(Evil::Client::ValidationError, /foo/)
172
+ expect { subject }.to raise_error(StandardError, /foo/)
173
173
  end
174
174
  end
175
175
 
@@ -217,7 +217,7 @@ RSpec.describe SmsAero, "#send_sms" do
217
217
  before { params[:type] = 11 }
218
218
 
219
219
  it "raises an exception" do
220
- expect { subject }.to raise_error(Evil::Client::ValidationError, /11/)
220
+ expect { subject }.to raise_error(StandardError, /11/)
221
221
  end
222
222
  end
223
223
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sms_aero
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kozin (nepalez)
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-03 00:00:00.000000000 Z
11
+ date: 2018-01-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: evil-client
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '2.0'
19
+ version: '3.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '2.0'
26
+ version: '3.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement