shadow_db_credentials 1.1.2 → 1.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: df4fac448d58d801d4fb8dcc6f7398c21fd582e3
4
- data.tar.gz: 4f02ac621b9f043a67cec361bfa839b77223c224
3
+ metadata.gz: edd10c4392255718fa5f55b2fffbd94b0b108ce9
4
+ data.tar.gz: 777ab4ce08a01911895907f8426601af56ac8a49
5
5
  SHA512:
6
- metadata.gz: 94aad3b29c3ca1aaf3721b8e8ff869a8f036f6bfe3f74ca02a73020fafd8376fff6a2562ab16bba8ce2c5c0fa66ac363f7ae3b5490e186303e2508a2acac722d
7
- data.tar.gz: 8b924b416f45f65ff6fb3c9f817ad5930470a908c15612817bdf6744b0677c85c74352184979d39e73167bb47677d5ef0e94c80a8a563208ec42199b00e100e2
6
+ metadata.gz: 908b62fa9ace3743b1be79aa8283e0a0c78071e0684d544ed4110283a7023911e43469c73b7782de14608f17eb53027fa30f4560e15ab700fc2a9e856f2c2658
7
+ data.tar.gz: 1cce23d9436d5393c7bf7613a3518c942ae3ea04c8ac74007cf813fb4bcdda600e5ac59d764952ff0106bc7678b21b1ac0bb559d6fcb397ee670211048842624
data/.idea/.rakeTasks CHANGED
@@ -4,4 +4,4 @@ You are allowed to:
4
4
  1. Remove rake task
5
5
  2. Add existing rake tasks
6
6
  To add existing rake tasks automatically delete this file and reload the project.
7
- --><RakeGroup description="" fullCmd="" taksId="rake"><RakeTask description="Run RSpec code examples" fullCmd="spec" taksId="spec" /><RakeTask description="" fullCmd="build" taksId="build" /><RakeTask description="" fullCmd="gen" taksId="gen" /><RakeTask description="" fullCmd="install" taksId="install" /><RakeTask description="" fullCmd="release" taksId="release" /><RakeTask description="" fullCmd="uninstall" taksId="uninstall" /></RakeGroup></Settings>
7
+ --><RakeGroup description="" fullCmd="" taksId="rake" /></Settings>
@@ -13,6 +13,17 @@
13
13
  <content url="file://$MODULE_DIR$" />
14
14
  <orderEntry type="inheritedJdk" />
15
15
  <orderEntry type="sourceFolder" forTests="false" />
16
+ <orderEntry type="library" scope="PROVIDED" name="bundler (v1.3.5, RVM: ruby-2.0.0-p247 [shadow_db_credentials]) [gem]" level="application" />
17
+ <orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.2.4, RVM: ruby-2.0.0-p247 [shadow_db_credentials]) [gem]" level="application" />
18
+ <orderEntry type="library" scope="PROVIDED" name="file_utils (v1.0.7, RVM: ruby-2.0.0-p247 [shadow_db_credentials]) [gem]" level="application" />
19
+ <orderEntry type="library" scope="PROVIDED" name="gemcutter (v0.7.1, RVM: ruby-2.0.0-p247 [shadow_db_credentials]) [gem]" level="application" />
20
+ <orderEntry type="library" scope="PROVIDED" name="gemspec_deps_gen (v1.1.1, RVM: ruby-2.0.0-p247 [shadow_db_credentials]) [gem]" level="application" />
21
+ <orderEntry type="library" scope="PROVIDED" name="metaclass (v0.0.1, RVM: ruby-2.0.0-p247 [shadow_db_credentials]) [gem]" level="application" />
22
+ <orderEntry type="library" scope="PROVIDED" name="mocha (v0.14.0, RVM: ruby-2.0.0-p247 [shadow_db_credentials]) [gem]" level="application" />
23
+ <orderEntry type="library" scope="PROVIDED" name="rspec (v2.14.1, RVM: ruby-2.0.0-p247 [shadow_db_credentials]) [gem]" level="application" />
24
+ <orderEntry type="library" scope="PROVIDED" name="rspec-core (v2.14.5, RVM: ruby-2.0.0-p247 [shadow_db_credentials]) [gem]" level="application" />
25
+ <orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v2.14.2, RVM: ruby-2.0.0-p247 [shadow_db_credentials]) [gem]" level="application" />
26
+ <orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v2.14.3, RVM: ruby-2.0.0-p247 [shadow_db_credentials]) [gem]" level="application" />
16
27
  </component>
17
28
  </module>
18
29
 
data/.idea/workspace.xml CHANGED
@@ -4,12 +4,12 @@
4
4
  <list default="true" id="48445419-a9bd-462b-a38e-4f503de87dd4" name="Default" comment="" />
5
5
  <ignored path="shadow_db_credentials.iws" />
6
6
  <ignored path=".idea/workspace.xml" />
7
- <file path="/Dummy.txt" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377358862115" ignored="false" />
7
+ <file path="/Dummy.txt" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377553413700" ignored="false" />
8
8
  <file path="/.ruby-version" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1371914161925" ignored="false" />
9
- <file path="/CHANGES" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377358465025" ignored="false" />
9
+ <file path="/CHANGES" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377553372838" ignored="false" />
10
10
  <file path="/version.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1371914648138" ignored="false" />
11
- <file path="/shadow_db_credentials.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377358298876" ignored="false" />
12
- <file path="/Gemfile" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377358834642" ignored="false" />
11
+ <file path="/shadow_db_credentials.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377553129975" ignored="false" />
12
+ <file path="/Gemfile" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1371915176441" ignored="false" />
13
13
  <file path="/spec_helper.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1371914924728" ignored="false" />
14
14
  <file path="$PROJECT_DIR$/../rails-app-tmpl/Gemfile" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1371915114233" ignored="false" />
15
15
  <file path="/shadow_db_credentials_spec.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1371915800337" ignored="false" />
@@ -23,12 +23,11 @@
23
23
  <file path="$PROJECT_DIR$/../shvets.github.io/build/index.html" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1376662323891" ignored="false" />
24
24
  <file path="$PROJECT_DIR$/../shvets.github.io/blog/article_0003/using_gemfile_gems_inside_gemspec.html" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1376662323892" ignored="false" />
25
25
  <file path="$PROJECT_DIR$/../shvets.github.io/config.rrr" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1376666503612" ignored="false" />
26
- <file path="/a.dummy" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377294738590" ignored="false" />
26
+ <file path="/a.dummy" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377529320581" ignored="false" />
27
27
  <file path="$PROJECT_DIR$/../rat/Gemfile" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1376667638160" ignored="false" />
28
28
  <file path="$PROJECT_DIR$/../rat/config/application.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1376681752557" ignored="false" />
29
29
  <file path="$PROJECT_DIR$/../rat/config/database.yml" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1376667899615" ignored="false" />
30
- <file path="/fragment.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377292149283" ignored="false" />
31
- <file path="$PROJECT_DIR$/.idea/.rakeTasks" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377291425668" ignored="false" />
30
+ <file path="/fragment.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377553183428" ignored="false" />
32
31
  <file path="$USER_HOME$/work/ui/neptune/config/application.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377291621486" ignored="false" />
33
32
  <file path="$USER_HOME$/work/ui/neptune/.rspec" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377291711486" ignored="false" />
34
33
  <file path="$USER_HOME$/work/ui/neptune/.simplecov" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377291787315" ignored="false" />
@@ -38,42 +37,69 @@
38
37
  <file path="$USER_HOME$/work/ui/src/spec/unit/models/cart_spec.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377292320811" ignored="false" />
39
38
  <file path="$USER_HOME$/work/ui/src/app/models/hitbox.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377292320811" ignored="false" />
40
39
  <file path="$USER_HOME$/work/ui/src/spec/unit/domain/landing_input_spec.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377292320811" ignored="false" />
41
- <file path="$USER_HOME$/work/ui/src/db/schema.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377293866106" ignored="false" />
40
+ <file path="$USER_HOME$/work/ui/src/db/schema.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377527398053" ignored="false" />
42
41
  <file path="$USER_HOME$/work/ui/neptune/app/models/settings.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377293761633" ignored="false" />
43
42
  <file path="$USER_HOME$/work/ui/neptune/spec/services/external_service_spec.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377293562505" ignored="false" />
44
43
  <file path="$USER_HOME$/work/ui/neptune/app/services/services/external_service.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377294152829" ignored="false" />
45
- <file path="$USER_HOME$/work/ui/neptune/app/services/address_validation/state_lookup_gateway.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377295494274" ignored="false" />
44
+ <file path="$USER_HOME$/work/ui/neptune/app/services/address_validation/state_lookup_gateway.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377530191994" ignored="false" />
46
45
  <file path="$USER_HOME$/work/ui/neptune/app/models/device_content.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377293954610" ignored="false" />
