sms_aero 0.0.10 → 0.0.11
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 +4 -4
- data/CHANGELOG.md +7 -2
- data/lib/sms_aero/operations/hlr.rb +4 -0
- data/sms_aero.gemspec +1 -1
- data/spec/sms_aero/operations/hlr_spec.rb +8 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5b52fc948890d3313610388be5e1757e77212476
|
4
|
+
data.tar.gz: 26936444af10df3a81997e8b78acbb18a8c480a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69ee02b04df901f37a568abf8debc38ca4ac3ad0fc3587a255866d85bd328a75e9e4b359445c209809084447cacfe3dedbbed39fd1421eec84af880b901c778d
|
7
|
+
data.tar.gz: d90ab49c4c46fc3e8e40a2f8d9b0ed90be2017a21fe7bf30b5d7dcf03c171a5ba0437012fedbf5371874420cd6e1f8522124fd0ee58027746a643bb510114706
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
|
|
4
4
|
The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
5
5
|
and this project adheres to [Semantic Versioning](http://semver.org/).
|
6
6
|
|
7
|
+
## [0.0.11] - [2017-12-19]
|
8
|
+
|
9
|
+
### Added
|
10
|
+
- Always add #success to response from #hlr (@Earendil95)
|
11
|
+
|
7
12
|
## [0.0.10] - [2017-12-03]
|
8
13
|
|
9
14
|
### Added
|
@@ -24,5 +29,5 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
|
24
29
|
[dry-types]: https://github.com/dry-rb/dry-types
|
25
30
|
[0.0.8]: https://github.com/nepalez/sms_aero/compare/v0.0.7...v0.0.8
|
26
31
|
[0.0.9]: https://github.com/nepalez/sms_aero/compare/v0.0.8...v0.0.9
|
27
|
-
[0.0.10]: https://github.com/nepalez/sms_aero/compare/v0.0.
|
28
|
-
|
32
|
+
[0.0.10]: https://github.com/nepalez/sms_aero/compare/v0.0.9...v0.0.10
|
33
|
+
[0.0.11]: https://github.com/nepalez/sms_aero/compare/v0.0.10...v0.0.11
|
@@ -16,6 +16,10 @@ class SmsAero
|
|
16
16
|
attribute :id, proc(&:to_s)
|
17
17
|
attribute :success, default: proc { id != "" }
|
18
18
|
end
|
19
|
+
|
20
|
+
response :failure, 200, format: :json, model: Answer do
|
21
|
+
attribute :success, default: proc { false }
|
22
|
+
end
|
19
23
|
end
|
20
24
|
|
21
25
|
operation :hlr_status do
|
data/sms_aero.gemspec
CHANGED
@@ -40,6 +40,14 @@ describe SmsAero do
|
|
40
40
|
expect { subject }.to raise_error(ArgumentError)
|
41
41
|
end
|
42
42
|
end
|
43
|
+
|
44
|
+
context "when rejected" do
|
45
|
+
let(:answer) { { result: "rejected" } }
|
46
|
+
|
47
|
+
it "has success false" do
|
48
|
+
expect(subject.success).to be_falsey
|
49
|
+
end
|
50
|
+
end
|
43
51
|
end
|
44
52
|
|
45
53
|
describe "#hlr_status" do
|
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.0.
|
4
|
+
version: 0.0.11
|
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-
|
11
|
+
date: 2017-12-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-types
|