my_data 0.11.0 → 0.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/{lint.yml → ci.yml} +1 -1
- data/README.md +4 -0
- data/lib/my_data/response_parser.rb +4 -0
- data/lib/my_data/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb2cad35be5fdc794dc874380295570bffc2ec759f3562624dddd760c67297df
|
4
|
+
data.tar.gz: c8f997327d7dff2b373fb8fcbc9999d32b3de23fe5a0bd96ea5259ed99df4959
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9decd71b32fd0dac092b06c57946ecf8bb708efda14b73488f76d9681a1b0bd33652f88fbefb613fee71d017eb25113345785257104b53f8f7c529ad7936daf6
|
7
|
+
data.tar.gz: b89fb81f146b173c9e811c65605e6d93b18e4da17c22b63033319bb7cac5c0cc066eaedbfd97ec653e7198e63dc0a1a1e505dff1a9bf505a6edb53dd12eb4b3c
|
data/README.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# AADE MyData ruby client
|
2
2
|
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/my_data.svg)](https://rubygems.org/gems/my_data)
|
4
|
+
[![GitHub Actions CI](https://github.com/mikezaby/my_data/actions/workflows/ci.yml/badge.svg)](https://github.com/mikezaby/my_data/actions/workflows/ci.yml)
|
5
|
+
[![Maintainability](https://api.codeclimate.com/v1/badges/7a96aa72dce8a761467d/maintainability)](https://codeclimate.com/github/mikezaby/my_data/maintainability)
|
6
|
+
|
3
7
|
A Ruby client for [AADE myDATA](https://www.aade.gr/mydata) API
|
4
8
|
|
5
9
|
## Installation
|
@@ -24,6 +24,10 @@ class MyData::ResponseParser
|
|
24
24
|
(!response_type? || response.response.all? { |r| r.status_code == "Success" })
|
25
25
|
end
|
26
26
|
|
27
|
+
def responded_at
|
28
|
+
@responded_at ||= Time.parse(original_response.headers["date"])
|
29
|
+
end
|
30
|
+
|
27
31
|
def errors
|
28
32
|
@errors ||=
|
29
33
|
if success?
|
data/lib/my_data/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: my_data
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michalis Zamparas
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-04-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|
@@ -87,7 +87,7 @@ executables: []
|
|
87
87
|
extensions: []
|
88
88
|
extra_rdoc_files: []
|
89
89
|
files:
|
90
|
-
- ".github/workflows/
|
90
|
+
- ".github/workflows/ci.yml"
|
91
91
|
- ".gitignore"
|
92
92
|
- ".rspec"
|
93
93
|
- ".rubocop.yml"
|