ifns 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -21
- data/lib/ifns/responses/base.rb +2 -2
- data/lib/ifns/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 55f86e93ccc4143c39548a82a62b28c5d7638e639d8866252c57eb5b7f613356
|
4
|
+
data.tar.gz: e776c13b645e45d24e6164d72db9b0da67cfec7762c028e99c04284ad5d9aee1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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).
|
data/lib/ifns/responses/base.rb
CHANGED
data/lib/ifns/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2019-09-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|