osvalidate 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 93f697276b8cd577d8b0e4c3a7a30ea9fd15e558
4
+ data.tar.gz: 2dfed0828e08a8d608407a5530a4a2ae46f89616
5
+ SHA512:
6
+ metadata.gz: e7a9230651a1ceb8c0d1f8b7ed12e58142b5155b891b38cc0a8864535db5586338f4448893900982e2d66b8ef602834a5af9cd57f3a6d3fdeccf48181af625e1
7
+ data.tar.gz: a91d2452051397fd6605ebabcf887af52bd87eaa232bf64f624a011b2764f77afd9035b3135b14add3524222eb2321fc53b05b2641594614c42a5528b18ee135
data/.gitignore ADDED
@@ -0,0 +1,11 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
data/.idea/.rakeTasks ADDED
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Settings><!--This file was automatically generated by Ruby plugin.
3
+ You are allowed to:
4
+ 1. Remove rake task
5
+ 2. Add existing rake tasks
6
+ To add existing rake tasks automatically delete this file and reload the project.
7
+ --><RakeGroup description="" fullCmd="" taksId="rake"><RakeTask description="Build osvalidate-0.1.0.gem into the pkg directory" fullCmd="build" taksId="build" /><RakeTask description="Remove any temporary products" fullCmd="clean" taksId="clean" /><RakeTask description="Remove any generated files" fullCmd="clobber" taksId="clobber" /><RakeGroup description="" fullCmd="" taksId="db"><RakeTask description="Create the database" fullCmd="db:create" taksId="create" /><RakeTask description="Drop the database" fullCmd="db:drop" taksId="drop" /><RakeTask description="Migrate the database" fullCmd="db:migrate" taksId="migrate" /><RakeTask description="Reset the database" fullCmd="db:reset" taksId="reset" /><RakeTask description="Create a db/schema.rb file that is portable against any DB supported by AR" fullCmd="db:schema" taksId="schema" /></RakeGroup><RakeTask description="Build and install osvalidate-0.1.0.gem into system gems" fullCmd="install" taksId="install" /><RakeGroup description="" fullCmd="" taksId="install"><RakeTask description="Build and install osvalidate-0.1.0.gem into system gems without network access" fullCmd="install:local" taksId="local" /></RakeGroup><RakeTask description="Create tag v0.1.0 and build and push osvalidate-0.1.0.gem to https://rubygems.org" fullCmd="release[remote]" taksId="release[remote]" /><RakeTask description="Run RSpec code examples" fullCmd="spec" taksId="spec" /><RakeTask description="" fullCmd="default" taksId="default" /><RakeTask description="" fullCmd="release" taksId="release" /><RakeGroup description="" fullCmd="" taksId="release"><RakeTask description="" fullCmd="release:guard_clean" taksId="guard_clean" /><RakeTask description="" fullCmd="release:rubygem_push" taksId="rubygem_push" /><RakeTask description="" fullCmd="release:source_control_push" taksId="source_control_push" /></RakeGroup></RakeGroup></Settings>
@@ -0,0 +1,6 @@
1
+ <component name="InspectionProjectProfileManager">
2
+ <profile version="1.0">
3
+ <option name="myName" value="Project Default" />
4
+ <inspection_tool class="Rubocop" enabled="false" level="WARNING" enabled_by_default="false" />
5
+ </profile>
6
+ </component>
data/.idea/misc.xml ADDED
@@ -0,0 +1,4 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectRootManager" version="2" project-jdk-name="rbenv: 2.4.3" project-jdk-type="RUBY_SDK" />
4
+ </project>
data/.idea/modules.xml ADDED
@@ -0,0 +1,8 @@
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/osvalidate.iml" filepath="$PROJECT_DIR$/.idea/osvalidate.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
@@ -0,0 +1,29 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="RUBY_MODULE" version="4">
3
+ <component name="ModuleRunConfigurationManager">
4
+ <shared />
5
+ </component>
6
+ <component name="NewModuleRootManager">
7
+ <content url="file://$MODULE_DIR$" />
8
+ <orderEntry type="jdk" jdkName="rbenv: 2.5.0" jdkType="RUBY_SDK" />
9
+ <orderEntry type="sourceFolder" forTests="false" />
10
+ <orderEntry type="library" scope="PROVIDED" name="activemodel (v5.1.4, rbenv: 2.5.0) [gem]" level="application" />
11
+ <orderEntry type="library" scope="PROVIDED" name="activerecord (v5.1.4, rbenv: 2.5.0) [gem]" level="application" />
12
+ <orderEntry type="library" scope="PROVIDED" name="activesupport (v5.1.4, rbenv: 2.5.0) [gem]" level="application" />
13
+ <orderEntry type="library" scope="PROVIDED" name="arel (v8.0.0, rbenv: 2.5.0) [gem]" level="application" />
14
+ <orderEntry type="library" scope="PROVIDED" name="bundler (v1.16.1, rbenv: 2.5.0) [gem]" level="application" />
15
+ <orderEntry type="library" scope="PROVIDED" name="concurrent-ruby (v1.0.5, rbenv: 2.5.0) [gem]" level="application" />
16
+ <orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.3, rbenv: 2.5.0) [gem]" level="application" />
17
+ <orderEntry type="library" scope="PROVIDED" name="i18n (v0.9.1, rbenv: 2.5.0) [gem]" level="application" />
18
+ <orderEntry type="library" scope="PROVIDED" name="minitest (v5.11.1, rbenv: 2.5.0) [gem]" level="application" />
19
+ <orderEntry type="library" scope="PROVIDED" name="pg (v0.21.0, rbenv: 2.5.0) [gem]" level="application" />
20
+ <orderEntry type="library" scope="PROVIDED" name="rake (v10.5.0, rbenv: 2.5.0) [gem]" level="application" />
21
+ <orderEntry type="library" scope="PROVIDED" name="rspec (v3.7.0, rbenv: 2.5.0) [gem]" level="application" />
22
+ <orderEntry type="library" scope="PROVIDED" name="rspec-core (v3.7.1, rbenv: 2.5.0) [gem]" level="application" />
23
+ <orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v3.7.0, rbenv: 2.5.0) [gem]" level="application" />
24
+ <orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v3.7.0, rbenv: 2.5.0) [gem]" level="application" />
25
+ <orderEntry type="library" scope="PROVIDED" name="rspec-support (v3.7.0, rbenv: 2.5.0) [gem]" level="application" />
26
+ <orderEntry type="library" scope="PROVIDED" name="thread_safe (v0.3.6, rbenv: 2.5.0) [gem]" level="application" />
27
+ <orderEntry type="library" scope="PROVIDED" name="tzinfo (v1.2.4, rbenv: 2.5.0) [gem]" level="application" />
28
+ </component>
29
+ </module>
data/.idea/vcs.xml ADDED
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,477 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ChangeListManager">
4
+ <list default="true" id="ce5a093e-f5c0-4ea6-af29-325265d1345b" name="Default" comment="">
5
+ <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
6
+ <change beforePath="$PROJECT_DIR$/osvalidate.gemspec" afterPath="$PROJECT_DIR$/osvalidate.gemspec" />
7
+ </list>
8
+ <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
9
+ <option name="TRACKING_ENABLED" value="true" />
10
+ <option name="SHOW_DIALOG" value="false" />
11
+ <option name="HIGHLIGHT_CONFLICTS" value="true" />
12
+ <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
13
+ <option name="LAST_RESOLUTION" value="IGNORE" />
14
+ </component>
15
+ <component name="CoverageDataManager">
16
+ <SUITE FILE_PATH="coverage/osvalidate@db_migrate__osvalidate.coverage" NAME="db:migrate: osvalidate Coverage Results" MODIFIED="1515524939774" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="osvalidate" />
17
+ <SUITE FILE_PATH="coverage/osvalidate@db_create__osvalidate.coverage" NAME="db:create: osvalidate Coverage Results" MODIFIED="1515524126681" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="osvalidate" />
18
+ <SUITE FILE_PATH="coverage/osvalidate@db_reset__osvalidate.coverage" NAME="db:reset: osvalidate Coverage Results" MODIFIED="1515526358121" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="osvalidate" />
19
+ </component>
20
+ <component name="FileEditorManager">
21
+ <leaf>
22
+ <file leaf-file-name="osvalidate.gemspec" pinned="false" current-in-tab="true">
23
+ <entry file="file://$PROJECT_DIR$/osvalidate.gemspec">
24
+ <provider selected="true" editor-type-id="text-editor">
25
+ <state relative-caret-position="543">
26
+ <caret line="33" column="53" lean-forward="false" selection-start-line="33" selection-start-column="53" selection-end-line="33" selection-end-column="53" />
27
+ <folding />
28
+ </state>
29
+ </provider>
30
+ </entry>
31
+ </file>
32
+ <file leaf-file-name="Rakefile" pinned="false" current-in-tab="false">
33
+ <entry file="file://$PROJECT_DIR$/Rakefile">
34
+ <provider selected="true" editor-type-id="text-editor">
35
+ <state relative-caret-position="437">
36
+ <caret line="19" column="5" lean-forward="true" selection-start-line="19" selection-start-column="5" selection-end-line="19" selection-end-column="5" />
37
+ <folding />
38
+ </state>
39
+ </provider>
40
+ </entry>
41
+ </file>
42
+ <file leaf-file-name="rake" pinned="false" current-in-tab="false">
43
+ <entry file="file://$USER_HOME$/.rbenv/versions/2.5.0/bin/rake">
44
+ <provider selected="true" editor-type-id="text-editor">
45
+ <state relative-caret-position="621">
46
+ <caret line="27" column="0" lean-forward="true" selection-start-line="27" selection-start-column="0" selection-end-line="27" selection-end-column="0" />
47
+ <folding />
48
+ </state>
49
+ </provider>
50
+ </entry>
51
+ </file>
52
+ <file leaf-file-name="20180109105600_create_initial_db.rb" pinned="false" current-in-tab="false">
53
+ <entry file="file://$PROJECT_DIR$/db/migrate/20180109105600_create_initial_db.rb">
54
+ <provider selected="true" editor-type-id="text-editor">
55
+ <state relative-caret-position="477">
56
+ <caret line="28" column="33" lean-forward="false" selection-start-line="28" selection-start-column="33" selection-end-line="28" selection-end-column="33" />
57
+ <folding />
58
+ </state>
59
+ </provider>
60
+ </entry>
61
+ </file>
62
+ <file leaf-file-name="Gemfile" pinned="false" current-in-tab="false">
63
+ <entry file="file://$PROJECT_DIR$/Gemfile">
64
+ <provider selected="true" editor-type-id="text-editor">
65
+ <state relative-caret-position="0">
66
+ <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
67
+ <folding />
68
+ </state>
69
+ </provider>
70
+ </entry>
71
+ </file>
72
+ <file leaf-file-name="20180109104200_enable_uuid.rb" pinned="false" current-in-tab="false">
73
+ <entry file="file://$PROJECT_DIR$/db/migrate/20180109104200_enable_uuid.rb">
74
+ <provider selected="true" editor-type-id="text-editor">
75
+ <state relative-caret-position="115">
76
+ <caret line="5" column="3" lean-forward="true" selection-start-line="5" selection-start-column="3" selection-end-line="5" selection-end-column="3" />
77
+ <folding />
78
+ </state>
79
+ </provider>
80
+ </entry>
81
+ </file>
82
+ <file leaf-file-name="Gemfile.lock" pinned="false" current-in-tab="false">
83
+ <entry file="file://$PROJECT_DIR$/Gemfile.lock">
84
+ <provider selected="true" editor-type-id="text-editor">
85
+ <state relative-caret-position="194">
86
+ <caret line="27" column="14" lean-forward="false" selection-start-line="27" selection-start-column="8" selection-end-line="27" selection-end-column="14" />
87
+ <folding />
88
+ </state>
89
+ </provider>
90
+ </entry>
91
+ </file>
92
+ </leaf>
93
+ </component>
94
+ <component name="Git.Settings">
95
+ <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
96
+ </component>
97
+ <component name="IdeDocumentHistory">
98
+ <option name="CHANGED_PATHS">
99
+ <list>
100
+ <option value="$PROJECT_DIR$/.rubocop.yml" />
101
+ <option value="$PROJECT_DIR$/lib/osvalidate.rb" />
102
+ <option value="$PROJECT_DIR$/lib/osvalidate/version.rb" />
103
+ <option value="$PROJECT_DIR$/lib/osvalidate/database.rb" />
104
+ <option value="$PROJECT_DIR$/lib/osvalidate/database/baseline.rb" />
105
+ <option value="$PROJECT_DIR$/lib/osvalidate/database/tree.rb" />
106
+ <option value="$PROJECT_DIR$/config/database.yml" />
107
+ <option value="$PROJECT_DIR$/Rakefile" />
108
+ <option value="$PROJECT_DIR$/db/migrate/20180109104200_enable_uuid.rb" />
109
+ <option value="$PROJECT_DIR$/db/migrate/20180109105600_create_initial_db.rb" />
110
+ <option value="$PROJECT_DIR$/osvalidate.gemspec" />
111
+ </list>
112
+ </option>
113
+ </component>
114
+ <component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
115
+ <component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
116
+ <component name="JsGulpfileManager">
117
+ <detection-done>true</detection-done>
118
+ <sorting>DEFINITION_ORDER</sorting>
119
+ </component>
120
+ <component name="ProjectFrameBounds">
121
+ <option name="y" value="23" />
122
+ <option name="width" value="2560" />
123
+ <option name="height" value="1365" />
124
+ </component>
125
+ <component name="ProjectLevelVcsManager" settingsEditedManually="true" />
126
+ <component name="ProjectView">
127
+ <navigator currentView="ProjectPane" proportions="" version="1">
128
+ <flattenPackages />
129
+ <showMembers />
130
+ <showModules />
131
+ <showLibraryContents />
132
+ <hideEmptyPackages />
133
+ <abbreviatePackageNames />
134
+ <autoscrollToSource />
135
+ <autoscrollFromSource />
136
+ <sortByType />
137
+ <manualOrder />
138
+ <foldersAlwaysOnTop value="true" />
139
+ </navigator>
140
+ <panes>
141
+ <pane id="Scratches" />
142
+ <pane id="Scope" />
143
+ <pane id="ProjectPane">
144
+ <subPane>
145
+ <expand>
146
+ <path>
147
+ <item name="osvalidate" type="b2602c69:ProjectViewProjectNode" />
148
+ <item name="osvalidate" type="462c0819:PsiDirectoryNode" />
149
+ </path>
150
+ <path>
151
+ <item name="osvalidate" type="b2602c69:ProjectViewProjectNode" />
152
+ <item name="osvalidate" type="462c0819:PsiDirectoryNode" />
153
+ <item name="bin" type="462c0819:PsiDirectoryNode" />
154
+ </path>
155
+ <path>
156
+ <item name="osvalidate" type="b2602c69:ProjectViewProjectNode" />
157
+ <item name="osvalidate" type="462c0819:PsiDirectoryNode" />
158
+ <item name="db" type="462c0819:PsiDirectoryNode" />
159
+ </path>
160
+ <path>
161
+ <item name="osvalidate" type="b2602c69:ProjectViewProjectNode" />
162
+ <item name="osvalidate" type="462c0819:PsiDirectoryNode" />
163
+ <item name="db" type="462c0819:PsiDirectoryNode" />
164
+ <item name="migrate" type="462c0819:PsiDirectoryNode" />
165
+ </path>
166
+ <path>
167
+ <item name="osvalidate" type="b2602c69:ProjectViewProjectNode" />
168
+ <item name="osvalidate" type="462c0819:PsiDirectoryNode" />
169
+ <item name="exe" type="462c0819:PsiDirectoryNode" />
170
+ </path>
171
+ <path>
172
+ <item name="osvalidate" type="b2602c69:ProjectViewProjectNode" />
173
+ <item name="osvalidate" type="462c0819:PsiDirectoryNode" />
174
+ <item name="lib" type="462c0819:PsiDirectoryNode" />
175
+ </path>
176
+ <path>
177
+ <item name="osvalidate" type="b2602c69:ProjectViewProjectNode" />
178
+ <item name="osvalidate" type="462c0819:PsiDirectoryNode" />
179
+ <item name="lib" type="462c0819:PsiDirectoryNode" />
180
+ <item name="osvalidate" type="462c0819:PsiDirectoryNode" />
181
+ </path>
182
+ <path>
183
+ <item name="osvalidate" type="b2602c69:ProjectViewProjectNode" />
184
+ <item name="osvalidate" type="462c0819:PsiDirectoryNode" />
185
+ <item name="lib" type="462c0819:PsiDirectoryNode" />
186
+ <item name="osvalidate" type="462c0819:PsiDirectoryNode" />
187
+ <item name="database" type="462c0819:PsiDirectoryNode" />
188
+ </path>
189
+ </expand>
190
+ <select />
191
+ </subPane>
192
+ </pane>
193
+ </panes>
194
+ </component>
195
+ <component name="PropertiesComponent">
196
+ <property name="WebServerToolWindowFactoryState" value="false" />
197
+ <property name="RakeTaksPopup.undocumentedIncluded" value="false" />
198
+ </component>
199
+ <component name="RunDashboard">
200
+ <option name="ruleStates">
201
+ <list>
202
+ <RuleState>
203
+ <option name="name" value="ConfigurationTypeDashboardGroupingRule" />
204
+ </RuleState>
205
+ <RuleState>
206
+ <option name="name" value="StatusDashboardGroupingRule" />
207
+ </RuleState>
208
+ </list>
209
+ </option>
210
+ </component>
211
+ <component name="RunManager" selected="Rake.db:reset: osvalidate">
212
+ <configuration name="db:create: osvalidate" type="RakeRunConfigurationType" factoryName="Rake" temporary="true">
213
+ <module name="osvalidate" />
214
+ <RAKE_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
215
+ <RAKE_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" />
216
+ <RAKE_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
217
+ <RAKE_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
218
+ <RAKE_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
219
+ <envs />
220
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
221
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
222
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
223
+ <COVERAGE_PATTERN ENABLED="true">
224
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
225
+ </COVERAGE_PATTERN>
226
+ </EXTENSION>
227
+ <RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_NAME" VALUE="db:create" />
228
+ <RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_ARGS" VALUE="" />
229
+ <RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_ATTACHED_TEST_FRAMEWORKS" VALUE="" />
230
+ <RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_OPTION_TRACE" VALUE="false" />
231
+ <RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_OPTION_DRYRUN" VALUE="false" />
232
+ <RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_OPTION_PREREQS" VALUE="false" />
233
+ </configuration>
234
+ <configuration name="db:migrate: osvalidate" type="RakeRunConfigurationType" factoryName="Rake" temporary="true">
235
+ <module name="osvalidate" />
236
+ <RAKE_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
237
+ <RAKE_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" />
238
+ <RAKE_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
239
+ <RAKE_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
240
+ <RAKE_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
241
+ <envs />
242
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
243
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
244
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
245
+ <COVERAGE_PATTERN ENABLED="true">
246
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
247
+ </COVERAGE_PATTERN>
248
+ </EXTENSION>
249
+ <RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_NAME" VALUE="db:migrate" />
250
+ <RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_ARGS" VALUE="" />
251
+ <RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_ATTACHED_TEST_FRAMEWORKS" VALUE="" />
252
+ <RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_OPTION_TRACE" VALUE="false" />
253
+ <RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_OPTION_DRYRUN" VALUE="false" />
254
+ <RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_OPTION_PREREQS" VALUE="false" />
255
+ </configuration>
256
+ <configuration name="db:reset: osvalidate" type="RakeRunConfigurationType" factoryName="Rake" temporary="true">
257
+ <module name="osvalidate" />
258
+ <RAKE_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
259
+ <RAKE_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" />
260
+ <RAKE_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
261
+ <RAKE_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
262
+ <RAKE_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
263
+ <envs />
264
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
265
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
266
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
267
+ <COVERAGE_PATTERN ENABLED="true">
268
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
269
+ </COVERAGE_PATTERN>
270
+ </EXTENSION>
271
+ <RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_NAME" VALUE="db:reset" />
272
+ <RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_ARGS" VALUE="" />
273
+ <RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_ATTACHED_TEST_FRAMEWORKS" VALUE="" />
274
+ <RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_OPTION_TRACE" VALUE="false" />
275
+ <RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_OPTION_DRYRUN" VALUE="false" />
276
+ <RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_OPTION_PREREQS" VALUE="false" />
277
+ </configuration>
278
+ <list size="3">
279
+ <item index="0" class="java.lang.String" itemvalue="Rake.db:create: osvalidate" />
280
+ <item index="1" class="java.lang.String" itemvalue="Rake.db:migrate: osvalidate" />
281
+ <item index="2" class="java.lang.String" itemvalue="Rake.db:reset: osvalidate" />
282
+ </list>
283
+ <recent_temporary>
284
+ <list size="3">
285
+ <item index="0" class="java.lang.String" itemvalue="Rake.db:reset: osvalidate" />
286
+ <item index="1" class="java.lang.String" itemvalue="Rake.db:migrate: osvalidate" />
287
+ <item index="2" class="java.lang.String" itemvalue="Rake.db:create: osvalidate" />
288
+ </list>
289
+ </recent_temporary>
290
+ </component>
291
+ <component name="ShelveChangesManager" show_recycled="false">
292
+ <option name="remove_strategy" value="false" />
293
+ </component>
294
+ <component name="SpringUtil" SPRING_PRE_LOADER_OPTION="true" />
295
+ <component name="SvnConfiguration">
296
+ <configuration />
297
+ </component>
298
+ <component name="TaskManager">
299
+ <task active="true" id="Default" summary="Default task">
300
+ <changelist id="ce5a093e-f5c0-4ea6-af29-325265d1345b" name="Default" comment="" />
301
+ <created>1515519561087</created>
302
+ <option name="number" value="Default" />
303
+ <option name="presentableId" value="Default" />
304
+ <updated>1515519561087</updated>
305
+ <workItem from="1515519563820" duration="4723000" />
306
+ </task>
307
+ <servers />
308
+ </component>
309
+ <component name="TimeTrackingManager">
310
+ <option name="totallyTimeSpent" value="4723000" />
311
+ </component>
312
+ <component name="ToolWindowManager">
313
+ <frame x="0" y="23" width="2560" height="1365" extended-state="0" />
314
+ <editor active="true" />
315
+ <layout>
316
+ <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.24980143" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
317
+ <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
318
+ <window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.3293461" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
319
+ <window_info id="Docker" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
320
+ <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
321
+ <window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
322
+ <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
323
+ <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.3293461" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
324
+ <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
325
+ <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
326
+ <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
327
+ <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
328
+ <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
329
+ <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
330
+ <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
331
+ <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
332
+ <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
333
+ <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
334
+ <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
335
+ </layout>
336
+ </component>
337
+ <component name="TypeScriptGeneratedFilesManager">
338
+ <option name="version" value="1" />
339
+ </component>
340
+ <component name="VcsContentAnnotationSettings">
341
+ <option name="myLimit" value="2678400000" />
342
+ </component>
343
+ <component name="XDebuggerManager">
344
+ <breakpoint-manager />
345
+ <watches-manager />
346
+ </component>
347
+ <component name="editorHistoryManager">
348
+ <entry file="file://$PROJECT_DIR$/.rubocop.yml">
349
+ <provider selected="true" editor-type-id="text-editor">
350
+ <state relative-caret-position="23">
351
+ <caret line="1" column="10" lean-forward="true" selection-start-line="1" selection-start-column="10" selection-end-line="1" selection-end-column="10" />
352
+ <folding />
353
+ </state>
354
+ </provider>
355
+ </entry>
356
+ <entry file="file://$PROJECT_DIR$/lib/osvalidate/version.rb">
357
+ <provider selected="true" editor-type-id="text-editor">
358
+ <state relative-caret-position="0">
359
+ <caret line="0" column="10" lean-forward="false" selection-start-line="0" selection-start-column="10" selection-end-line="0" selection-end-column="10" />
360
+ <folding />
361
+ </state>
362
+ </provider>
363
+ </entry>
364
+ <entry file="file://$PROJECT_DIR$/lib/osvalidate.rb">
365
+ <provider selected="true" editor-type-id="text-editor">
366
+ <state relative-caret-position="115">
367
+ <caret line="5" column="0" lean-forward="true" selection-start-line="5" selection-start-column="0" selection-end-line="5" selection-end-column="0" />
368
+ <folding />
369
+ </state>
370
+ </provider>
371
+ </entry>
372
+ <entry file="file://$PROJECT_DIR$/exe/osvalidate">
373
+ <provider selected="true" editor-type-id="text-editor">
374
+ <state relative-caret-position="46">
375
+ <caret line="2" column="8" lean-forward="true" selection-start-line="2" selection-start-column="8" selection-end-line="2" selection-end-column="8" />
376
+ <folding />
377
+ </state>
378
+ </provider>
379
+ </entry>
380
+ <entry file="file://$PROJECT_DIR$/lib/osvalidate/database/tree.rb">
381
+ <provider selected="true" editor-type-id="text-editor">
382
+ <state relative-caret-position="46">
383
+ <caret line="2" column="4" lean-forward="false" selection-start-line="2" selection-start-column="4" selection-end-line="2" selection-end-column="4" />
384
+ <folding />
385
+ </state>
386
+ </provider>
387
+ </entry>
388
+ <entry file="file://$PROJECT_DIR$/lib/osvalidate/database/blob.rb">
389
+ <provider selected="true" editor-type-id="text-editor">
390
+ <state relative-caret-position="0">
391
+ <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
392
+ <folding />
393
+ </state>
394
+ </provider>
395
+ </entry>
396
+ <entry file="file://$PROJECT_DIR$/lib/osvalidate/database/baseline.rb">
397
+ <provider selected="true" editor-type-id="text-editor">
398
+ <state relative-caret-position="92">
399
+ <caret line="4" column="3" lean-forward="true" selection-start-line="4" selection-start-column="3" selection-end-line="4" selection-end-column="3" />
400
+ <folding />
401
+ </state>
402
+ </provider>
403
+ </entry>
404
+ <entry file="file://$PROJECT_DIR$/lib/osvalidate/database.rb">
405
+ <provider selected="true" editor-type-id="text-editor">
406
+ <state relative-caret-position="138">
407
+ <caret line="6" column="0" lean-forward="false" selection-start-line="6" selection-start-column="0" selection-end-line="6" selection-end-column="0" />
408
+ <folding />
409
+ </state>
410
+ </provider>
411
+ </entry>
412
+ <entry file="file://$PROJECT_DIR$/config/database.yml">
413
+ <provider selected="true" editor-type-id="text-editor">
414
+ <state relative-caret-position="69">
415
+ <caret line="3" column="22" lean-forward="false" selection-start-line="3" selection-start-column="22" selection-end-line="3" selection-end-column="22" />
416
+ <folding />
417
+ </state>
418
+ </provider>
419
+ </entry>
420
+ <entry file="file://$PROJECT_DIR$/Rakefile">
421
+ <provider selected="true" editor-type-id="text-editor">
422
+ <state relative-caret-position="437">
423
+ <caret line="19" column="5" lean-forward="true" selection-start-line="19" selection-start-column="5" selection-end-line="19" selection-end-column="5" />
424
+ <folding />
425
+ </state>
426
+ </provider>
427
+ </entry>
428
+ <entry file="file://$USER_HOME$/.rbenv/versions/2.5.0/bin/rake">
429
+ <provider selected="true" editor-type-id="text-editor">
430
+ <state relative-caret-position="621">
431
+ <caret line="27" column="0" lean-forward="true" selection-start-line="27" selection-start-column="0" selection-end-line="27" selection-end-column="0" />
432
+ <folding />
433
+ </state>
434
+ </provider>
435
+ </entry>
436
+ <entry file="file://$PROJECT_DIR$/db/migrate/20180109104200_enable_uuid.rb">
437
+ <provider selected="true" editor-type-id="text-editor">
438
+ <state relative-caret-position="115">
439
+ <caret line="5" column="3" lean-forward="true" selection-start-line="5" selection-start-column="3" selection-end-line="5" selection-end-column="3" />
440
+ <folding />
441
+ </state>
442
+ </provider>
443
+ </entry>
444
+ <entry file="file://$PROJECT_DIR$/db/migrate/20180109105600_create_initial_db.rb">
445
+ <provider selected="true" editor-type-id="text-editor">
446
+ <state relative-caret-position="477">
447
+ <caret line="28" column="33" lean-forward="false" selection-start-line="28" selection-start-column="33" selection-end-line="28" selection-end-column="33" />
448
+ <folding />
449
+ </state>
450
+ </provider>
451
+ </entry>
452
+ <entry file="file://$PROJECT_DIR$/Gemfile">
453
+ <provider selected="true" editor-type-id="text-editor">
454
+ <state relative-caret-position="0">
455
+ <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
456
+ <folding />
457
+ </state>
458
+ </provider>
459
+ </entry>
460
+ <entry file="file://$PROJECT_DIR$/Gemfile.lock">
461
+ <provider selected="true" editor-type-id="text-editor">
462
+ <state relative-caret-position="194">
463
+ <caret line="27" column="14" lean-forward="false" selection-start-line="27" selection-start-column="8" selection-end-line="27" selection-end-column="14" />
464
+ <folding />
465
+ </state>
466
+ </provider>
467
+ </entry>
468
+ <entry file="file://$PROJECT_DIR$/osvalidate.gemspec">
469
+ <provider selected="true" editor-type-id="text-editor">
470
+ <state relative-caret-position="543">
471
+ <caret line="33" column="53" lean-forward="false" selection-start-line="33" selection-start-column="53" selection-end-line="33" selection-end-column="53" />
472
+ <folding />
473
+ </state>
474
+ </provider>
475
+ </entry>
476
+ </component>
477
+ </project>
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,2 @@
1
+ Metrics/LineLength:
2
+ Max: 120
data/.travis.yml ADDED
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.5.0
5
+ before_install: gem install bundler -v 1.16.1
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at rickmark@dropbox.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in osvalidate.gemspec
6
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,57 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ osvalidate (0.1.0)
5
+ activerecord (~> 5.1.4)
6
+ pg
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ activemodel (5.1.4)
12
+ activesupport (= 5.1.4)
13
+ activerecord (5.1.4)
14
+ activemodel (= 5.1.4)
15
+ activesupport (= 5.1.4)
16
+ arel (~> 8.0)
17
+ activesupport (5.1.4)
18
+ concurrent-ruby (~> 1.0, >= 1.0.2)
19
+ i18n (~> 0.7)
20
+ minitest (~> 5.1)
21
+ tzinfo (~> 1.1)
22
+ arel (8.0.0)
23
+ concurrent-ruby (1.0.5)
24
+ diff-lcs (1.3)
25
+ i18n (0.9.1)
26
+ concurrent-ruby (~> 1.0)
27
+ minitest (5.11.1)
28
+ pg (0.21.0)
29
+ rake (10.5.0)
30
+ rspec (3.7.0)
31
+ rspec-core (~> 3.7.0)
32
+ rspec-expectations (~> 3.7.0)
33
+ rspec-mocks (~> 3.7.0)
34
+ rspec-core (3.7.1)
35
+ rspec-support (~> 3.7.0)
36
+ rspec-expectations (3.7.0)
37
+ diff-lcs (>= 1.2.0, < 2.0)
38
+ rspec-support (~> 3.7.0)
39
+ rspec-mocks (3.7.0)
40
+ diff-lcs (>= 1.2.0, < 2.0)
41
+ rspec-support (~> 3.7.0)
42
+ rspec-support (3.7.0)
43
+ thread_safe (0.3.6)
44
+ tzinfo (1.2.4)
45
+ thread_safe (~> 0.1)
46
+
47
+ PLATFORMS
48
+ ruby
49
+
50
+ DEPENDENCIES
51
+ bundler (~> 1.16)
52
+ osvalidate!
53
+ rake (~> 10.0)
54
+ rspec (~> 3.0)
55
+
56
+ BUNDLED WITH
57
+ 1.16.1
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 Rick Mark
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,43 @@
1
+ # Osvalidate
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/osvalidate`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'osvalidate'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install osvalidate
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/osvalidate. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
36
+
37
+ ## License
38
+
39
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
40
+
41
+ ## Code of Conduct
42
+
43
+ Everyone interacting in the Osvalidate project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/osvalidate/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,51 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
7
+
8
+ require 'yaml'
9
+ require "active_record"
10
+
11
+ namespace :db do
12
+ db_config = YAML::load File.open('config/database.yml')
13
+ db_config_admin = db_config.merge 'database' => 'postgres', 'schema_search_path' => 'public'
14
+
15
+ desc "Create the database"
16
+ task :create do
17
+ ActiveRecord::Base.establish_connection(db_config_admin)
18
+ ActiveRecord::Base.connection.create_database(db_config["database"])
19
+ puts "Database created."
20
+ end
21
+
22
+ desc "Migrate the database"
23
+ task :migrate do
24
+ ActiveRecord::Base.establish_connection(db_config)
25
+ ActiveRecord::Migrator.migrate("db/migrate/")
26
+ Rake::Task["db:schema"].invoke
27
+ puts "Database migrated."
28
+ end
29
+
30
+ desc "Drop the database"
31
+ task :drop do
32
+ ActiveRecord::Base.establish_connection(db_config_admin)
33
+ ActiveRecord::Base.connection.drop_database(db_config["database"])
34
+ puts "Database deleted."
35
+ end
36
+
37
+ desc "Reset the database"
38
+ task :reset => [:drop, :create, :migrate]
39
+
40
+ desc 'Create a db/schema.rb file that is portable against any DB supported by AR'
41
+ task :schema do
42
+ ActiveRecord::Base.establish_connection(db_config)
43
+ require 'active_record/schema_dumper'
44
+ filename = "db/schema.rb"
45
+ File.open(filename, "w:utf-8") do |file|
46
+ ActiveRecord::SchemaDumper.dump(ActiveRecord::Base.connection, file)
47
+ end
48
+ end
49
+
50
+ end
51
+
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "osvalidate"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,4 @@
1
+ host: 'localhost'
2
+ adapter: 'postgresql'
3
+ encoding: utf-8
4
+ database: 'osvalidate'
@@ -0,0 +1,6 @@
1
+ class EnableUuid < ActiveRecord::Migration[5.1]
2
+ def change
3
+ enable_extension 'uuid-ossp'
4
+ enable_extension 'pgcrypto'
5
+ end
6
+ end
@@ -0,0 +1,36 @@
1
+ class CreateInitialDb < ActiveRecord::Migration[5.1]
2
+ def change
3
+ create_table :blobs, id: :uuid do |t|
4
+ t.timestamps
5
+ t.string :hash
6
+ t.string :body
7
+ end
8
+
9
+ create_table :trees, id: :uuid do |t|
10
+ t.timestamps
11
+ t.string :hash
12
+ t.string :body
13
+ end
14
+
15
+ create_table :baselines, id: :uuid do |t|
16
+ t.timestamps
17
+ t.string :name
18
+ t.references :tree
19
+ end
20
+
21
+ # De-normalization for performance (truth is stored in trees & blobs)
22
+ create_table :tree_blobs, id: :uuid do |t|
23
+ t.timestamps
24
+ t.string :name
25
+ t.references :tree
26
+ t.references :blob
27
+ end
28
+
29
+ create_table :tree_trees, id: :uuid do |t|
30
+ t.timestamps
31
+ t.string :name
32
+ t.references :parent, type: :uuid, index: { name: 'tree_trees_parent' }, foreign_key: { to_table: :trees }
33
+ t.references :child, type: :uuid, index: { name: 'tree_trees_child' }, foreign_key: { to_table: :trees }
34
+ end
35
+ end
36
+ end
data/db/schema.rb ADDED
@@ -0,0 +1,64 @@
1
+ # This file is auto-generated from the current state of the database. Instead
2
+ # of editing this file, please use the migrations feature of Active Record to
3
+ # incrementally modify your database, and then regenerate this schema definition.
4
+ #
5
+ # Note that this schema.rb definition is the authoritative source for your
6
+ # database schema. If you need to create the application database on another
7
+ # system, you should be using db:schema:load, not running all the migrations
8
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
9
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
10
+ #
11
+ # It's strongly recommended that you check this file into your version control system.
12
+
13
+ ActiveRecord::Schema.define(version: 20180109105600) do
14
+
15
+ # These are extensions that must be enabled in order to support this database
16
+ enable_extension "plpgsql"
17
+ enable_extension "uuid-ossp"
18
+ enable_extension "pgcrypto"
19
+
20
+ create_table "baselines", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
21
+ t.datetime "created_at", null: false
22
+ t.datetime "updated_at", null: false
23
+ t.string "name"
24
+ t.bigint "tree_id"
25
+ t.index ["tree_id"], name: "index_baselines_on_tree_id"
26
+ end
27
+
28
+ create_table "blobs", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
29
+ t.datetime "created_at", null: false
30
+ t.datetime "updated_at", null: false
31
+ t.string "hash"
32
+ t.string "body"
33
+ end
34
+
35
+ create_table "tree_blobs", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
36
+ t.datetime "created_at", null: false
37
+ t.datetime "updated_at", null: false
38
+ t.string "name"
39
+ t.bigint "tree_id"
40
+ t.bigint "blob_id"
41
+ t.index ["blob_id"], name: "index_tree_blobs_on_blob_id"
42
+ t.index ["tree_id"], name: "index_tree_blobs_on_tree_id"
43
+ end
44
+
45
+ create_table "tree_trees", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
46
+ t.datetime "created_at", null: false
47
+ t.datetime "updated_at", null: false
48
+ t.string "name"
49
+ t.uuid "parent_id"
50
+ t.uuid "child_id"
51
+ t.index ["child_id"], name: "tree_trees_child"
52
+ t.index ["parent_id"], name: "tree_trees_parent"
53
+ end
54
+
55
+ create_table "trees", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
56
+ t.datetime "created_at", null: false
57
+ t.datetime "updated_at", null: false
58
+ t.string "hash"
59
+ t.string "body"
60
+ end
61
+
62
+ add_foreign_key "tree_trees", "trees", column: "child_id"
63
+ add_foreign_key "tree_trees", "trees", column: "parent_id"
64
+ end
data/exe/osvalidate ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "osvalidate"
data/lib/osvalidate.rb ADDED
@@ -0,0 +1,5 @@
1
+ require "osvalidate/version"
2
+
3
+ module OSValidate
4
+ # Your code goes here...
5
+ end
@@ -0,0 +1,9 @@
1
+ module OSValidate
2
+ class Database
3
+ autoload :Baseline, 'osvalidate/database/baseline'
4
+ autoload :Tree, 'osvalidate/database/tree'
5
+ autoload :Blob, 'osvalidate/database/blob'
6
+
7
+
8
+ end
9
+ end
@@ -0,0 +1,5 @@
1
+ module OSValidate::Database
2
+ class Baseline < ActiveRecord::Base
3
+
4
+ end
5
+ end
File without changes
@@ -0,0 +1,5 @@
1
+ module OSValidate::Database
2
+ class Tree < ActiveRecord::Base
3
+
4
+ end
5
+ end
@@ -0,0 +1,3 @@
1
+ module OSValidate
2
+ VERSION = "0.1.0"
3
+ end
@@ -0,0 +1,39 @@
1
+
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "osvalidate/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "osvalidate"
8
+ spec.version = OSValidate::VERSION
9
+ spec.authors = ["Rick Mark"]
10
+ spec.email = ["rickmark@dropbox.com"]
11
+
12
+ spec.summary = %q{Scan an OS disk against a baseline database}
13
+ spec.description = %q{Designed to scan for security problems in the boot chain of the operating system.}
14
+ spec.homepage = "https://github.com/dropbox/osvalidate"
15
+ spec.license = "MIT"
16
+
17
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
18
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
19
+ if spec.respond_to?(:metadata)
20
+ spec.metadata["allowed_push_host"] = "https://rubygems.org"
21
+ else
22
+ raise "RubyGems 2.0 or newer is required to protect against " \
23
+ "public gem pushes."
24
+ end
25
+
26
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
27
+ f.match(%r{^(test|spec|features)/})
28
+ end
29
+ spec.bindir = "exe"
30
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
31
+ spec.require_paths = ["lib"]
32
+
33
+ spec.add_runtime_dependency 'pg', '~> 0.21'
34
+ spec.add_runtime_dependency 'activerecord', '~> 5.1'
35
+
36
+ spec.add_development_dependency "bundler", "~> 1.16"
37
+ spec.add_development_dependency "rake", "~> 10.0"
38
+ spec.add_development_dependency "rspec", "~> 3.0"
39
+ end
metadata ADDED
@@ -0,0 +1,148 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: osvalidate
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Rick Mark
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2018-01-09 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: pg
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '0.21'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '0.21'
27
+ - !ruby/object:Gem::Dependency
28
+ name: activerecord
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '5.1'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '5.1'
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.16'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.16'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '10.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '10.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rspec
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '3.0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '3.0'
83
+ description: Designed to scan for security problems in the boot chain of the operating
84
+ system.
85
+ email:
86
+ - rickmark@dropbox.com
87
+ executables:
88
+ - osvalidate
89
+ extensions: []
90
+ extra_rdoc_files: []
91
+ files:
92
+ - ".gitignore"
93
+ - ".idea/.rakeTasks"
94
+ - ".idea/inspectionProfiles/Project_Default.xml"
95
+ - ".idea/misc.xml"
96
+ - ".idea/modules.xml"
97
+ - ".idea/osvalidate.iml"
98
+ - ".idea/vcs.xml"
99
+ - ".idea/workspace.xml"
100
+ - ".rspec"
101
+ - ".rubocop.yml"
102
+ - ".travis.yml"
103
+ - CODE_OF_CONDUCT.md
104
+ - Gemfile
105
+ - Gemfile.lock
106
+ - LICENSE.txt
107
+ - README.md
108
+ - Rakefile
109
+ - bin/console
110
+ - bin/setup
111
+ - config/database.yml
112
+ - db/migrate/20180109104200_enable_uuid.rb
113
+ - db/migrate/20180109105600_create_initial_db.rb
114
+ - db/schema.rb
115
+ - exe/osvalidate
116
+ - lib/osvalidate.rb
117
+ - lib/osvalidate/database.rb
118
+ - lib/osvalidate/database/baseline.rb
119
+ - lib/osvalidate/database/blob.rb
120
+ - lib/osvalidate/database/tree.rb
121
+ - lib/osvalidate/version.rb
122
+ - osvalidate.gemspec
123
+ homepage: https://github.com/dropbox/osvalidate
124
+ licenses:
125
+ - MIT
126
+ metadata:
127
+ allowed_push_host: https://rubygems.org
128
+ post_install_message:
129
+ rdoc_options: []
130
+ require_paths:
131
+ - lib
132
+ required_ruby_version: !ruby/object:Gem::Requirement
133
+ requirements:
134
+ - - ">="
135
+ - !ruby/object:Gem::Version
136
+ version: '0'
137
+ required_rubygems_version: !ruby/object:Gem::Requirement
138
+ requirements:
139
+ - - ">="
140
+ - !ruby/object:Gem::Version
141
+ version: '0'
142
+ requirements: []
143
+ rubyforge_project:
144
+ rubygems_version: 2.5.2
145
+ signing_key:
146
+ specification_version: 4
147
+ summary: Scan an OS disk against a baseline database
148
+ test_files: []