solve 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/solve.rb +6 -2
  3. data/lib/solve/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 674f7a18cf70685b1cd690b5babdb327b8186c5e
4
- data.tar.gz: 784d73c2042284cc1c8100f2e4097b07d1dc4ae3
3
+ metadata.gz: 04ed0566c24a6be5c32e5a6b13911cf7c1ae20ef
4
+ data.tar.gz: 5fb06b3e2def2cf8f6355d48662aecd95db5c724
5
5
  SHA512:
6
- metadata.gz: 8dd9fe4edfff28b0a34b9223ae2163d346bec2a306e3319d3e559362477e82883080cc4031a567a065f17da5b99cc9231e9fed21a5cf08f102056f32400b08e9
7
- data.tar.gz: 7a5b6622bd17b7d8d492c62f8e941db4137a05d963a5fc71b0ea8f8a8d5868cadb360456ae723e21cd9ffb451ff84f81f6e82409775c355926512fff18e8ab44
6
+ metadata.gz: 063768523d3fd67a04eb80910b9e27d7e3f9b2c54df07a05e7da7faa1dd3e124e3338aa782a2db967a6111d91e43f361bc82ba9441c9733f57e7f9b6c0775c12
7
+ data.tar.gz: c5f7696eaf9c2d3f76951b39e05d81b29af0f4e4a8852c34d2c114f2e2398b2a982b938feaa892ba269a10d7d8acf76b5e3976a6dc1a58e279c8d416304e4793
data/lib/solve.rb CHANGED
@@ -10,12 +10,14 @@ module Solve
10
10
  require_relative 'solve/ruby_solver'
11
11
  require_relative 'solve/gecode_solver'
12
12
 
13
+ # We have to set the default engine here, it gets set on the wrong object if
14
+ # we put this in the metaclass context below.
15
+ @engine = :ruby
16
+
13
17
  class << self
14
18
  # @return [Solve::Formatter]
15
19
  attr_reader :tracer
16
20
 
17
- @engine = :ruby
18
-
19
21
  # Returns the currently configured engine.
20
22
  # @see #engine=
21
23
  # @return [Symbol]
@@ -73,4 +75,6 @@ module Solve
73
75
 
74
76
  private :solver_for_engine
75
77
  end
78
+
76
79
  end
80
+
data/lib/solve/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Solve
2
- VERSION = "2.0.0"
2
+ VERSION = "2.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solve
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jamie Winsor