shadow_db_credentials 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,8 +2,10 @@
2
2
  <project version="4">
3
3
  <component name="ChangeListManager">
4
4
  <list default="true" id="48445419-a9bd-462b-a38e-4f503de87dd4" name="Default" comment="">
5
- <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/shadow_db_credentials.gemspec" />
5
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/spec/shadow_db_credentials_spec.rb" />
6
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/spec/spec_helper.rb" />
6
7
  <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
8
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/shadow_db_credentials.rb" afterPath="$PROJECT_DIR$/lib/shadow_db_credentials.rb" />
7
9
  <change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/shadow_db_credentials/version.rb" afterPath="$PROJECT_DIR$/lib/shadow_db_credentials/version.rb" />
8
10
  </list>
9
11
  <ignored path="shadow_db_credentials.iws" />
@@ -26,55 +28,46 @@
26
28
  </component>
27
29
  <component name="FileEditorManager">
28
30
  <leaf>
29
- <file leaf-file-name="Gemfile" pinned="false" current="false" current-in-tab="false">
30
- <entry file="file://$PROJECT_DIR$/Gemfile">
31
+ <file leaf-file-name="shadow_db_credentials_spec.rb" pinned="false" current="false" current-in-tab="false">
32
+ <entry file="file://$PROJECT_DIR$/spec/shadow_db_credentials_spec.rb">
31
33
  <provider selected="true" editor-type-id="text-editor">
32
- <state line="3" column="13" selection-start="36" selection-end="36" vertical-scroll-proportion="0.0">
34
+ <state line="17" column="12" selection-start="584" selection-end="584" vertical-scroll-proportion="0.0">
33
35
  <folding />
34
36
  </state>
35
37
  </provider>
36
38
  </entry>
37
39
  </file>
38
- <file leaf-file-name="shadow_db_credentials.gemspec.erb" pinned="false" current="false" current-in-tab="false">
39
- <entry file="file://$PROJECT_DIR$/shadow_db_credentials.gemspec.erb">
40
+ <file leaf-file-name="version.rb" pinned="false" current="true" current-in-tab="true">
41
+ <entry file="file://$PROJECT_DIR$/lib/shadow_db_credentials/version.rb">
40
42
  <provider selected="true" editor-type-id="text-editor">
41
- <state line="18" column="41" selection-start="892" selection-end="892" vertical-scroll-proportion="0.0">
43
+ <state line="1" column="18" selection-start="45" selection-end="45" vertical-scroll-proportion="0.02909091">
42
44
  <folding />
43
45
  </state>
44
46
  </provider>
45
47
  </entry>
46
48
  </file>
47
- <file leaf-file-name="CHANGES" pinned="false" current="false" current-in-tab="false">
48
- <entry file="file://$PROJECT_DIR$/CHANGES">
49
+ <file leaf-file-name="example.rb" pinned="false" current="false" current-in-tab="false">
50
+ <entry file="file://$USER_HOME$/.rvm/gems/ruby-1.9.3-p194@shadow_db_credentials/gems/rspec-core-2.9.0/lib/rspec/core/example.rb">
49
51
  <provider selected="true" editor-type-id="text-editor">
50
- <state line="0" column="23" selection-start="23" selection-end="23" vertical-scroll-proportion="0.0">
52
+ <state line="83" column="0" selection-start="3062" selection-end="3062" vertical-scroll-proportion="0.0">
51
53
  <folding />
52
54
  </state>
53
55
  </provider>
54
56
  </entry>
55
57
  </file>
56
- <file leaf-file-name="shadow_db_credentials.rb" pinned="false" current="false" current-in-tab="false">
57
- <entry file="file://$PROJECT_DIR$/lib/shadow_db_credentials/shadow_db_credentials.rb">
58
+ <file leaf-file-name="spec_helper.rb" pinned="false" current="false" current-in-tab="false">
59
+ <entry file="file://$PROJECT_DIR$/spec/spec_helper.rb">
58
60
  <provider selected="true" editor-type-id="text-editor">
59
- <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
61
+ <state line="12" column="0" selection-start="305" selection-end="305" vertical-scroll-proportion="0.0">
60
62
  <folding />