47
- <file path="$USER_HOME$/work/ui/neptune/db/schema.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377293967126" ignored="false" />
46
+ <file path="$USER_HOME$/work/ui/neptune/db/schema.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377527398053" ignored="false" />
48
47
  <file path="$USER_HOME$/work/ui/neptune/Gemfile" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377294251949" ignored="false" />
49
- <file path="$USER_HOME$/work/ui/neptune/app/services/services/abstract_gateway.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377294310104" ignored="false" />
50
- <file path="$USER_HOME$/work/ui/neptune/app/services/avws/avws_gateway.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377295546936" ignored="false" />
51
- <file path="$USER_HOME$/work/ui/neptune/app/services/choose_number/phone_number_gateway.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377295567740" ignored="false" />
52
- <file path="$USER_HOME$/work/ui/neptune/app/services/loa/form_request_gateway.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377295517668" ignored="false" />
53
- <file path="$USER_HOME$/work/ui/neptune/app/services/loa/writer_gateway.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377295604787" ignored="false" />
54
- <file path="$USER_HOME$/work/ui/neptune/app/services/product_catalog/default_package_gateway.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377295634010" ignored="false" />
55
- <file path="$USER_HOME$/work/ui/neptune/app/services/product_catalog/package_gateway.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377294803318" ignored="false" />
56
- <file path="$USER_HOME$/work/ui/neptune/app/services/product_catalog/promo_package_gateway.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377294988282" ignored="false" />
57
- <file path="$USER_HOME$/work/ui/neptune/app/services/product_catalog/rate_plan_gateway.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377294822812" ignored="false" />
58
- <file path="$USER_HOME$/work/ui/neptune/app/services/product_catalog/retail_package_gateway.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377294831436" ignored="false" />
59
- <file path="$USER_HOME$/work/ui/neptune/app/services/promotions_manager/raf_gateway.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377294838036" ignored="false" />
60
- <file path="$USER_HOME$/work/ui/neptune/app/services/security/password_validator_gateway.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377294844668" ignored="false" />
61
- <file path="$USER_HOME$/work/ui/neptune/app/services/security/username_availability_gateway.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377295477614" ignored="false" />
62
- <file path="$USER_HOME$/work/ui/neptune/app/services/static_content/static_content_gateway.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377294870316" ignored="false" />
63
- <file path="$USER_HOME$/work/ui/neptune/app/services/sws/invoice_gateway.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377295426430" ignored="false" />
64
- <file path="$USER_HOME$/work/ui/neptune/app/services/sws/invoice_preview_gateway.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377294892065" ignored="false" />
65
- <file path="$USER_HOME$/work/ui/neptune/app/services/sws/mac_address_validation_gateway.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377294898689" ignored="false" />
66
- <file path="$USER_HOME$/work/ui/neptune/app/services/sws/retail_package_code_gateway.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377294904275" ignored="false" />
67
- <file path="$USER_HOME$/work/ui/neptune/app/services/sws/retail_stores_gateway.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377294909178" ignored="false" />
68
- <file path="$USER_HOME$/work/ui/neptune/app/services/sws/shipping_gateway.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377294917709" ignored="false" />
69
- <file path="$USER_HOME$/work/ui/neptune/app/services/sws/store_payment_gateway.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377294927034" ignored="false" />
70
- <file path="$USER_HOME$/work/ui/neptune/app/services/tax_services/query_gateway.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377294935851" ignored="false" />
71
- <file path="$USER_HOME$/work/ui/neptune/app/services/services/base_gateway.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377294956778" ignored="false" />
72
- <file path="$USER_HOME$/work/ui/neptune/app/services/crm/crm_gateway.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377294971123" ignored="false" />
73
- <file path="$USER_HOME$/work/ui/neptune/app/services/resource_manager/resource_manager_gateway.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377295003626" ignored="false" />
48
+ <file path="$USER_HOME$/work/ui/neptune/app/services/services/abstract_gateway.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377525942355" ignored="false" />
49
+ <file path="$USER_HOME$/work/ui/neptune/app/services/avws/avws_gateway.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377524611648" ignored="false" />
50
+ <file path="$USER_HOME$/work/ui/neptune/app/services/choose_number/phone_number_gateway.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377530456796" ignored="false" />
51
+ <file path="$USER_HOME$/work/ui/neptune/app/services/loa/form_request_gateway.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377529039033" ignored="false" />
52
+ <file path="$USER_HOME$/work/ui/neptune/app/services/loa/writer_gateway.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377528741606" ignored="false" />
53
+ <file path="$USER_HOME$/work/ui/neptune/app/services/product_catalog/default_package_gateway.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377528344234" ignored="false" />
54
+ <file path="$USER_HOME$/work/ui/neptune/app/services/product_catalog/package_gateway.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377530803948" ignored="false" />
55
+ <file path="$USER_HOME$/work/ui/neptune/app/services/product_catalog/promo_package_gateway.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377529168009" ignored="false" />
56
+ <file path="$USER_HOME$/work/ui/neptune/app/services/product_catalog/rate_plan_gateway.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377528741606" ignored="false" />
57
+ <file path="$USER_HOME$/work/ui/neptune/app/services/product_catalog/retail_package_gateway.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377528741606" ignored="false" />
58
+ <file path="$USER_HOME$/work/ui/neptune/app/services/promotions_manager/raf_gateway.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377528741606" ignored="false" />
59
+ <file path="$USER_HOME$/work/ui/neptune/app/services/security/password_validator_gateway.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377528741606" ignored="false" />
60
+ <file path="$USER_HOME$/work/ui/neptune/app/services/security/username_availability_gateway.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377528741606" ignored="false" />
61
+ <file path="$USER_HOME$/work/ui/neptune/app/services/static_content/static_content_gateway.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377528741606" ignored="false" />
62
+ <file path="$USER_HOME$/work/ui/neptune/app/services/sws/invoice_gateway.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377528741606" ignored="false" />
63
+ <file path="$USER_HOME$/work/ui/neptune/app/services/sws/invoice_preview_gateway.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377528741606" ignored="false" />
64
+ <file path="$USER_HOME$/work/ui/neptune/app/services/sws/mac_address_validation_gateway.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377528741606" ignored="false" />
65
+ <file path="$USER_HOME$/work/ui/neptune/app/services/sws/retail_package_code_gateway.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377528741606" ignored="false" />
66
+ <file path="$USER_HOME$/work/ui/neptune/app/services/sws/retail_stores_gateway.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377528741606" ignored="false" />
67
+ <file path="$USER_HOME$/work/ui/neptune/app/services/sws/shipping_gateway.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377528741606" ignored="false" />
68
+ <file path="$USER_HOME$/work/ui/neptune/app/services/sws/store_payment_gateway.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377528741606" ignored="false" />
69
+ <file path="$USER_HOME$/work/ui/neptune/app/services/tax_services/query_gateway.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377528741606" ignored="false" />
70
+ <file path="$USER_HOME$/work/ui/neptune/app/services/services/base_gateway.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377528741606" ignored="false" />
71
+ <file path="$USER_HOME$/work/ui/neptune/app/services/crm/crm_gateway.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377528934427" ignored="false" />
72
+ <file path="$USER_HOME$/work/ui/neptune/app/services/resource_manager/resource_manager_gateway.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377524228787" ignored="false" />
74
73
  <file path="$USER_HOME$/work/ui/neptune/spec/services/abstract_gateway_spec.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377295141894" ignored="false" />
