mystic 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4d550e8b8d8beda666b5b0607a324f6ffde6b92d
4
- data.tar.gz: da6a69ab867819ea3596bd528f8ddd4c67803a01
3
+ metadata.gz: 3c1b298d8159f75053635c7ead806af57c42b2ac
4
+ data.tar.gz: 208fbafe42642f540c5e7b262f35267611c3262e
5
5
  SHA512:
6
- metadata.gz: 56ff8755b2714944fb07c980a2a42d7b3184c3aa410a724e3d6b84a9f6713fb469dc8f5ecdd947b55f3fe818f8c2b690176bd619dd127ec6b9b2a83f3372b634
7
- data.tar.gz: 09bdcd6a615979c5aff66aeef79203621626bbfcbf6f5944f8fdc04d8a9d6495177886d2a69983f1e4210686639cdc147d8250088e1032a3ebd3690bbca489a2
6
+ metadata.gz: 445ec0546c15ca3da3ea6328499c65611dbd86048a790a05e3af15c35a5e881a0a963a238cf6eea2245d6e03b630fb7e057dc1fb4268dccb4956a311bdd082b9
7
+ data.tar.gz: fbe20de403540cb2d85d032919e7c1aa429feb97b5f52c68c26df45af01b9166ee58faa27f0ca9ef45a386de8b3c628a0d0fbf672152d327f99c7f7f36886e3c
@@ -51,6 +51,7 @@ module Mystic
51
51
 
52
52
  conf = db_yml[@env].symbolize
53
53
  conf[:dbname] = conf.delete :database
54
+ conf[:user] = conf.delete :username
54
55
  raise MysticError, "Mystic only supports Postgres." unless /^postg.+$/i =~ conf[:adapter]
55
56
 
56
57
  @postgres = Postgres.new(conf)
@@ -34,7 +34,7 @@ module Mystic
34
34
  :size => opts[:pool] || 5,
35
35
  :timeout => opts[:timeout] || 30,
36
36
  :expires => opts[:expires],
37
- :create => lambda { create_pg opts },
37
+ :create => lambda { create_pg opts.dup },
38
38
  :destroy => lambda { |pg| pg.close },
39
39
  :validate => lambda { |pg| pg != nil && pg.status == CONNECTION_OK }
40
40
  )
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mystic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathaniel Symer
@@ -94,6 +94,5 @@ rubyforge_project:
94
94
  rubygems_version: 2.2.2
95
95
  signing_key:
96
96
  specification_version: 4
97
- summary: Pooled PG singleton instance. Focus more on writing SQL than dealing with
98
- a finnicky ORM.
97
+ summary: Pooled PG singleton instance.
99
98
  test_files: []