61
63
  </state>
62
64
  </provider>
63
65
  </entry>
64
66
  </file>
65
- <file leaf-file-name="version.rb" pinned="false" current="true" current-in-tab="true">
66
- <entry file="file://$PROJECT_DIR$/lib/shadow_db_credentials/version.rb">
67
- <provider selected="true" editor-type-id="text-editor">
68
- <state line="1" column="18" selection-start="45" selection-end="45" vertical-scroll-proportion="0.025931928">
69
- <folding />
70
- </state>
71
- </provider>
72
- </entry>
73
- </file>
74
- <file leaf-file-name="Rakefile" pinned="false" current="false" current-in-tab="false">
75
- <entry file="file://$PROJECT_DIR$/Rakefile">
67
+ <file leaf-file-name="shadow_db_credentials.rb" pinned="false" current="false" current-in-tab="false">
68
+ <entry file="file://$PROJECT_DIR$/lib/shadow_db_credentials/shadow_db_credentials.rb">
76
69
  <provider selected="true" editor-type-id="text-editor">
77
- <state line="19" column="90" selection-start="439" selection-end="439" vertical-scroll-proportion="0.0">
70
+ <state line="43" column="0" selection-start="1016" selection-end="1016" vertical-scroll-proportion="0.0">
78
71
  <folding />
79
72
  </state>
80
73
  </provider>
@@ -93,10 +86,13 @@
93
86
  <component name="IdeDocumentHistory">
94
87
  <option name="changedFiles">
95
88
  <list>
96
- <option value="$PROJECT_DIR$/lib/shadow_db_credentials.rb" />
97
89
  <option value="$PROJECT_DIR$/shadow_db_credentials.gemspec.erb" />
98
90
  <option value="$PROJECT_DIR$/CHANGES" />
99
91
  <option value="$PROJECT_DIR$/Rakefile" />
92
+ <option value="$PROJECT_DIR$/lib/shadow_db_credentials.rb" />
93
+ <option value="$PROJECT_DIR$/spec/spec_helper.rb" />
94
+ <option value="$PROJECT_DIR$/lib/shadow_db_credentials/shadow_db_credentials.rb" />
95
+ <option value="$PROJECT_DIR$/spec/shadow_db_credentials_spec.rb" />
100
96
  <option value="$PROJECT_DIR$/lib/shadow_db_credentials/version.rb" />
101
97
  </list>
102
98
  </option>
@@ -133,6 +129,7 @@
133
129
  <sortByType />
134
130
  </navigator>
135
131
  <panes>
132
+ <pane id="Scope" />
136
133
  <pane id="ProjectPane">
137
134
  <subPane>
138
135
  <PATH>
@@ -151,6 +148,20 @@
151
148
  <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
152
149
  </PATH_ELEMENT>
153
150
  </PATH>
151
+ <PATH>
152
+ <PATH_ELEMENT>
153
+ <option name="myItemId" value="shadow_db_credentials" />
154
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
155
+ </PATH_ELEMENT>
156
+ <PATH_ELEMENT>
157
+ <option name="myItemId" value="shadow_db_credentials" />
158
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
159
+ </PATH_ELEMENT>
160
+ <PATH_ELEMENT>
161
+ <option name="myItemId" value="spec" />
162
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
163
+ </PATH_ELEMENT>
164
+ </PATH>
154
165
  <PATH>
155
166
  <PATH_ELEMENT>
156
167
  <option name="myItemId" value="shadow_db_credentials" />
@@ -185,15 +196,83 @@
185
196
  </PATH>
186
197
  </subPane>
187
198
  </pane>
188
- <pane id="Scope" />
189
199
  </panes>
190
200
  </component>
201
+ <component name="PropertiesComponent">
202
+ <property name="recentsLimit" value="5" />
203
+ </component>
191
204
  <component name="RecentsManager">
192
205
  <key name="MoveFile.RECENT_KEYS">
193
206
  <recent name="$PROJECT_DIR$/lib/shadow_db_credentials" />
194
207
  </key>
195
208
  </component>