75
- <file path="$PROJECT_DIR$/../shvets.github.io/source/blog/2013-08-16-how_to_protect_db_credentials_in_rails_app.md" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377358711460" ignored="false" />
76
- <file path="/2013-08-16-how_to_protect_db_credentials_in_rails_app.md" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377358698216" ignored="false" />
74
+ <file path="/default_package_gateway.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377526453816" ignored="false" />
75
+ <file path="$USER_HOME$/work/ui/neptune/test.xml" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377526353204" ignored="false" />
76
+ <file path="/form_request_gateway.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377528974380" ignored="false" />
77
+ <file path="$PROJECT_DIR$/../resource_accessor/lib/resource_accessor/resource_accessor.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377526609016" ignored="false" />
78
+ <file path="$USER_HOME$/work/ui/neptune/spec/external_services/loa/form_request_gateway_spec.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377528374762" ignored="false" />
79
+ <file path="/form_request_gateway_spec.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377527082174" ignored="false" />
80
+ <file path="/invoice_gateway.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377528402250" ignored="false" />
81
+ <file path="$PROJECT_DIR$/../jquery_auto_filler/.idea/workspace.xml" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377528312497" ignored="false" />
82
+ <file path="/state_lookup_gateway.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377530165506" ignored="false" />
83
+ <file path="/crm_gateway.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377528934427" ignored="false" />
84
+ <file path="$USER_HOME$/work/ui/neptune/spec/external_services/choose_number/phone_number_gateway_spec.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377530491665" ignored="false" />
85
+ <file path="$USER_HOME$/work/ui/neptune/spec/external_services/security/username_availability_gateway_spec.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377529068828" ignored="false" />
86
+ <file path="/promo_package_gateway.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377529152257" ignored="false" />
87
+ <file path="$USER_HOME$/work/ui/neptune/spec/external_services/loa/writer_gateway_spec.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377529210916" ignored="false" />
88
+ <file path="$USER_HOME$/work/ui/neptune/spec/external_services/sws/store_payment_gateway_spec.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377529235660" ignored="false" />
89
+ <file path="$USER_HOME$/work/ui/neptune/spec/external_services/sws/invoice_gateway_escape_characters_spec.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377529250835" ignored="false" />
90
+ <file path="$USER_HOME$/work/ui/neptune/spec/support/external_services_shared_context.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377529758135" ignored="false" />
91
+ <file path="/external_services_shared_context.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377529645023" ignored="false" />
92
+ <file path="$USER_HOME$/work/ui/neptune/spec/external_services/address_validation/state_lookup_gateway_spec.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377530254945" ignored="false" />
93
+ <file path="/state_lookup_gateway_spec.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377530255530" ignored="false" />
94
+ <file path="/phone_number_gateway.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377530449928" ignored="false" />
95
+ <file path="/phone_number_gateway_spec.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377531297981" ignored="false" />
96
+ <file path="/package_gateway.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377530801940" ignored="false" />
97
+ <file path="/package_gateway_spec.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377531126820" ignored="false" />
98
+ <file path="$USER_HOME$/work/ui/neptune/spec/external_services/product_catalog/package_gateway_spec.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377531147819" ignored="false" />
99
+ <file path="$USER_HOME$/work/ui/neptune/spec/services/choose_number/phone_number_gateway_spec.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377531429667" ignored="false" />
100
+ <file path="$USER_HOME$/work/ui/neptune/lib/tasks/rspec.rake" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377551807713" ignored="false" />
101
+ <file path="/rspec.rake" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377551804534" ignored="false" />
102
+ <file path="/indifferent_access.rb" changelist="48445419-a9bd-462b-a38e-4f503de87dd4" time="1377552038977" ignored="false" />
77
103
  <option name="TRACKING_ENABLED" value="true" />
78
104
  <option name="SHOW_DIALOG" value="false" />
79
105
  <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -93,94 +119,37 @@
93
119
  </component>
94
120
  <component name="FileEditorManager">
95
121
  <leaf>
96
- <file leaf-file-name="spec_helper.rb" pinned="false" current="false" current-in-tab="false">
97
- <entry file="file://$PROJECT_DIR$/spec/spec_helper.rb">
122
+ <file leaf-file-name="version.rb" pinned="false" current="false" current-in-tab="false">
123
+ <entry file="file://$PROJECT_DIR$/lib/shadow_db_credentials/version.rb">
98
124
  <provider selected="true" editor-type-id="text-editor">
99
- <state line="4" column="9" selection-start="117" selection-end="117" vertical-scroll-proportion="0.0">
125
+ <state line="1" column="18" selection-start="44" selection-end="44" vertical-scroll-proportion="0.0">
100
126
  <folding />
101
127
  </state>
102
128
  </provider>
103
129
  </entry>
104
130
  </file>
105
- <file leaf-file-name="Rakefile" pinned="false" current="false" current-in-tab="false">
131
+ <file leaf-file-name="Rakefile" pinned="false" current="true" current-in-tab="true">
106
132
  <entry file="file://$PROJECT_DIR$/Rakefile">
107
133
  <provider selected="true" editor-type-id="text-editor">
108
- <state line="12" column="20" selection-start="316" selection-end="316" vertical-scroll-proportion="0.0">
109
- <folding />
110
- </state>
111
- </provider>
112
- </entry>
113
- </file>
114
- <file leaf-file-name="shadow_db_credentials.gemspec.erb" pinned="false" current="false" current-in-tab="false">
115
- <entry file="file://$PROJECT_DIR$/shadow_db_credentials.gemspec.erb">
116
- <provider selected="true" editor-type-id="text-editor">
117
- <state line="18" column="63" selection-start="920" selection-end="920" vertical-scroll-proportion="-11.25">
118
- <folding />
119
- </state>
120
- </provider>
121
- </entry>
122
- </file>
123
- <file leaf-file-name="README.md" pinned="false" current="false" current-in-tab="false">
124
- <entry file="file://$PROJECT_DIR$/README.md">
125
- <provider editor-type-id="MarkdownPreviewEditor">
126
- <state />
127
- </provider>
128
- <provider selected="true" editor-type-id="text-editor">
129
- <state line="111" column="27" selection-start="2800" selection-end="2800" vertical-scroll-proportion="-2.2222223">
130
- <folding />
131
- </state>
132
- </provider>
133
- </entry>
134
- </file>
135
- <file leaf-file-name="Gemfile" pinned="false" current="false" current-in-tab="false">
136
- <entry file="file://$PROJECT_DIR$/Gemfile">
137
- <provider selected="true" editor-type-id="text-editor">
138
- <state line="16" column="137" selection-start="248" selection-end="248" vertical-scroll-proportion="0.0">
139
- <folding />
140
- </state>
141
- </provider>
142
- </entry>
143
- </file>
144
- <file leaf-file-name=".ruby-gemset" pinned="false" current="false" current-in-tab="false">
145
- <entry file="file://$PROJECT_DIR$/.ruby-gemset">
146
- <provider selected="true" editor-type-id="text-editor">
147
- <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
148
- <folding />
149
- </state>
150
- </provider>
151
- </entry>
152
- </file>
153
- <file leaf-file-name=".ruby-version" pinned="false" current="false" current-in-tab="false">
154
- <entry file="file://$PROJECT_DIR$/.ruby-version">
155
- <provider selected="true" editor-type-id="text-editor">
156
- <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
157
- <folding />
158
- </state>
159
- </provider>
160
- </entry>
161
- </file>
162
- <file leaf-file-name="CHANGES" pinned="false" current="true" current-in-tab="true">
163
- <entry file="file://$PROJECT_DIR$/CHANGES">
164
- <provider selected="true" editor-type-id="text-editor">
165
- <state line="20" column="2" selection-start="229" selection-end="247" vertical-scroll-proportion="0.5050505">
134
+ <state line="12" column="32" selection-start="328" selection-end="328" vertical-scroll-proportion="0.17152104">
166
135
  <folding />
167
136
  </state>
168
137
  </provider>
169
138
  </entry>
170
139
  </file>
171
140
  <file leaf-file-name="shadow_db_credentials.rb" pinned="false" current="false" current-in-tab="false">
172
- <entry file="file://$PROJECT_DIR$/lib/shadow_db_credentials/shadow_db_credentials.rb">
141
+ <entry file="file://$PROJECT_DIR$/lib/shadow_db_credentials.rb">
173
142
  <provider selected="true" editor-type-id="text-editor">
174
- <state line="53" column="10" selection-start="1279" selection-end="1279" vertical-scroll-proportion="0.0">
143
+ <state line="1" column="53" selection-start="93" selection-end="93" vertical-scroll-proportion="0.0">
175
144
  <folding />
176
145
  </state>
177
146
  </provider>
178
147
  </entry>
179
148
  </file>
180
- <file leaf-file-name="version.rb" pinned="false" current="false" current-in-tab="false">
181
- <entry file="file://$PROJECT_DIR$/lib/shadow_db_credentials/version.rb">
149
+ <file leaf-file-name="CHANGES" pinned="false" current="false" current-in-tab="false">
150
+ <entry file="file://$PROJECT_DIR$/CHANGES">
182
151
  <provider selected="true" editor-type-id="text-editor">
183
- <state line="3" column="37" selection-start="50" selection-end="50" vertical-scroll-proportion="0.0">
152
+ <state line="22" column="78" selection-start="265" selection-end="265" vertical-scroll-proportion="0.0">
184
153
  <folding />
185
154
  </state>
186
155
  </provider>
@@ -204,19 +173,22 @@
204
173
  <component name="IdeDocumentHistory">
205
174
  <option name="changedFiles">
206
175
  <list>
