sms_aero 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 11a7f4bcfe9374590b97682e24add8d2a61ff4f1
4
- data.tar.gz: f16f9215a7b84ab1a0906af3515be48461022012
3
+ metadata.gz: 5b52fc948890d3313610388be5e1757e77212476
4
+ data.tar.gz: 26936444af10df3a81997e8b78acbb18a8c480a7
5
5
  SHA512:
6
- metadata.gz: aad6a6ba533cc42e810959fe7819f6c4d5b5f3d9b7c212b487ed5807007a27fce2d50d7a20433b334be9173b59db753f2737f3fa1ae6f7471a6f2c39c6ba74da
7
- data.tar.gz: 16f5ee1c830ba19bcfa9b7879caeb83c1b798f711428dc97834906eba4bb7931385d6597a442046a472fe80ceb4d9bb2470c730379c1d7b4c244d67fdf08f394
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.8...v0.0.10
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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |gem|
2
2
  gem.name = "sms_aero"
3
- gem.version = "0.0.10"
3
+ gem.version = "0.0.11"
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"
@@ -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.10
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-03 00:00:00.000000000 Z
11
+ date: 2017-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-types