ruby-macrodroid 0.7.3 → 0.7.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: cd79e55449071a3fd0ed864f58fc606dedd69059413876c7466cb071f651fef4
4
- data.tar.gz: 70dbc1fd844ff449d0ef1ca680e9b47e5233ff82148ab93063b65d9a87e5f70c
3
+ metadata.gz: e28ec7303f297d90ed5edbbec3806c577d1fe3036851620c230b4620d4a8a98f
4
+ data.tar.gz: fd27b2da1d660144aae8bc85b3f392b10b385934d1a38f65817d53ff774e382c
5
5
  SHA512:
6
- metadata.gz: 1912e55be98c1236a2df6f17e5e19aa1de75e89854ca3be343821133e841656bb45c116e195237a313726b590c31bb7c898f8cf54f868f37c26f3dd9b11f4694
7
- data.tar.gz: fdc3adcb802125e4346bbed8fc089e57a303d2f5624e20fe6b597b03a594ae50ca388b13c54bcb43da3bfb265e6fabc1b46f00119a48f199645ee5d8bdcf0c24
6
+ metadata.gz: f727092bb6f96799f1cd288e5ebf822b189d70ef2b5bcdb5bab452b93b412b737229fa6fed2d982f1233aa5f21d35fb1791e834d8ea023474c1eac6a3d330fd5
7
+ data.tar.gz: 706f9423e28c7fda560bf059f4686834e4404dca9576d5682f3e43c82440a79c84e5ddeb65619a5410098993da1ee9574cc681912a94285147b40aba1468f8a8
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -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.3
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-07 00:00:00.000000000 Z
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