207
- <option value="$PROJECT_DIR$/.ruby-gemset" />
208
- <option value="$PROJECT_DIR$/lib/shadow_db_credentials.rb" />
209
- <option value="$PROJECT_DIR$/.ruby-version" />
210
- <option value="$PROJECT_DIR$/spec/spec_helper.rb" />
211
- <option value="$PROJECT_DIR$/spec/shadow_db_credentials_spec.rb" />
212
176
  <option value="$PROJECT_DIR$/Rakefile" />
213
177
  <option value="$PROJECT_DIR$/shadow_db_credentials.gemspec" />
214
178
  <option value="$PROJECT_DIR$/shadow_db_credentials.gemspec.erb" />
179
+ <option value="$PROJECT_DIR$/lib/shadow_db_credentials/hash_with_undifferent_access.rb" />
180
+ <option value="$PROJECT_DIR$/lib/shadow_db_credentials/keys.rb" />
181
+ <option value="$PROJECT_DIR$/lib/shadow_db_credentials/hash_with_indifferent_access.rb" />
182
+ <option value="$PROJECT_DIR$/lib/shadow_db_credentials/indifferent_access.rb" />
183
+ <option value="$PROJECT_DIR$/lib/shadow_db_credentials/activesupport/core_ext/hash/indifferent_access.rb" />
184
+ <option value="$PROJECT_DIR$/lib/shadow_db_credentials/activesupport/hash_with_indifferent_access.rb" />
185
+ <option value="$PROJECT_DIR$/lib/shadow_db_credentials.rb" />
186
+ <option value="$PROJECT_DIR$/spec/shadow_db_credentials_spec.rb" />
215
187
  <option value="$PROJECT_DIR$/lib/shadow_db_credentials/shadow_db_credentials.rb" />
188
+ <option value="$PROJECT_DIR$/lib/active_support/hash_with_indifferent_access.rb" />
189
+ <option value="$PROJECT_DIR$/lib/active_support/core_ext/hash/indifferent_access.rb" />
216
190
  <option value="$PROJECT_DIR$/lib/shadow_db_credentials/version.rb" />
217
191
  <option value="$PROJECT_DIR$/CHANGES" />
218
- <option value="$PROJECT_DIR$/README.md" />
219
- <option value="$PROJECT_DIR$/Gemfile" />
220
192
  </list>
221
193
  </option>
222
194
  </component>
@@ -266,8 +238,8 @@
266
238
  <showLibraryContents />
267
239
  <hideEmptyPackages />
268
240
  <abbreviatePackageNames />
269
- <autoscrollToSource />
270
- <autoscrollFromSource />
241
+ <autoscrollToSource ProjectPane="true" />
242
+ <autoscrollFromSource ProjectPane="true" />
271
243
  <sortByType />
272
244
  </navigator>
273
245
  <panes>
@@ -278,6 +250,10 @@
278
250
  <option name="myItemId" value="shadow_db_credentials" />
279
251
  <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
280
252
  </PATH_ELEMENT>
253
+ <PATH_ELEMENT>
254
+ <option name="myItemId" value="External Libraries" />
255
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ExternalLibrariesNode" />
256
+ </PATH_ELEMENT>
281
257
  </PATH>
282
258
  <PATH>
283
259
  <PATH_ELEMENT>
@@ -285,7 +261,19 @@
285
261
  <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
286
262
  </PATH_ELEMENT>
287
263
  <PATH_ELEMENT>
288
- <option name="myItemId" value="shadow_db_credentials" />
264
+ <option name="myItemId" value="External Libraries" />
265
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ExternalLibrariesNode" />
266
+ </PATH_ELEMENT>
267
+ <PATH_ELEMENT>
268
+ <option name="myItemId" value="rspec-core (v2.14.5, RVM: ruby-2.0.0-p247 [shadow_db_credentials]) [gem]" />
269
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.NamedLibraryElementNode" />
270
+ </PATH_ELEMENT>
271
+ <PATH_ELEMENT>
272
+ <option name="myItemId" value="lib" />
273
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
274
+ </PATH_ELEMENT>
275
+ <PATH_ELEMENT>
276
+ <option name="myItemId" value="rspec" />
289
277
  <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
290
278
  </PATH_ELEMENT>
291
279
  </PATH>
@@ -295,11 +283,23 @@
295
283
  <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
296
284
  </PATH_ELEMENT>
297
285
  <PATH_ELEMENT>
298
- <option name="myItemId" value="shadow_db_credentials" />
286
+ <option name="myItemId" value="External Libraries" />
287
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ExternalLibrariesNode" />
288
+ </PATH_ELEMENT>
289
+ <PATH_ELEMENT>
290
+ <option name="myItemId" value="rspec-core (v2.14.5, RVM: ruby-2.0.0-p247 [shadow_db_credentials]) [gem]" />
291
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.NamedLibraryElementNode" />
292
+ </PATH_ELEMENT>
293
+ <PATH_ELEMENT>
294
+ <option name="myItemId" value="lib" />
299
295
  <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
300
296
  </PATH_ELEMENT>
301
297
  <PATH_ELEMENT>
302
- <option name="myItemId" value="spec" />
298
+ <option name="myItemId" value="rspec" />
299
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
300
+ </PATH_ELEMENT>
301
+ <PATH_ELEMENT>
302
+ <option name="myItemId" value="core" />
303
303
  <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
304
304
  </PATH_ELEMENT>
305
305
  </PATH>
@@ -309,8 +309,12 @@
309
309
  <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
310
310
  </PATH_ELEMENT>
311
311
  <PATH_ELEMENT>
312
- <option name="myItemId" value="shadow_db_credentials" />
313
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
312
+ <option name="myItemId" value="External Libraries" />
313
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ExternalLibrariesNode" />
314
+ </PATH_ELEMENT>
315
+ <PATH_ELEMENT>
316
+ <option name="myItemId" value="rspec-core (v2.14.5, RVM: ruby-2.0.0-p247 [shadow_db_credentials]) [gem]" />
317
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.NamedLibraryElementNode" />
314
318
  </PATH_ELEMENT>
315
319
  <PATH_ELEMENT>
316
320
  <option name="myItemId" value="lib" />
@@ -322,18 +326,38 @@
322
326
  <option name="myItemId" value="shadow_db_credentials" />
323
327
  <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
324
328
  </PATH_ELEMENT>
329
+ <PATH_ELEMENT>
330
+ <option name="myItemId" value="External Libraries" />
331
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ExternalLibrariesNode" />
332
+ </PATH_ELEMENT>
333
+ <PATH_ELEMENT>
334
+ <option name="myItemId" value="rspec-core (v2.14.5, RVM: ruby-2.0.0-p247 [shadow_db_credentials]) [gem]" />
335
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.NamedLibraryElementNode" />
336
+ </PATH_ELEMENT>
337
+ </PATH>
338
+ <PATH>
325
339
  <PATH_ELEMENT>
326
340
  <option name="myItemId" value="shadow_db_credentials" />
327
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
341
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
328
342
  </PATH_ELEMENT>
329
343
  <PATH_ELEMENT>
330
- <option name="myItemId" value="lib" />
344
+ <option name="myItemId" value="shadow_db_credentials" />
331
345
  <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
332
346
  </PATH_ELEMENT>
347
+ </PATH>
348
+ <PATH>
349
+ <PATH_ELEMENT>
350
+ <option name="myItemId" value="shadow_db_credentials" />
351
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
352
+ </PATH_ELEMENT>
333
353
  <PATH_ELEMENT>
334
354
  <option name="myItemId" value="shadow_db_credentials" />
335
355
  <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
336
356
  </PATH_ELEMENT>
357
+ <PATH_ELEMENT>
358
+ <option name="myItemId" value="spec" />
359
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
360
+ </PATH_ELEMENT>
337
361
  </PATH>
338
362
  </subPane>
339
363
  </pane>
@@ -341,36 +365,23 @@
341
365
  </panes>
342
366
  </component>
343
367
  <component name="PropertiesComponent">
344
- <property name="FileHistory.git4idea.history.GitHistoryProvider_treeOrder0" value="0" />
345
- <property name="FileHistory.git4idea.history.GitHistoryProvider_flatWidth0" value="175" />
346
- <property name="FileHistory.git4idea.history.GitHistoryProvider_flatWidth1" value="177" />
347
- <property name="FileHistory.git4idea.history.GitHistoryProvider_treeOrder3" value="3" />
348
368
  <property name="options.splitter.main.proportions" value="0.3" />
