tisket 0.0.1 → 0.1.0

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/tisket/manager.rb +2 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5053145f8a0113cf49a5cb198a72c4507dd52389
4
- data.tar.gz: f6e8f4a81cf9899cc0dc15138a293d67253f0080
3
+ metadata.gz: 2fe2a8708bdbfa948fe7865e68ea43b7c02596c0
4
+ data.tar.gz: 235f99765de344739f77b53ed847b36f784bc9f6
5
5
  SHA512:
6
- metadata.gz: 472ed82c0f3d12596fdbcd5a1bff733c34466f8439e9c09cb049069c2f0b8ad346bd788d80740fb19d578bcf7841f319e608141e12cb74b9160fdb42d7fa5d43
7
- data.tar.gz: aac6a2637a35fe86701c94f9a3f761455ce2354bc7bba9be7ba9e30056c1eb971dbc5e0cdf0b2c42113c3fa188b1a71fa2a45ddd90e7e330ba22dfd9221f8ee0
6
+ metadata.gz: 7eb3d4a65d3680edde6f8082a126f8bc335df58e353b5c28af54be6e175515f0a4a91ab5cb55f63c19a4d54f254edc33d1739a6d415fa763a3e4ed391d15875d
7
+ data.tar.gz: e202533ecb8e41430932ef91cb9dd7e9ce8cb1f7340f892d33da0d51b6a86b4eedab89f6135c711780b2034ac5685c21c9826290ccb5bfaa083b8910d06d93fd
@@ -1,10 +1,12 @@
1
1
  require 'set'
2
+ require 'yaml'
2
3
 
3
4
  class Tisket::Manager
4
5
 
5
6
  attr_accessor *%i[ backward_deps forward_deps initial_set specs threads ]
6
7
 
7
8
  def initialize(specs)
9
+ specs = YAML.load(specs) if specs.is_a?(String)
8
10
  specs = convert_specs(specs)
9
11
 
10
12
  self.backward_deps = {}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tisket
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael