sudoku_builder 0.1.3 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,91 @@
1
+ class SudokuBuilder
2
+
3
+ def reset
4
+ @sud = blank
5
+ @used = blank
6
+ end
7
+
8
+ def increment
9
+ r = @loc[0] ; g = @loc[1] ; c = @loc[2]
10
+ if g == 2 && c == 2
11
+ # increment row
12
+ @loc[0] += 1
13
+ @loc[1] = 0
14
+ @loc[2] = 0
15
+ elsif c == 2 && g < 3
16
+ # increment grid
17
+ @loc[1] += 1
18
+ @loc[2] = 0
19
+ elsif c < 2
20
+ # increment column
21
+ @loc[2] += 1
22
+ end
23
+ end
24
+
25
+ def de_increment
26
+ r = @loc[0] ; g = @loc[1] ; c = @loc[2]
27
+ if r == 0 && g == 0 && c == 0
28
+ # reset everything
29
+ @res += 1
30
+ reset
31
+ elsif c == 0 && g == 0
32
+ # de increment row
33
+ @loc[0] -= 1
34
+ @loc[1] = 2
35
+ @loc[2] = 2
36
+ elsif c == 0 && r >= 0
37
+ # de increment grid
38
+ @loc[1] -= 1
39
+ @loc[2] = 2
40
+ elsif c > 0
41
+ # de increment column
42
+ @loc[2] -= 1
43
+ end
44
+ end
45
+
46
+ def blank
47
+ [
48
+ [ [ [], [], [] ], [ [], [], [] ], [ [], [], [] ] ],
49
+ [ [ [], [], [] ], [ [], [], [] ], [ [], [], [] ] ],
50
+ [ [ [], [], [] ], [ [], [], [] ], [ [], [], [] ] ],
51
+ [ [ [], [], [] ], [ [], [], [] ], [ [], [], [] ] ],
52
+ [ [ [], [], [] ], [ [], [], [] ], [ [], [], [] ] ],
53
+ [ [ [], [], [] ], [ [], [], [] ], [ [], [], [] ] ],
54
+ [ [ [], [], [] ], [ [], [], [] ], [ [], [], [] ] ],
55
+ [ [ [], [], [] ], [ [], [], [] ], [ [], [], [] ] ],
56
+ [ [ [], [], [] ], [ [], [], [] ], [ [], [], [] ] ],
57
+ ]
58
+ end
59
+
60
+ def valid?
61
+ @loc = [0,0,0]
62
+ validity = []
63
+ loop do
64
+ if check?(value)
65
+ return false
66
+ end
67
+ increment
68
+ break if @loc == [9,0,0]
69
+ end
70
+ return true
71
+ end
72
+
73
+ def check?(val)
74
+ !(grid.include?(val) || column.include?(val) ||
75
+ row.include?(val) || used.include?(val) )
76
+ end
77
+
78
+ def parse_for_solve(puzzle)
79
+ flattened = puzzle.flatten
80
+ if flattened.count == 81
81
+ @loc = [0,0,0] ; @sud = blank
82
+ flattened.each do |val|
83
+ write(val) if val
84
+ increment
85
+ end
86
+ else
87
+ raise PuzzleFormatError, 'Must have exactly 81 spots in the array.'
88
+ end
89
+ end
90
+
91
+ end
@@ -0,0 +1,45 @@
1
+ class SudokuBuilder
2
+
3
+ def used
4
+ @used[@loc[0]][@loc[1]][@loc[2]]
5
+ end
6
+
7
+ def write(val)
8
+ @sud[@loc[0]][@loc[1]][@loc[2]] = val
9
+ @used[@loc[0]][@loc[1]][@loc[2]] << val unless used.include?(val)
10
+ end
11
+
12
+ def value
13
+ @sud[@loc[0]][@loc[1]][@loc[2]]
14
+ end
15
+
16
+ def row
17
+ @sud[@loc[0]].flatten
18
+ end
19
+
20
+ def column
21
+ c = @loc[2] ; g = @loc[1]
22
+ cols = []
23
+ @sud.each do |row|
24
+ cols << row[g][c]
25
+ end
26
+ cols.flatten
27
+ end
28
+
29
+ def grid
30
+ g = @loc[1] ; r = @loc[0] ; grids = []
31
+ if r <= 2
32
+ i = 0
33
+ elsif r <= 5 && r > 2
34
+ i = 3
35
+ elsif r <= 8 && r > 5
36
+ i = 6
37
+ end
38
+ 3.times do
39
+ grids << @sud[i][g]
40
+ i += 1
41
+ end
42
+ return grids.flatten
43
+ end
44
+
45
+ end
@@ -1,3 +1,3 @@
1
- module SudokuBuilder
2
- VERSION = "0.1.3"
1
+ class SudokuBuilder
2
+ VERSION = "1.1.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sudoku_builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Colin Walker
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-06-18 00:00:00.000000000 Z
11
+ date: 2015-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -46,28 +46,20 @@ extensions: []
46
46
  extra_rdoc_files: []
47
47
  files:
48
48
  - ".gitignore"
49
- - ".idea/.name"
50
- - ".idea/.rakeTasks"
51
- - ".idea/encodings.xml"
52
- - ".idea/misc.xml"
53
- - ".idea/modules.xml"
54
- - ".idea/scopes/scope_settings.xml"
55
- - ".idea/sudoku.iml"
56
- - ".idea/vcs.xml"
57
- - ".idea/workspace.xml"
58
49
  - ".rspec"
59
50
  - ".travis.yml"
60
51
  - Gemfile
61
- - Gemfile.lock
62
- - LICENSE
63
52
  - README.md
64
53
  - Rakefile
65
54
  - bin/console
66
55
  - bin/setup
67
56
  - lib/sudoku_builder.rb
68
57
  - lib/sudoku_builder/builder.rb
58
+ - lib/sudoku_builder/errors.rb
59
+ - lib/sudoku_builder/presenter.rb
69
60
  - lib/sudoku_builder/solver.rb
70
- - lib/sudoku_builder/sudoku.rb
61
+ - lib/sudoku_builder/tools.rb
62
+ - lib/sudoku_builder/values.rb
71
63
  - lib/sudoku_builder/version.rb
72
64
  - sudoku_builder.gemspec
73
65
  homepage: https://github.com/ColDog/sudoku-gem
data/.idea/.name DELETED
@@ -1 +0,0 @@
1
- sudoku
data/.idea/.rakeTasks DELETED
@@ -1,7 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <Settings><!--This file was automatically generated by Ruby plugin.
3
- You are allowed to:
4
- 1. Remove rake task
5
- 2. Add existing rake tasks
6
- To add existing rake tasks automatically delete this file and reload the project.
7
- --><RakeGroup description="" fullCmd="" taksId="rake"><RakeTask description="Build sudoku-0.1.0.gem into the pkg directory" fullCmd="build" taksId="build" /><RakeTask description="Build and install sudoku-0.1.0.gem into system gems" fullCmd="install" taksId="install" /><RakeTask description="Create tag v0.1.0 and build and push sudoku-0.1.0.gem to Rubygems" fullCmd="release" taksId="release" /><RakeGroup description="" fullCmd="" taksId="release"><RakeTask description="" fullCmd="release:guard_clean" taksId="guard_clean" /><RakeTask description="" fullCmd="release:rubygem_push" taksId="rubygem_push" /><RakeTask description="" fullCmd="release:source_control_push" taksId="source_control_push" /></RakeGroup></RakeGroup></Settings>
data/.idea/encodings.xml DELETED
@@ -1,4 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="Encoding" useUTFGuessing="true" native2AsciiForPropertiesFiles="false" />
4
- </project>
data/.idea/misc.xml DELETED
@@ -1,4 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectRootManager" version="2" project-jdk-name="rbenv: 2.2.1" project-jdk-type="RUBY_SDK" />
4
- </project>
data/.idea/modules.xml DELETED
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectModuleManager">
4
- <modules>
5
- <module fileurl="file://$PROJECT_DIR$/.idea/sudoku.iml" filepath="$PROJECT_DIR$/.idea/sudoku.iml" />
6
- </modules>
7
- </component>
8
- </project>
@@ -1,5 +0,0 @@
1
- <component name="DependencyValidationManager">
2
- <state>
3
- <option name="SKIP_IMPORT_STATEMENTS" value="false" />
4
- </state>
5
- </component>
data/.idea/sudoku.iml DELETED
@@ -1,18 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <module type="RUBY_MODULE" version="4">
3
- <component name="FacetManager">
4
- <facet type="gem" name="Ruby Gem">
5
- <configuration>
6
- <option name="GEM_APP_ROOT_PATH" value="$MODULE_DIR$" />
7
- <option name="GEM_APP_TEST_PATH" value="" />
8
- <option name="GEM_APP_LIB_PATH" value="$MODULE_DIR$/lib" />
9
- </configuration>
10
- </facet>
11
- </component>
12
- <component name="NewModuleRootManager">
13
- <content url="file://$MODULE_DIR$" />
14
- <orderEntry type="inheritedJdk" />
15
- <orderEntry type="sourceFolder" forTests="false" />
16
- <orderEntry type="library" scope="PROVIDED" name="rake (v10.4.2, rbenv: 2.2.1) [gem]" level="application" />
17
- </component>
18
- </module>
data/.idea/vcs.xml DELETED
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="VcsDirectoryMappings">
4
- <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
- </component>
6
- </project>
data/.idea/workspace.xml DELETED
@@ -1,558 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ChangeListManager">
4
- <list default="true" id="4ba0e926-77d1-4436-9c09-2db6ca58a641" name="Default" comment="">
5
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
6
- </list>
7
- <ignored path="sudoku.iws" />
8
- <ignored path=".idea/workspace.xml" />
9
- <ignored path=".idea/dataSources.local.xml" />
10
- <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
11
- <option name="TRACKING_ENABLED" value="true" />
12
- <option name="SHOW_DIALOG" value="false" />
13
- <option name="HIGHLIGHT_CONFLICTS" value="true" />
14
- <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
15
- <option name="LAST_RESOLUTION" value="IGNORE" />
16
- </component>
17
- <component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
18
- <component name="CreatePatchCommitExecutor">
19
- <option name="PATCH_PATH" value="" />
20
- </component>
21
- <component name="DaemonCodeAnalyzer">
22
- <disable_hints />
23
- </component>
24
- <component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
25
- <component name="FavoritesManager">
26
- <favorites_list name="sudoku" />
27
- </component>
28
- <component name="FileEditorManager">
29
- <leaf>
30
- <file leaf-file-name="sudoku_builder.rb" pinned="false" current-in-tab="false">
31
- <entry file="file://$PROJECT_DIR$/lib/sudoku_builder.rb">
32
- <provider selected="true" editor-type-id="text-editor">
33
- <state vertical-scroll-proportion="0.0" vertical-offset="75" max-vertical-offset="255">
34
- <caret line="5" column="0" selection-start-line="5" selection-start-column="0" selection-end-line="10" selection-end-column="3" />
35
- <folding />
36
- </state>
37
- </provider>
38
- </entry>
39
- </file>
40
- <file leaf-file-name="sudoku.rb" pinned="false" current-in-tab="false">
41
- <entry file="file://$PROJECT_DIR$/lib/sudoku_builder/sudoku.rb">
42
- <provider selected="true" editor-type-id="text-editor">
43
- <state vertical-scroll-proportion="0.0" vertical-offset="65" max-vertical-offset="675">
44
- <caret line="29" column="0" selection-start-line="29" selection-start-column="0" selection-end-line="36" selection-end-column="7" />
45
- <folding />
46
- </state>
47
- </provider>
48
- </entry>
49
- </file>
50
- <file leaf-file-name="sudoku_builder.gemspec" pinned="false" current-in-tab="false">
51
- <entry file="file://$PROJECT_DIR$/sudoku_builder.gemspec">
52
- <provider selected="true" editor-type-id="text-editor">
53
- <state vertical-scroll-proportion="0.0" vertical-offset="120" max-vertical-offset="420">
54
- <caret line="8" column="17" selection-start-line="8" selection-start-column="17" selection-end-line="8" selection-end-column="17" />
55
- <folding />
56
- </state>
57
- </provider>
58
- </entry>
59
- </file>
60
- <file leaf-file-name="solver.rb" pinned="false" current-in-tab="true">
61
- <entry file="file://$PROJECT_DIR$/lib/sudoku_builder/solver.rb">
62
- <provider selected="true" editor-type-id="text-editor">
63
- <state vertical-scroll-proportion="2.254902" vertical-offset="0" max-vertical-offset="1710">
64
- <caret line="69" column="25" selection-start-line="69" selection-start-column="25" selection-end-line="69" selection-end-column="25" />
65
- <folding />
66
- </state>
67
- </provider>
68
- </entry>
69
- </file>
70
- </leaf>
71
- </component>
72
- <component name="Git.Settings">
73
- <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
74
- </component>
75
- <component name="IdeDocumentHistory">
76
- <option name="CHANGED_PATHS">
77
- <list>
78
- <option value="$PROJECT_DIR$/lib/sudoku/object.rb" />
79
- <option value="$PROJECT_DIR$/lib/sudoku.rb" />
80
- <option value="$PROJECT_DIR$/lib/sudoku/solver.rb" />
81
- <option value="$PROJECT_DIR$/lib/sudoku/sudoku.rb" />
82
- <option value="$PROJECT_DIR$/lib/sudoku/builder.rb" />
83
- <option value="$PROJECT_DIR$/lib/sudoku/test_run.rb" />
84
- <option value="$PROJECT_DIR$/.gitignore" />
85
- <option value="$PROJECT_DIR$/sudoku.gemspec" />
86
- <option value="$PROJECT_DIR$/sudoku_builder.gemspec" />
87
- <option value="$PROJECT_DIR$/lib/sudoku_builder/builder.rb" />
88
- <option value="$PROJECT_DIR$/lib/sudoku_builder/sudoku.rb" />
89
- <option value="$PROJECT_DIR$/lib/sudoku_builder.rb" />
90
- <option value="$PROJECT_DIR$/lib/sudoku_builder/solver.rb" />
91
- <option value="$PROJECT_DIR$/lib/sudoku_builder/version.rb" />
92
- <option value="$PROJECT_DIR$/README.md" />
93
- <option value="$PROJECT_DIR$/spec/sudoku_spec.rb" />
94
- </list>
95
- </option>
96
- </component>
97
- <component name="JsGulpfileManager">
98
- <detection-done>true</detection-done>
99
- </component>
100
- <component name="ProjectFrameBounds">
101
- <option name="width" value="1280" />
102
- <option name="height" value="800" />
103
- </component>
104
- <component name="ProjectLevelVcsManager" settingsEditedManually="false">
105
- <OptionsSetting value="true" id="Add" />
106
- <OptionsSetting value="true" id="Remove" />
107
- <OptionsSetting value="true" id="Checkout" />
108
- <OptionsSetting value="true" id="Update" />
109
- <OptionsSetting value="true" id="Status" />
110
- <OptionsSetting value="true" id="Edit" />
111
- <ConfirmationsSetting value="2" id="Add" />
112
- <ConfirmationsSetting value="0" id="Remove" />
113
- </component>
114
- <component name="ProjectView">
115
- <navigator currentView="ProjectPane" proportions="" version="1">
116
- <flattenPackages />
117
- <showMembers />
118
- <showModules />
119
- <showLibraryContents />
120
- <hideEmptyPackages />
121
- <abbreviatePackageNames />
122
- <autoscrollToSource />
123
- <autoscrollFromSource />
124
- <sortByType />
125
- </navigator>
126
- <panes>
127
- <pane id="ProjectPane">
128
- <subPane>
129
- <PATH>
130
- <PATH_ELEMENT>
131
- <option name="myItemId" value="sudoku" />
132
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
133
- </PATH_ELEMENT>
134
- </PATH>
135
- <PATH>
136
- <PATH_ELEMENT>
137
- <option name="myItemId" value="sudoku" />
138
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
139
- </PATH_ELEMENT>
140
- <PATH_ELEMENT>
141
- <option name="myItemId" value="sudoku" />
142
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
143
- </PATH_ELEMENT>
144
- </PATH>
145
- <PATH>
146
- <PATH_ELEMENT>
147
- <option name="myItemId" value="sudoku" />
148
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
149
- </PATH_ELEMENT>
150
- <PATH_ELEMENT>
151
- <option name="myItemId" value="sudoku" />
152
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
153
- </PATH_ELEMENT>
154
- <PATH_ELEMENT>
155
- <option name="myItemId" value="lib" />
156
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
157
- </PATH_ELEMENT>
158
- </PATH>
159
- <PATH>
160
- <PATH_ELEMENT>
161
- <option name="myItemId" value="sudoku" />
162
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
163
- </PATH_ELEMENT>
164
- <PATH_ELEMENT>
165
- <option name="myItemId" value="sudoku" />
166
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
167
- </PATH_ELEMENT>
168
- <PATH_ELEMENT>
169
- <option name="myItemId" value="lib" />
170
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
171
- </PATH_ELEMENT>
172
- <PATH_ELEMENT>
173
- <option name="myItemId" value="sudoku_builder" />
174
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
175
- </PATH_ELEMENT>
176
- </PATH>
177
- </subPane>
178
- </pane>
179
- <pane id="Scope" />
180
- </panes>
181
- </component>
182
- <component name="PropertiesComponent">
183
- <property name="last_opened_file_path" value="$PROJECT_DIR$" />
184
- <property name="WebServerToolWindowFactoryState" value="false" />
185
- <property name="FullScreen" value="true" />
186
- </component>
187
- <component name="RunManager">
188
- <configuration default="true" type="RSpecRunConfigurationType" factoryName="RSpec">
189
- <predefined_log_file id="RUBY_RSPEC" enabled="true" />
190
- <module name="" />
191
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
192
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
193
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
194
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
195
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
196
- <envs />
197
- <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
198
- <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
199
- <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
200
- <COVERAGE_PATTERN ENABLED="true">
201
- <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
202
- </COVERAGE_PATTERN>
203
- </EXTENSION>
204
- <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
205
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
206
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
207
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
208
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
209
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
210
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
211
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
212
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
213
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
214
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
215
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
216
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
217
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
218
- <method />
219
- </configuration>
220
- <configuration default="true" type="RubyRunConfigurationType" factoryName="Ruby">
221
- <module name="" />
222
- <RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
223
- <RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="" />
224
- <RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
225
- <RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
226
- <RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
227
- <envs />
228
- <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
229
- <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
230
- <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
231
- <COVERAGE_PATTERN ENABLED="true">
232
- <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
233
- </COVERAGE_PATTERN>
234
- </EXTENSION>
235
- <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
236
- <RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="" />
237
- <RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
238
- <method />
239
- </configuration>
240
- <configuration default="true" type="JavascriptDebugType" factoryName="JavaScript Debug">
241
- <method />
242
- </configuration>
243
- <configuration default="true" type="TestUnitRunConfigurationType" factoryName="Test::Unit/Shoulda/Minitest">
244
- <predefined_log_file id="RUBY_TESTUNIT" enabled="true" />
245
- <module name="" />
246
- <RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
247
- <RTEST_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
248
- <RTEST_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
249
- <RTEST_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
250
- <RTEST_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
251
- <envs />
252
- <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
253
- <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
254
- <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
255
- <COVERAGE_PATTERN ENABLED="true">
256
- <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
257
- </COVERAGE_PATTERN>
258
- </EXTENSION>
259
- <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
260
- <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
261
- <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
262
- <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="" />
263
- <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_METHOD_NAME" VALUE="" />
264
- <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
265
- <RTEST_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
266
- <RTEST_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
267
- <RTEST_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
268
- <RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_OPTIONS" VALUE="" />
269
- <method />
270
- </configuration>
271
- <configuration default="true" type="js.build_tools.gulp" factoryName="Gulp.js">
272
- <node-options />
273
- <gulpfile />
274
- <tasks />
275
- <arguments />
276
- <pass-parent-envs>true</pass-parent-envs>
277
- <envs />
278
- <method />
279
- </configuration>
280
- <list size="0" />
281
- </component>
282
- <component name="ShelveChangesManager" show_recycled="false" />
283
- <component name="TaskManager">
284
- <task active="true" id="Default" summary="Default task">
285
- <changelist id="4ba0e926-77d1-4436-9c09-2db6ca58a641" name="Default" comment="" />
286
- <created>1433375567963</created>
287
- <option name="number" value="Default" />
288
- <updated>1433375567963</updated>
289
- </task>
290
- <servers />
291
- </component>
292
- <component name="ToolWindowManager">
293
- <frame x="0" y="0" width="1280" height="800" extended-state="0" />
294
- <editor active="false" />
295
- <layout>
296
- <window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
297
- <window_info id="Terminal" active="true" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.31444758" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
298
- <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
299
- <window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
300
- <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
301
- <window_info id="Application Servers" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
302
- <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.26171243" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
303
- <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
304
- <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.63053435" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
305
- <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
306
- <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
307
- <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
308
- <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
309
- <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32977098" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
310
- <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
311
- <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="SLIDING" type="SLIDING" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
312
- <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
313
- <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
314
- <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32954547" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
315
- </layout>
316
- </component>
317
- <component name="Vcs.Log.UiProperties">
318
- <option name="RECENTLY_FILTERED_USER_GROUPS">
319
- <collection />
320
- </option>
321
- <option name="RECENTLY_FILTERED_BRANCH_GROUPS">
322
- <collection />
323
- </option>
324
- </component>
325
- <component name="VcsContentAnnotationSettings">
326
- <option name="myLimit" value="2678400000" />
327
- </component>
328
- <component name="VcsManagerConfiguration">
329
- <option name="myTodoPanelSettings">
330
- <TodoPanelSettings />
331
- </option>
332
- </component>
333
- <component name="XDebuggerManager">
334
- <breakpoint-manager>
335
- <option name="time" value="1" />
336
- </breakpoint-manager>
337
- <watches-manager />
338
- </component>
339
- <component name="editorHistoryManager">
340
- <entry file="file://$PROJECT_DIR$/lib/sudoku_builder.rb">
341
- <provider selected="true" editor-type-id="text-editor">
342
- <state vertical-scroll-proportion="0.0" vertical-offset="75" max-vertical-offset="255">
343
- <caret line="5" column="0" selection-start-line="5" selection-start-column="0" selection-end-line="10" selection-end-column="3" />
344
- <folding />
345
- </state>
346
- </provider>
347
- </entry>
348
- <entry file="file://$PROJECT_DIR$/lib/sudoku_builder/sudoku.rb">
349
- <provider selected="true" editor-type-id="text-editor">
350
- <state vertical-scroll-proportion="0.0" vertical-offset="65" max-vertical-offset="675">
351
- <caret line="29" column="0" selection-start-line="29" selection-start-column="0" selection-end-line="36" selection-end-column="7" />
352
- <folding />
353
- </state>
354
- </provider>
355
- </entry>
356
- <entry file="file://$PROJECT_DIR$/sudoku_builder.gemspec">
357
- <provider selected="true" editor-type-id="text-editor">
358
- <state vertical-scroll-proportion="0.0" vertical-offset="120" max-vertical-offset="420">
359
- <caret line="8" column="17" selection-start-line="8" selection-start-column="17" selection-end-line="8" selection-end-column="17" />
360
- <folding />
361
- </state>
362
- </provider>
363
- </entry>
364
- <entry file="file://$PROJECT_DIR$/lib/sudoku_builder/solver.rb">
365
- <provider selected="true" editor-type-id="text-editor">
366
- <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="1710">
367
- <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
368
- <folding />
369
- </state>
370
- </provider>
371
- </entry>
372
- <entry file="file://$PROJECT_DIR$/lib/sudoku_builder.rb">
373
- <provider selected="true" editor-type-id="text-editor">
374
- <state vertical-scroll-proportion="0.0" vertical-offset="195" max-vertical-offset="345">
375
- <caret line="13" column="7" selection-start-line="8" selection-start-column="4" selection-end-line="13" selection-end-column="7" />
376
- <folding />
377
- </state>
378
- </provider>
379
- </entry>
380
- <entry file="file://$PROJECT_DIR$/lib/sudoku_builder/sudoku.rb">
381
- <provider selected="true" editor-type-id="text-editor">
382
- <state vertical-scroll-proportion="0.0" vertical-offset="135" max-vertical-offset="375">
383
- <caret line="9" column="14" selection-start-line="9" selection-start-column="14" selection-end-line="19" selection-end-column="7" />
384
- <folding />
385
- </state>
386
- </provider>
387
- </entry>
388
- <entry file="file://$PROJECT_DIR$/lib/sudoku_builder/solver.rb">
389
- <provider selected="true" editor-type-id="text-editor">
390
- <state vertical-scroll-proportion="0.0" vertical-offset="765" max-vertical-offset="960">
391
- <caret line="61" column="83" selection-start-line="61" selection-start-column="83" selection-end-line="61" selection-end-column="83" />
392
- <folding />
393
- </state>
394
- </provider>
395
- </entry>
396
- <entry file="file://$PROJECT_DIR$/lib/sudoku_builder/builder.rb">
397
- <provider selected="true" editor-type-id="text-editor">
398
- <state vertical-scroll-proportion="0.0" vertical-offset="746" max-vertical-offset="1425">
399
- <caret line="52" column="8" selection-start-line="52" selection-start-column="8" selection-end-line="52" selection-end-column="8" />
400
- </state>
401
- </provider>
402
- </entry>
403
- <entry file="file://$PROJECT_DIR$/README.md">
404
- <provider selected="true" editor-type-id="text-editor">
405
- <state vertical-scroll-proportion="0.0" vertical-offset="855" max-vertical-offset="1170">
406
- <caret line="57" column="113" selection-start-line="57" selection-start-column="113" selection-end-line="57" selection-end-column="113" />
407
- </state>
408
- </provider>
409
- <provider editor-type-id="MarkdownPreviewEditor">
410
- <state />
411
- </provider>
412
- </entry>
413
- <entry file="file://$PROJECT_DIR$/spec/sudoku_spec.rb">
414
- <provider selected="true" editor-type-id="text-editor">
415
- <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="1200">
416
- <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
417
- </state>
418
- </provider>
419
- </entry>
420
- <entry file="file://$PROJECT_DIR$/lib/sudoku_builder.rb">
421
- <provider selected="true" editor-type-id="text-editor">
422
- <state vertical-scroll-proportion="0.0" vertical-offset="165" max-vertical-offset="345">
423
- <caret line="11" column="20" selection-start-line="11" selection-start-column="20" selection-end-line="11" selection-end-column="20" />
424
- <folding />
425
- </state>
426
- </provider>
427
- </entry>
428
- <entry file="file://$PROJECT_DIR$/lib/sudoku_builder/sudoku.rb">
429
- <provider selected="true" editor-type-id="text-editor">
430
- <state vertical-scroll-proportion="0.0" vertical-offset="135" max-vertical-offset="375">
431
- <caret line="9" column="14" selection-start-line="9" selection-start-column="14" selection-end-line="19" selection-end-column="7" />
432
- <folding />
433
- </state>
434
- </provider>
435
- </entry>
436
- <entry file="file://$PROJECT_DIR$/lib/sudoku_builder/solver.rb">
437
- <provider selected="true" editor-type-id="text-editor">
438
- <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="1065">
439
- <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
440
- <folding />
441
- </state>
442
- </provider>
443
- </entry>
444
- <entry file="file://$PROJECT_DIR$/.rspec">
445
- <provider selected="true" editor-type-id="text-editor">
446
- <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="410">
447
- <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
448
- </state>
449
- </provider>
450
- </entry>
451
- <entry file="file://$PROJECT_DIR$/Gemfile">
452
- <provider selected="true" editor-type-id="text-editor">
453
- <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="410">
454
- <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
455
- <folding />
456
- </state>
457
- </provider>
458
- </entry>
459
- <entry file="file://$PROJECT_DIR$/.gitignore">
460
- <provider selected="true" editor-type-id="text-editor">
461
- <state vertical-scroll-proportion="-28.2" vertical-offset="0" max-vertical-offset="810">
462
- <caret line="47" column="0" selection-start-line="47" selection-start-column="0" selection-end-line="47" selection-end-column="0" />
463
- </state>
464
- </provider>
465
- </entry>
466
- <entry file="file://$PROJECT_DIR$/.travis.yml">
467
- <provider selected="true" editor-type-id="text-editor">
468
- <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="410">
469
- <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
470
- </state>
471
- </provider>
472
- </entry>
473
- <entry file="file://$PROJECT_DIR$/bin/setup">
474
- <provider selected="true" editor-type-id="text-editor">
475
- <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="630">
476
- <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
477
- </state>
478
- </provider>
479
- </entry>
480
- <entry file="file://$PROJECT_DIR$/bin/console">
481
- <provider selected="true" editor-type-id="text-editor">
482
- <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="410">
483
- <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
484
- </state>
485
- </provider>
486
- </entry>
487
- <entry file="file://$USER_HOME$/.rbenv/versions/2.2.1/lib/ruby/2.2.0/rexml/functions.rb">
488
- <provider selected="true" editor-type-id="text-editor">
489
- <state vertical-scroll-proportion="4.197349" vertical-offset="930" max-vertical-offset="6000">
490
- <caret line="252" column="37" selection-start-line="252" selection-start-column="37" selection-end-line="252" selection-end-column="37" />
491
- </state>
492
- </provider>
493
- </entry>
494
- <entry file="file://$PROJECT_DIR$/lib/sudoku_builder/builder.rb">
495
- <provider selected="true" editor-type-id="text-editor">
496
- <state vertical-scroll-proportion="0.0" vertical-offset="670" max-vertical-offset="1425">
497
- <caret line="57" column="7" selection-start-line="57" selection-start-column="7" selection-end-line="57" selection-end-column="7" />
498
- </state>
499
- </provider>
500
- </entry>
501
- <entry file="file://$PROJECT_DIR$/lib/sudoku_builder/version.rb">
502
- <provider selected="true" editor-type-id="text-editor">
503
- <state vertical-scroll-proportion="0.024590164" vertical-offset="0" max-vertical-offset="610">
504
- <caret line="1" column="18" selection-start-line="1" selection-start-column="18" selection-end-line="1" selection-end-column="18" />
505
- </state>
506
- </provider>
507
- </entry>
508
- <entry file="file://$PROJECT_DIR$/README.md">
509
- <provider selected="true" editor-type-id="text-editor">
510
- <state vertical-scroll-proportion="0.54310346" vertical-offset="0" max-vertical-offset="1080">
511
- <caret line="21" column="0" selection-start-line="21" selection-start-column="0" selection-end-line="21" selection-end-column="0" />
512
- </state>
513
- </provider>
514
- <provider editor-type-id="MarkdownPreviewEditor">
515
- <state />
516
- </provider>
517
- </entry>
518
- <entry file="file://$PROJECT_DIR$/spec/sudoku_spec.rb">
519
- <provider selected="true" editor-type-id="text-editor">
520
- <state vertical-scroll-proportion="0.6557377" vertical-offset="590" max-vertical-offset="1200">
521
- <caret line="66" column="39" selection-start-line="66" selection-start-column="39" selection-end-line="66" selection-end-column="39" />
522
- </state>
523
- </provider>
524
- </entry>
525
- <entry file="file://$PROJECT_DIR$/sudoku_builder.gemspec">
526
- <provider selected="true" editor-type-id="text-editor">
527
- <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="420">
528
- <caret line="8" column="17" selection-start-line="8" selection-start-column="17" selection-end-line="8" selection-end-column="17" />
529
- <folding />
530
- </state>
531
- </provider>
532
- </entry>
533
- <entry file="file://$PROJECT_DIR$/lib/sudoku_builder/sudoku.rb">
534
- <provider selected="true" editor-type-id="text-editor">
535
- <state vertical-scroll-proportion="0.0" vertical-offset="65" max-vertical-offset="675">
536
- <caret line="29" column="0" selection-start-line="29" selection-start-column="0" selection-end-line="36" selection-end-column="7" />
537
- <folding />
538
- </state>
539
- </provider>
540
- </entry>
541
- <entry file="file://$PROJECT_DIR$/lib/sudoku_builder.rb">
542
- <provider selected="true" editor-type-id="text-editor">
543
- <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="255">
544
- <caret line="5" column="0" selection-start-line="5" selection-start-column="0" selection-end-line="10" selection-end-column="3" />
545
- <folding />
546
- </state>
547
- </provider>
548
- </entry>
549
- <entry file="file://$PROJECT_DIR$/lib/sudoku_builder/solver.rb">
550
- <provider selected="true" editor-type-id="text-editor">
551
- <state vertical-scroll-proportion="2.254902" vertical-offset="0" max-vertical-offset="1710">
552
- <caret line="69" column="25" selection-start-line="69" selection-start-column="25" selection-end-line="69" selection-end-column="25" />
553
- <folding />
554
- </state>
555
- </provider>
556
- </entry>
557
- </component>
558
- </project>