349
- <property name="FileHistory.git4idea.history.GitHistoryProvider_treeOrder1" value="1" />
350
- <property name="FileHistory.git4idea.history.GitHistoryProvider_treeOrder2" value="2" />
351
- <property name="FileHistory.git4idea.history.GitHistoryProvider_treeWidth0" value="176" />
352
- <property name="recentsLimit" value="5" />
353
- <property name="options.lastSelected" value="org.jetbrains.plugins.ruby.settings.RubyIdeSdkConfigurable" />
354
- <property name="FileHistory.git4idea.history.GitHistoryProvider_flatOrder1" value="1" />
355
- <property name="FileHistory.git4idea.history.GitHistoryProvider_flatOrder0" value="0" />
356
- <property name="FileHistory.git4idea.history.GitHistoryProvider_flatWidth2" value="186" />
357
- <property name="FileHistory.git4idea.history.GitHistoryProvider_treeWidth3" value="976" />
358
- <property name="FileHistory.git4idea.history.GitHistoryProvider_flatWidth3" value="974" />
359
- <property name="FileHistory.git4idea.history.GitHistoryProvider_treeWidth2" value="182" />
360
- <property name="FileHistory.git4idea.history.GitHistoryProvider_treeWidth1" value="178" />
361
369
  <property name="WebServerToolWindowFactoryState" value="false" />
362
- <property name="FileHistory.git4idea.history.GitHistoryProvider_flatOrder2" value="2" />
363
- <property name="FileHistory.git4idea.history.GitHistoryProvider_flatOrder3" value="3" />
370
+ <property name="options.lastSelected" value="org.jetbrains.plugins.ruby.settings.RubyIdeSdkConfigurable" />
371
+ <property name="recentsLimit" value="5" />
364
372
  <property name="FullScreen" value="false" />
365
- <property name="options.splitter.details.proportions" value="0.2" />
366
373
  <property name="options.searchVisible" value="true" />
374
+ <property name="options.splitter.details.proportions" value="0.2" />
367
375
  </component>
368
376
  <component name="RecentsManager">
369
377
  <key name="MoveFile.RECENT_KEYS">
378
+ <recent name="$PROJECT_DIR$/lib" />
379
+ <recent name="$PROJECT_DIR$/lib/shadow_db_credentials/activesupport" />
380
+ <recent name="$PROJECT_DIR$/lib/shadow_db_credentials/activesupport/core_ext/hash" />
370
381
  <recent name="$PROJECT_DIR$/lib/shadow_db_credentials" />
371
382
  </key>
372
383
  </component>
373
- <component name="RunManager" selected="RSpec.ShadowDbCredentials should retrieve given configuration">
384
+ <component name="RunManager" selected="RSpec.shadow_db_credentials_spec">
374
385
  <configuration default="false" name="ShadowDbCredentials" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
375
386
  <predefined_log_file id="RUBY_RSPEC" enabled="true" />
376
387
  <module name="shadow_db_credentials" />
@@ -471,7 +482,9 @@
471
482
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
472
483
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
473
484
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
485
+ <RunnerSettings RunnerId="RubyDebugRunner" />
474
486
  <RunnerSettings RunnerId="RubyRunner" />
487
+ <ConfigurationWrapper RunnerId="RubyDebugRunner" />
475
488
  <ConfigurationWrapper RunnerId="RubyRunner" />
476
489
  <method />
477
490
  </configuration>
@@ -511,6 +524,40 @@
511
524
  <ConfigurationWrapper RunnerId="RubyRunner" />
512
525
  <method />
513
526
  </configuration>
527
+ <configuration default="false" name="shadow_db_credentials_spec" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
528
+ <predefined_log_file id="RUBY_RSPEC" enabled="true" />
529
+ <module name="shadow_db_credentials" />
530
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
531
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$PROJECT_DIR$" />
532
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
533
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
534
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
535
+ <envs>
536
+ <env name="JRUBY_OPTS" value="-X+O" />
537
+ </envs>
538
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
539
+ <EXTENSION ID="JRubyRunConfigurationExtension" />
540
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
541
+ <COVERAGE_PATTERN ENABLED="true">
542
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
543
+ </COVERAGE_PATTERN>
544
+ </EXTENSION>
545
+ <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
546
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
547
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$PROJECT_DIR$/spec/shadow_db_credentials_spec.rb" />
548
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
549
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
550
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
551
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
552
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
553
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
554
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
555
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
556
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
557
+ <RunnerSettings RunnerId="RubyRunner" />
558
+ <ConfigurationWrapper RunnerId="RubyRunner" />
559
+ <method />
560
+ </configuration>
514
561
  <configuration default="true" type="RSpecRunConfigurationType" factoryName="RSpec">
515
562
  <predefined_log_file id="RUBY_RSPEC" enabled="true" />
516
563
  <module name="" />
@@ -587,18 +634,20 @@
587
634
  <RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_OPTIONS" VALUE="" />
588
635
  <method />
589
636
  </configuration>
590
- <list size="4">
637
+ <list size="5">
591
638
  <item index="0" class="java.lang.String" itemvalue="RSpec.ShadowDbCredentials" />
592
639
  <item index="1" class="java.lang.String" itemvalue="RSpec.ShadowDbCredentials should read credentials from the file" />
593
640
  <item index="2" class="java.lang.String" itemvalue="RSpec.ShadowDbCredentials should process credentials attrubute" />
594
641
  <item index="3" class="java.lang.String" itemvalue="RSpec.ShadowDbCredentials should retrieve given configuration" />
642
+ <item index="4" class="java.lang.String" itemvalue="RSpec.shadow_db_credentials_spec" />
595
643
  </list>
596
644
  <recent_temporary>
597
- <list size="4">
598
- <item index="0" class="java.lang.String" itemvalue="RSpec.ShadowDbCredentials should retrieve given configuration" />
599
- <item index="1" class="java.lang.String" itemvalue="RSpec.ShadowDbCredentials should process credentials attrubute" />
600
- <item index="2" class="java.lang.String" itemvalue="RSpec.ShadowDbCredentials should read credentials from the file" />
601
- <item index="3" class="java.lang.String" itemvalue="RSpec.ShadowDbCredentials" />
645
+ <list size="5">
646
+ <item index="0" class="java.lang.String" itemvalue="RSpec.shadow_db_credentials_spec" />
647
+ <item index="1" class="java.lang.String" itemvalue="RSpec.ShadowDbCredentials should retrieve given configuration" />
648
+ <item index="2" class="java.lang.String" itemvalue="RSpec.shadow_db_credentials_spec" />
649
+ <item index="3" class="java.lang.String" itemvalue="RSpec.ShadowDbCredentials should process credentials attrubute" />
650
+ <item index="4" class="java.lang.String" itemvalue="RSpec.ShadowDbCredentials should read credentials from the file" />
602
651
  </list>
603
652
  </recent_temporary>
604
653
  </component>
@@ -629,9 +678,9 @@
629
678
  <created>1377291422800</created>
630
679
  <updated>1377291422800</updated>
631
680
  </task>
632
- <task id="LOCAL-00006" summary="Small API addition">
633
- <created>1377358863639</created>
634
- <updated>1377358863639</updated>
681
+ <task id="LOCAL-00006" summary="Adding with_indifferent_access from activesupport library">
682
+ <created>1377553416421</created>
683
+ <updated>1377553416421</updated>
635
684
  </task>
636
685
  <option name="localTasksCounter" value="7" />
637
686
  <servers />
@@ -641,17 +690,16 @@
641
690
  <editor active="true" />
642
691
  <layout>
643
692
  <window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32917964" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
644
- <window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.32882413" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
693
+ <window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.32778355" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
645
694
  <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" />
646
695
  <window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
647
696
  <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" />
648
- <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.25940338" sideWeight="0.67117584" order="0" side_tool="false" content_ui="combo" />
649
- <window_info id="Jenkins" 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" />
697
+ <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.2626459" sideWeight="0.6722164" order="0" side_tool="false" content_ui="combo" />
650
698
  <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.23517169" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
651
699
  <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" />
652
700
  <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" />
653
- <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" />
654
- <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.3298647" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
701
+ <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32882413" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
702
+ <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" />
655
703
  <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" />
656
704
  <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" />
657
705
  <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" />
@@ -659,6 +707,7 @@
659
707
  <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" />
660
708
  <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" />
661
709
  <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" />
710
+ <window_info id="Jenkins" 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" />
662
711
  <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" />
663
712
  <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" />
664
713
  </layout>
@@ -705,7 +754,7 @@
705
754
  <option name="WRAP_WHEN_TYPING_REACHES_RIGHT_MARGIN" value="false" />
706
755
  <option name="FORCE_NON_EMPTY_COMMENT" value="false" />
707
756
  <option name="CLEAR_INITIAL_COMMIT_MESSAGE" value="false" />
