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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 814fcfa84679ce222ac03c704636a1c34c50d9c183735b546b959f077c991280
4
- data.tar.gz: cc31ea5947879d12c9daa455b7d35c5b162db979ce7c4d62f9d95e325fd23475
3
+ metadata.gz: cb2cad35be5fdc794dc874380295570bffc2ec759f3562624dddd760c67297df
4
+ data.tar.gz: c8f997327d7dff2b373fb8fcbc9999d32b3de23fe5a0bd96ea5259ed99df4959
5
5
  SHA512:
6
- metadata.gz: 8cee302af4e849bee2a40c17a51be8eb852a5c8bd4eafcaf5fb81db974ed50a63b5389a77ff1f1cfb724189e4854e4563df02ca7b682a3dba896614ac93c2824
7
- data.tar.gz: 725ed5d2a4e4759bd331b8f1b95daf4b9e41e29778875ce7745f229978291e349b63eab0003e64aaa6c031e3100af0a74e748b3ec1c27779ff6e14e3c3257c88
6
+ metadata.gz: 9decd71b32fd0dac092b06c57946ecf8bb708efda14b73488f76d9681a1b0bd33652f88fbefb613fee71d017eb25113345785257104b53f8f7c529ad7936daf6
7
+ data.tar.gz: b89fb81f146b173c9e811c65605e6d93b18e4da17c22b63033319bb7cac5c0cc066eaedbfd97ec653e7198e63dc0a1a1e505dff1a9bf505a6edb53dd12eb4b3c
@@ -1,4 +1,4 @@
1
- name: Lint
1
+ name: CI
2
2
 
3
3
  on: push
4
4
 
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?
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MyData
4
- VERSION = "0.11.0"
4
+ VERSION = "0.12.0"
5
5
  end
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.11.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-03-28 00:00:00.000000000 Z
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/lint.yml"
90
+ - ".github/workflows/ci.yml"
91
91
  - ".gitignore"
92
92
  - ".rspec"
93
93
  - ".rubocop.yml"