shadow_db_credentials 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.
@@ -0,0 +1,18 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
18
+ .DS_Store
@@ -0,0 +1 @@
1
+ shadow_db_credentials
@@ -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" /></Settings>
@@ -0,0 +1,9 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="CssXFireSettings">
4
+ <general autoClear="false" autoExpand="false" />
5
+ <strategy useRoutes="false" mediaReduce="false" fileReduce="false" currentDocumentsReduce="false" resolveVariables="true" resolveMixins="true" />
6
+ <routes />
7
+ </component>
8
+ </project>
9
+
@@ -0,0 +1,5 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="Encoding" useUTFGuessing="true" native2AsciiForPropertiesFiles="false" />
4
+ </project>
5
+
@@ -0,0 +1,5 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectRootManager" version="2" project-jdk-name="RVM: ruby-1.9.2-p318 [shvets.github.com]" project-jdk-type="RUBY_SDK" />
4
+ </project>
5
+
@@ -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/shadow_db_credentials.iml" filepath="$PROJECT_DIR$/.idea/shadow_db_credentials.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
9
+
@@ -0,0 +1,5 @@
1
+ <component name="DependencyValidationManager">
2
+ <state>
3
+ <option name="SKIP_IMPORT_STATEMENTS" value="false" />
4
+ </state>
5
+ </component>
@@ -0,0 +1,10 @@
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="bundler (v1.1.3, RVM: ruby-1.9.2-p318 [shvets.github.com]) [gem]" level="application" />
8
+ </component>
9
+ </module>
10
+
@@ -0,0 +1,7 @@
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>
7
+
@@ -0,0 +1,389 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ChangeListManager">
4
+ <list default="true" id="48445419-a9bd-462b-a38e-4f503de87dd4" name="Default" comment="">
5
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/Rakefile" afterPath="$PROJECT_DIR$/Rakefile" />
6
+ </list>
7
+ <ignored path="shadow_db_credentials.iws" />
8
+ <ignored path=".idea/workspace.xml" />
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="ChangesViewManager" flattened_view="true" show_ignored="false" />
16
+ <component name="CreatePatchCommitExecutor">
17
+ <option name="PATCH_PATH" value="" />
18
+ </component>
19
+ <component name="DaemonCodeAnalyzer">
20
+ <disable_hints />
21
+ </component>
22
+ <component name="FavoritesManager">
23
+ <favorites_list name="shadow_db_credentials" />
24
+ </component>
25
+ <component name="FileEditorManager">
26
+ <leaf>
27
+ <file leaf-file-name="Gemfile" pinned="false" current="false" current-in-tab="false">
28
+ <entry file="file://$PROJECT_DIR$/Gemfile">
29
+ <provider selected="true" editor-type-id="text-editor">
30
+ <state line="15" column="0" selection-start="178" selection-end="178" vertical-scroll-proportion="0.0">
31
+ <folding />
32
+ </state>
33
+ </provider>
34
+ </entry>
35
+ </file>
36
+ <file leaf-file-name="shadow_db_credentials.gemspec.erb" pinned="false" current="false" current-in-tab="false">
37
+ <entry file="file://$PROJECT_DIR$/shadow_db_credentials.gemspec.erb">
38
+ <provider selected="true" editor-type-id="text-editor">
39
+ <state line="18" column="41" selection-start="892" selection-end="892" vertical-scroll-proportion="-11.52">
40
+ <folding />
41
+ </state>
42
+ </provider>
43
+ </entry>
44
+ </file>
45
+ <file leaf-file-name="CHANGES" pinned="false" current="false" current-in-tab="false">
46
+ <entry file="file://$PROJECT_DIR$/CHANGES">
47
+ <provider selected="true" editor-type-id="text-editor">
48
+ <state line="0" column="23" selection-start="23" selection-end="23" vertical-scroll-proportion="0.0">
49
+ <folding />
50
+ </state>
51
+ </provider>
52
+ </entry>
53
+ </file>
54
+ <file leaf-file-name="shadow_db_credentials.rb" pinned="false" current="false" current-in-tab="false">
55
+ <entry file="file://$PROJECT_DIR$/lib/shadow_db_credentials/shadow_db_credentials.rb">
56
+ <provider selected="true" editor-type-id="text-editor">
57
+ <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
58
+ <folding />
59
+ </state>
60
+ </provider>
61
+ </entry>
62
+ </file>
63
+ <file leaf-file-name="version.rb" pinned="false" current="false" current-in-tab="false">
64
+ <entry file="file://$PROJECT_DIR$/lib/shadow_db_credentials/version.rb">
65
+ <provider selected="true" editor-type-id="text-editor">
66
+ <state line="3" column="134" selection-start="51" selection-end="51" vertical-scroll-proportion="0.0">
67
+ <folding />
68
+ </state>
69
+ </provider>
70
+ </entry>
71
+ </file>
72
+ <file leaf-file-name="Rakefile" pinned="false" current="true" current-in-tab="true">
73
+ <entry file="file://$PROJECT_DIR$/Rakefile">
74
+ <provider selected="true" editor-type-id="text-editor">
75
+ <state line="9" column="21" selection-start="238" selection-end="238" vertical-scroll-proportion="0.23338735">
76
+ <folding />
77
+ </state>
78
+ </provider>
79
+ </entry>
80
+ </file>
81
+ </leaf>
82
+ </component>
83
+ <component name="FindManager">
84
+ <FindUsagesManager>
85
+ <setting name="OPEN_NEW_TAB" value="false" />
86
+ </FindUsagesManager>
87
+ </component>
88
+ <component name="Git.Settings">
89
+ <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
90
+ </component>
91
+ <component name="IdeDocumentHistory">
92
+ <option name="changedFiles">
93
+ <list>
94
+ <option value="$PROJECT_DIR$/lib/shadow_db_credentials.rb" />
95
+ <option value="$PROJECT_DIR$/shadow_db_credentials.gemspec.erb" />
96
+ <option value="$PROJECT_DIR$/CHANGES" />
97
+ <option value="$PROJECT_DIR$/lib/shadow_db_credentials/version.rb" />
98
+ <option value="$PROJECT_DIR$/Rakefile" />
99
+ </list>
100
+ </option>
101
+ </component>
102
+ <component name="ProjectFrameBounds">
103
+ <option name="x" value="332" />
104
+ <option name="y" value="39" />
105
+ <option name="width" value="1588" />
106
+ <option name="height" value="1058" />
107
+ </component>
108
+ <component name="ProjectLevelVcsManager" settingsEditedManually="false">
109
+ <OptionsSetting value="true" id="Add" />
110
+ <OptionsSetting value="true" id="Remove" />
111
+ <OptionsSetting value="true" id="Checkout" />
112
+ <OptionsSetting value="true" id="Update" />
113
+ <OptionsSetting value="true" id="Status" />
114
+ <OptionsSetting value="true" id="Edit" />
115
+ <ConfirmationsSetting value="0" id="Add" />
116
+ <ConfirmationsSetting value="0" id="Remove" />
117
+ </component>
118
+ <component name="ProjectReloadState">
119
+ <option name="STATE" value="0" />
120
+ </component>
121
+ <component name="ProjectView">
122
+ <navigator currentView="ProjectPane" proportions="" version="1" splitterProportion="0.5">
123
+ <flattenPackages />
124
+ <showMembers />
125
+ <showModules />
126
+ <showLibraryContents />
127
+ <hideEmptyPackages />
128
+ <abbreviatePackageNames />
129
+ <autoscrollToSource />
130
+ <autoscrollFromSource />
131
+ <sortByType />
132
+ </navigator>
133
+ <panes>
134
+ <pane id="Scope" />
135
+ <pane id="ProjectPane">
136
+ <subPane>
137
+ <PATH>
138
+ <PATH_ELEMENT>
139
+ <option name="myItemId" value="shadow_db_credentials" />
140
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
141
+ </PATH_ELEMENT>
142
+ </PATH>
143
+ <PATH>
144
+ <PATH_ELEMENT>
145
+ <option name="myItemId" value="shadow_db_credentials" />
146
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
147
+ </PATH_ELEMENT>
148
+ <PATH_ELEMENT>
149
+ <option name="myItemId" value="shadow_db_credentials" />
150
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
151
+ </PATH_ELEMENT>
152
+ </PATH>
153
+ <PATH>
154
+ <PATH_ELEMENT>
155
+ <option name="myItemId" value="shadow_db_credentials" />
156
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
157
+ </PATH_ELEMENT>
158
+ <PATH_ELEMENT>
159
+ <option name="myItemId" value="shadow_db_credentials" />
160
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
161
+ </PATH_ELEMENT>
162
+ <PATH_ELEMENT>
163
+ <option name="myItemId" value="lib" />
164
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
165
+ </PATH_ELEMENT>
166
+ </PATH>
167
+ <PATH>
168
+ <PATH_ELEMENT>
169
+ <option name="myItemId" value="shadow_db_credentials" />
170
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
171
+ </PATH_ELEMENT>
172
+ <PATH_ELEMENT>
173
+ <option name="myItemId" value="shadow_db_credentials" />
174
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
175
+ </PATH_ELEMENT>
176
+ <PATH_ELEMENT>
177
+ <option name="myItemId" value="lib" />
178
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
179
+ </PATH_ELEMENT>
180
+ <PATH_ELEMENT>
181
+ <option name="myItemId" value="shadow_db_credentials" />
182
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
183
+ </PATH_ELEMENT>
184
+ </PATH>
185
+ </subPane>
186
+ </pane>
187
+ </panes>
188
+ </component>
189
+ <component name="RecentsManager">
190
+ <key name="MoveFile.RECENT_KEYS">
191
+ <recent name="$PROJECT_DIR$/lib/shadow_db_credentials" />
192
+ </key>
193
+ </component>
194
+ <component name="RunManager">
195
+ <configuration default="true" type="RSpecRunConfigurationType" factoryName="RSpec">
196
+ <predefined_log_file id="RUBY_RSPEC" enabled="true" />
197
+ <module name="" />
198
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
199
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
200
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
201
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
202
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
203
+ <envs />
204
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
205
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
206
+ <COVERAGE_PATTERN ENABLED="true">
207
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
208
+ </COVERAGE_PATTERN>
209
+ </EXTENSION>
210
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
211
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
212
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
213
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
214
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
215
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
216
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
217
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
218
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
219
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
220
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
221
+ <method />
222
+ </configuration>
223
+ <configuration default="true" type="TestUnitRunConfigurationType" factoryName="Test::Unit/Shoulda/Minitest">
224
+ <predefined_log_file id="RUBY_TESTUNIT" enabled="true" />
225
+ <module name="" />
226
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
227
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
228
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
229
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
230
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
231
+ <envs />
232
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
233
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
234
+ <COVERAGE_PATTERN ENABLED="true">
235
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
236
+ </COVERAGE_PATTERN>
237
+ </EXTENSION>
238
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
239
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
240
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="" />
241
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_METHOD_NAME" VALUE="" />
242
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
243
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
244
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_OPTIONS" VALUE="" />
245
+ <method />
246
+ </configuration>
247
+ <list size="0" />
248
+ </component>
249
+ <component name="ShelveChangesManager" show_recycled="false" />
250
+ <component name="ToolWindowManager">
251
+ <frame x="332" y="39" width="1588" height="1058" extended-state="0" />
252
+ <editor active="true" />
253
+ <layout>
254
+ <window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
255
+ <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.3298647" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
256
+ <window_info id="jenkinsBrowser" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
257
+ <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
258
+ <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="-1" side_tool="true" content_ui="tabs" />
259
+ <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="-1" side_tool="true" content_ui="tabs" />
260
+ <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
261
+ <window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.3298647" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
262
+ <window_info id="CSS-X-Fire" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
263
+ <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" />
264
+ <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" />
265
+ <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.25" sideWeight="0.67013526" order="0" side_tool="false" content_ui="combo" />
266
+ <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
267
+ <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" />
268
+ <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" />
269
+ <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" />
270
+ <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" />
271
+ <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" />
272
+ <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" />
273
+ </layout>
274
+ </component>
275
+ <component name="VcsContentAnnotationSettings">
276
+ <option name="myLimit" value="2678400000" />
277
+ </component>
278
+ <component name="VcsManagerConfiguration">
279
+ <option name="OFFER_MOVE_TO_ANOTHER_CHANGELIST_ON_PARTIAL_COMMIT" value="true" />
280
+ <option name="CHECK_CODE_SMELLS_BEFORE_PROJECT_COMMIT" value="true" />
281
+ <option name="CHECK_NEW_TODO" value="true" />
282
+ <option name="myTodoPanelSettings">
283
+ <value>
284
+ <are-packages-shown value="false" />
285
+ <are-modules-shown value="false" />
286
+ <flatten-packages value="false" />
287
+ <is-autoscroll-to-source value="false" />
288
+ </value>
289
+ </option>
290
+ <option name="PERFORM_UPDATE_IN_BACKGROUND" value="true" />
291
+ <option name="PERFORM_COMMIT_IN_BACKGROUND" value="true" />
292
+ <option name="PERFORM_EDIT_IN_BACKGROUND" value="true" />
293
+ <option name="PERFORM_CHECKOUT_IN_BACKGROUND" value="true" />
294
+ <option name="PERFORM_ADD_REMOVE_IN_BACKGROUND" value="true" />
295
+ <option name="PERFORM_ROLLBACK_IN_BACKGROUND" value="false" />
296
+ <option name="CHECK_LOCALLY_CHANGED_CONFLICTS_IN_BACKGROUND" value="false" />
297
+ <option name="ENABLE_BACKGROUND_PROCESSES" value="false" />
298
+ <option name="CHANGED_ON_SERVER_INTERVAL" value="60" />
299
+ <option name="SHOW_ONLY_CHANGED_IN_SELECTION_DIFF" value="true" />
300
+ <option name="CHECK_COMMIT_MESSAGE_SPELLING" value="true" />
301
+ <option name="DEFAULT_PATCH_EXTENSION" value="patch" />
302
+ <option name="SHORT_DIFF_HORISONTALLY" value="true" />
303
+ <option name="SHORT_DIFF_EXTRA_LINES" value="2" />
304
+ <option name="SOFT_WRAPS_IN_SHORT_DIFF" value="true" />
305
+ <option name="INCLUDE_TEXT_INTO_PATCH" value="false" />
306
+ <option name="INCLUDE_TEXT_INTO_SHELF" value="false" />
307
+ <option name="CREATE_PATCH_EXPAND_DETAILS_DEFAULT" value="true" />
308
+ <option name="SHOW_FILE_HISTORY_DETAILS" value="true" />
309
+ <option name="SHOW_VCS_ERROR_NOTIFICATIONS" value="true" />
310
+ <option name="CHANGE_DETAILS_ON" value="false" />
311
+ <option name="FORCE_NON_EMPTY_COMMENT" value="false" />
312
+ <option name="CLEAR_INITIAL_COMMIT_MESSAGE" value="false" />
313
+ <option name="LAST_COMMIT_MESSAGE" />
314
+ <option name="MAKE_NEW_CHANGELIST_ACTIVE" value="false" />
315
+ <option name="OPTIMIZE_IMPORTS_BEFORE_PROJECT_COMMIT" value="false" />
316
+ <option name="CHECK_FILES_UP_TO_DATE_BEFORE_COMMIT" value="false" />
317
+ <option name="REFORMAT_BEFORE_PROJECT_COMMIT" value="false" />
318
+ <option name="REFORMAT_BEFORE_FILE_COMMIT" value="false" />
319
+ <option name="FILE_HISTORY_DIALOG_COMMENTS_SPLITTER_PROPORTION" value="0.8" />
320
+ <option name="FILE_HISTORY_DIALOG_SPLITTER_PROPORTION" value="0.5" />
321
+ <option name="ACTIVE_VCS_NAME" />
322
+ <option name="UPDATE_GROUP_BY_PACKAGES" value="false" />
323
+ <option name="UPDATE_GROUP_BY_CHANGELIST" value="false" />
324
+ <option name="SHOW_FILE_HISTORY_AS_TREE" value="false" />
325
+ <option name="FILE_HISTORY_SPLITTER_PROPORTION" value="0.6" />
326
+ </component>
327
+ <component name="XDebuggerManager">
328
+ <breakpoint-manager />
329
+ </component>
330
+ <component name="editorHistoryManager">
331
+ <entry file="file://$PROJECT_DIR$/lib/shadow_db_credentials.rb">
332
+ <provider selected="true" editor-type-id="text-editor">
333
+ <state line="1" column="0" selection-start="32" selection-end="32" vertical-scroll-proportion="0.01713062">
334
+ <folding />
335
+ </state>
336
+ </provider>
337
+ </entry>
338
+ <entry file="file://$PROJECT_DIR$/Gemfile">
339
+ <provider selected="true" editor-type-id="text-editor">
340
+ <state line="15" column="0" selection-start="178" selection-end="178" vertical-scroll-proportion="0.0">
341
+ <folding />
342
+ </state>
343
+ </provider>
344
+ </entry>
345
+ <entry file="file://$PROJECT_DIR$/README.md">
346
+ <provider selected="true" editor-type-id="text-editor">
347
+ <state line="3" column="0" selection-start="45" selection-end="129" vertical-scroll-proportion="0.051391862">
348
+ <folding />
349
+ </state>
350
+ </provider>
351
+ </entry>
352
+ <entry file="file://$PROJECT_DIR$/shadow_db_credentials.gemspec.erb">
353
+ <provider selected="true" editor-type-id="text-editor">
354
+ <state line="18" column="41" selection-start="892" selection-end="892" vertical-scroll-proportion="-11.52">
355
+ <folding />
356
+ </state>
357
+ </provider>
358
+ </entry>
359
+ <entry file="file://$PROJECT_DIR$/CHANGES">
360
+ <provider selected="true" editor-type-id="text-editor">
361
+ <state line="0" column="23" selection-start="23" selection-end="23" vertical-scroll-proportion="0.0">
362
+ <folding />
363
+ </state>
364
+ </provider>
365
+ </entry>
366
+ <entry file="file://$PROJECT_DIR$/lib/shadow_db_credentials/shadow_db_credentials.rb">
367
+ <provider selected="true" editor-type-id="text-editor">
368
+ <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
369
+ <folding />
370
+ </state>
371
+ </provider>
372
+ </entry>
373
+ <entry file="file://$PROJECT_DIR$/lib/shadow_db_credentials/version.rb">
374
+ <provider selected="true" editor-type-id="text-editor">
375
+ <state line="3" column="134" selection-start="51" selection-end="51" vertical-scroll-proportion="0.0">
376
+ <folding />
377
+ </state>
378
+ </provider>
379
+ </entry>
380
+ <entry file="file://$PROJECT_DIR$/Rakefile">
381
+ <provider selected="true" editor-type-id="text-editor">
382
+ <state line="9" column="21" selection-start="238" selection-end="238" vertical-scroll-proportion="0.23338735">
383
+ <folding />
384
+ </state>
385
+ </provider>
386
+ </entry>
387
+ </component>
388
+ </project>
389
+
data/.rvmrc ADDED
@@ -0,0 +1,4 @@
1
+ rvm_gemset_create_on_use_flag=1
2
+ rvm_pretty_print_flag=1
3
+
4
+ rvm use 1.9.3@shadow_db_credentials
data/CHANGES ADDED
@@ -0,0 +1,5 @@
1
+ = Shadow DB Credentials Changelog
2
+
3
+ == Version 1.0.0
4
+
5
+ * Initial release.
data/Gemfile ADDED
@@ -0,0 +1,15 @@
1
+ source :rubygems
2
+
3
+ group :default do
4
+
5
+ end
6
+
7
+ group :development do
8
+ gem "gemspec_deps_gen"
9
+ gem "gemcutter"
10
+ end
11
+
12
+ group :test do
13
+ gem "rspec", "2.9.0"
14
+ gem "mocha", "0.10.3"
15
+ end
data/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2012 Alexander Shvets
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,4 @@
1
+ shadow_db_credentials
2
+ =====================
3
+
4
+ Class that helps to keep database credentials for rails application in private place
@@ -0,0 +1,34 @@
1
+ #!/usr/bin/env rake
2
+
3
+ $LOAD_PATH.unshift File.expand_path("lib", File.dirname(__FILE__))
4
+
5
+ require "rspec/core/rake_task"
6
+ require "shadow_db_credentials/version"
7
+ require "gemspec_deps_gen/gemspec_deps_gen"
8
+
9
+ def version
10
+ ShadowDbCredentials::VERSION
11
+ end
12
+
13
+ def project_name
14
+ File.basename(Dir.pwd)
15
+ end
16
+
17
+ task :build do
18
+ generator = GemspecDepsGen.new
19
+
20
+ generator.generate_dependencies "#{project_name}.gemspec.erb", "#{project_name}.gemspec"
21
+
22
+ system "gem build #{project_name}.gemspec"
23
+ end
24
+
25
+ task :release => :build do
26
+ system "gem push #{project_name}-#{version}.gem"
27
+ end
28
+
29
+ RSpec::Core::RakeTask.new do |task|
30
+ task.pattern = 'spec/**/*_spec.rb'
31
+ task.verbose = false
32
+ end
33
+
34
+
@@ -0,0 +1 @@
1
+ require "shadow_db_credentials"
@@ -0,0 +1,53 @@
1
+ class ShadowDbCredentials
2
+
3
+ def initialize credentials_dir
4
+ @credentials_dir = credentials_dir
5
+ end
6
+
7
+ def retrieve_configuration rails_env, source='config/database.yml'
8
+ file = source.kind_of?(String) ? File.open(source) : source
9
+
10
+ template = ERB.new file.read
11
+
12
+ config = YAML.load(template.result(binding))
13
+
14
+ process_credentials(config[rails_env])
15
+ end
16
+
17
+ def process_all_configurations configurations
18
+ new_configurations = {}
19
+
20
+ configurations.each do |name, params|
21
+ new_configurations[name] = process_credentials(params)
22
+ end
23
+
24
+ new_configurations
25
+ end
26
+
27
+ def process_configuration configurations, rails_env
28
+ new_configurations = configurations.clone
29
+
30
+ new_configurations[rails_env] = process_credentials(configurations[rails_env])
31
+
32
+ new_configurations
33
+ end
34
+
35
+ private
36
+
37
+ def process_credentials params
38
+ if params['credentials']
39
+ credentials = params.delete('credentials')
40
+
41
+ file_name = "#@credentials_dir/#{credentials}"
42
+
43
+ if File.exist? file_name
44
+ params.merge!(YAML.load_file(file_name))
45
+ else
46
+ puts "Missing credentials file: #{file_name}."
47
+ end
48
+ end
49
+
50
+ params
51
+ end
52
+ end
53
+
@@ -0,0 +1,3 @@
1
+ module ShadowDbCredentials
2
+ VERSION = "1.0.0"
3
+ end
@@ -0,0 +1,22 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ require File.expand_path(File.dirname(__FILE__) + '/lib/shadow_db_credentials/version')
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "shadow_db_credentials"
7
+ spec.summary = %q{Class that helps to keep database credentials for rails application in private place}
8
+ spec.description = %q{Class that helps to keep database credentials for rails application in private place}
9
+ spec.email = "alexander.shvets@gmail.com"
10
+ spec.authors = ["Alexander Shvets"]
11
+ spec.homepage = "http://github.com/shvets/shadow_db_credentials"
12
+
13
+ spec.files = `git ls-files`.split($\)
14
+ #spec.executables = spec.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
15
+ #gemspec.bindir = "bin"
16
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
17
+ spec.require_paths = ["lib"]
18
+ spec.version = ShadowDbCredentials::VERSION
19
+
20
+ <%= include_dependencies %>
21
+ end
22
+
metadata ADDED
@@ -0,0 +1,99 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: shadow_db_credentials
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Alexander Shvets
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-06-08 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: gemspec_deps_gen
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: gemcutter
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :development
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ description: Class that helps to keep database credentials for rails application in
47
+ private place
48
+ email: alexander.shvets@gmail.com
49
+ executables: []
50
+ extensions: []
51
+ extra_rdoc_files: []
52
+ files:
53
+ - .gitignore
54
+ - .idea/.name
55
+ - .idea/.rakeTasks
56
+ - .idea/cssxfire.xml
57
+ - .idea/encodings.xml
58
+ - .idea/misc.xml
59
+ - .idea/modules.xml
60
+ - .idea/scopes/scope_settings.xml
61
+ - .idea/shadow_db_credentials.iml
62
+ - .idea/vcs.xml
63
+ - .idea/workspace.xml
64
+ - .rvmrc
65
+ - CHANGES
66
+ - Gemfile
67
+ - LICENSE
68
+ - README.md
69
+ - Rakefile
70
+ - lib/shadow_db_credentials.rb
71
+ - lib/shadow_db_credentials/shadow_db_credentials.rb
72
+ - lib/shadow_db_credentials/version.rb
73
+ - shadow_db_credentials.gemspec.erb
74
+ homepage: http://github.com/shvets/shadow_db_credentials
75
+ licenses: []
76
+ post_install_message:
77
+ rdoc_options: []
78
+ require_paths:
79
+ - lib
80
+ required_ruby_version: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ! '>='
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
86
+ required_rubygems_version: !ruby/object:Gem::Requirement
87
+ none: false
88
+ requirements:
89
+ - - ! '>='
90
+ - !ruby/object:Gem::Version
91
+ version: '0'
92
+ requirements: []
93
+ rubyforge_project:
94
+ rubygems_version: 1.8.23
95
+ signing_key:
96
+ specification_version: 3
97
+ summary: Class that helps to keep database credentials for rails application in private
98
+ place
99
+ test_files: []