whatnot 1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.bundle/binstubs/bundler +16 -0
- data/.bundle/binstubs/git-changelog +16 -0
- data/.bundle/binstubs/htmldiff +16 -0
- data/.bundle/binstubs/ldiff +16 -0
- data/.bundle/binstubs/rake +16 -0
- data/.bundle/binstubs/rspec +16 -0
- data/.ruby-version +1 -0
- data/Gemfile +3 -0
- data/Gemfile.lock +34 -0
- data/LICENSE +20 -0
- data/README.md +58 -0
- data/lib/whatnot.rb +3 -0
- data/lib/whatnot/dimacs_cnf_printer.rb +116 -0
- data/lib/whatnot/dimacs_cnf_var.rb +73 -0
- data/lib/whatnot/failed_solution_switch_group.rb +25 -0
- data/lib/whatnot/solution_enumerator.rb +49 -0
- data/lib/whatnot/switch.rb +39 -0
- data/lib/whatnot/switch_group.rb +151 -0
- data/lib/whatnot/switch_interpreter.rb +211 -0
- data/lib/whatnot/version.rb +3 -0
- data/spec/lib/whatnot/dimacs_cnf_var_spec.rb +65 -0
- data/spec/lib/whatnot/solution_enumerator_spec.rb +47 -0
- data/spec/lib/whatnot/switch_group_spec.rb +67 -0
- data/spec/lib/whatnot/switch_interpreter_spec.rb +188 -0
- data/spec/spec_helper.rb +89 -0
- data/whatnot.gemspec +23 -0
- metadata +99 -0
data/whatnot.gemspec
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
require File.expand_path('../lib/whatnot/version', __FILE__)
|
3
|
+
|
4
|
+
Gem::Specification.new do |s|
|
5
|
+
s.name = "whatnot"
|
6
|
+
s.version = Whatnot::VERSION
|
7
|
+
|
8
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
9
|
+
s.authors = ["Tyler Boyd"]
|
10
|
+
s.autorequire = "whatnot"
|
11
|
+
s.date = "2015-07-23"
|
12
|
+
s.description = "Fast constraint solver with user-friendly API"
|
13
|
+
# s.executables = ["git-changelog"]
|
14
|
+
s.extra_rdoc_files = ["README.md", "LICENSE"]
|
15
|
+
s.files = `git ls-files`.split("\n")
|
16
|
+
s.homepage = ""
|
17
|
+
s.require_paths = ["lib"]
|
18
|
+
s.rubygems_version = "1.8.23"
|
19
|
+
s.summary = "Fast constraint solver with user-friendly API"
|
20
|
+
|
21
|
+
s.add_development_dependency('rake', '>= 0.8.7')
|
22
|
+
s.add_development_dependency('rspec', '>= 1.3.0')
|
23
|
+
end
|
metadata
ADDED
@@ -0,0 +1,99 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: whatnot
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: '1.0'
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Tyler Boyd
|
8
|
+
autorequire: whatnot
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-07-23 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rake
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.8.7
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.8.7
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rspec
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 1.3.0
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 1.3.0
|
41
|
+
description: Fast constraint solver with user-friendly API
|
42
|
+
email:
|
43
|
+
executables: []
|
44
|
+
extensions: []
|
45
|
+
extra_rdoc_files:
|
46
|
+
- README.md
|
47
|
+
- LICENSE
|
48
|
+
files:
|
49
|
+
- ".bundle/binstubs/bundler"
|
50
|
+
- ".bundle/binstubs/git-changelog"
|
51
|
+
- ".bundle/binstubs/htmldiff"
|
52
|
+
- ".bundle/binstubs/ldiff"
|
53
|
+
- ".bundle/binstubs/rake"
|
54
|
+
- ".bundle/binstubs/rspec"
|
55
|
+
- ".ruby-version"
|
56
|
+
- Gemfile
|
57
|
+
- Gemfile.lock
|
58
|
+
- LICENSE
|
59
|
+
- README.md
|
60
|
+
- lib/whatnot.rb
|
61
|
+
- lib/whatnot/dimacs_cnf_printer.rb
|
62
|
+
- lib/whatnot/dimacs_cnf_var.rb
|
63
|
+
- lib/whatnot/failed_solution_switch_group.rb
|
64
|
+
- lib/whatnot/solution_enumerator.rb
|
65
|
+
- lib/whatnot/switch.rb
|
66
|
+
- lib/whatnot/switch_group.rb
|
67
|
+
- lib/whatnot/switch_interpreter.rb
|
68
|
+
- lib/whatnot/version.rb
|
69
|
+
- spec/lib/whatnot/dimacs_cnf_var_spec.rb
|
70
|
+
- spec/lib/whatnot/solution_enumerator_spec.rb
|
71
|
+
- spec/lib/whatnot/switch_group_spec.rb
|
72
|
+
- spec/lib/whatnot/switch_interpreter_spec.rb
|
73
|
+
- spec/spec_helper.rb
|
74
|
+
- whatnot.gemspec
|
75
|
+
homepage: ''
|
76
|
+
licenses: []
|
77
|
+
metadata: {}
|
78
|
+
post_install_message:
|
79
|
+
rdoc_options: []
|
80
|
+
require_paths:
|
81
|
+
- lib
|
82
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
83
|
+
requirements:
|
84
|
+
- - ">="
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: '0'
|
87
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
88
|
+
requirements:
|
89
|
+
- - ">="
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
version: '0'
|
92
|
+
requirements: []
|
93
|
+
rubyforge_project:
|
94
|
+
rubygems_version: 2.2.2
|
95
|
+
signing_key:
|
96
|
+
specification_version: 4
|
97
|
+
summary: Fast constraint solver with user-friendly API
|
98
|
+
test_files: []
|
99
|
+
has_rdoc:
|