708
- <option name="LAST_COMMIT_MESSAGE" value="Small API addition" />
757
+ <option name="LAST_COMMIT_MESSAGE" value="Adding with_indifferent_access from activesupport library" />
709
758
  <option name="MAKE_NEW_CHANGELIST_ACTIVE" value="false" />
710
759
  <option name="OPTIMIZE_IMPORTS_BEFORE_PROJECT_COMMIT" value="false" />
711
760
  <option name="CHECK_FILES_UP_TO_DATE_BEFORE_COMMIT" value="false" />
@@ -722,136 +771,135 @@
722
771
  <MESSAGE value="bug fixes" />
723
772
  <MESSAGE value="Small API and build changes; writing documentation" />
724
773
  <MESSAGE value="Bug fixes; adf license to gemspec" />
725
- <MESSAGE value="Small API addition" />
774
+ <MESSAGE value="Adding with_indifferent_access from activesupport library" />
726
775
  </component>
727
776
  <component name="XDebuggerManager">
728
777
  <breakpoint-manager>
729
778
  <breakpoints>
730
779
  <line-breakpoint enabled="true" type="ruby-line">
731
780
  <url>file://$PROJECT_DIR$/spec/shadow_db_credentials_spec.rb</url>
732
- <line>26</line>
733
- <option name="timeStamp" value="5" />
734
- </line-breakpoint>
735
- <line-breakpoint enabled="true" type="ruby-line">
736
- <url>file://$PROJECT_DIR$/spec/shadow_db_credentials_spec.rb</url>
737
- <line>38</line>
781
+ <line>39</line>
738
782
  <option name="timeStamp" value="12" />
739
783
  </line-breakpoint>
740
784
  </breakpoints>
741
- <option name="time" value="13" />
785
+ <option name="time" value="15" />
742
786
  </breakpoint-manager>
743
787
  </component>
744
788
  <component name="editorHistoryManager">
745
- <entry file="file://$PROJECT_DIR$/lib/shadow_db_credentials/shadow_db_credentials.rb">
789
+ <entry file="file://$USER_HOME$/.rvm/gems/ruby-2.0.0-p247@shadow_db_credentials/gems/gemspec_deps_gen-1.0.5/lib/gemspec_deps_gen/gemspec_deps_gen.rb">
746
790
  <provider selected="true" editor-type-id="text-editor">
747
- <state line="22" column="79" selection-start="610" selection-end="610" vertical-scroll-proportion="0.0">
791
+ <state line="16" column="69" selection-start="413" selection-end="413" vertical-scroll-proportion="0.0">
748
792
  <folding />
749
793
  </state>
750
794
  </provider>
751
795
  </entry>
752
- <entry file="file://$PROJECT_DIR$/lib/shadow_db_credentials/version.rb">
796
+ <entry file="file://$PROJECT_DIR$/README.md">
797
+ <provider editor-type-id="MarkdownPreviewEditor">
798
+ <state />
799
+ </provider>
753
800
  <provider selected="true" editor-type-id="text-editor">
754
- <state line="1" column="18" selection-start="44" selection-end="44" vertical-scroll-proportion="0.0">
801
+ <state line="138" column="17" selection-start="3374" selection-end="3374" vertical-scroll-proportion="0.0">
755
802
  <folding />
756
803
  </state>
757
804
  </provider>
758
805
  </entry>
759
- <entry file="file://$PROJECT_DIR$/lib/shadow_db_credentials.rb">
806
+ <entry file="file://$PROJECT_DIR$/LICENSE">
807
+ <provider editor-type-id="com.intellij.persistence.database.editor.CsvTableFileEditorProvider">
808
+ <state />
809
+ </provider>
760
810
  <provider selected="true" editor-type-id="text-editor">
761
- <state line="2" column="39" selection-start="94" selection-end="94" vertical-scroll-proportion="0.0" />
811
+ <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
812
+ <folding />
813
+ </state>
762
814
  </provider>
763
815
  </entry>
764
- <entry file="file://$PROJECT_DIR$/spec/shadow_db_credentials_spec.rb">
816
+ <entry file="file://$PROJECT_DIR$/shadow_db_credentials.gemspec">
765
817
  <provider selected="true" editor-type-id="text-editor">
766
- <state line="2" column="29" selection-start="52" selection-end="52" vertical-scroll-proportion="0.0">
818
+ <state line="20" column="0" selection-start="922" selection-end="922" vertical-scroll-proportion="0.0">
767
819
  <folding />
768
820
  </state>
769
821
  </provider>
770
822
  </entry>
771
- <entry file="file://$PROJECT_DIR$/spec/spec_helper.rb">
823
+ <entry file="file://$PROJECT_DIR$/Gemfile">
772
824
  <provider selected="true" editor-type-id="text-editor">
773
- <state line="4" column="9" selection-start="117" selection-end="117" vertical-scroll-proportion="0.0">
825
+ <state line="16" column="0" selection-start="248" selection-end="248" vertical-scroll-proportion="0.0">
774
826
  <folding />
775
827
  </state>
776
828
  </provider>
777
829
  </entry>
778
- <entry file="file://$PROJECT_DIR$/Rakefile">
830
+ <entry file="file://$PROJECT_DIR$/lib/active_support/core_ext/hash/indifferent_access.rb">
779
831
  <provider selected="true" editor-type-id="text-editor">
780
- <state line="12" column="20" selection-start="316" selection-end="316" vertical-scroll-proportion="0.0">
832
+ <state line="3" column="65" selection-start="131" selection-end="131" vertical-scroll-proportion="0.07779579">
781
833
  <folding />
782
834
  </state>
783
835
  </provider>
784
836
  </entry>
785
- <entry file="file://$PROJECT_DIR$/LICENSE">
786
- <provider editor-type-id="com.intellij.persistence.database.editor.CsvTableFileEditorProvider">
787
- <state />
788
- </provider>
837
+ <entry file="file://$PROJECT_DIR$/lib/active_support/core_ext/hash/keys.rb">
789
838
  <provider selected="true" editor-type-id="text-editor">
790
- <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0" />
839
+ <state line="25" column="70" selection-start="686" selection-end="686" vertical-scroll-proportion="0.0923825">
840
+ <folding />
841
+ </state>
791
842
  </provider>
792
843
  </entry>
793
- <entry file="file://$PROJECT_DIR$/shadow_db_credentials.gemspec.erb">
844
+ <entry file="file://$PROJECT_DIR$/lib/active_support/hash_with_indifferent_access.rb">
794
845
  <provider selected="true" editor-type-id="text-editor">
795
- <state line="18" column="63" selection-start="920" selection-end="920" vertical-scroll-proportion="-11.25">
846
+ <state line="178" column="0" selection-start="4793" selection-end="4793" vertical-scroll-proportion="0.94813615">
796
847
  <folding />
797
848
  </state>
798
849
  </provider>
799
850
  </entry>
800
- <entry file="file://$PROJECT_DIR$/shadow_db_credentials.gemspec">
851
+ <entry file="file://$PROJECT_DIR$/lib/shadow_db_credentials/shadow_db_credentials.rb">
801
852
  <provider selected="true" editor-type-id="text-editor">
802
- <state line="20" column="0" selection-start="922" selection-end="922" vertical-scroll-proportion="0.0">
853
+ <state line="2" column="49" selection-start="72" selection-end="72" vertical-scroll-proportion="0.051863857">
803
854
  <folding />
804
855
  </state>
805
856
  </provider>
806
857
  </entry>
807
- <entry file="file://$PROJECT_DIR$/lib/shadow_db_credentials/version.rb">
858
+ <entry file="file://$USER_HOME$/.rvm/gems/ruby-2.0.0-p247@shadow_db_credentials/gems/rspec-core-2.14.5/lib/rspec/core/memoized_helpers.rb">
808
859
  <provider selected="true" editor-type-id="text-editor">
809
- <state line="3" column="37" selection-start="50" selection-end="50" vertical-scroll-proportion="0.0">
860
+ <state line="198" column="0" selection-start="6885" selection-end="6885" vertical-scroll-proportion="0.3808752">
810
861
  <folding />
811
862
  </state>
812
863
  </provider>
813
864
  </entry>
814
- <entry file="file://$PROJECT_DIR$/lib/shadow_db_credentials/shadow_db_credentials.rb">
865
+ <entry file="file://$PROJECT_DIR$/spec/shadow_db_credentials_spec.rb">
815
866
  <provider selected="true" editor-type-id="text-editor">
816
- <state line="53" column="10" selection-start="1279" selection-end="1279" vertical-scroll-proportion="0.0">
867
+ <state line="1" column="30" selection-start="22" selection-end="22" vertical-scroll-proportion="0.025931928">
817
868
  <folding />
818
869
  </state>
