easy-resources 0.9.1 → 0.10.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: f316fd1fcb39517044518b60cfb7253f9b93f91fb297311efb5cf6cb0722e9ed
4
- data.tar.gz: 8740c5ef4d6501f79440fff6f4d76b4657be60441d6be95c4abe4ae82340b82f
3
+ metadata.gz: 78e3ee85bb308efe3d49df5e230984860f8be924ee8f5dabcb89db87691c8736
4
+ data.tar.gz: 550563403efc65b6927927af2c8542794497a629057d25964f8a3d04b06ad0bf
5
5
  SHA512:
6
- metadata.gz: f2e146b48259157762bfd9d2151bb8cce5b330e6fce9e1fd8c75f353aaa01c3068492c079e57623504acc28b485f08fbb5782932277ed0e3db045c5c4e84366b
7
- data.tar.gz: 4a3b27c1c1ef0ed61ff62b159613fea8609cdc2fbdbd978b1aea2c87822ef5fb7e68a0c1d065bf559f3737d83a21bc99dfb91996845f5e2809d28e561d5ac5da
6
+ metadata.gz: 35679557ec16ff9a221fd9ad59b36c723a52a3d7ead9fe2834be5c558c354dedd12f5f9d417c0efa063b85f4c6ddc2d528adc393eddd4011bcbe1d1bdc3bc28c
7
+ data.tar.gz: db430c848f60389dadf4e818e15c2e0fdbac0f0a7cc359d68decc4da45e65f3dea01b9e67ce5f95c0508b10f8d5f48f872bc19a9e0c6aed8964cfc975fab431c
data/CHANGELOG.md CHANGED
@@ -5,6 +5,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
5
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
7
  ## [Unreleased]
8
+ ## [0.10.0] - 2021-09-01
9
+ ### Added
10
+ - support ruby3.0
11
+ ### Removed
12
+ - support ruby2.5
13
+
8
14
  ## [0.9.1] - 2021-08-24
9
15
  ### Fixed
10
16
  - adjusted EWA schema
data/lib/easy/resource.rb CHANGED
@@ -40,13 +40,13 @@ module Easy
40
40
  update_columns(attribute.to_sym => value)
41
41
  end
42
42
 
43
- def update_columns(**attributes)
43
+ def update_columns(attributes)
44
44
  patch(nil, {}, encode_attributes(attributes))
45
45
  end
46
46
 
47
47
  protected
48
48
 
49
- def encode_attributes(**attributes)
49
+ def encode_attributes(attributes)
50
50
  case self.class.format.extension
51
51
  when "json"
52
52
  attributes.to_json(include_root_in_json ? { root: self.class.element_name } : {})
@@ -1,7 +1,7 @@
1
1
  module Easy
2
2
  module Resources
3
3
 
4
- VERSION = '0.9.1'
4
+ VERSION = '0.10.0'
5
5
 
6
6
  end
7
7
  end
@@ -23,6 +23,6 @@ RSpec.shared_context "redmine active resource shares", shared_context: :metadata
23
23
  options[:request_headers]["X-Redmine-API-Key"] = api_key
24
24
  options[:format] = format
25
25
  options[:path] = path
26
- stub_resource_request options
26
+ stub_resource_request(**options)
27
27
  end
28
28
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: easy-resources
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Petr
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-08-24 00:00:00.000000000 Z
12
+ date: 2021-09-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activeresource
@@ -229,9 +229,9 @@ require_paths:
229
229
  - lib
230
230
  required_ruby_version: !ruby/object:Gem::Requirement
231
231
  requirements:
232
- - - "~>"
232
+ - - ">="
233
233
  - !ruby/object:Gem::Version
234
- version: '2.5'
234
+ version: '2.6'
235
235
  required_rubygems_version: !ruby/object:Gem::Requirement
236
236
  requirements:
237
237
  - - ">="