easy-resources 0.9.1 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/easy/resource.rb +2 -2
- data/lib/easy/resources/version.rb +1 -1
- data/spec/support/redmine_active_resource.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 78e3ee85bb308efe3d49df5e230984860f8be924ee8f5dabcb89db87691c8736
|
4
|
+
data.tar.gz: 550563403efc65b6927927af2c8542794497a629057d25964f8a3d04b06ad0bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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(
|
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(
|
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 } : {})
|
@@ -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
|
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.
|
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-
|
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.
|
234
|
+
version: '2.6'
|
235
235
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
236
236
|
requirements:
|
237
237
|
- - ">="
|