819
870
  </provider>
820
871
  </entry>
821
- <entry file="file://$PROJECT_DIR$/README.md">
822
- <provider editor-type-id="MarkdownPreviewEditor">
823
- <state />
824
- </provider>
872
+ <entry file="file://$PROJECT_DIR$/lib/shadow_db_credentials/version.rb">
825
873
  <provider selected="true" editor-type-id="text-editor">
826
- <state line="111" column="27" selection-start="2800" selection-end="2800" vertical-scroll-proportion="-2.2222223">
874
+ <state line="1" column="18" selection-start="44" selection-end="44" vertical-scroll-proportion="0.0">
827
875
  <folding />
828
876
  </state>
829
877
  </provider>
830
878
  </entry>
831
- <entry file="file://$PROJECT_DIR$/.ruby-gemset">
879
+ <entry file="file://$PROJECT_DIR$/lib/shadow_db_credentials.rb">
832
880
  <provider selected="true" editor-type-id="text-editor">
833
- <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
881
+ <state line="1" column="53" selection-start="93" selection-end="93" vertical-scroll-proportion="0.0">
834
882
  <folding />
835
883
  </state>
836
884
  </provider>
837
885
  </entry>
838
- <entry file="file://$PROJECT_DIR$/.ruby-version">
886
+ <entry file="file://$PROJECT_DIR$/shadow_db_credentials.gemspec.erb">
839
887
  <provider selected="true" editor-type-id="text-editor">
840
- <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
888
+ <state line="18" column="63" selection-start="920" selection-end="920" vertical-scroll-proportion="0.4864865">
841
889
  <folding />
842
890
  </state>
843
891
  </provider>
844
892
  </entry>
845
- <entry file="file://$PROJECT_DIR$/Gemfile">
893
+ <entry file="file://$PROJECT_DIR$/CHANGES">
846
894
  <provider selected="true" editor-type-id="text-editor">
847
- <state line="16" column="137" selection-start="248" selection-end="248" vertical-scroll-proportion="0.0">
895
+ <state line="22" column="78" selection-start="265" selection-end="265" vertical-scroll-proportion="0.0">
848
896
  <folding />
849
897
  </state>
850
898
  </provider>
851
899
  </entry>
852
- <entry file="file://$PROJECT_DIR$/CHANGES">
900
+ <entry file="file://$PROJECT_DIR$/Rakefile">
853
901
  <provider selected="true" editor-type-id="text-editor">
854
- <state line="20" column="2" selection-start="229" selection-end="247" vertical-scroll-proportion="0.5050505">
902
+ <state line="12" column="32" selection-start="328" selection-end="328" vertical-scroll-proportion="0.17152104">
855
903
  <folding />
856
904
  </state>
857
905
  </provider>
data/CHANGES CHANGED
@@ -18,4 +18,8 @@
18
18
 
19
19
  == Version 1.1.2
20
20
 
21
- * Small API addition
21
+ * Small API addition
22
+
23
+ == Version 1.1.3
24
+
25
+ * Adding with_indifferent_access from activesupport library
data/Rakefile CHANGED
@@ -10,7 +10,7 @@ version = ShadowDbCredentials::VERSION
10
10
  project_name = File.basename(Dir.pwd)
11
11
 
12
12
  task :gen do
13
- generator = GemspecDepsGen.new project_name
13
+ generator = GemspecDepsGen.new
14
14
 
15
15
  generator.generate_dependencies "spec", "#{project_name}.gemspec.erb", "#{project_name}.gemspec"
16
16
  end
@@ -0,0 +1,23 @@
1
+ require 'active_support/hash_with_indifferent_access'
2
+
3
+ class Hash
4
+ # Returns an <tt>ActiveSupport::HashWithIndifferentAccess</tt> out of its receiver:
5
+ #
6
+ # {:a => 1}.with_indifferent_access["a"] # => 1
7
+ #
8
+ def with_indifferent_access
9
+ ActiveSupport::HashWithIndifferentAccess.new_from_hash_copying_default(self)
10
+ end
11
+
12
+ # Called when object is nested under an object that receives
13
+ # #with_indifferent_access. This method will be called on the current object
14
+ # by the enclosing object and is aliased to #with_indifferent_access by
15
+ # default. Subclasses of Hash may overwrite this method to return +self+ if
16
+ # converting to an <tt>ActiveSupport::HashWithIndifferentAccess</tt> would not be
17
+ # desirable.
18
+ #
19
+ # b = {:b => 1}
20
+ # {:a => b}.with_indifferent_access["a"] # calls b.nested_under_indifferent_access
21
+ #
22
+ alias nested_under_indifferent_access with_indifferent_access
23
+ end
@@ -0,0 +1,54 @@
1
+ class Hash
2
+ # Return a new hash with all keys converted to strings.
3
+ #
4
+ # { :name => 'Rob', :years => '28' }.stringify_keys
5
+ # #=> { "name" => "Rob", "years" => "28" }
6
+ def stringify_keys
7
+ dup.stringify_keys!
8
+ end
9
+
10
+ # Destructively convert all keys to strings. Same as
11
+ # +stringify_keys+, but modifies +self+.
12
+ def stringify_keys!
13
+ keys.each do |key|
14
+ self[key.to_s] = delete(key)
15
+ end
16
+ self
17
+ end
18
+
19
+ # Return a new hash with all keys converted to symbols, as long as
20
+ # they respond to +to_sym+.
21
+ #
22
+ # { 'name' => 'Rob', 'years' => '28' }.symbolize_keys
23
+ # #=> { :name => "Rob", :years => "28" }
24
+ def symbolize_keys
25
+ dup.symbolize_keys!
26
+ end
27
+
28
+ # Destructively convert all keys to symbols, as long as they respond
29
+ # to +to_sym+. Same as +symbolize_keys+, but modifies +self+.
30
+ def symbolize_keys!
31
+ keys.each do |key|
32
+ self[(key.to_sym rescue key) || key] = delete(key)
33
+ end
34
+ self
35
+ end
36
+
37
+ alias_method :to_options, :symbolize_keys
38
+ alias_method :to_options!, :symbolize_keys!
39
+
40
+ # Validate all keys in a hash match *valid keys, raising ArgumentError on a mismatch.
41
+ # Note that keys are NOT treated indifferently, meaning if you use strings for keys but assert symbols
42
+ # as keys, this will fail.
43
+ #
44
+ # ==== Examples
45
+ # { :name => "Rob", :years => "28" }.assert_valid_keys(:name, :age) # => raises "ArgumentError: Unknown key: years"
46
+ # { :name => "Rob", :age => "28" }.assert_valid_keys("name", "age") # => raises "ArgumentError: Unknown key: name"
47
+ # { :name => "Rob", :age => "28" }.assert_valid_keys(:name, :age) # => passes, raises nothing
48
+ def assert_valid_keys(*valid_keys)
49
+ valid_keys.flatten!
50
+ each_key do |k|
51
+ raise(ArgumentError, "Unknown key: #{k}") unless valid_keys.include?(k)
52
+ end
53
+ end
54
+ end
@@ -0,0 +1,178 @@
1
+ require 'active_support/core_ext/hash/keys'
2
+
3
+ # This class has dubious semantics and we only have it so that
4
+ # people can write <tt>params[:key]</tt> instead of <tt>params['key']</tt>
5
+ # and they get the same value for both keys.
6
+
7
+ module ActiveSupport
8
+ class HashWithIndifferentAccess < Hash
9
+
10
+ # Always returns true, so that <tt>Array#extract_options!</tt> finds members of this class.
11
+ def extractable_options?
12
+ true
13
+ end
14
+
15
+ def with_indifferent_access
16
+ dup
17
+ end
18
+
19
+ def nested_under_indifferent_access
20
+ self
21
+ end
22
+
23
+ def initialize(constructor = {})
24
+ if constructor.is_a?(Hash)
25
+ super()
26
+ update(constructor)
27
+ else
28
+ super(constructor)
29
+ end
30
+ end
31
+
32
+ def default(key = nil)
33
+ if key.is_a?(Symbol) && include?(key = key.to_s)
34
+ self[key]
35
+ else
36
+ super
37
+ end
38
+ end
39
+
40
+ def self.new_from_hash_copying_default(hash)
41
+ new(hash).tap do |new_hash|
42
+ new_hash.default = hash.default
43
+ end
44
+ end
45
+
46
+ alias_method :regular_writer, :[]= unless method_defined?(:regular_writer)
47
+ alias_method :regular_update, :update unless method_defined?(:regular_update)
48
+
49
+ # Assigns a new value to the hash:
50
+ #
51
+ # hash = HashWithIndifferentAccess.new
52
+ # hash[:key] = "value"
53
+ #
54
+ def []=(key, value)
55
+ regular_writer(convert_key(key), convert_value(value))
56
+ end
57
+
58
+ alias_method :store, :[]=
59
+
60
+ # Updates the instantized hash with values from the second:
61
+ #
62
+ # hash_1 = HashWithIndifferentAccess.new
63
+ # hash_1[:key] = "value"
64
+ #
65
+ # hash_2 = HashWithIndifferentAccess.new
66
+ # hash_2[:key] = "New Value!"
67
+ #
68
+ # hash_1.update(hash_2) # => {"key"=>"New Value!"}
69
+ #
70
+ def update(other_hash)
71
+ if other_hash.is_a? HashWithIndifferentAccess
72
+ super(other_hash)
73
+ else
74
+ other_hash.each_pair { |key, value| regular_writer(convert_key(key), convert_value(value)) }
75
+ self
76
+ end
77
+ end
78
+
79
+ alias_method :merge!, :update
80
+
81
+ # Checks the hash for a key matching the argument passed in:
82
+ #
83
+ # hash = HashWithIndifferentAccess.new
84
+ # hash["key"] = "value"
85
+ # hash.key? :key # => true
86
+ # hash.key? "key" # => true
87
+ #
88
+ def key?(key)
89
+ super(convert_key(key))
90
+ end
91
+
92
+ alias_method :include?, :key?
93
+ alias_method :has_key?, :key?
94
+ alias_method :member?, :key?
95
+
96
+ # Same as <tt>Hash#fetch</tt> where the key passed as argument can be
97
+ # either a string or a symbol:
98
+ #
99
+ # counters = HashWithIndifferentAccess.new
100
+ # counters[:foo] = 1
101
+ #
102
+ # counters.fetch("foo") # => 1
103
+ # counters.fetch(:bar, 0) # => 0
104
+ # counters.fetch(:bar) {|key| 0} # => 0
105
+ # counters.fetch(:zoo) # => KeyError: key not found: "zoo"
106
+ #
107
+ def fetch(key, *extras)
108
+ super(convert_key(key), *extras)
109
+ end
110
+
111
+ # Returns an array of the values at the specified indices:
112
+ #
113
+ # hash = HashWithIndifferentAccess.new
114
+ # hash[:a] = "x"
115
+ # hash[:b] = "y"
116
+ # hash.values_at("a", "b") # => ["x", "y"]
117
+ #
118
+ def values_at(*indices)
119
+ indices.collect {|key| self[convert_key(key)]}
120
+ end
121
+
122
+ # Returns an exact copy of the hash.
123
+ def dup
124
+ self.class.new(self).tap do |new_hash|
125
+ new_hash.default = default
126
+ end
127
+ end
128
+
129
+ # Merges the instantized and the specified hashes together, giving precedence to the values from the second hash.
130
+ # Does not overwrite the existing hash.
131
+ def merge(hash)
132
+ self.dup.update(hash)
133
+ end
134
+
135
+ # Performs the opposite of merge, with the keys and values from the first hash taking precedence over the second.
136
+ # This overloaded definition prevents returning a regular hash, if reverse_merge is called on a <tt>HashWithDifferentAccess</tt>.
137
+ def reverse_merge(other_hash)
138
+ super self.class.new_from_hash_copying_default(other_hash)
139
+ end
140
+
141
+ def reverse_merge!(other_hash)
142
+ replace(reverse_merge( other_hash ))
143
+ end
144
+
145
+ # Removes a specified key from the hash.
146
+ def delete(key)
147
+ super(convert_key(key))
148
+ end
149
+
150
+ def stringify_keys!; self end
151
+ def stringify_keys; dup end
152
+ undef :symbolize_keys!
153
+ def symbolize_keys; to_hash.symbolize_keys end
154
+ def to_options!; self end
155
+
156
+ # Convert to a Hash with String keys.
157
+ def to_hash
158
+ Hash.new(default).merge!(self)
159
+ end
160
+
161
+ protected
162
+ def convert_key(key)
163
+ key.kind_of?(Symbol) ? key.to_s : key
164
+ end
165
+
166
+ def convert_value(value)
167
+ if value.is_a? Hash
168
+ value.nested_under_indifferent_access
169
+ elsif value.is_a?(Array)
170
+ value.dup.replace(value.map { |e| convert_value(e) })
171
+ else
172
+ value
173
+ end
174
+ end
175
+ end
176
+ end
177
+
178
+ HashWithIndifferentAccess = ActiveSupport::HashWithIndifferentAccess
@@ -1,4 +1,5 @@
1
1
  require 'erb'
