gris 0.3.6 → 0.3.7

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: 19396544178bfbc38bc5a434941b3fd053e40e02
4
- data.tar.gz: 4c35fb83a5586052a941f9933490b04409d4709b
3
+ metadata.gz: 69ff9441d488ecb7b5ed4adcb6fc4d43f4809152
4
+ data.tar.gz: f0dbf44a56fd4f4275c851db4e53faaabc5482dd
5
5
  SHA512:
6
- metadata.gz: 0984a2bbedf2cf1d8408c8cae3d119dee87d76fd9934cd03da8e645806d779ce49055cda98c6b2b6cc17cbfc14917ec7d2caf31ee88d992e4feff00dfa64dff4
7
- data.tar.gz: e9ab0808f54bf5903393d407598ed4c015e8051b86d089b20d9e5d10dbcd21d9ce60dc2bfb5a2bdec91eef68b9c41b33625a8abc4832f3e7ce57e1911d839a38
6
+ metadata.gz: ac0ab18d4add6b2f6f73cfb974f7ef7c27c3991044ec0b8219fa7632c8344875ae483970e0b3a7e5386e6cdc9c376d421b4945221a2f42bb0045ecd36b58d429
7
+ data.tar.gz: cd84f2a8bad2684ff23959cb278eb4733c335a13b87bebf29ef93e290b8aa9f1330d65a8a99680e3592e7a344055ec519d02e5a9245924b0a5f9d2bab6a25d01
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gris (0.3.6)
4
+ gris (0.3.7)
5
5
  activesupport (~> 4.2, >= 4.2.0)
6
6
  chronic (~> 0.10.0)
7
7
  dalli (~> 2.7)
data/lib/gris/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Gris
2
- VERSION = '0.3.6'
2
+ VERSION = '0.3.7'
3
3
 
4
4
  class Version
5
5
  class << self
data/lib/tasks/db.rake CHANGED
@@ -24,7 +24,15 @@ unless defined?(Rails)
24
24
  admin_connection = db.merge(database: 'postgres',
25
25
  schema_search_path: 'public')
26
26
  ActiveRecord::Base.establish_connection(admin_connection)
27
- ActiveRecord::Base.connection.create_database(db['database'])
27
+ begin
28
+ ActiveRecord::Base.connection.create_database(db['database'])
29
+ rescue ActiveRecord::StatementInvalid => e
30
+ if e.message =~ /DuplicateDatabase/
31
+ $stderr.puts "#{admin_connection['database']} already exists"
32
+ else
33
+ raise
34
+ end
35
+ end
28
36
  end
29
37
 
30
38
  desc 'Delete the database'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gris
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6
4
+ version: 0.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dylan Fareed