pgcli-rails 0.2.1 → 0.3.0

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
- SHA1:
3
- metadata.gz: 2eae0314668bf9df7e1b9f08dea7fe45378f6e34
4
- data.tar.gz: 043ca60cec436c44b61915a8e45d967f045b08cd
2
+ SHA256:
3
+ metadata.gz: 9adf28e48e74b46c0180fce0474ba4ec6ead1ccd24cb4090d625d8ff0e4f3687
4
+ data.tar.gz: 6cd89a8c30bfe9f764fc7969041a8e4048ee56b42592fa608678acea9922b99d
5
5
  SHA512:
6
- metadata.gz: da27bedd0cb2707b0237af5e3e5e17cd919c7b455734c4423814042b4f041fd7274ccb15659c74fc905704b594d55f76c4df236511d354c11c74c18872424f09
7
- data.tar.gz: f111b81a77dd08610421ba271850076eb6c891d5934954748acc2d4f9728e9b1d046ed6d6aff1b6a92b39f37d6afb901aa87fd7b3c092dc7d97f471d768bc8d4
6
+ metadata.gz: c0e83f585e64c84b881f0d442c80ad47926a1afde0528e61c2ab3f2f29ce8ccbfa5f54045aca1c4461511d57d8741e3c15e4ae2cb26941298b220f800298faff
7
+ data.tar.gz: f5fda20cea7b71ce706a06ff5a59b40f92633a7673004d109a427872984ac9a4230ff933b835e09c325ec6280e1c1d22d95cb91369a0202fe00e10610a22121e
@@ -8,6 +8,10 @@ pgcli-rails is in a pre-1.0 state. This means that its APIs and behavior are sub
8
8
 
9
9
  * Your contribution here!
10
10
 
11
+ ## [0.3.0][] (2018-02-24)
12
+
13
+ * [#3](https://github.com/mattbrictson/pgcli-rails/pull/3): Add Rails 5.1 support - [@nachokb](https://github.com/nachokb)
14
+
11
15
  ## [0.2.1][] (2016-07-18)
12
16
 
13
17
  * Minor change to gemspec summary
@@ -22,6 +26,7 @@ pgcli-rails is in a pre-1.0 state. This means that its APIs and behavior are sub
22
26
  * Initial release
23
27
 
24
28
  [Semver]: http://semver.org
25
- [Unreleased]: https://github.com/mattbrictson/pgcli-rails/compare/v0.2.1...HEAD
29
+ [Unreleased]: https://github.com/mattbrictson/pgcli-rails/compare/v0.3.0...HEAD
30
+ [0.3.0]: https://github.com/mattbrictson/pgcli-rails/compare/v0.2.1...v0.3.0
26
31
  [0.2.1]: https://github.com/mattbrictson/pgcli-rails/compare/v0.2.0...v0.2.1
27
32
  [0.2.0]: https://github.com/mattbrictson/pgcli-rails/compare/v0.1.0...v0.2.0
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2016 Matt Brictson
3
+ Copyright (c) 2018 Matt Brictson
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -1,4 +1,8 @@
1
- require "rails/commands/dbconsole"
1
+ begin
2
+ require "rails/commands/dbconsole"
3
+ rescue LoadError
4
+ require "rails/commands/dbconsole/dbconsole_command"
5
+ end
2
6
 
3
7
  module Pgcli
4
8
  module Rails
@@ -5,6 +5,12 @@ task :pgcli do
5
5
  # APP_PATH constant must be set for DBConsole to work
6
6
  APP_PATH = Rails.root.join("config", "application") unless defined?(APP_PATH)
7
7
 
8
- console = Pgcli::Rails::DBConsole.new(["--include-password"])
8
+ opt = if ::Rails.version >= "5.1"
9
+ { "--include-password" => true }
10
+ else
11
+ ["--include-password"]
12
+ end
13
+
14
+ console = Pgcli::Rails::DBConsole.new(opt)
9
15
  console.start
10
16
  end
@@ -1,5 +1,5 @@
1
1
  module Pgcli
2
2
  module Rails
3
- VERSION = "0.2.1".freeze
3
+ VERSION = "0.3.0".freeze
4
4
  end
5
5
  end
@@ -22,8 +22,8 @@ Gem::Specification.new do |spec|
22
22
 
23
23
  spec.add_development_dependency "bundler", "~> 1.12"
24
24
  spec.add_development_dependency "chandler"
25
- spec.add_development_dependency "rake", "~> 11.2"
25
+ spec.add_development_dependency "rake", "~> 12.0"
26
26
  spec.add_development_dependency "minitest", "~> 5.0"
27
- spec.add_development_dependency "minitest-reporters"
28
- spec.add_development_dependency "rubocop", ">= 0.37.2"
27
+ spec.add_development_dependency "minitest-reporters", "~> 1.1"
28
+ spec.add_development_dependency "rubocop", "0.48.1"
29
29
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pgcli-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Brictson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-07-18 00:00:00.000000000 Z
11
+ date: 2018-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '11.2'
61
+ version: '12.0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '11.2'
68
+ version: '12.0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: minitest
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -84,30 +84,30 @@ dependencies:
84
84
  name: minitest-reporters
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ">="
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '0'
89
+ version: '1.1'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ">="
94
+ - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '0'
96
+ version: '1.1'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rubocop
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ">="
101
+ - - '='
102
102
  - !ruby/object:Gem::Version
103
- version: 0.37.2
103
+ version: 0.48.1
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ">="
108
+ - - '='
109
109
  - !ruby/object:Gem::Version
110
- version: 0.37.2
110
+ version: 0.48.1
111
111
  description:
112
112
  email:
113
113
  - opensource@mattbrictson.com
@@ -153,7 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
153
153
  version: '0'
154
154
  requirements: []
155
155
  rubyforge_project:
156
- rubygems_version: 2.6.6
156
+ rubygems_version: 2.7.6
157
157
  signing_key:
158
158
  specification_version: 4
159
159
  summary: Replaces the Rails PostgreSQL dbconsole with the much nicer pgcli