ruby-macrodroid 0.7.3 → 0.7.4
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
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/ruby-macrodroid.rb +5 -4
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e28ec7303f297d90ed5edbbec3806c577d1fe3036851620c230b4620d4a8a98f
|
|
4
|
+
data.tar.gz: fd27b2da1d660144aae8bc85b3f392b10b385934d1a38f65817d53ff774e382c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f727092bb6f96799f1cd288e5ebf822b189d70ef2b5bcdb5bab452b93b412b737229fa6fed2d982f1233aa5f21d35fb1791e834d8ea023474c1eac6a3d330fd5
|
|
7
|
+
data.tar.gz: 706f9423e28c7fda560bf059f4686834e4404dca9576d5682f3e43c82440a79c84e5ddeb65619a5410098993da1ee9574cc681912a94285147b40aba1468f8a8
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/lib/ruby-macrodroid.rb
CHANGED
|
@@ -702,10 +702,11 @@ EOF
|
|
|
702
702
|
a = [
|
|
703
703
|
'm: ' + @title,
|
|
704
704
|
@triggers.map {|x| "t: %s" % x}.join("\n"),
|
|
705
|
-
actions
|
|
706
|
-
@constraints.map {|x| "a: %s" % x}.join("\n")
|
|
705
|
+
actions
|
|
707
706
|
]
|
|
708
707
|
|
|
708
|
+
a << @constraints.map {|x| "c: %s" % x}.join("\n") if @constraints.any?
|
|
709
|
+
|
|
709
710
|
if @description and @description.length >= 1 then
|
|
710
711
|
a.insert(1, 'd: ' + @description.gsub(/\n/,"\n "))
|
|
711
712
|
end
|
|
@@ -1142,7 +1143,7 @@ class Trigger < MacroObject
|
|
|
1142
1143
|
@list << 'fakeIcon'
|
|
1143
1144
|
|
|
1144
1145
|
# fetch the constraints
|
|
1145
|
-
@constraints = h[:constraint_list].map do |constraint|
|
|
1146
|
+
@constraints = @h[:constraint_list].map do |constraint|
|
|
1146
1147
|
object(constraint.to_snake_case)
|
|
1147
1148
|
end
|
|
1148
1149
|
|
|
@@ -2391,7 +2392,7 @@ class Action < MacroObject
|
|
|
2391
2392
|
super(h)
|
|
2392
2393
|
|
|
2393
2394
|
# fetch the constraints
|
|
2394
|
-
@constraints = h[:constraint_list].map do |constraint|
|
|
2395
|
+
@constraints = @h[:constraint_list].map do |constraint|
|
|
2395
2396
|
object(constraint.to_snake_case)
|
|
2396
2397
|
end
|
|
2397
2398
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ruby-macrodroid
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.7.
|
|
4
|
+
version: 0.7.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Robertson
|
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
|
35
35
|
NZ2kdBIUDnAM24e0/wXdVxg4HnsZbdymxyzMQ4P5pKYcpI6oisBxI37p/Xy+wAg3
|
|
36
36
|
SBHno3GEuuD8ZWj24IMJpfbp
|
|
37
37
|
-----END CERTIFICATE-----
|
|
38
|
-
date: 2020-09-
|
|
38
|
+
date: 2020-09-08 00:00:00.000000000 Z
|
|
39
39
|
dependencies:
|
|
40
40
|
- !ruby/object:Gem::Dependency
|
|
41
41
|
name: glw
|
metadata.gz.sig
CHANGED
|
Binary file
|