196
- <component name="RunManager">
209
+ <component name="RunManager" selected="RSpec.ShadowDbCredentials should read credentials from the file">
210
+ <configuration default="false" name="ShadowDbCredentials" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
211
+ <predefined_log_file id="RUBY_RSPEC" enabled="true" />
212
+ <module name="shadow_db_credentials" />
213
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
214
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$PROJECT_DIR$/spec" />
215
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
216
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
217
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
218
+ <envs>
219
+ <env name="JRUBY_OPTS" value="-X+O" />
220
+ </envs>
221
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
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
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
228
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$PROJECT_DIR$/spec/shadow_db_credentials_spec.rb" />
229
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
230
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
231
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="ShadowDbCredentials" />
232
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
233
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
234
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
235
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
236
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
237
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
238
+ <RunnerSettings RunnerId="RubyRunner" />
239
+ <ConfigurationWrapper RunnerId="RubyRunner" />
240
+ <method />
241
+ </configuration>
242
+ <configuration default="false" name="ShadowDbCredentials should read credentials from the file" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
243
+ <predefined_log_file id="RUBY_RSPEC" enabled="true" />
244
+ <module name="shadow_db_credentials" />
245
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
246
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$PROJECT_DIR$/spec" />
247
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
248
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
249
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
250
+ <envs>
251
+ <env name="JRUBY_OPTS" value="-X+O" />
252
+ </envs>
253
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
254
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
255
+ <COVERAGE_PATTERN ENABLED="true">
256
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
257
+ </COVERAGE_PATTERN>
258
+ </EXTENSION>
259
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
260
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$PROJECT_DIR$/spec/shadow_db_credentials_spec.rb" />
261
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
262
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
263
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="ShadowDbCredentials should read credentials from the file" />
264
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
265
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
266
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
267
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
268
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
269
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
270
+ <RunnerSettings RunnerId="RubyDebugRunner" />
271
+ <RunnerSettings RunnerId="RubyRunner" />
272
+ <ConfigurationWrapper RunnerId="RubyDebugRunner" />
273
+ <ConfigurationWrapper RunnerId="RubyRunner" />
274
+ <method />
275
+ </configuration>
197
276
  <configuration default="true" type="RSpecRunConfigurationType" factoryName="RSpec">
198
277
  <predefined_log_file id="RUBY_RSPEC" enabled="true" />
199
278
  <module name="" />
@@ -264,29 +343,38 @@
264
343
  <RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_OPTIONS" VALUE="" />
265
344
  <method />
266
345
  </configuration>
267
- <list size="0" />
346
+ <list size="2">
347
+ <item index="0" class="java.lang.String" itemvalue="RSpec.ShadowDbCredentials" />
348
+ <item index="1" class="java.lang.String" itemvalue="RSpec.ShadowDbCredentials should read credentials from the file" />
349
+ </list>
350
+ <recent_temporary>
351
+ <list size="2">
352
+ <item index="0" class="java.lang.String" itemvalue="RSpec.ShadowDbCredentials should read credentials from the file" />
353
+ <item index="1" class="java.lang.String" itemvalue="RSpec.ShadowDbCredentials" />
354
+ </list>
355
+ </recent_temporary>
268
356
  </component>
269
357
  <component name="ShelveChangesManager" show_recycled="false" />
270
358
  <component name="ToolWindowManager">
271
359
  <frame x="332" y="39" width="1588" height="1058" extended-state="0" />
272
360
  <editor active="true" />
273
361
  <layout>
274
- <window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.3298647" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
275
362
  <window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
276
363
  <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="7" side_tool="false" content_ui="tabs" />
277
364
  <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" />
278
365
  <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" />
279
366
  <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="3" side_tool="false" content_ui="tabs" />
280
- <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" />
281
- <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" />
367
+ <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.25" sideWeight="0.60041624" order="0" side_tool="false" content_ui="combo" />
368
+ <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.39958376" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
282
369
  <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" />
283
370
  <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" />
284
- <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" />
371
+ <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.3298647" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
285
372
  <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
286
373
  <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" />
287
374
  <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" />
288
375
  <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" />
289
376
  <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" />
377
+ <window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.3298647" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
290
378
  <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" />
