lws 6.1.0.beta5 → 6.1.0.beta6
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 +4 -4
- data/lib/lws/apps/generic.rb +13 -0
- data/lib/lws/version.rb +1 -1
- data/test/generic_test.rb +5 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4481ad17a1652e8cb7f0f1979c136f1f5849a239
|
4
|
+
data.tar.gz: bd6ca219e14eeedb2fdfa11c56a772901a494032
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2aaf64b05526bd03a3bab74caa925aeb4a22707fecc3f965be37db5aafb0f9a01674873df9cb524ac5638394e03f46bf2405c69c8853e7188d3f83c1588410fb
|
7
|
+
data.tar.gz: b2f35929acd6b44b2cc348c66918a763bc1795792d2efcc422397db8874dd098654f9eb2041597c2b350a0798f57724a98f1e1d4ebf3584288294ac38ce818f4
|
data/lib/lws/apps/generic.rb
CHANGED
@@ -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
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.
|
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-
|
11
|
+
date: 2018-01-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday_middleware
|