2
+ require 'active_support/core_ext/hash/indifferent_access'
2
3
 
3
4
  class ShadowDbCredentials
4
5
 
@@ -11,19 +12,19 @@ class ShadowDbCredentials
11
12
 
12
13
  template = ERB.new file.read
13
14
 
14
- config = indifferent_access(YAML.load(template.result(binding)))
15
+ config = YAML.load(template.result(binding)).with_indifferent_access
15
16
 
16
- process_credentials(config[rails_env.to_sym])
17
+ process_credentials(config[rails_env])
17
18
  end
18
19
 
19
20
  def process_configurations configurations
20
21
  new_configurations = {}
21
22
 
22
23
  configurations.each do |name, config|
23
- new_configurations[name] = process_credentials(indifferent_access(config))
24
+ new_configurations[name] = process_credentials(config)
24
25
  end
25
26
 
26
- new_configurations
27
+ new_configurations.with_indifferent_access
27
28
  end
28
29
 
29
30
  def process_configuration configurations, rails_env
@@ -31,7 +32,7 @@ class ShadowDbCredentials
31
32
 
32
33
  config = configurations[rails_env]
33
34
 
34
- new_configurations[rails_env] = process_credentials(indifferent_access(config))
35
+ new_configurations[rails_env] = process_credentials(config)
35
36
 
36
37
  new_configurations
37
38
  end
@@ -45,7 +46,7 @@ class ShadowDbCredentials
45
46
  file_name = "#{@credentials_dir}/#{credentials}"
46
47
 
47
48
  if File.exist? file_name
48
- config.merge!(indifferent_access(YAML.load_file(file_name)))
49
+ config.merge!(YAML.load_file(file_name).with_indifferent_access)
49
50
  else
50
51
  puts "Missing credentials file: #{file_name}."
51
52
  end
@@ -54,19 +55,5 @@ class ShadowDbCredentials
54
55
  config
55
56
  end
56
57
 
57
- def indifferent_access hash
58
- case hash
59
- when Hash
60
- Hash[
61
- hash.map do |k, v|
62
- [ k.respond_to?(:to_sym) ? k.to_sym : k, indifferent_access(v) ]
63
- end
64
- ]
65
- when Enumerable
66
- hash.map { |v| indifferent_access(v) }
67
- else
68
- hash
69
- end
70
- end
71
58
  end
72
59
 
@@ -1,3 +1,3 @@
1
1
  class ShadowDbCredentials
2
- VERSION = "1.1.2"
2
+ VERSION = "1.1.3"
3
3
  end
@@ -25,6 +25,7 @@ describe ShadowDbCredentials do
25
25
  result = subject.process_configurations configurations
26
26
 
27
27
  result[:production][:url].should == 'some_url'
28
+ result['production']['url'].should == 'some_url'
28
29
  end
29
30
 
30
31
  it "should retrieve given configuration" do
@@ -36,6 +37,6 @@ TEXT
36
37
 
37
38
  result = subject.retrieve_configuration "development", source
38
39
 
39
- result[:development][:url].should == 'some_url'
40
+ result[:url].should == 'some_url'
40
41
  end
41
42
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shadow_db_credentials
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Shvets
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-24 00:00:00.000000000 Z
11
+ date: 2013-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gemspec_deps_gen
@@ -64,6 +64,9 @@ files:
64
64
  - LICENSE
65
65
  - README.md
66
66
  - Rakefile
67
+ - lib/active_support/core_ext/hash/indifferent_access.rb
68
+ - lib/active_support/core_ext/hash/keys.rb
69
+ - lib/active_support/hash_with_indifferent_access.rb
67
70
  - lib/shadow_db_credentials.rb
68
71
  - lib/shadow_db_credentials/shadow_db_credentials.rb
69
72
  - lib/shadow_db_credentials/version.rb
@@ -91,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
91
94
  version: '0'
92
95
  requirements: []
93
96
  rubyforge_project:
94
- rubygems_version: 2.0.3
97
+ rubygems_version: 2.0.5
95
98
  signing_key:
96
99
  specification_version: 4
97
100
  summary: Class that helps to keep database credentials for rails application in private