291
379
  <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" />
292
380
  <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" />
@@ -345,16 +433,16 @@
345
433
  <option name="FILE_HISTORY_SPLITTER_PROPORTION" value="0.6" />
346
434
  </component>
347
435
  <component name="XDebuggerManager">
348
- <breakpoint-manager />
436
+ <breakpoint-manager>
437
+ <breakpoints>
438
+ <line-breakpoint enabled="true" type="ruby-line">
439
+ <url>file://$PROJECT_DIR$/lib/shadow_db_credentials/shadow_db_credentials.rb</url>
440
+ <line>43</line>
441
+ </line-breakpoint>
442
+ </breakpoints>
443
+ </breakpoint-manager>
349
444
  </component>
350
445
  <component name="editorHistoryManager">
351
- <entry file="file://$PROJECT_DIR$/Gemfile">
352
- <provider selected="true" editor-type-id="text-editor">
353
- <state line="6" column="0" selection-start="42" selection-end="110" vertical-scroll-proportion="0.0">
354
- <folding />
355
- </state>
356
- </provider>
357
- </entry>
358
446
  <entry file="file://$PROJECT_DIR$/shadow_db_credentials.gemspec.erb">
359
447
  <provider selected="true" editor-type-id="text-editor">
360
448
  <state line="18" column="41" selection-start="892" selection-end="892" vertical-scroll-proportion="0.0">
@@ -390,11 +478,6 @@
390
478
  </state>
391
479
  </provider>
392
480
  </entry>
393
- <entry file="file://$PROJECT_DIR$/lib/shadow_db_credentials.rb">
394
- <provider selected="true" editor-type-id="text-editor">
395
- <state line="1" column="0" selection-start="32" selection-end="32" vertical-scroll-proportion="0.01713062" />
396
- </provider>
397
- </entry>
398
481
  <entry file="file://$PROJECT_DIR$/README.md">
399
482
  <provider selected="true" editor-type-id="text-editor">
400
483
  <state line="3" column="0" selection-start="45" selection-end="129" vertical-scroll-proportion="0.051391862" />
@@ -414,30 +497,58 @@
414
497
  </state>
415
498
  </provider>
416
499
  </entry>
417
- <entry file="file://$PROJECT_DIR$/lib/shadow_db_credentials/shadow_db_credentials.rb">
500
+ <entry file="file://$PROJECT_DIR$/lib/shadow_db_credentials.rb">
418
501
  <provider selected="true" editor-type-id="text-editor">
419
- <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
502
+ <state line="0" column="52" selection-start="52" selection-end="52" vertical-scroll-proportion="0.0">
503
+ <folding />
504
+ </state>
505
+ </provider>
506
+ </entry>
507
+ <entry file="file://$PROJECT_DIR$/Gemfile">
508
+ <provider selected="true" editor-type-id="text-editor">
509
+ <state line="3" column="13" selection-start="36" selection-end="36" vertical-scroll-proportion="0.0">
420
510
  <folding />
421
511
  </state>
422
512
  </provider>
423
513
  </entry>
424
514
  <entry file="file://$PROJECT_DIR$/Rakefile">
425
515
  <provider selected="true" editor-type-id="text-editor">
426
- <state line="19" column="90" selection-start="439" selection-end="439" vertical-scroll-proportion="0.0">
516
+ <state line="19" column="90" selection-start="439" selection-end="439" vertical-scroll-proportion="0.4554295">
427
517
  <folding />
428
518
  </state>
429
519
  </provider>
430
520
  </entry>
431
- <entry file="file://$PROJECT_DIR$/Gemfile">
521
+ <entry file="file://$USER_HOME$/.rvm/gems/ruby-1.9.3-p194@shadow_db_credentials/gems/rspec-core-2.9.0/lib/rspec/core/example.rb">
432
522
  <provider selected="true" editor-type-id="text-editor">
