ecoportal-api 0.7.4 → 0.7.5

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: 275ffcb5e9bfe17f44295a7c4438b9e169dc87f22afe19591752425ef008cdba
4
- data.tar.gz: aeb53e930f75dc7299fc400a8a00624428dfe496b77a5fdf1af1075b144a6944
3
+ metadata.gz: 4a3b6466476eefca80c4c105572ff4fc9789861951dfbc6c0390277a33c35a27
4
+ data.tar.gz: bee1361739b8a7bb6336aa4198a078a76f67479818d82a6bd1b1d3fd0ea77867
5
5
  SHA512:
6
- metadata.gz: 2e2e4c03089ccf675057b335a9c9e46a5a40a92d3720b256fb9a679eec6431885889171960bf106e3586efbc77d9b2384262c9e4aa52cdf34b6c291be78b76dd
7
- data.tar.gz: c1df25f369172d215ba64bf932b63d78514871579540edabc991719a737999a5700828352bceca140d5715861b47cb6b2e4e56fab4b7b916fe5ef42627ec7e4f
6
+ metadata.gz: e32a1b38746232a63d2939267345fc5d3ceb3a02d6a297bffdc2ccd7df82ea27fe1748e0836905eed8848fabfe25694e6332402d012537c529b224a0bad17367
7
+ data.tar.gz: 5c9d4e78ff2b63dc6a1ff31518976c88fdd955e3c36621a194e767bc0686ca6b2a16e11f3cc23a29a7a0e252050686170124d9761cbce5000ba97a4aca00c014
data/CHANGELOG.md CHANGED
@@ -1,6 +1,20 @@
1
1
  # Change Log
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
+ ## [0.7.5] - 2021-02-xx
5
+
6
+ ### Added
7
+
8
+ ### Fixed
9
+ - `pretty_print` method was colliding with `pp` module:
10
+ - renamed to `Ecoportal::API::Common::BaseModel#print_pretty`
11
+ - renamed to `Ecoportal::API::Common::BatchReponse#print_pretty`
12
+ - renamed to `Ecoportal::API::Common::Reponse#print_pretty`
13
+ - renamed to `Ecoportal::API::Common::WrappedResponse#print_pretty`
14
+
15
+ ### Changed
16
+ - forgot to change `Ecoportal::API::VERSION` during last release
17
+
4
18
  ## [0.7.4] - 2021-01-2
5
19
 
6
20
  ### Added
@@ -108,10 +108,10 @@ module Ecoportal
108
108
  end
109
109
  end
110
110
 
111
- # def pretty_print
112
- # puts JSON.pretty_generate(as_json)
113
- # self
114
- # end
111
+ def print_pretty
112
+ puts JSON.pretty_generate(as_json)
113
+ self
114
+ end
115
115
 
116
116
  protected
117
117
 
@@ -21,9 +21,9 @@ module Ecoportal
21
21
  end
22
22
  end
23
23
 
24
- def pretty_print
24
+ def print_pretty
25
25
  if success?
26
- each(&:pretty_print)
26
+ each(&:print_pretty)
27
27
  else
28
28
  puts "Request failed."
29
29
  end
@@ -20,7 +20,7 @@ module Ecoportal
20
20
  @status.success?
21
21
  end
22
22
 
23
- def pretty_print
23
+ def print_pretty
24
24
  puts "Status: #{@status.code}"
25
25
  puts "Body:"
26
26
  puts JSON.pretty_generate(@body)
@@ -40,9 +40,9 @@ module Ecoportal
40
40
  response.success?
41
41
  end
42
42
 
43
- def pretty_print
43
+ def print_pretty
44
44
  if success?
45
- each(&:pretty_print)
45
+ each(&:print_pretty)
46
46
  else
47
47
  puts "Request failed."
48
48
  end
@@ -1,5 +1,5 @@
1
1
  module Ecoportal
2
2
  module API
3
- VERSION = "0.7.4"
3
+ VERSION = "0.7.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecoportal-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.4
4
+ version: 0.7.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tapio Saarinen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-01-25 00:00:00.000000000 Z
11
+ date: 2021-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler