lws 6.1.0.beta5 → 6.1.0.beta6

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
  SHA1:
3
- metadata.gz: 1572c59ecae295dace557e5554bbc20aa1a3d48e
4
- data.tar.gz: 7ad14b5a843814bec826628a8a76a1c36827a389
3
+ metadata.gz: 4481ad17a1652e8cb7f0f1979c136f1f5849a239
4
+ data.tar.gz: bd6ca219e14eeedb2fdfa11c56a772901a494032
5
5
  SHA512:
6
- metadata.gz: 8c18b43430a42d12ab04b42af7bd32ad4081e694aabc73206ffc20a4c7dcbafe1ed0377056500345cd142ea8be5691d1dc75b2a28a05ae148257d8adf7874863
7
- data.tar.gz: b9b647419cbab122f209c8efada301d3e14aede20ce3a14cfa784b5138569b8421d29a0a31966338bc045c47c6a93bbbdb5f8fd6ce9d0bfdc5d336455b6f242b
6
+ metadata.gz: 2aaf64b05526bd03a3bab74caa925aeb4a22707fecc3f965be37db5aafb0f9a01674873df9cb524ac5638394e03f46bf2405c69c8853e7188d3f83c1588410fb
7
+ data.tar.gz: b2f35929acd6b44b2cc348c66918a763bc1795792d2efcc422397db8874dd098654f9eb2041597c2b350a0798f57724a98f1e1d4ebf3584288294ac38ce818f4
@@ -53,6 +53,19 @@ module LWS::Generic
53
53
  attributes(name)
54
54
  end
55
55
 
56
+ # @private
57
+ # @!visibility private
58
+ #
59
+ # Sets multiple attributes via a hash.
60
+ #
61
+ # @note
62
+ # This is implemented for backward compatibility with Her.
63
+ # @param [Hash] attrs a hash of attributes
64
+ # @return [void]
65
+ def assign_attributes(attrs)
66
+ self.attributes=(attrs)
67
+ end
68
+
56
69
  # @private
57
70
  # @!visibility private
58
71
  #
data/lib/lws/version.rb CHANGED
@@ -13,6 +13,6 @@ module LWS
13
13
 
14
14
  # The LWS library version.
15
15
  # @note The major and minor version parts match the LWS API version!
16
- VERSION = '6.1.0.beta5'
16
+ VERSION = '6.1.0.beta6'
17
17
 
18
18
  end
data/test/generic_test.rb CHANGED
@@ -26,6 +26,11 @@ class TestGenericConfiguration < MiniTest::Test
26
26
  refute_nil(@configuration.id)
27
27
  end
28
28
 
29
+ def test_her_compatibility
30
+ @configuration.assign_attributes("value" => "other_value")
31
+ assert_equal "other_value", @configuration.value
32
+ end
33
+
29
34
  def test_lifecycle
30
35
  # Create
31
36
  new_configuration = Configuration.create(key: "test", value: "some_value")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lws
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.1.0.beta5
4
+ version: 6.1.0.beta6
5
5
  platform: ruby
6
6
  authors:
7
7
  - LeftClick B.V.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-10 00:00:00.000000000 Z
11
+ date: 2018-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday_middleware