433
- <state line="3" column="13" selection-start="36" selection-end="36" vertical-scroll-proportion="0.0">
523
+ <state line="83" column="0" selection-start="3062" selection-end="3062" vertical-scroll-proportion="0.0">
524
+ <folding />
525
+ </state>
526
+ </provider>
527
+ </entry>
528
+ <entry file="file://$PROJECT_DIR$/spec/spec_helper.rb">
529
+ <provider selected="true" editor-type-id="text-editor">
530
+ <state line="12" column="0" selection-start="305" selection-end="305" vertical-scroll-proportion="0.0">
531
+ <folding />
532
+ </state>
533
+ </provider>
534
+ </entry>
535
+ <entry file="file://$PROJECT_DIR$/lib/shadow_db_credentials/shadow_db_credentials.rb">
536
+ <provider selected="true" editor-type-id="text-editor">
537
+ <state line="43" column="0" selection-start="1016" selection-end="1016" vertical-scroll-proportion="0.0">
538
+ <folding />
539
+ </state>
540
+ </provider>
541
+ </entry>
542
+ <entry file="file://$PROJECT_DIR$/spec/shadow_db_credentials_spec.rb">
543
+ <provider selected="true" editor-type-id="text-editor">
544
+ <state line="17" column="12" selection-start="584" selection-end="584" vertical-scroll-proportion="0.0">
434
545
  <folding />
435
546
  </state>
436
547
  </provider>
437
548
  </entry>
438
549
  <entry file="file://$PROJECT_DIR$/lib/shadow_db_credentials/version.rb">
439
550
  <provider selected="true" editor-type-id="text-editor">
440
- <state line="1" column="18" selection-start="45" selection-end="45" vertical-scroll-proportion="0.025931928">
551
+ <state line="1" column="18" selection-start="45" selection-end="45" vertical-scroll-proportion="0.02909091">
441
552
  <folding />
442
553
  </state>
443
554
  </provider>
@@ -1 +1 @@
1
- require "shadow_db_credentials"
1
+ require "shadow_db_credentials/shadow_db_credentials"
@@ -1,3 +1,3 @@
1
1
  module ShadowDbCredentials
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
@@ -0,0 +1,20 @@
1
+ require 'spec_helper'
2
+
3
+ require 'shadow_db_credentials'
4
+ require 'yaml'
5
+
6
+ describe ShadowDbCredentials do
7
+ it "should read credentials from the file" do
8
+ YAML.expects(:load_file).with("#{ENV['HOME']}/.credentials/rails_app_tmpl").returns(
9
+ {"url" => "some_url", "username" => "username", "password" => "password"}
10
+ )
11
+
12
+ subject = ShadowDbCredentials.new("#{ENV['HOME']}/.credentials")
13
+
14
+ configurations = {'production' => { 'adapter' => 'oracle_enhanced', 'credentials' => 'rails_app_tmpl'}}
15
+
16
+ result = subject.process_all_configurations configurations
17
+
18
+ result["production"]["url"].should == 'some_url'
19
+ end
20
+ end
@@ -0,0 +1,14 @@
1
+ $: << File.expand_path(File.dirname(__FILE__) + '/../lib')
2
+
3
+ RSpec.configure do |config|
4
+ # ## Mock Framework
5
+ #
6
+ # If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
7
+
8
+ config.mock_with :mocha
9
+ #config.mock_with :rspec
10
+
11
+ # config.mock_with :flexmock
12
+ # config.mock_with :rr
13
+
14
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shadow_db_credentials
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-08 00:00:00.000000000 Z
12
+ date: 2012-06-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: gemspec_deps_gen
@@ -72,6 +72,8 @@ files:
72
72
  - lib/shadow_db_credentials/version.rb
73
73
  - shadow_db_credentials.gemspec
74
74
  - shadow_db_credentials.gemspec.erb
75
+ - spec/shadow_db_credentials_spec.rb
76
+ - spec/spec_helper.rb
75
77
  homepage: http://github.com/shvets/shadow_db_credentials
76
78
  licenses: []
77
79
  post_install_message:
@@ -97,4 +99,6 @@ signing_key:
97
99
  specification_version: 3
98
100
  summary: Class that helps to keep database credentials for rails application in private
99
101
  place
100
- test_files: []
102
+ test_files:
103
+ - spec/shadow_db_credentials_spec.rb
104
+ - spec/spec_helper.rb