wrapi 0.4.3 → 0.4.4

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: 97aeddbe26edc1de844235ad80174e81dd4b87ab3f941349990b49d2822526cb
4
- data.tar.gz: c80266d83ff3daf66525127ac22e5863a196411589976a212480f00145d31d53
3
+ metadata.gz: cbba7a5999de019875c356dc158b4061bd417cc4f2d21364c2e18bdcac715ac2
4
+ data.tar.gz: 8932fd54e9872f43b3e64b4b31554ca71e55987fc35a096bcc10162022773036
5
5
  SHA512:
6
- metadata.gz: 00b16d27142172f649374484cdd7a05177057a24c92fb81cc7b090543f39d23ec4d5e3cd5e7125dfd077985f1a92270acede8aabfe9eb0ae644ec53c552a3235
7
- data.tar.gz: 000f1f156009059626f8be2d0528ab9f8980e57349f10e749763d685bbd68b208c0ba24f1d6bdc67c4b0a671c23bbd76bd93cc57153edf90f7cd7b330906ccca
6
+ metadata.gz: 0f95131accc766c77a6e81ffa8702dc501137478e5fc8d58589e058f30de4886afbc1b1c469f38a33a06c0b2b4177f26db701be033122000a901485b9c02ecb8
7
+ data.tar.gz: 885c32718e57b86b9bf395d392263bc0c60044929dc7cf86dba5f80209ba1b7d1c7815fc345ff904836c0838af51e39fe408d4a7f49678eae62da1c93ecf1f64
data/CHANGELOG.md CHANGED
@@ -34,3 +34,6 @@
34
34
 
35
35
  ## [0.4.3] - 2024-03-07
36
36
  - fix issue json generation for updated attributes
37
+
38
+ ## [0.4.4] - 2024-03-12
39
+ - fix typo and implement clone for entities
data/lib/wrapi/entity.rb CHANGED
@@ -27,7 +27,7 @@ module WrAPI
27
27
  def method_missing(method_sym, *arguments, &block)
28
28
  # assignment
29
29
  if (method = method_sym[/.*(?==\z)/m])
30
- raise! ArgumentError, "wrong number of arguments (given #{arguments.length}, expected 1)", caller(1) unless arguments.length == 1
30
+ raise ArgumentError, "wrong number of arguments (given #{arguments.length}, expected 1)", caller(1) unless arguments.length == 1
31
31
 
32
32
  @attributes[method] = arguments[0]
33
33
  elsif @attributes.include? method_sym.to_s
@@ -61,6 +61,12 @@ module WrAPI
61
61
  @attributes[method]
62
62
  end
63
63
  end
64
+
65
+ def clone
66
+ c = super
67
+ c.attributes = @attributes.clone
68
+ c
69
+ end
64
70
 
65
71
  def self.entify(a)
66
72
  if ( a.count > 0 ) && ( a.first.is_a? Hash )
data/lib/wrapi/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WrAPI
4
- VERSION = '0.4.3'
4
+ VERSION = '0.4.4'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wrapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Janco Tanis
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-03-07 00:00:00.000000000 Z
11
+ date: 2024-03-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday