LittleWeasel 0.0.3 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.idea/dictionaries/gangelo.xml +3 -0
- data/.idea/workspace.xml +179 -171
- data/.rspec +2 -0
- data/README.md +2 -2
- data/lib/LittleWeasel/version.rb +1 -1
- data/lib/LittleWeasel.rb +24 -1
- data/spec/checker/checker_spec.rb +60 -0
- data/{test → spec}/spec_helper.rb +0 -0
- metadata +8 -8
- data/test/checker/checker_spec.rb +0 -29
- data/test/spec.opts +0 -2
data/.idea/workspace.xml
CHANGED
@@ -2,20 +2,89 @@
|
|
2
2
|
<project version="4">
|
3
3
|
<component name="ChangeListManager">
|
4
4
|
<list default="true" id="34d4ec05-51d8-442a-84a5-75b5005cedf0" name="Default" comment="">
|
5
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/LittleWeasel.rb" afterPath="$PROJECT_DIR$/lib/LittleWeasel.rb" />
|
6
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/spec/checker/checker_spec.rb" afterPath="$PROJECT_DIR$/spec/checker/checker_spec.rb" />
|
5
7
|
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/LittleWeasel/version.rb" afterPath="$PROJECT_DIR$/lib/LittleWeasel/version.rb" />
|
6
8
|
</list>
|
7
9
|
<ignored path="LittleWeasel.iws" />
|
8
10
|
<ignored path=".idea/workspace.xml" />
|
9
|
-
<file path="/Dummy.txt" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="
|
10
|
-
<file path="/LittleWeasel.rb" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="
|
11
|
+
<file path="/Dummy.txt" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1372295761358" ignored="false" />
|
12
|
+
<file path="/LittleWeasel.rb" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1372298548295" ignored="false" />
|
11
13
|
<file path="/spec_helper.rb" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1371776194745" ignored="false" />
|
12
14
|
<file path="/little_weasel.rb" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1371781900009" ignored="false" />
|
13
|
-
<file path="/checker_spec.rb" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="
|
15
|
+
<file path="/checker_spec.rb" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1372298875670" ignored="false" />
|
14
16
|
<file path="/checker.rb" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1371778535451" ignored="false" />
|
15
17
|
<file path="/LittleWeasel.gemspec" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1371779509067" ignored="false" />
|
16
18
|
<file path="/.gitignore" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1371780237152" ignored="false" />
|
17
19
|
<file path="$PROJECT_DIR$/../Junk/Gemfile" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1371782248484" ignored="false" />
|
18
|
-
<file path="/README.md" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="
|
20
|
+
<file path="/README.md" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1372033430783" ignored="false" />
|
21
|
+
<file path="/spec.opts" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1371941082027" ignored="false" />
|
22
|
+
<file path="/temp.rb" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1371942034978" ignored="false" />
|
23
|
+
<file path="$PROJECT_DIR$/vendor/bundle/gems/rake-10.1.0/test/test_rake_test_task.rb" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1371942034978" ignored="false" />
|
24
|
+
<file path="$PROJECT_DIR$/vendor/bundle/gems/rake-10.1.0/Rakefile" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1371942034978" ignored="false" />
|
25
|
+
<file path="$PROJECT_DIR$/vendor/bundle/gems/rake-10.1.0/lib/rake/testtask.rb" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1371942034978" ignored="false" />
|
26
|
+
<file path="$PROJECT_DIR$/vendor/bundle/gems/diff-lcs-1.2.4/Rakefile" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1371942034978" ignored="false" />
|
27
|
+
<file path="/.rspec" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1371944858632" ignored="false" />
|
28
|
+
<file path="$PROJECT_DIR$/../monkeyengine/lib/MonkeyEngine.rb" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1371980216289" ignored="false" />
|
29
|
+
<file path="/MonkeyEngine.rb" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1371980214590" ignored="false" />
|
30
|
+
<file path="$PROJECT_DIR$/../monkeyengine/lib/MonkeyService/monkey_service.rb" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1371981402357" ignored="false" />
|
31
|
+
<file path="$PROJECT_DIR$/../monkeyengine/test/rspec/action_rules_spec.rb" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1371982098198" ignored="false" />
|
32
|
+
<file path="$PROJECT_DIR$/../monkeyengine/test/rspec/engine_spec.rb" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1371982108879" ignored="false" />
|
33
|
+
<file path="$PROJECT_DIR$/../monkeyengine/test/rspec/monkey_action_pause_spec.rb" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1371982199556" ignored="false" />
|
34
|
+
<file path="$PROJECT_DIR$/../monkeyengine/test/rspec/monkey_action_sleep_spec.rb" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1371982229867" ignored="false" />
|
35
|
+
<file path="$PROJECT_DIR$/../monkeyengine/test/rspec/monkey_action_type_spec.rb" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1371982254658" ignored="false" />
|
36
|
+
<file path="$PROJECT_DIR$/../monkeyengine/test/rspec/monkey_action_wake_spec.rb" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1371982308229" ignored="false" />
|
37
|
+
<file path="$PROJECT_DIR$/../monkeyengine/lib/MonkeyActions.rb" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1371979768765" ignored="false" />
|
38
|
+
<file path="/MonkeyActions.rb" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1371979768118" ignored="false" />
|
39
|
+
<file path="/engine_spec.rb" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1371979826507" ignored="false" />
|
40
|
+
<file path="$PROJECT_DIR$/../monkeyengine/lib/MonkeyFactory.rb" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1371980349322" ignored="false" />
|
41
|
+
<file path="/MonkeyFactory.rb" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1371980347682" ignored="false" />
|
42
|
+
<file path="$PROJECT_DIR$/../monkeyengine/lib/MonkeyKeyboardEnUs.rb" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1371980640803" ignored="false" />
|
43
|
+
<file path="/MonkeyKeyboardEnUs.rb" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1371980636819" ignored="false" />
|
44
|
+
<file path="/action_rules.rb" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1371981116941" ignored="false" />
|
45
|
+
<file path="$PROJECT_DIR$/../monkeyengine/lib/MonkeyEngine/action_rules.rb" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1372029402990" ignored="false" />
|
46
|
+
<file path="$PROJECT_DIR$/../monkeyengine/lib/MonkeyManager.rb" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1371981264462" ignored="false" />
|
47
|
+
<file path="/MonkeyManager.rb" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1371981261360" ignored="false" />
|
48
|
+
<file path="/Monkey.rb" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1371981388394" ignored="false" />
|
49
|
+
<file path="$PROJECT_DIR$/../monkeyengine/lib/Monkey.rb" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1371981391279" ignored="false" />
|
50
|
+
<file path="/MonkeyService.rb" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1371981745532" ignored="false" />
|
51
|
+
<file path="$PROJECT_DIR$/../monkeyengine/lib/MonkeyService.rb" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1371981747347" ignored="false" />
|
52
|
+
<file path="$PROJECT_DIR$/../monkeyengine/lib/Monkey/monkey.rb" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1371981801543" ignored="false" />
|
53
|
+
<file path="/monkey.rb" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1371981795000" ignored="false" />
|
54
|
+
<file path="$PROJECT_DIR$/../monkeyengine/test/rspec/monkey_service_spec.rb" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1371982340201" ignored="false" />
|
55
|
+
<file path="/action_rules_spec.rb" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1371982088543" ignored="false" />
|
56
|
+
<file path="$PROJECT_DIR$/../monkeyengine/test/rspec/keyboard_char_spec.rb" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1371982124599" ignored="false" />
|
57
|
+
<file path="/keyboard_char_spec.rb" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1371982118124" ignored="false" />
|
58
|
+
<file path="$PROJECT_DIR$/../monkeyengine/test/rspec/keyboard_key_spec.rb" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1371982153824" ignored="false" />
|
59
|
+
<file path="/keyboard_key_spec.rb" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1371982153186" ignored="false" />
|
60
|
+
<file path="/monkey_action_pause_spec.rb" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1371982183893" ignored="false" />
|
61
|
+
<file path="/monkey_action_sleep_spec.rb" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1371982222017" ignored="false" />
|
62
|
+
<file path="/monkey_action_type_spec.rb" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1371982247049" ignored="false" />
|
63
|
+
<file path="$PROJECT_DIR$/../monkeyengine/test/rspec/monkey_factory_spec.rb" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1371982294642" ignored="false" />
|
64
|
+
<file path="/monkey_action_wake_spec.rb" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1371982308229" ignored="false" />
|
65
|
+
<file path="$PROJECT_DIR$/../monkeyengine/test/rspec/monkey_keyboard_en_us_spec.rb" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1371982329369" ignored="false" />
|
66
|
+
<file path="/monkey_keyboard_en_us_spec.rb" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1371982324306" ignored="false" />
|
67
|
+
<file path="$PROJECT_DIR$/../monkeyengine/test/rspec/monkey_spec.rb" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1371982350348" ignored="false" />
|
68
|
+
<file path="$PROJECT_DIR$/../monkeyengine/LICENSE.txt" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1371982504914" ignored="false" />
|
69
|
+
<file path="/LICENSE.txt" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1371982504914" ignored="false" />
|
70
|
+
<file path="$PROJECT_DIR$/../monkeyengine/lib/MonkeyFactory/monkey_factory.rb" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1372026504574" ignored="false" />
|
71
|
+
<file path="$PROJECT_DIR$/../monkeyengine/lib/MonkeyAction/monkey_timed_action.rb" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1372026671447" ignored="false" />
|
72
|
+
<file path="/monkey_timed_action.rb" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1372026659810" ignored="false" />
|
73
|
+
<file path="$PROJECT_DIR$/../monkeyengine/lib/MonkeyAction/monkey_action_wake.rb" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1372026712349" ignored="false" />
|
74
|
+
<file path="$PROJECT_DIR$/../monkeyengine/lib/MonkeyAction/monkey_action_type.rb" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1372026718336" ignored="false" />
|
75
|
+
<file path="$PROJECT_DIR$/../monkeyengine/lib/MonkeyAction/monkey_action_sleep.rb" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1372026765151" ignored="false" />
|
76
|
+
<file path="/monkey_action_sleep.rb" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1372026763039" ignored="false" />
|
77
|
+
<file path="$PROJECT_DIR$/../monkeyengine/lib/MonkeyAction/monkey_action_pause.rb" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1372026794117" ignored="false" />
|
78
|
+
<file path="$PROJECT_DIR$/../monkeyengine/lib/MonkeyAction/monkey_action_eat.rb" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1372026801728" ignored="false" />
|
79
|
+
<file path="$PROJECT_DIR$/../monkeyengine/lib/MonkeyAction/monkey_action_dead.rb" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1372026814108" ignored="false" />
|
80
|
+
<file path="$PROJECT_DIR$/../monkeyengine/test/rspec/monkey_action_eat_spec.rb" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1372027845209" ignored="false" />
|
81
|
+
<file path="/monkey_action_eat_spec.rb" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1372027770209" ignored="false" />
|
82
|
+
<file path="$PROJECT_DIR$/../monkeyengine/Gemfile" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1372029000393" ignored="false" />
|
83
|
+
<file path="/action.rb" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1372029144020" ignored="false" />
|
84
|
+
<file path="$PROJECT_DIR$/../monkeyengine/lib/Action/action.rb" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1372029144020" ignored="false" />
|
85
|
+
<file path="$PROJECT_DIR$/../monkeyengine/bin/monkey_run.rb" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1372033010115" ignored="false" />
|
86
|
+
<file path="/monkey_run.rb" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1372033000238" ignored="false" />
|
87
|
+
<file path="/fragment.rb" changelist="34d4ec05-51d8-442a-84a5-75b5005cedf0" time="1372297872713" ignored="false" />
|
19
88
|
<option name="TRACKING_ENABLED" value="true" />
|
20
89
|
<option name="SHOW_DIALOG" value="false" />
|
21
90
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
@@ -35,73 +104,28 @@
|
|
35
104
|
</component>
|
36
105
|
<component name="FileEditorManager">
|
37
106
|
<leaf>
|
38
|
-
<file leaf-file-name="
|
39
|
-
<entry file="file://$PROJECT_DIR$/
|
40
|
-
<provider selected="true" editor-type-id="text-editor">
|
41
|
-
<state line="0" column="73" selection-start="73" selection-end="73" vertical-scroll-proportion="0.0">
|
42
|
-
<folding />
|
43
|
-
</state>
|
44
|
-
</provider>
|
45
|
-
</entry>
|
46
|
-
</file>
|
47
|
-
<file leaf-file-name="version.rb" pinned="false" current="true" current-in-tab="true">
|
48
|
-
<entry file="file://$PROJECT_DIR$/lib/LittleWeasel/version.rb">
|
49
|
-
<provider selected="true" editor-type-id="text-editor">
|
50
|
-
<state line="1" column="18" selection-start="38" selection-end="38" vertical-scroll-proportion="0.031446543">
|
51
|
-
<folding />
|
52
|
-
</state>
|
53
|
-
</provider>
|
54
|
-
</entry>
|
55
|
-
</file>
|
56
|
-
<file leaf-file-name="README.md" pinned="false" current="false" current-in-tab="false">
|
57
|
-
<entry file="file://$PROJECT_DIR$/README.md">
|
107
|
+
<file leaf-file-name="LittleWeasel.rb" pinned="false" current="false" current-in-tab="false">
|
108
|
+
<entry file="file://$PROJECT_DIR$/lib/LittleWeasel.rb">
|
58
109
|
<provider selected="true" editor-type-id="text-editor">
|
59
|
-
<state line="
|
110
|
+
<state line="21" column="64" selection-start="411" selection-end="411" vertical-scroll-proportion="0.0">
|
60
111
|
<folding />
|
61
112
|
</state>
|
62
113
|
</provider>
|
63
114
|
</entry>
|
64
115
|
</file>
|
65
116
|
<file leaf-file-name="checker_spec.rb" pinned="false" current="false" current-in-tab="false">
|
66
|
-
<entry file="file://$PROJECT_DIR$/
|
67
|
-
<provider selected="true" editor-type-id="text-editor">
|
68
|
-
<state line="5" column="47" selection-start="121" selection-end="151" vertical-scroll-proportion="0.0">
|
69
|
-
<folding />
|
70
|
-
</state>
|
71
|
-
</provider>
|
72
|
-
</entry>
|
73
|
-
</file>
|
74
|
-
<file leaf-file-name="Gemfile" pinned="false" current="false" current-in-tab="false">
|
75
|
-
<entry file="file://$PROJECT_DIR$/Gemfile">
|
76
|
-
<provider selected="true" editor-type-id="text-editor">
|
77
|
-
<state line="5" column="12" selection-start="110" selection-end="110" vertical-scroll-proportion="0.0">
|
78
|
-
<folding />
|
79
|
-
</state>
|
80
|
-
</provider>
|
81
|
-
</entry>
|
82
|
-
</file>
|
83
|
-
<file leaf-file-name="LittleWeasel.gemspec" pinned="false" current="false" current-in-tab="false">
|
84
|
-
<entry file="file://$PROJECT_DIR$/LittleWeasel.gemspec">
|
85
|
-
<provider selected="true" editor-type-id="text-editor">
|
86
|
-
<state line="11" column="95" selection-start="550" selection-end="550" vertical-scroll-proportion="0.0">
|
87
|
-
<folding />
|
88
|
-
</state>
|
89
|
-
</provider>
|
90
|
-
</entry>
|
91
|
-
</file>
|
92
|
-
<file leaf-file-name=".gitignore" pinned="false" current="false" current-in-tab="false">
|
93
|
-
<entry file="file://$PROJECT_DIR$/.gitignore">
|
117
|
+
<entry file="file://$PROJECT_DIR$/spec/checker/checker_spec.rb">
|
94
118
|
<provider selected="true" editor-type-id="text-editor">
|
95
|
-
<state line="
|
119
|
+
<state line="50" column="17" selection-start="1432" selection-end="1432" vertical-scroll-proportion="0.0">
|
96
120
|
<folding />
|
97
121
|
</state>
|
98
122
|
</provider>
|
99
123
|
</entry>
|
100
124
|
</file>
|
101
|
-
<file leaf-file-name="
|
102
|
-
<entry file="file://$PROJECT_DIR$/lib/LittleWeasel.rb">
|
125
|
+
<file leaf-file-name="version.rb" pinned="false" current="true" current-in-tab="true">
|
126
|
+
<entry file="file://$PROJECT_DIR$/lib/LittleWeasel/version.rb">
|
103
127
|
<provider selected="true" editor-type-id="text-editor">
|
104
|
-
<state line="
|
128
|
+
<state line="1" column="18" selection-start="38" selection-end="38" vertical-scroll-proportion="0.031446543">
|
105
129
|
<folding />
|
106
130
|
</state>
|
107
131
|
</provider>
|
@@ -125,18 +149,21 @@
|
|
125
149
|
<component name="IdeDocumentHistory">
|
126
150
|
<option name="changedFiles">
|
127
151
|
<list>
|
128
|
-
<option value="$PROJECT_DIR$/Rakefile" />
|
129
|
-
<option value="$PROJECT_DIR$/Gemfile" />
|
130
152
|
<option value="$PROJECT_DIR$/spec/spec_helper.rb" />
|
131
153
|
<option value="$PROJECT_DIR$/lib/LittleWeasel/checker.rb" />
|
132
|
-
<option value="$PROJECT_DIR$/spec/checker/checker_spec.rb" />
|
133
154
|
<option value="$PROJECT_DIR$/LittleWeasel.gemspec" />
|
134
155
|
<option value="$PROJECT_DIR$/.gitignore" />
|
135
156
|
<option value="$PROJECT_DIR$/lib/LittleWeasel/little_weasel.rb" />
|
136
157
|
<option value="$PROJECT_DIR$/lib/checker.rb" />
|
137
|
-
<option value="$PROJECT_DIR$/lib/LittleWeasel.rb" />
|
138
158
|
<option value="$PROJECT_DIR$/test/spec_helper.rb" />
|
159
|
+
<option value="$PROJECT_DIR$/test/.rspec" />
|
160
|
+
<option value="$PROJECT_DIR$/test/checker/checker_spec.rb" />
|
161
|
+
<option value="$PROJECT_DIR$/test/spec.opts" />
|
162
|
+
<option value="$PROJECT_DIR$/spec/.rspec" />
|
163
|
+
<option value="$PROJECT_DIR$/.rspec" />
|
139
164
|
<option value="$PROJECT_DIR$/README.md" />
|
165
|
+
<option value="$PROJECT_DIR$/lib/LittleWeasel.rb" />
|
166
|
+
<option value="$PROJECT_DIR$/spec/checker/checker_spec.rb" />
|
140
167
|
<option value="$PROJECT_DIR$/lib/LittleWeasel/version.rb" />
|
141
168
|
</list>
|
142
169
|
</option>
|
@@ -172,6 +199,7 @@
|
|
172
199
|
<sortByType />
|
173
200
|
</navigator>
|
174
201
|
<panes>
|
202
|
+
<pane id="Scope" />
|
175
203
|
<pane id="ProjectPane">
|
176
204
|
<subPane>
|
177
205
|
<PATH>
|
@@ -194,38 +222,6 @@
|
|
194
222
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
195
223
|
</PATH_ELEMENT>
|
196
224
|
</PATH>
|
197
|
-
<PATH>
|
198
|
-
<PATH_ELEMENT>
|
199
|
-
<option name="myItemId" value="LittleWeasel" />
|
200
|
-
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
201
|
-
</PATH_ELEMENT>
|
202
|
-
<PATH_ELEMENT>
|
203
|
-
<option name="myItemId" value="LittleWeasel" />
|
204
|
-
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
205
|
-
</PATH_ELEMENT>
|
206
|
-
<PATH_ELEMENT>
|
207
|
-
<option name="myItemId" value="test" />
|
208
|
-
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
209
|
-
</PATH_ELEMENT>
|
210
|
-
</PATH>
|
211
|
-
<PATH>
|
212
|
-
<PATH_ELEMENT>
|
213
|
-
<option name="myItemId" value="LittleWeasel" />
|
214
|
-
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
215
|
-
</PATH_ELEMENT>
|
216
|
-
<PATH_ELEMENT>
|
217
|
-
<option name="myItemId" value="LittleWeasel" />
|
218
|
-
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
219
|
-
</PATH_ELEMENT>
|
220
|
-
<PATH_ELEMENT>
|
221
|
-
<option name="myItemId" value="test" />
|
222
|
-
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
223
|
-
</PATH_ELEMENT>
|
224
|
-
<PATH_ELEMENT>
|
225
|
-
<option name="myItemId" value="checker" />
|
226
|
-
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
227
|
-
</PATH_ELEMENT>
|
228
|
-
</PATH>
|
229
225
|
<PATH>
|
230
226
|
<PATH_ELEMENT>
|
231
227
|
<option name="myItemId" value="LittleWeasel" />
|
@@ -260,67 +256,32 @@
|
|
260
256
|
</PATH>
|
261
257
|
</subPane>
|
262
258
|
</pane>
|
263
|
-
<pane id="Scope" />
|
264
259
|
</panes>
|
265
260
|
</component>
|
266
261
|
<component name="PropertiesComponent">
|
267
262
|
<property name="options.splitter.main.proportions" value="0.3" />
|
268
263
|
<property name="WebServerToolWindowFactoryState" value="false" />
|
264
|
+
<property name="options.lastSelected" value="coverage" />
|
269
265
|
<property name="recentsLimit" value="5" />
|
270
|
-
<property name="
|
271
|
-
<property name="last_opened_file_path" value="$PROJECT_DIR
|
266
|
+
<property name="restartRequiresConfirmation" value="true" />
|
267
|
+
<property name="last_opened_file_path" value="$PROJECT_DIR$/test" />
|
272
268
|
<property name="FullScreen" value="false" />
|
273
|
-
<property name="options.searchVisible" value="true" />
|
274
269
|
<property name="options.splitter.details.proportions" value="0.2" />
|
270
|
+
<property name="options.searchVisible" value="true" />
|
275
271
|
</component>
|
276
272
|
<component name="RecentsManager">
|
277
273
|
<key name="MoveFile.RECENT_KEYS">
|
274
|
+
<recent name="$PROJECT_DIR$" />
|
275
|
+
<recent name="$PROJECT_DIR$/bin" />
|
278
276
|
<recent name="$PROJECT_DIR$/lib" />
|
277
|
+
<recent name="$PROJECT_DIR$/spec" />
|
279
278
|
<recent name="$PROJECT_DIR$/test" />
|
280
|
-
<recent name="$PROJECT_DIR$/lib/LittleWeasel" />
|
281
|
-
<recent name="$PROJECT_DIR$/lib/little_weasel" />
|
282
279
|
</key>
|
283
280
|
</component>
|
284
281
|
<component name="RunManager" selected="RSpec.checker_spec">
|
285
|
-
<configuration default="false" name="checker_spec" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
286
|
-
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
287
|
-
<module name="LittleWeasel" />
|
288
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
289
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$PROJECT_DIR$" />
|
290
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
291
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
292
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
293
|
-
<envs>
|
294
|
-
<env name="JRUBY_OPTS" value="-X+O" />
|
295
|
-
</envs>
|
296
|
-
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
|
297
|
-
<EXTENSION ID="JRubyRunConfigurationExtension" />
|
298
|
-
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
299
|
-
<COVERAGE_PATTERN ENABLED="true">
|
300
|
-
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
301
|
-
</COVERAGE_PATTERN>
|
302
|
-
</EXTENSION>
|
303
|
-
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
304
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
305
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$PROJECT_DIR$/test/checker/checker_spec.rb" />
|
306
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
307
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
308
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
|
309
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
310
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
311
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
312
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
|
313
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
314
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
315
|
-
<RunnerSettings RunnerId="RubyDebugRunner" />
|
316
|
-
<RunnerSettings RunnerId="RubyRunner" />
|
317
|
-
<ConfigurationWrapper RunnerId="RubyDebugRunner" />
|
318
|
-
<ConfigurationWrapper RunnerId="RubyRunner" />
|
319
|
-
<method />
|
320
|
-
</configuration>
|
321
282
|
<configuration default="true" type="RSpecRunConfigurationType" factoryName="RSpec">
|
322
283
|
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
323
|
-
<module name="" />
|
284
|
+
<module name="LittleWeasel" />
|
324
285
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
325
286
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
|
326
287
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
@@ -338,7 +299,7 @@
|
|
338
299
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
339
300
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
|
340
301
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
341
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="
|
302
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="" />
|
342
303
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
|
343
304
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
344
305
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
@@ -394,14 +355,45 @@
|
|
394
355
|
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_OPTIONS" VALUE="" />
|
395
356
|
<method />
|
396
357
|
</configuration>
|
358
|
+
<configuration default="false" name="checker_spec" type="RSpecRunConfigurationType" factoryName="RSpec">
|
359
|
+
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
360
|
+
<module name="LittleWeasel" />
|
361
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
362
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$PROJECT_DIR$/spec/checker" />
|
363
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
364
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
365
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
366
|
+
<envs>
|
367
|
+
<env name="JRUBY_OPTS" value="-X+O" />
|
368
|
+
</envs>
|
369
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
|
370
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" />
|
371
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
372
|
+
<COVERAGE_PATTERN ENABLED="true">
|
373
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
374
|
+
</COVERAGE_PATTERN>
|
375
|
+
</EXTENSION>
|
376
|
+
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
377
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
378
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$PROJECT_DIR$/spec/checker/checker_spec.rb" />
|
379
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
380
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="" />
|
381
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
|
382
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
383
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
384
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
385
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
|
386
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
387
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
388
|
+
<RunnerSettings RunnerId="RubyDebugRunner" />
|
389
|
+
<RunnerSettings RunnerId="RubyRunner" />
|
390
|
+
<ConfigurationWrapper RunnerId="RubyDebugRunner" />
|
391
|
+
<ConfigurationWrapper RunnerId="RubyRunner" />
|
392
|
+
<method />
|
393
|
+
</configuration>
|
397
394
|
<list size="1">
|
398
395
|
<item index="0" class="java.lang.String" itemvalue="RSpec.checker_spec" />
|
399
396
|
</list>
|
400
|
-
<recent_temporary>
|
401
|
-
<list size="1">
|
402
|
-
<item index="0" class="java.lang.String" itemvalue="RSpec.checker_spec" />
|
403
|
-
</list>
|
404
|
-
</recent_temporary>
|
405
397
|
</component>
|
406
398
|
<component name="ShelveChangesManager" show_recycled="false" />
|
407
399
|
<component name="SvnConfiguration" maxAnnotateRevisions="500" myUseAcceleration="nothing" myAutoUpdateAfterCommit="false" cleanupOnStartRun="false" SSL_PROTOCOLS="sslv3">
|
@@ -435,10 +427,9 @@
|
|
435
427
|
<layout>
|
436
428
|
<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" />
|
437
429
|
<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" />
|
438
|
-
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32671958" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
439
430
|
<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" />
|
440
431
|
<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" />
|
441
|
-
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.
|
432
|
+
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.28550932" sideWeight="0.6697613" order="0" side_tool="false" content_ui="combo" />
|
442
433
|
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.39920425" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
443
434
|
<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" />
|
444
435
|
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
|
@@ -447,6 +438,7 @@
|
|
447
438
|
<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" />
|
448
439
|
<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" />
|
449
440
|
<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" />
|
441
|
+
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32625994" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
450
442
|
<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" />
|
451
443
|
<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" />
|
452
444
|
<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" />
|
@@ -511,17 +503,10 @@
|
|
511
503
|
</component>
|
512
504
|
<component name="XDebuggerManager">
|
513
505
|
<breakpoint-manager>
|
514
|
-
<option name="time" value="
|
506
|
+
<option name="time" value="5" />
|
515
507
|
</breakpoint-manager>
|
516
508
|
</component>
|
517
509
|
<component name="editorHistoryManager">
|
518
|
-
<entry file="file://$PROJECT_DIR$/LittleWeasel.gemspec">
|
519
|
-
<provider selected="true" editor-type-id="text-editor">
|
520
|
-
<state line="11" column="95" selection-start="550" selection-end="550" vertical-scroll-proportion="0.0">
|
521
|
-
<folding />
|
522
|
-
</state>
|
523
|
-
</provider>
|
524
|
-
</entry>
|
525
510
|
<entry file="file://$PROJECT_DIR$/.gitignore">
|
526
511
|
<provider selected="true" editor-type-id="text-editor">
|
527
512
|
<state line="5" column="11" selection-start="47" selection-end="47" vertical-scroll-proportion="0.0">
|
@@ -529,11 +514,6 @@
|
|
529
514
|
</state>
|
530
515
|
</provider>
|
531
516
|
</entry>
|
532
|
-
<entry file="file://$PROJECT_DIR$/test/spec.opts">
|
533
|
-
<provider selected="true" editor-type-id="text-editor">
|
534
|
-
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0" />
|
535
|
-
</provider>
|
536
|
-
</entry>
|
537
517
|
<entry file="file://$PROJECT_DIR$/vendor/bundle/gems/rake-10.1.0/install.rb">
|
538
518
|
<provider selected="true" editor-type-id="text-editor">
|
539
519
|
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0" />
|
@@ -561,44 +541,57 @@
|
|
561
541
|
</state>
|
562
542
|
</provider>
|
563
543
|
</entry>
|
564
|
-
<entry file="file://$PROJECT_DIR
|
544
|
+
<entry file="file://$PROJECT_DIR$/spec/spec_helper.rb">
|
565
545
|
<provider selected="true" editor-type-id="text-editor">
|
566
|
-
<state line="
|
567
|
-
<folding />
|
568
|
-
</state>
|
546
|
+
<state line="0" column="73" selection-start="73" selection-end="73" vertical-scroll-proportion="0.0" />
|
569
547
|
</provider>
|
570
548
|
</entry>
|
571
|
-
<entry file="file://$PROJECT_DIR$/
|
549
|
+
<entry file="file://$PROJECT_DIR$/LittleWeasel.gemspec">
|
572
550
|
<provider selected="true" editor-type-id="text-editor">
|
573
|
-
<state line="
|
551
|
+
<state line="11" column="95" selection-start="550" selection-end="550" vertical-scroll-proportion="0.0" />
|
552
|
+
</provider>
|
553
|
+
</entry>
|
554
|
+
<entry file="file://$PROJECT_DIR$/vendor/bundle/gems/rake-10.1.0/lib/rake/file_utils.rb">
|
555
|
+
<provider selected="true" editor-type-id="text-editor">
|
556
|
+
<state line="54" column="0" selection-start="1689" selection-end="1689" vertical-scroll-proportion="0.020604396" />
|
557
|
+
</provider>
|
558
|
+
</entry>
|
559
|
+
<entry file="file://$PROJECT_DIR$/.rspec">
|
560
|
+
<provider selected="true" editor-type-id="text-editor">
|
561
|
+
<state line="1" column="31" selection-start="17" selection-end="17" vertical-scroll-proportion="0.031446543" />
|
562
|
+
</provider>
|
563
|
+
</entry>
|
564
|
+
<entry file="file://$PROJECT_DIR$/.gitignore">
|
565
|
+
<provider selected="true" editor-type-id="text-editor">
|
566
|
+
<state line="17" column="3" selection-start="165" selection-end="165" vertical-scroll-proportion="0.0">
|
574
567
|
<folding />
|
575
568
|
</state>
|
576
569
|
</provider>
|
577
570
|
</entry>
|
578
|
-
<entry file="file://$PROJECT_DIR$/
|
571
|
+
<entry file="file://$PROJECT_DIR$/lib/dictionary">
|
579
572
|
<provider selected="true" editor-type-id="text-editor">
|
580
|
-
<state line="0" column="
|
573
|
+
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="-352.64462">
|
581
574
|
<folding />
|
582
575
|
</state>
|
583
576
|
</provider>
|
584
577
|
</entry>
|
585
|
-
<entry file="file://$PROJECT_DIR$/
|
578
|
+
<entry file="file://$PROJECT_DIR$/README.md">
|
586
579
|
<provider selected="true" editor-type-id="text-editor">
|
587
|
-
<state line="
|
580
|
+
<state line="3" column="6" selection-start="72" selection-end="72" vertical-scroll-proportion="0.0">
|
588
581
|
<folding />
|
589
582
|
</state>
|
590
583
|
</provider>
|
591
584
|
</entry>
|
592
|
-
<entry file="file://$PROJECT_DIR$/
|
585
|
+
<entry file="file://$PROJECT_DIR$/lib/LittleWeasel.rb">
|
593
586
|
<provider selected="true" editor-type-id="text-editor">
|
594
|
-
<state line="
|
587
|
+
<state line="21" column="64" selection-start="411" selection-end="411" vertical-scroll-proportion="0.0">
|
595
588
|
<folding />
|
596
589
|
</state>
|
597
590
|
</provider>
|
598
591
|
</entry>
|
599
|
-
<entry file="file://$PROJECT_DIR$/
|
592
|
+
<entry file="file://$PROJECT_DIR$/spec/checker/checker_spec.rb">
|
600
593
|
<provider selected="true" editor-type-id="text-editor">
|
601
|
-
<state line="
|
594
|
+
<state line="50" column="17" selection-start="1432" selection-end="1432" vertical-scroll-proportion="0.0">
|
602
595
|
<folding />
|
603
596
|
</state>
|
604
597
|
</provider>
|
@@ -611,5 +604,20 @@
|
|
611
604
|
</provider>
|
612
605
|
</entry>
|
613
606
|
</component>
|
607
|
+
<component name="masterDetails">
|
608
|
+
<states>
|
609
|
+
<state key="ScopeChooserConfigurable.UI">
|
610
|
+
<settings>
|
611
|
+
<splitter-proportions>
|
612
|
+
<option name="proportions">
|
613
|
+
<list>
|
614
|
+
<option value="0.2" />
|
615
|
+
</list>
|
616
|
+
</option>
|
617
|
+
</splitter-proportions>
|
618
|
+
</settings>
|
619
|
+
</state>
|
620
|
+
</states>
|
621
|
+
</component>
|
614
622
|
</project>
|
615
623
|
|
data/.rspec
ADDED
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# LittleWeasel
|
2
2
|
|
3
3
|
Simple spell checker using an english dictionary.
|
4
|
-
|
4
|
+
Forked from https://github.com/stewartmckee/spell_checker
|
5
5
|
|
6
6
|
## Installation
|
7
7
|
|
@@ -25,7 +25,7 @@ LittleWeasel::Checker.instance.exists?('word') # true if exists in the dictionar
|
|
25
25
|
|
26
26
|
## Contributing
|
27
27
|
|
28
|
-
|
28
|
+
Not open to contributions just yet, sorry :)
|
29
29
|
|
30
30
|
## License
|
31
31
|
|
data/lib/LittleWeasel/version.rb
CHANGED
data/lib/LittleWeasel.rb
CHANGED
@@ -8,15 +8,38 @@ module LittleWeasel
|
|
8
8
|
|
9
9
|
attr_reader :dictionary
|
10
10
|
|
11
|
+
private
|
12
|
+
|
13
|
+
attr_reader :alphanet_exclusion_list
|
14
|
+
|
15
|
+
public
|
16
|
+
|
11
17
|
def initialize
|
18
|
+
@options = {exclude_alphabet: false}
|
19
|
+
@alphabet_exclusion_list = %w{ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z }
|
12
20
|
@dictionary = Hash.new(1)
|
13
21
|
load
|
14
22
|
end
|
15
23
|
|
16
|
-
def exists?(word)
|
24
|
+
def exists?(word, options=nil)
|
25
|
+
options = options || @options
|
26
|
+
|
27
|
+
return false if word.nil? || !word.is_a?(String)
|
28
|
+
return false if options[:exclude_alphabet] && word.length == 1 && @alphabet_exclusion_list.include?(word.upcase)
|
29
|
+
|
17
30
|
dictionary.has_key? word
|
18
31
|
end
|
19
32
|
|
33
|
+
# {exclude_alphabet: true} will return exist? == false for a-z, A-Z
|
34
|
+
# {exclude_alphabet: false} will return exist? == true for a-z, A-Z
|
35
|
+
def options=(options)
|
36
|
+
@options = options
|
37
|
+
end
|
38
|
+
|
39
|
+
def options
|
40
|
+
@options
|
41
|
+
end
|
42
|
+
|
20
43
|
private
|
21
44
|
|
22
45
|
def dictionary_path
|
@@ -0,0 +1,60 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
|
2
|
+
|
3
|
+
describe LittleWeasel do
|
4
|
+
|
5
|
+
before do
|
6
|
+
@spell = LittleWeasel::Checker.instance
|
7
|
+
end
|
8
|
+
|
9
|
+
it 'should create a LittleWeasel object' do
|
10
|
+
@spell.should be_an_instance_of LittleWeasel::Checker
|
11
|
+
end
|
12
|
+
|
13
|
+
it 'should return true for valid word' do
|
14
|
+
@spell.exists?('apple').should == true
|
15
|
+
end
|
16
|
+
|
17
|
+
it 'should return false for invalid word' do
|
18
|
+
@spell.exists?('appel').should == false
|
19
|
+
end
|
20
|
+
|
21
|
+
it 'should return false for nil' do
|
22
|
+
@spell.exists?(nil).should == false
|
23
|
+
end
|
24
|
+
|
25
|
+
it 'should return false for non-String' do
|
26
|
+
@spell.exists?(:word).should == false
|
27
|
+
end
|
28
|
+
|
29
|
+
it 'should return true if option exclude_alphabet is false, and word is a letter' do
|
30
|
+
@spell.options = {exclude_alphabet: false}
|
31
|
+
@spell.exists?('x').should == true
|
32
|
+
@spell.exists?('X').should == true
|
33
|
+
end
|
34
|
+
|
35
|
+
it 'should return false if option exclude_alphabet is true, and word is a letter' do
|
36
|
+
@spell.options = {exclude_alphabet: true}
|
37
|
+
@spell.exists?('x').should == false
|
38
|
+
@spell.exists?('X').should == false
|
39
|
+
end
|
40
|
+
|
41
|
+
it 'should use options passed to exist? 1' do
|
42
|
+
@spell.options = {exclude_alphabet: false}
|
43
|
+
@spell.exists?('h', {exclude_alphabet: true}).should == false
|
44
|
+
end
|
45
|
+
|
46
|
+
it 'should use options passed to exist? 2' do
|
47
|
+
@spell.options = {exclude_alphabet: true}
|
48
|
+
@spell.exists?('h', {exclude_alphabet: false}).should == true
|
49
|
+
end
|
50
|
+
|
51
|
+
# TODO: Profile
|
52
|
+
it "shouldn't take forever to find a lot of words" do
|
53
|
+
words = %w{ all bad cap dad eat fad glad had inch jump kind lend monster on put quiet run sad tape under vector was xenophobe yes zebra }
|
54
|
+
|
55
|
+
words *= 100
|
56
|
+
|
57
|
+
words.each { |word| @spell.exists?(word).should == true }
|
58
|
+
end
|
59
|
+
|
60
|
+
end
|
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: LittleWeasel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 1.0.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-06-
|
12
|
+
date: 2013-06-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -54,6 +54,7 @@ files:
|
|
54
54
|
- .idea/.name
|
55
55
|
- .idea/.rakeTasks
|
56
56
|
- .idea/LittleWeasel.iml
|
57
|
+
- .idea/dictionaries/gangelo.xml
|
57
58
|
- .idea/encodings.xml
|
58
59
|
- .idea/misc.xml
|
59
60
|
- .idea/modules.xml
|
@@ -61,6 +62,7 @@ files:
|
|
61
62
|
- .idea/vcs.xml
|
62
63
|
- .idea/workspace.xml
|
63
64
|
- .rbenv-version
|
65
|
+
- .rspec
|
64
66
|
- Gemfile
|
65
67
|
- LICENSE.txt
|
66
68
|
- LittleWeasel.gemspec
|
@@ -69,9 +71,8 @@ files:
|
|
69
71
|
- lib/LittleWeasel.rb
|
70
72
|
- lib/LittleWeasel/version.rb
|
71
73
|
- lib/dictionary
|
72
|
-
-
|
73
|
-
-
|
74
|
-
- test/spec_helper.rb
|
74
|
+
- spec/checker/checker_spec.rb
|
75
|
+
- spec/spec_helper.rb
|
75
76
|
homepage: ''
|
76
77
|
licenses:
|
77
78
|
- MIT
|
@@ -98,7 +99,6 @@ signing_key:
|
|
98
99
|
specification_version: 3
|
99
100
|
summary: Simply checks a word for validity against an english dictionary file.
|
100
101
|
test_files:
|
101
|
-
-
|
102
|
-
-
|
103
|
-
- test/spec_helper.rb
|
102
|
+
- spec/checker/checker_spec.rb
|
103
|
+
- spec/spec_helper.rb
|
104
104
|
has_rdoc:
|
@@ -1,29 +0,0 @@
|
|
1
|
-
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
|
2
|
-
|
3
|
-
describe LittleWeasel do
|
4
|
-
|
5
|
-
before do
|
6
|
-
@spell = LittleWeasel::Checker.instance
|
7
|
-
end
|
8
|
-
|
9
|
-
it 'should create a LittleWeasel object' do
|
10
|
-
@spell.should be_an_instance_of LittleWeasel::Checker
|
11
|
-
end
|
12
|
-
|
13
|
-
it 'should return true for valid word' do
|
14
|
-
@spell.exists?('apple').should == true
|
15
|
-
end
|
16
|
-
|
17
|
-
it 'should return false for invalid word' do
|
18
|
-
@spell.exists?('appel').should == false
|
19
|
-
end
|
20
|
-
|
21
|
-
# it 'time test' do
|
22
|
-
# words = %w{ all bad cap dad eat fad glad had inch jump kind lend monster on put quiet run sad tape under vector was xenophobe yes zebra }
|
23
|
-
#
|
24
|
-
# words *= 100
|
25
|
-
#
|
26
|
-
# words.each{|word| puts(word); @spell.exists?(word).should == true }
|
27
|
-
# end
|
28
|
-
|
29
|
-
end
|
data/test/spec.opts
DELETED