rulp 0.0.26 → 0.0.27

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rulp/rulp.rb +1 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 06e9d3e0273a2fa38bedaedcbc045d9f991b2caf
4
- data.tar.gz: 73d49bb0023327b868f347ed87a59be49f80cb54
3
+ metadata.gz: c4563e100a0516ca73b42566732631f0a90dfef9
4
+ data.tar.gz: c0cbc3dffa055001e34385ec717ffc19068377bc
5
5
  SHA512:
6
- metadata.gz: b5b09006ce485ad76066671dc1658b096fa4cf89582a68bad0d043c1c571933e6fb76b7450ff4f7246adb3e99722cec2b25a85a97bcd13e5ab5a6637763a453f
7
- data.tar.gz: 5f3a08c11c670d3d84c3cca70512252ac6d6742637519ffbd7c17835ec16c8f5e0fe9908a73d1b1d85a9c07289cf5c202a613424213a55ebb807cc5d166ff5ab
6
+ metadata.gz: 9f37df906cb07c75ca940be3f9573931820efab1621a7117d78eee90c2d2500763af6345e25ad884c1f72f585a4f5aba73220b4516aeaccd7b63a0085110e190
7
+ data.tar.gz: b4a5f51f6940c073ba8d7038bc5788a6baf88532749b0e28bcdce1c7ddd252aa612393f3b31d442896b50a4efabaa7c9449cdd8ca56d70086793ec35108f345e
data/lib/rulp/rulp.rb CHANGED
@@ -96,7 +96,7 @@ module Rulp
96
96
 
97
97
  def [](*constraints)
98
98
  Rulp.log(Logger::INFO, "Got constraints")
99
- constraints.flatten!
99
+ constraints = constraints.flatten.select{|x| x.kind_of?(Constraint)}
100
100
  Rulp.log(Logger::INFO, "Flattened constraints")
101
101
  @constraints.concat(constraints)
102
102
  Rulp.log(Logger::INFO, "Joint constraints")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rulp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.26
4
+ version: 0.0.27
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wouter Coppieters
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-03 00:00:00.000000000 Z
11
+ date: 2016-04-19 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A simple Ruby LP description DSL
14
14
  email: wc@pico.net.nz