orgno_validator 0.0.2 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.idea/.name +1 -0
- data/.idea/encodings.xml +5 -0
- data/.idea/misc.xml +25 -0
- data/.idea/modules.xml +9 -0
- data/.idea/orgno_validator.iml +21 -0
- data/.idea/scopes/scope_settings.xml +5 -0
- data/.idea/vcs.xml +7 -0
- data/.idea/workspace.xml +630 -0
- data/Gemfile +2 -0
- data/README.markdown +3 -1
- data/lib/orgno_validator.rb +5 -0
- data/orgno_validator.gemspec +3 -3
- data/spec/orgno_validator_spec.rb +13 -3
- metadata +15 -7
data/.idea/.name
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
orgno_validator
|
data/.idea/encodings.xml
ADDED
data/.idea/misc.xml
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="ProjectResources">
|
|
4
|
+
<default-html-doctype>http://www.w3.org/1999/xhtml</default-html-doctype>
|
|
5
|
+
</component>
|
|
6
|
+
<component name="ProjectRootManager" version="2" project-jdk-name="RVM: ruby-1.9.2-p290 [rvo]" project-jdk-type="RUBY_SDK" />
|
|
7
|
+
<component name="SvnConfiguration" maxAnnotateRevisions="500">
|
|
8
|
+
<option name="USER" value="" />
|
|
9
|
+
<option name="PASSWORD" value="" />
|
|
10
|
+
<option name="mySSHConnectionTimeout" value="30000" />
|
|
11
|
+
<option name="mySSHReadTimeout" value="30000" />
|
|
12
|
+
<option name="LAST_MERGED_REVISION" />
|
|
13
|
+
<option name="MERGE_DRY_RUN" value="false" />
|
|
14
|
+
<option name="MERGE_DIFF_USE_ANCESTRY" value="true" />
|
|
15
|
+
<option name="UPDATE_LOCK_ON_DEMAND" value="false" />
|
|
16
|
+
<option name="IGNORE_SPACES_IN_MERGE" value="false" />
|
|
17
|
+
<option name="DETECT_NESTED_COPIES" value="true" />
|
|
18
|
+
<option name="CHECK_NESTED_FOR_QUICK_MERGE" value="false" />
|
|
19
|
+
<option name="IGNORE_SPACES_IN_ANNOTATE" value="true" />
|
|
20
|
+
<option name="SHOW_MERGE_SOURCES_IN_ANNOTATE" value="true" />
|
|
21
|
+
<option name="FORCE_UPDATE" value="false" />
|
|
22
|
+
<myIsUseDefaultProxy>false</myIsUseDefaultProxy>
|
|
23
|
+
</component>
|
|
24
|
+
</project>
|
|
25
|
+
|
data/.idea/modules.xml
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
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/orgno_validator.iml" filepath="$PROJECT_DIR$/.idea/orgno_validator.iml" />
|
|
6
|
+
</modules>
|
|
7
|
+
</component>
|
|
8
|
+
</project>
|
|
9
|
+
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<module type="RUBY_MODULE" version="4">
|
|
3
|
+
<component name="NewModuleRootManager">
|
|
4
|
+
<content url="file://$MODULE_DIR$" />
|
|
5
|
+
<orderEntry type="inheritedJdk" />
|
|
6
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
|
7
|
+
<orderEntry type="library" scope="PROVIDED" name="activemodel (v3.2.0.rc2, RVM: ruby-1.9.2-p290 [rvo]) [gem]" level="application" />
|
|
8
|
+
<orderEntry type="library" scope="PROVIDED" name="activesupport (v3.1.3, RVM: ruby-1.9.2-p290 [rvo]) [gem]" level="application" />
|
|
9
|
+
<orderEntry type="library" scope="PROVIDED" name="builder (v3.0.0, RVM: ruby-1.9.2-p290 [rvo]) [gem]" level="application" />
|
|
10
|
+
<orderEntry type="library" scope="PROVIDED" name="bundler (v1.1.rc, RVM: ruby-1.9.2-p290 [rvo]) [gem]" level="application" />
|
|
11
|
+
<orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.1.3, RVM: ruby-1.9.2-p290 [rvo]) [gem]" level="application" />
|
|
12
|
+
<orderEntry type="library" scope="PROVIDED" name="i18n (v0.6.0, RVM: ruby-1.9.2-p290 [rvo]) [gem]" level="application" />
|
|
13
|
+
<orderEntry type="library" scope="PROVIDED" name="multi_json (v1.0.4, RVM: ruby-1.9.2-p290 [rvo]) [gem]" level="application" />
|
|
14
|
+
<orderEntry type="library" scope="PROVIDED" name="rake (v0.9.2.2, RVM: ruby-1.9.2-p290 [rvo]) [gem]" level="application" />
|
|
15
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec (v2.8.0, RVM: ruby-1.9.2-p290 [rvo]) [gem]" level="application" />
|
|
16
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec-core (v2.8.0, RVM: ruby-1.9.2-p290 [rvo]) [gem]" level="application" />
|
|
17
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v2.8.0, RVM: ruby-1.9.2-p290 [rvo]) [gem]" level="application" />
|
|
18
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v2.8.0, RVM: ruby-1.9.2-p290 [rvo]) [gem]" level="application" />
|
|
19
|
+
</component>
|
|
20
|
+
</module>
|
|
21
|
+
|
data/.idea/vcs.xml
ADDED
data/.idea/workspace.xml
ADDED
|
@@ -0,0 +1,630 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="ChangeListManager">
|
|
4
|
+
<list id="d327966a-12f6-43c7-9792-08e6d7552fb7" name="Default" comment="">
|
|
5
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/orgno_validator.iml" afterPath="$PROJECT_DIR$/.idea/orgno_validator.iml" />
|
|
6
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
|
|
7
|
+
</list>
|
|
8
|
+
<list default="true" id="7259c492-c41f-48ef-895a-ef6561c1adb8" name="New changelist" comment="" />
|
|
9
|
+
<ignored path="orgno_validator.iws" />
|
|
10
|
+
<ignored path=".idea/workspace.xml" />
|
|
11
|
+
<file path="$PROJECT_DIR$/.idea/workspace.xml" changelist="7259c492-c41f-48ef-895a-ef6561c1adb8" time="1329261625291" ignored="false" />
|
|
12
|
+
<option name="TRACKING_ENABLED" value="true" />
|
|
13
|
+
<option name="SHOW_DIALOG" value="false" />
|
|
14
|
+
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
15
|
+
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
|
16
|
+
<option name="LAST_RESOLUTION" value="IGNORE" />
|
|
17
|
+
</component>
|
|
18
|
+
<component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
|
|
19
|
+
<component name="CreatePatchCommitExecutor">
|
|
20
|
+
<option name="PATCH_PATH" value="" />
|
|
21
|
+
</component>
|
|
22
|
+
<component name="DaemonCodeAnalyzer">
|
|
23
|
+
<disable_hints />
|
|
24
|
+
</component>
|
|
25
|
+
<component name="FavoritesManager">
|
|
26
|
+
<favorites_list name="orgno_validator" />
|
|
27
|
+
</component>
|
|
28
|
+
<component name="FileEditorManager">
|
|
29
|
+
<leaf>
|
|
30
|
+
<file leaf-file-name="orgno_validator_spec.rb" pinned="false" current="false" current-in-tab="false">
|
|
31
|
+
<entry file="file://$PROJECT_DIR$/spec/orgno_validator_spec.rb">
|
|
32
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
33
|
+
<state line="40" column="0" selection-start="1103" selection-end="1103" vertical-scroll-proportion="0.0">
|
|
34
|
+
<folding />
|
|
35
|
+
</state>
|
|
36
|
+
</provider>
|
|
37
|
+
</entry>
|
|
38
|
+
</file>
|
|
39
|
+
<file leaf-file-name="spec_helper.rb" pinned="false" current="false" current-in-tab="false">
|
|
40
|
+
<entry file="file://$PROJECT_DIR$/spec/spec_helper.rb">
|
|
41
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
42
|
+
<state line="7" column="18" selection-start="188" selection-end="188" vertical-scroll-proportion="0.0">
|
|
43
|
+
<folding />
|
|
44
|
+
</state>
|
|
45
|
+
</provider>
|
|
46
|
+
</entry>
|
|
47
|
+
</file>
|
|
48
|
+
<file leaf-file-name="orgno_validator.rb" pinned="false" current="false" current-in-tab="false">
|
|
49
|
+
<entry file="file://$PROJECT_DIR$/lib/orgno_validator.rb">
|
|
50
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
51
|
+
<state line="32" column="0" selection-start="790" selection-end="790" vertical-scroll-proportion="0.0">
|
|
52
|
+
<folding />
|
|
53
|
+
</state>
|
|
54
|
+
</provider>
|
|
55
|
+
</entry>
|
|
56
|
+
</file>
|
|
57
|
+
<file leaf-file-name="orgno_validator.gemspec" pinned="false" current="true" current-in-tab="true">
|
|
58
|
+
<entry file="file://$PROJECT_DIR$/orgno_validator.gemspec">
|
|
59
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
60
|
+
<state line="18" column="99" selection-start="779" selection-end="779" vertical-scroll-proportion="0.42007002">
|
|
61
|
+
<folding />
|
|
62
|
+
</state>
|
|
63
|
+
</provider>
|
|
64
|
+
</entry>
|
|
65
|
+
</file>
|
|
66
|
+
<file leaf-file-name="README.markdown" pinned="false" current="false" current-in-tab="false">
|
|
67
|
+
<entry file="file://$PROJECT_DIR$/README.markdown">
|
|
68
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
69
|
+
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
|
|
70
|
+
<folding />
|
|
71
|
+
</state>
|
|
72
|
+
</provider>
|
|
73
|
+
</entry>
|
|
74
|
+
</file>
|
|
75
|
+
<file leaf-file-name="Gemfile" pinned="false" current="false" current-in-tab="false">
|
|
76
|
+
<entry file="file://$PROJECT_DIR$/Gemfile">
|
|
77
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
78
|
+
<state line="4" column="44" selection-start="86" selection-end="86" vertical-scroll-proportion="0.0">
|
|
79
|
+
<folding />
|
|
80
|
+
</state>
|
|
81
|
+
</provider>
|
|
82
|
+
</entry>
|
|
83
|
+
</file>
|
|
84
|
+
<file leaf-file-name="method_missing.rb" pinned="false" current="false" current-in-tab="false">
|
|
85
|
+
<entry file="file://$USER_HOME$/.rvm/gems/ruby-1.9.2-p290@rvo/gems/rspec-expectations-2.8.0/lib/rspec/matchers/method_missing.rb">
|
|
86
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
87
|
+
<state line="6" column="0" selection-start="91" selection-end="91" vertical-scroll-proportion="0.0">
|
|
88
|
+
<folding />
|
|
89
|
+
</state>
|
|
90
|
+
</provider>
|
|
91
|
+
</entry>
|
|
92
|
+
</file>
|
|
93
|
+
<file leaf-file-name="configuration.rb" pinned="false" current="false" current-in-tab="false">
|
|
94
|
+
<entry file="file://$USER_HOME$/.rvm/gems/ruby-1.9.2-p290@rvo/gems/rspec-core-2.8.0/lib/rspec/core/configuration.rb">
|
|
95
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
96
|
+
<state line="731" column="12" selection-start="23946" selection-end="23946" vertical-scroll-proportion="0.0">
|
|
97
|
+
<folding />
|
|
98
|
+
</state>
|
|
99
|
+
</provider>
|
|
100
|
+
</entry>
|
|
101
|
+
</file>
|
|
102
|
+
<file leaf-file-name="example.rb" pinned="false" current="false" current-in-tab="false">
|
|
103
|
+
<entry file="file://$USER_HOME$/.rvm/gems/ruby-1.9.2-p290@rvo/gems/rspec-core-2.8.0/lib/rspec/core/example.rb">
|
|
104
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
105
|
+
<state line="92" column="0" selection-start="3267" selection-end="3267" vertical-scroll-proportion="0.0">
|
|
106
|
+
<folding />
|
|
107
|
+
</state>
|
|
108
|
+
</provider>
|
|
109
|
+
</entry>
|
|
110
|
+
</file>
|
|
111
|
+
<file leaf-file-name="example_group.rb" pinned="false" current="false" current-in-tab="false">
|
|
112
|
+
<entry file="file://$USER_HOME$/.rvm/gems/ruby-1.9.2-p290@rvo/gems/rspec-core-2.8.0/lib/rspec/core/example_group.rb">
|
|
113
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
114
|
+
<state line="355" column="0" selection-start="12201" selection-end="12201" vertical-scroll-proportion="0.0">
|
|
115
|
+
<folding />
|
|
116
|
+
</state>
|
|
117
|
+
</provider>
|
|
118
|
+
</entry>
|
|
119
|
+
</file>
|
|
120
|
+
</leaf>
|
|
121
|
+
</component>
|
|
122
|
+
<component name="FindManager">
|
|
123
|
+
<FindUsagesManager>
|
|
124
|
+
<setting name="OPEN_NEW_TAB" value="false" />
|
|
125
|
+
</FindUsagesManager>
|
|
126
|
+
</component>
|
|
127
|
+
<component name="Git.Settings">
|
|
128
|
+
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
|
129
|
+
</component>
|
|
130
|
+
<component name="IdeDocumentHistory">
|
|
131
|
+
<option name="changedFiles">
|
|
132
|
+
<list>
|
|
133
|
+
<option value="$PROJECT_DIR$/spec/spec_helper.rb" />
|
|
134
|
+
<option value="$PROJECT_DIR$/Rakefile" />
|
|
135
|
+
<option value="$PROJECT_DIR$/spec/orgno_validator_spec.rb" />
|
|
136
|
+
<option value="$PROJECT_DIR$/lib/orgno_validator.rb" />
|
|
137
|
+
<option value="$PROJECT_DIR$/orgno_validator.gemspec" />
|
|
138
|
+
</list>
|
|
139
|
+
</option>
|
|
140
|
+
</component>
|
|
141
|
+
<component name="ProjectFrameBounds">
|
|
142
|
+
<option name="y" value="22" />
|
|
143
|
+
<option name="width" value="2560" />
|
|
144
|
+
<option name="height" value="1414" />
|
|
145
|
+
</component>
|
|
146
|
+
<component name="ProjectLevelVcsManager" settingsEditedManually="false">
|
|
147
|
+
<OptionsSetting value="true" id="Add" />
|
|
148
|
+
<OptionsSetting value="true" id="Remove" />
|
|
149
|
+
<OptionsSetting value="true" id="Checkout" />
|
|
150
|
+
<OptionsSetting value="true" id="Update" />
|
|
151
|
+
<OptionsSetting value="true" id="Status" />
|
|
152
|
+
<OptionsSetting value="true" id="Edit" />
|
|
153
|
+
<ConfirmationsSetting value="0" id="Add" />
|
|
154
|
+
<ConfirmationsSetting value="0" id="Remove" />
|
|
155
|
+
</component>
|
|
156
|
+
<component name="ProjectReloadState">
|
|
157
|
+
<option name="STATE" value="0" />
|
|
158
|
+
</component>
|
|
159
|
+
<component name="ProjectView">
|
|
160
|
+
<navigator currentView="ProjectPane" proportions="" version="1" splitterProportion="0.5">
|
|
161
|
+
<flattenPackages />
|
|
162
|
+
<showMembers />
|
|
163
|
+
<showModules />
|
|
164
|
+
<showLibraryContents />
|
|
165
|
+
<hideEmptyPackages />
|
|
166
|
+
<abbreviatePackageNames />
|
|
167
|
+
<autoscrollToSource />
|
|
168
|
+
<autoscrollFromSource />
|
|
169
|
+
<sortByType />
|
|
170
|
+
</navigator>
|
|
171
|
+
<panes>
|
|
172
|
+
<pane id="Scope">
|
|
173
|
+
<subPane subId="Project Files">
|
|
174
|
+
<PATH>
|
|
175
|
+
<PATH_ELEMENT USER_OBJECT="Root">
|
|
176
|
+
<option name="myItemId" value="" />
|
|
177
|
+
<option name="myItemType" value="" />
|
|
178
|
+
</PATH_ELEMENT>
|
|
179
|
+
</PATH>
|
|
180
|
+
</subPane>
|
|
181
|
+
</pane>
|
|
182
|
+
<pane id="ProjectPane">
|
|
183
|
+
<subPane>
|
|
184
|
+
<PATH>
|
|
185
|
+
<PATH_ELEMENT>
|
|
186
|
+
<option name="myItemId" value="orgno_validator" />
|
|
187
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
|
188
|
+
</PATH_ELEMENT>
|
|
189
|
+
</PATH>
|
|
190
|
+
<PATH>
|
|
191
|
+
<PATH_ELEMENT>
|
|
192
|
+
<option name="myItemId" value="orgno_validator" />
|
|
193
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
|
194
|
+
</PATH_ELEMENT>
|
|
195
|
+
<PATH_ELEMENT>
|
|
196
|
+
<option name="myItemId" value="orgno_validator" />
|
|
197
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
|
198
|
+
</PATH_ELEMENT>
|
|
199
|
+
</PATH>
|
|
200
|
+
<PATH>
|
|
201
|
+
<PATH_ELEMENT>
|
|
202
|
+
<option name="myItemId" value="orgno_validator" />
|
|
203
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
|
204
|
+
</PATH_ELEMENT>
|
|
205
|
+
<PATH_ELEMENT>
|
|
206
|
+
<option name="myItemId" value="orgno_validator" />
|
|
207
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
|
208
|
+
</PATH_ELEMENT>
|
|
209
|
+
<PATH_ELEMENT>
|
|
210
|
+
<option name="myItemId" value="spec" />
|
|
211
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
|
212
|
+
</PATH_ELEMENT>
|
|
213
|
+
</PATH>
|
|
214
|
+
<PATH>
|
|
215
|
+
<PATH_ELEMENT>
|
|
216
|
+
<option name="myItemId" value="orgno_validator" />
|
|
217
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
|
218
|
+
</PATH_ELEMENT>
|
|
219
|
+
<PATH_ELEMENT>
|
|
220
|
+
<option name="myItemId" value="orgno_validator" />
|
|
221
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
|
222
|
+
</PATH_ELEMENT>
|
|
223
|
+
<PATH_ELEMENT>
|
|
224
|
+
<option name="myItemId" value="lib" />
|
|
225
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
|
226
|
+
</PATH_ELEMENT>
|
|
227
|
+
</PATH>
|
|
228
|
+
</subPane>
|
|
229
|
+
</pane>
|
|
230
|
+
</panes>
|
|
231
|
+
</component>
|
|
232
|
+
<component name="PropertiesComponent">
|
|
233
|
+
<property name="options.splitter.main.proportions" value="0.3" />
|
|
234
|
+
<property name="WebServerToolWindowFactoryState" value="false" />
|
|
235
|
+
<property name="recentsLimit" value="5" />
|
|
236
|
+
<property name="options.lastSelected" value="editor.preferences.import" />
|
|
237
|
+
<property name="FullScreen" value="false" />
|
|
238
|
+
<property name="GoToClass.includeJavaFiles" value="false" />
|
|
239
|
+
<property name="options.searchVisible" value="true" />
|
|
240
|
+
<property name="options.splitter.details.proportions" value="0.2" />
|
|
241
|
+
</component>
|
|
242
|
+
<component name="RunManager" selected="RSpec.OrgnoValidator validation given a string with 9 characters">
|
|
243
|
+
<configuration default="false" name="orgno_validator_spec" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
|
244
|
+
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
|
245
|
+
<module name="orgno_validator" />
|
|
246
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
|
247
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$PROJECT_DIR$/spec" />
|
|
248
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
|
249
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
|
250
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
|
251
|
+
<envs>
|
|
252
|
+
<env name="JRUBY_OPTS" value="-X+O" />
|
|
253
|
+
</envs>
|
|
254
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
|
|
255
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
|
256
|
+
<COVERAGE_PATTERN ENABLED="true">
|
|
257
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
|
258
|
+
</COVERAGE_PATTERN>
|
|
259
|
+
</EXTENSION>
|
|
260
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
|
261
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$PROJECT_DIR$/spec/orgno_validator_spec.rb" />
|
|
262
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
|
263
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
|
264
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
|
|
265
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
|
266
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
|
267
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
|
268
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
|
|
269
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
|
270
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
|
271
|
+
<RunnerSettings RunnerId="RubyRunner" />
|
|
272
|
+
<ConfigurationWrapper RunnerId="RubyRunner" />
|
|
273
|
+
<method />
|
|
274
|
+
</configuration>
|
|
275
|
+
<configuration default="false" name="OrgnoValidator validation given a string with 9 characters" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
|
276
|
+
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
|
277
|
+
<module name="orgno_validator" />
|
|
278
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
|
279
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$PROJECT_DIR$/spec" />
|
|
280
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
|
281
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
|
282
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
|
283
|
+
<envs>
|
|
284
|
+
<env name="JRUBY_OPTS" value="-X+O" />
|
|
285
|
+
</envs>
|
|
286
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
|
|
287
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
|
288
|
+
<COVERAGE_PATTERN ENABLED="true">
|
|
289
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
|
290
|
+
</COVERAGE_PATTERN>
|
|
291
|
+
</EXTENSION>
|
|
292
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
|
293
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$PROJECT_DIR$/spec/orgno_validator_spec.rb" />
|
|
294
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
|
295
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
|
296
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="OrgnoValidator validation given a string with 9 characters" />
|
|
297
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
|
298
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
|
299
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
|
300
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
|
|
301
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
|
302
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
|
303
|
+
<RunnerSettings RunnerId="RubyDebugRunner" />
|
|
304
|
+
<RunnerSettings RunnerId="RubyRunner" />
|
|
305
|
+
<ConfigurationWrapper RunnerId="RubyDebugRunner" />
|
|
306
|
+
<ConfigurationWrapper RunnerId="RubyRunner" />
|
|
307
|
+
<method />
|
|
308
|
+
</configuration>
|
|
309
|
+
<configuration default="true" type="RSpecRunConfigurationType" factoryName="RSpec">
|
|
310
|
+
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
|
311
|
+
<module name="" />
|
|
312
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
|
313
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
|
|
314
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
|
315
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
|
316
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
|
317
|
+
<envs />
|
|
318
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
|
319
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
|
320
|
+
<COVERAGE_PATTERN ENABLED="true">
|
|
321
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
|
322
|
+
</COVERAGE_PATTERN>
|
|
323
|
+
</EXTENSION>
|
|
324
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
|
325
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
|
|
326
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
|
327
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
|
328
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
|
|
329
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
|
330
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
|
331
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
|
332
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
|
|
333
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
|
334
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
|
335
|
+
<method>
|
|
336
|
+
<option name="RakeTask" enabled="false" />
|
|
337
|
+
</method>
|
|
338
|
+
</configuration>
|
|
339
|
+
<configuration default="true" type="RubyRunConfigurationType" factoryName="Ruby">
|
|
340
|
+
<module name="" />
|
|
341
|
+
<RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
|
342
|
+
<RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="" />
|
|
343
|
+
<RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
|
|
344
|
+
<RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
|
|
345
|
+
<RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
|
|
346
|
+
<envs />
|
|
347
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
|
348
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
|
349
|
+
<COVERAGE_PATTERN ENABLED="true">
|
|
350
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
|
351
|
+
</COVERAGE_PATTERN>
|
|
352
|
+
</EXTENSION>
|
|
353
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="" />
|
|
354
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
|
|
355
|
+
<method>
|
|
356
|
+
<option name="RakeTask" enabled="false" />
|
|
357
|
+
</method>
|
|
358
|
+
</configuration>
|
|
359
|
+
<configuration default="true" type="CucumberRunConfigurationType" factoryName="Cucumber">
|
|
360
|
+
<predefined_log_file id="RUBY_CUCUMBER" enabled="true" />
|
|
361
|
+
<module name="" />
|
|
362
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
|
363
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
|
|
364
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
|
365
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
|
366
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
|
367
|
+
<envs>
|
|
368
|
+
<env name="ANSICON" value="" />
|
|
369
|
+
</envs>
|
|
370
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
|
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
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*.feature" />
|
|
377
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
|
378
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
|
379
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
|
|
380
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TAGS_FILTER" VALUE="" />
|
|
381
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_NAME_FILTER" VALUE="" />
|
|
382
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_ARGS" VALUE="--color -r features" />
|
|
383
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
|
384
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
|
385
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="VERBOSE_OPTION" VALUE="false" />
|
|
386
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
|
387
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_RUNNER_PATH" VALUE="" />
|
|
388
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_RUNNER" VALUE="false" />
|
|
389
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SETTINGS_VERSION" VALUE="2" />
|
|
390
|
+
<method>
|
|
391
|
+
<option name="RakeTask" enabled="false" />
|
|
392
|
+
</method>
|
|
393
|
+
</configuration>
|
|
394
|
+
<list size="2">
|
|
395
|
+
<item index="0" class="java.lang.String" itemvalue="RSpec.orgno_validator_spec" />
|
|
396
|
+
<item index="1" class="java.lang.String" itemvalue="RSpec.OrgnoValidator validation given a string with 9 characters" />
|
|
397
|
+
</list>
|
|
398
|
+
<configuration default="true" type="TestUnitRunConfigurationType" factoryName="Test::Unit/Shoulda">
|
|
399
|
+
<predefined_log_file id="RUBY_TESTUNIT" enabled="true" />
|
|
400
|
+
<module name="" />
|
|
401
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
|
402
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
|
|
403
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
|
404
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
|
405
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
|
406
|
+
<envs />
|
|
407
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
|
408
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
|
409
|
+
<COVERAGE_PATTERN ENABLED="true">
|
|
410
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
|
411
|
+
</COVERAGE_PATTERN>
|
|
412
|
+
</EXTENSION>
|
|
413
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
|
414
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
|
|
415
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_CLASS_NAME" VALUE="" />
|
|
416
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="" />
|
|
417
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_METHOD_NAME" VALUE="" />
|
|
418
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
|
419
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="INHERITANCE_CHECK_DISABLED" VALUE="false" />
|
|
420
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
|
421
|
+
<method />
|
|
422
|
+
</configuration>
|
|
423
|
+
</component>
|
|
424
|
+
<component name="ShelveChangesManager" show_recycled="false" />
|
|
425
|
+
<component name="TaskManager">
|
|
426
|
+
<task active="true" id="Default" summary="Default task">
|
|
427
|
+
<changelist id="d327966a-12f6-43c7-9792-08e6d7552fb7" name="Default" comment="" />
|
|
428
|
+
<changelist id="7259c492-c41f-48ef-895a-ef6561c1adb8" name="New changelist" comment="" />
|
|
429
|
+
<created>1321481259867</created>
|
|
430
|
+
<updated>1329261327728</updated>
|
|
431
|
+
</task>
|
|
432
|
+
<task id="LOCAL-00001" summary="Fixed a stupid bug that accepted a string of 9 non-numeric characters as valid">
|
|
433
|
+
<created>1329261300708</created>
|
|
434
|
+
<updated>1329261300708</updated>
|
|
435
|
+
</task>
|
|
436
|
+
<task id="LOCAL-00003" summary="Fixed a stupid bug that accepted a string of 9 non-numeric characters as valid">
|
|
437
|
+
<created>1329261521066</created>
|
|
438
|
+
<updated>1329261521066</updated>
|
|
439
|
+
</task>
|
|
440
|
+
<task id="LOCAL-00004" summary="Fixed a stupid bug that accepted a string of 9 non-numeric characters as valid">
|
|
441
|
+
<created>1329261548840</created>
|
|
442
|
+
<updated>1329261548840</updated>
|
|
443
|
+
</task>
|
|
444
|
+
<option name="localTasksCounter" value="5" />
|
|
445
|
+
<servers />
|
|
446
|
+
</component>
|
|
447
|
+
<component name="ToolWindowManager">
|
|
448
|
+
<frame x="0" y="22" width="2560" height="1414" extended-state="0" />
|
|
449
|
+
<editor active="false" />
|
|
450
|
+
<layout>
|
|
451
|
+
<window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32903716" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
|
452
|
+
<window_info id="Data Sources" 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" />
|
|
453
|
+
<window_info id="Changes" active="true" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.3297953" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
|
454
|
+
<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" />
|
|
455
|
+
<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="true" content_ui="tabs" />
|
|
456
|
+
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.25517517" sideWeight="0.6702047" order="0" side_tool="false" content_ui="combo" />
|
|
457
|
+
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.3995451" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
|
458
|
+
<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" />
|
|
459
|
+
<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" />
|
|
460
|
+
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.3297953" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
|
461
|
+
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.3297953" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
|
462
|
+
<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" />
|
|
463
|
+
<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" />
|
|
464
|
+
<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" />
|
|
465
|
+
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.32963988" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
|
466
|
+
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
|
467
|
+
<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" />
|
|
468
|
+
<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" />
|
|
469
|
+
</layout>
|
|
470
|
+
</component>
|
|
471
|
+
<component name="VcsContentAnnotationSettings">
|
|
472
|
+
<option name="myLimit" value="2678400000" />
|
|
473
|
+
</component>
|
|
474
|
+
<component name="VcsManagerConfiguration">
|
|
475
|
+
<option name="OFFER_MOVE_TO_ANOTHER_CHANGELIST_ON_PARTIAL_COMMIT" value="true" />
|
|
476
|
+
<option name="CHECK_CODE_SMELLS_BEFORE_PROJECT_COMMIT" value="true" />
|
|
477
|
+
<option name="CHECK_NEW_TODO" value="true" />
|
|
478
|
+
<option name="myTodoPanelSettings">
|
|
479
|
+
<value>
|
|
480
|
+
<are-packages-shown value="false" />
|
|
481
|
+
<are-modules-shown value="false" />
|
|
482
|
+
<flatten-packages value="false" />
|
|
483
|
+
<is-autoscroll-to-source value="false" />
|
|
484
|
+
</value>
|
|
485
|
+
</option>
|
|
486
|
+
<option name="PERFORM_UPDATE_IN_BACKGROUND" value="true" />
|
|
487
|
+
<option name="PERFORM_COMMIT_IN_BACKGROUND" value="true" />
|
|
488
|
+
<option name="PERFORM_EDIT_IN_BACKGROUND" value="true" />
|
|
489
|
+
<option name="PERFORM_CHECKOUT_IN_BACKGROUND" value="true" />
|
|
490
|
+
<option name="PERFORM_ADD_REMOVE_IN_BACKGROUND" value="true" />
|
|
491
|
+
<option name="PERFORM_ROLLBACK_IN_BACKGROUND" value="false" />
|
|
492
|
+
<option name="CHECK_LOCALLY_CHANGED_CONFLICTS_IN_BACKGROUND" value="false" />
|
|
493
|
+
<option name="ENABLE_BACKGROUND_PROCESSES" value="false" />
|
|
494
|
+
<option name="CHANGED_ON_SERVER_INTERVAL" value="60" />
|
|
495
|
+
<option name="SHOW_ONLY_CHANGED_IN_SELECTION_DIFF" value="true" />
|
|
496
|
+
<option name="CHECK_COMMIT_MESSAGE_SPELLING" value="true" />
|
|
497
|
+
<option name="DEFAULT_PATCH_EXTENSION" value="patch" />
|
|
498
|
+
<option name="SHORT_DIFF_HORISONTALLY" value="true" />
|
|
499
|
+
<option name="SHORT_DIFF_EXTRA_LINES" value="2" />
|
|
500
|
+
<option name="SOFT_WRAPS_IN_SHORT_DIFF" value="true" />
|
|
501
|
+
<option name="INCLUDE_TEXT_INTO_PATCH" value="false" />
|
|
502
|
+
<option name="INCLUDE_TEXT_INTO_SHELF" value="false" />
|
|
503
|
+
<option name="CREATE_PATCH_EXPAND_DETAILS_DEFAULT" value="true" />
|
|
504
|
+
<option name="SHOW_FILE_HISTORY_DETAILS" value="true" />
|
|
505
|
+
<option name="FORCE_NON_EMPTY_COMMENT" value="false" />
|
|
506
|
+
<option name="LAST_COMMIT_MESSAGE" value="Fixed a stupid bug that accepted a string of 9 non-numeric characters as valid" />
|
|
507
|
+
<option name="MAKE_NEW_CHANGELIST_ACTIVE" value="true" />
|
|
508
|
+
<option name="OPTIMIZE_IMPORTS_BEFORE_PROJECT_COMMIT" value="false" />
|
|
509
|
+
<option name="CHECK_FILES_UP_TO_DATE_BEFORE_COMMIT" value="false" />
|
|
510
|
+
<option name="REFORMAT_BEFORE_PROJECT_COMMIT" value="false" />
|
|
511
|
+
<option name="REFORMAT_BEFORE_FILE_COMMIT" value="false" />
|
|
512
|
+
<option name="FILE_HISTORY_DIALOG_COMMENTS_SPLITTER_PROPORTION" value="0.8" />
|
|
513
|
+
<option name="FILE_HISTORY_DIALOG_SPLITTER_PROPORTION" value="0.5" />
|
|
514
|
+
<option name="ACTIVE_VCS_NAME" />
|
|
515
|
+
<option name="UPDATE_GROUP_BY_PACKAGES" value="false" />
|
|
516
|
+
<option name="UPDATE_GROUP_BY_CHANGELIST" value="false" />
|
|
517
|
+
<option name="SHOW_FILE_HISTORY_AS_TREE" value="false" />
|
|
518
|
+
<option name="FILE_HISTORY_SPLITTER_PROPORTION" value="0.6" />
|
|
519
|
+
<MESSAGE value="Fixed a stupid bug that accepted a string of 9 non-numeric characters as valid" />
|
|
520
|
+
</component>
|
|
521
|
+
<component name="XDebuggerManager">
|
|
522
|
+
<breakpoint-manager />
|
|
523
|
+
</component>
|
|
524
|
+
<component name="editorHistoryManager">
|
|
525
|
+
<entry file="file://$PROJECT_DIR$/.gitignore">
|
|
526
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
527
|
+
<state line="15" column="5" selection-start="138" selection-end="138" vertical-scroll-proportion="0.0" />
|
|
528
|
+
</provider>
|
|
529
|
+
</entry>
|
|
530
|
+
<entry file="file://$PROJECT_DIR$/Rakefile">
|
|
531
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
532
|
+
<state line="20" column="42" selection-start="491" selection-end="491" vertical-scroll-proportion="0.0">
|
|
533
|
+
<folding />
|
|
534
|
+
</state>
|
|
535
|
+
</provider>
|
|
536
|
+
</entry>
|
|
537
|
+
<entry file="file://$USER_HOME$/.rvm/gems/ruby-1.9.2-p290@rvo/gems/rspec-expectations-2.8.0/lib/rspec/matchers/be.rb">
|
|
538
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
539
|
+
<state line="143" column="0" selection-start="3004" selection-end="3004" vertical-scroll-proportion="0.0">
|
|
540
|
+
<folding />
|
|
541
|
+
</state>
|
|
542
|
+
</provider>
|
|
543
|
+
</entry>
|
|
544
|
+
<entry file="file://$USER_HOME$/.rvm/gems/ruby-1.9.2-p290@rvo/gems/rspec-expectations-2.8.0/lib/rspec/expectations/extensions/kernel.rb">
|
|
545
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
546
|
+
<state line="23" column="0" selection-start="912" selection-end="912" vertical-scroll-proportion="0.0">
|
|
547
|
+
<folding />
|
|
548
|
+
</state>
|
|
549
|
+
</provider>
|
|
550
|
+
</entry>
|
|
551
|
+
<entry file="file://$USER_HOME$/.rvm/gems/ruby-1.9.2-p290@rvo/gems/rspec-expectations-2.8.0/lib/rspec/expectations/handler.rb">
|
|
552
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
553
|
+
<state line="43" column="0" selection-start="1772" selection-end="1772" vertical-scroll-proportion="0.0">
|
|
554
|
+
<folding />
|
|
555
|
+
</state>
|
|
556
|
+
</provider>
|
|
557
|
+
</entry>
|
|
558
|
+
<entry file="file://$USER_HOME$/.rvm/gems/ruby-1.9.2-p290@rvo/gems/rspec-core-2.8.0/lib/rspec/core/example.rb">
|
|
559
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
560
|
+
<state line="92" column="0" selection-start="3267" selection-end="3267" vertical-scroll-proportion="0.0">
|
|
561
|
+
<folding />
|
|
562
|
+
</state>
|
|
563
|
+
</provider>
|
|
564
|
+
</entry>
|
|
565
|
+
<entry file="file://$USER_HOME$/.rvm/gems/ruby-1.9.2-p290@rvo/gems/rspec-core-2.8.0/lib/rspec/core/example_group.rb">
|
|
566
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
567
|
+
<state line="355" column="0" selection-start="12201" selection-end="12201" vertical-scroll-proportion="0.0">
|
|
568
|
+
<folding />
|
|
569
|
+
</state>
|
|
570
|
+
</provider>
|
|
571
|
+
</entry>
|
|
572
|
+
<entry file="file://$USER_HOME$/.rvm/gems/ruby-1.9.2-p290@rvo/gems/rspec-expectations-2.8.0/lib/rspec/matchers/method_missing.rb">
|
|
573
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
574
|
+
<state line="6" column="0" selection-start="91" selection-end="91" vertical-scroll-proportion="0.0">
|
|
575
|
+
<folding />
|
|
576
|
+
</state>
|
|
577
|
+
</provider>
|
|
578
|
+
</entry>
|
|
579
|
+
<entry file="file://$USER_HOME$/.rvm/gems/ruby-1.9.2-p290@rvo/gems/rspec-core-2.8.0/lib/rspec/core/configuration.rb">
|
|
580
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
581
|
+
<state line="731" column="12" selection-start="23946" selection-end="23946" vertical-scroll-proportion="0.0">
|
|
582
|
+
<folding />
|
|
583
|
+
</state>
|
|
584
|
+
</provider>
|
|
585
|
+
</entry>
|
|
586
|
+
<entry file="file://$PROJECT_DIR$/spec/orgno_validator_spec.rb">
|
|
587
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
588
|
+
<state line="40" column="0" selection-start="1103" selection-end="1103" vertical-scroll-proportion="0.0">
|
|
589
|
+
<folding />
|
|
590
|
+
</state>
|
|
591
|
+
</provider>
|
|
592
|
+
</entry>
|
|
593
|
+
<entry file="file://$PROJECT_DIR$/README.markdown">
|
|
594
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
595
|
+
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
|
|
596
|
+
<folding />
|
|
597
|
+
</state>
|
|
598
|
+
</provider>
|
|
599
|
+
</entry>
|
|
600
|
+
<entry file="file://$PROJECT_DIR$/Gemfile">
|
|
601
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
602
|
+
<state line="4" column="44" selection-start="86" selection-end="86" vertical-scroll-proportion="0.0">
|
|
603
|
+
<folding />
|
|
604
|
+
</state>
|
|
605
|
+
</provider>
|
|
606
|
+
</entry>
|
|
607
|
+
<entry file="file://$PROJECT_DIR$/spec/spec_helper.rb">
|
|
608
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
609
|
+
<state line="7" column="18" selection-start="188" selection-end="188" vertical-scroll-proportion="0.0">
|
|
610
|
+
<folding />
|
|
611
|
+
</state>
|
|
612
|
+
</provider>
|
|
613
|
+
</entry>
|
|
614
|
+
<entry file="file://$PROJECT_DIR$/lib/orgno_validator.rb">
|
|
615
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
616
|
+
<state line="32" column="0" selection-start="790" selection-end="790" vertical-scroll-proportion="0.0">
|
|
617
|
+
<folding />
|
|
618
|
+
</state>
|
|
619
|
+
</provider>
|
|
620
|
+
</entry>
|
|
621
|
+
<entry file="file://$PROJECT_DIR$/orgno_validator.gemspec">
|
|
622
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
623
|
+
<state line="18" column="99" selection-start="779" selection-end="779" vertical-scroll-proportion="0.42007002">
|
|
624
|
+
<folding />
|
|
625
|
+
</state>
|
|
626
|
+
</provider>
|
|
627
|
+
</entry>
|
|
628
|
+
</component>
|
|
629
|
+
</project>
|
|
630
|
+
|
data/Gemfile
CHANGED
data/README.markdown
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
## Orgno Validator
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](http://travis-ci.org/bonkowski/orgno)
|
|
4
|
+
|
|
5
|
+
Based on a validator written by [Kjetil Jørgensen-Dahl](http://www.kodemaker.no/mennesker/kjetil/) on a project we worked on togheter some time ago. The description of the "organisasjonsnummer" is found [here](http://www.brreg.no/samordning/organisasjonsnummer.html) (In Norwegian)
|
|
4
6
|
|
|
5
7
|
|
|
6
8
|
|
data/lib/orgno_validator.rb
CHANGED
|
@@ -30,6 +30,7 @@ class OrgnoValidator < ActiveModel::EachValidator
|
|
|
30
30
|
|
|
31
31
|
def self.valid_orgno?(orgno)
|
|
32
32
|
return false if !orgno || orgno.to_s.length != ORGNO_LENGTH
|
|
33
|
+
return false unless is_numeric?(orgno)
|
|
33
34
|
|
|
34
35
|
orgno_digits = orgno.to_s.each_char.map { |d| d.to_i }
|
|
35
36
|
sum = 0
|
|
@@ -44,4 +45,8 @@ class OrgnoValidator < ActiveModel::EachValidator
|
|
|
44
45
|
return false if control_digit == 10
|
|
45
46
|
return control_digit == orgno_digits.last
|
|
46
47
|
end
|
|
48
|
+
|
|
49
|
+
def self.is_numeric?(s)
|
|
50
|
+
Float(s) rescue false
|
|
51
|
+
end
|
|
47
52
|
end
|
data/orgno_validator.gemspec
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Gem::Specification.new do |gem|
|
|
4
4
|
gem.authors = ["André Bonkowski"]
|
|
5
|
-
gem.email =
|
|
5
|
+
gem.email = %W(andre@kodemaker.no)
|
|
6
6
|
gem.description = %q{Validate Norwegian "organisasjonsnummer"}
|
|
7
7
|
gem.summary = %q{Simple validator that validate Norwegian "organisasjonsnummer}
|
|
8
8
|
gem.homepage = "https://github.com/bonkowski/orgno_validator"
|
|
@@ -11,8 +11,8 @@ Gem::Specification.new do |gem|
|
|
|
11
11
|
gem.files = `git ls-files`.split("\n")
|
|
12
12
|
gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
|
13
13
|
gem.name = "orgno_validator"
|
|
14
|
-
gem.require_paths =
|
|
15
|
-
gem.version = '0.0
|
|
14
|
+
gem.require_paths = %W(lib)
|
|
15
|
+
gem.version = '1.0.0'
|
|
16
16
|
gem.add_dependency("activemodel", ">= 0")
|
|
17
17
|
gem.add_development_dependency("rspec", ">= 0")
|
|
18
18
|
end
|
|
@@ -20,7 +20,7 @@ describe OrgnoValidator do
|
|
|
20
20
|
|
|
21
21
|
describe "validation" do
|
|
22
22
|
context "given the valid orgno" do
|
|
23
|
-
|
|
23
|
+
%W(810243562 948776901 957929621).each do |orgno|
|
|
24
24
|
it "#{orgno.inspect} should be valid" do
|
|
25
25
|
TestCompany.new(:orgno => orgno).should be_valid
|
|
26
26
|
end
|
|
@@ -28,12 +28,22 @@ describe OrgnoValidator do
|
|
|
28
28
|
end
|
|
29
29
|
|
|
30
30
|
context "given the invalid orgno" do
|
|
31
|
-
|
|
31
|
+
%W(810243561 948776900 957929620).each do |orgno|
|
|
32
32
|
it "#{orgno.inspect} should not be valid" do
|
|
33
33
|
TestCompany.new(:orgno => orgno).should_not be_valid
|
|
34
34
|
end
|
|
35
35
|
end
|
|
36
36
|
end
|
|
37
|
+
|
|
38
|
+
context "given a string with 9 characters" do
|
|
39
|
+
%W(abcdefghi uytrewqas).each do |orgno|
|
|
40
|
+
it "#{orgno.inspect} should not be valid" do
|
|
41
|
+
TestCompany.new(:orgno => orgno).should_not be_valid
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
|
|
37
47
|
end
|
|
38
48
|
|
|
39
49
|
describe "error messages" do
|
|
@@ -56,7 +66,7 @@ describe OrgnoValidator do
|
|
|
56
66
|
end
|
|
57
67
|
end
|
|
58
68
|
|
|
59
|
-
describe "nil
|
|
69
|
+
describe "nil orgno" do
|
|
60
70
|
it "should not be valid when :allow_nil option is missing" do
|
|
61
71
|
TestCompany.new(:orgno => nil).should_not be_valid
|
|
62
72
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: orgno_validator
|
|
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,11 +9,11 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2012-02-14 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: activemodel
|
|
16
|
-
requirement: &
|
|
16
|
+
requirement: &70301598931300 !ruby/object:Gem::Requirement
|
|
17
17
|
none: false
|
|
18
18
|
requirements:
|
|
19
19
|
- - ! '>='
|
|
@@ -21,10 +21,10 @@ dependencies:
|
|
|
21
21
|
version: '0'
|
|
22
22
|
type: :runtime
|
|
23
23
|
prerelease: false
|
|
24
|
-
version_requirements: *
|
|
24
|
+
version_requirements: *70301598931300
|
|
25
25
|
- !ruby/object:Gem::Dependency
|
|
26
26
|
name: rspec
|
|
27
|
-
requirement: &
|
|
27
|
+
requirement: &70301598930820 !ruby/object:Gem::Requirement
|
|
28
28
|
none: false
|
|
29
29
|
requirements:
|
|
30
30
|
- - ! '>='
|
|
@@ -32,7 +32,7 @@ dependencies:
|
|
|
32
32
|
version: '0'
|
|
33
33
|
type: :development
|
|
34
34
|
prerelease: false
|
|
35
|
-
version_requirements: *
|
|
35
|
+
version_requirements: *70301598930820
|
|
36
36
|
description: Validate Norwegian "organisasjonsnummer"
|
|
37
37
|
email:
|
|
38
38
|
- andre@kodemaker.no
|
|
@@ -41,6 +41,14 @@ extensions: []
|
|
|
41
41
|
extra_rdoc_files: []
|
|
42
42
|
files:
|
|
43
43
|
- .gitignore
|
|
44
|
+
- .idea/.name
|
|
45
|
+
- .idea/encodings.xml
|
|
46
|
+
- .idea/misc.xml
|
|
47
|
+
- .idea/modules.xml
|
|
48
|
+
- .idea/orgno_validator.iml
|
|
49
|
+
- .idea/scopes/scope_settings.xml
|
|
50
|
+
- .idea/vcs.xml
|
|
51
|
+
- .idea/workspace.xml
|
|
44
52
|
- Gemfile
|
|
45
53
|
- README.markdown
|
|
46
54
|
- Rakefile
|
|
@@ -68,7 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
68
76
|
version: '0'
|
|
69
77
|
requirements: []
|
|
70
78
|
rubyforge_project:
|
|
71
|
-
rubygems_version: 1.8.
|
|
79
|
+
rubygems_version: 1.8.16
|
|
72
80
|
signing_key:
|
|
73
81
|
specification_version: 3
|
|
74
82
|
summary: Simple validator that validate Norwegian "organisasjonsnummer
|