ifns 0.2.0 → 0.3.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
  SHA256:
3
- metadata.gz: 5bbab3e86ecbe0faa465a2adada0a7edbe3955fa932641f0f2581d1ae6c0de4c
4
- data.tar.gz: 9d390409a0c33dc92bc149407f5eb69272ee437ea0cdbc6083ee5ee4e0d89191
3
+ metadata.gz: 55f86e93ccc4143c39548a82a62b28c5d7638e639d8866252c57eb5b7f613356
4
+ data.tar.gz: e776c13b645e45d24e6164d72db9b0da67cfec7762c028e99c04284ad5d9aee1
5
5
  SHA512:
6
- metadata.gz: ac0fb91059ac2f85017596592f1e812b00b9774753d1feaf17b3dfee285ee2a4609fee9a77c976e13179a267fc61d30813aa613afef25f49273649f67b46f598
7
- data.tar.gz: c20f1982901b722d28e2a55aa83bbe3a6d30dbf3a4462d7a6061283774e5a6a23ca2f882175e8b1df07fcf87f670ee76a8ef3b90ae4db8a57d905f40fbf10073
6
+ metadata.gz: 14217e0fcdd3561ad149be873ebc3af7ca8721e9633cc6864797afa6b3ded43ea345915514150097dadd010ccb9a6f96358a9532e07160adc5f852d0aa03892d
7
+ data.tar.gz: 59c9f92768d4eecaef182850fdab3a03aff19cba82b6dc18153656b0c528584e30eef97c6152aa8ba896b790a72c10a741ae68db129e12a35a346d7e18a8ce81
data/README.md CHANGED
@@ -29,32 +29,15 @@ end
29
29
  ```
30
30
 
31
31
  ```ruby
32
- example_data = { id: 'resource_id', fn: 8710000101674196, fd: 7078, fpd: 1050183412, date: '2019-03-01T12:21:00', sum: 209900,
33
- type_operation: 1}
32
+ example_data = { id: 'resource_id', fn: 8710000101674196, fd: 7078, fpd: 1050183412, date: '2019-03-01T12:21:00', sum: 209900, type_operation: 1}
34
33
  client = ::Ifns::Client.new(example_data)
35
- client.create_validation
36
- # wait 500ms
37
- client.find_validation
38
34
  client.create_ticket
39
- # wait 500ms
35
+ # wait 1500ms
40
36
  client.find_ticket
37
+ # if response status is accepted do loop over 30 seconds and each 2 seconds retry request until you get a different status
38
+ # after loop if you still get accepted try again later
41
39
  ```
42
40
 
43
-
44
- ## Development
45
-
46
- After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
47
-
48
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
49
-
50
- ## Contributing
51
-
52
- Bug reports and pull requests are welcome on GitHub at https://github.com/inshopper/ifns. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
53
-
54
41
  ## License
55
42
 
56
43
  The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
57
-
58
- ## Code of Conduct
59
-
60
- Everyone interacting in the Ifns project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/ifns/blob/master/CODE_OF_CONDUCT.md).
@@ -14,11 +14,11 @@ module Ifns
14
14
  end
15
15
 
16
16
  def invalid?
17
- incorrect_fpd? || incorrect_params? || not_found?
17
+ incorrect_fpd? || incorrect_params?
18
18
  end
19
19
 
20
20
  def retry?
21
- gone? || accepted?
21
+ gone? || accepted? || not_found?
22
22
  end
23
23
 
24
24
  def good?
data/lib/ifns/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ifns
2
- VERSION = '0.2.0'.freeze
2
+ VERSION = '0.3.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ifns
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Novikov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-09-19 00:00:00.000000000 Z
11
+ date: 2019-09-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler