pgcli-rails 0.3.0 → 0.5.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
  SHA256:
3
- metadata.gz: 9adf28e48e74b46c0180fce0474ba4ec6ead1ccd24cb4090d625d8ff0e4f3687
4
- data.tar.gz: 6cd89a8c30bfe9f764fc7969041a8e4048ee56b42592fa608678acea9922b99d
3
+ metadata.gz: 6d6191deefe037ff6782370ba6795bbdf9a2c70d7ddc0adfdff97ec3c4c96a5f
4
+ data.tar.gz: 3fc1dada931a9148f6b34b30d4d3e254b36e131ba412a6f0a548f56a2c35c54f
5
5
  SHA512:
6
- metadata.gz: c0e83f585e64c84b881f0d442c80ad47926a1afde0528e61c2ab3f2f29ce8ccbfa5f54045aca1c4461511d57d8741e3c15e4ae2cb26941298b220f800298faff
7
- data.tar.gz: f5fda20cea7b71ce706a06ff5a59b40f92633a7673004d109a427872984ac9a4230ff933b835e09c325ec6280e1c1d22d95cb91369a0202fe00e10610a22121e
6
+ metadata.gz: b0edfb6bf2f6e17ce8bc9a4992e28e512bced4ac8cd1a9786e25aee5f284d7d3fa9bee03d0f76f847f24abad3084f7dfcc0eaf2a949e4b027dc55d9d33d56db0
7
+ data.tar.gz: aeff9cb49fb21977aabb6835dc53243782068aa6d15fad95fb84ca4721824e3efee0f4f988eea88fe6d0eb7d41575404746e85eb0dd77424ff8b2c3c72e45ada
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2018 Matt Brictson
3
+ Copyright (c) 2021 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
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # pgcli-rails
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/pgcli-rails.svg)](http://badge.fury.io/rb/pgcli-rails)
4
+ [![Build Status](https://circleci.com/gh/mattbrictson/pgcli-rails/tree/main.svg?style=shield)](https://app.circleci.com/pipelines/github/mattbrictson/pgcli-rails?branch=main)
4
5
 
5
6
  [pgcli][] is a command-line interface for PostgreSQL that offers many improvements over `psql`, like auto-completion and syntax highlighting. Wouldn't it be nice to have a convenient way to use `pgcli` with your Rails app?
6
7
 
@@ -42,7 +43,7 @@ RAILS_ENV=test bin/rake pgcli
42
43
  ## Requirements
43
44
 
44
45
  * Rails 4.2+ using PostgreSQL
45
- * Ruby 1.9.3+
46
+ * Ruby 2.5.0+
46
47
  * [pgcli][] (`brew install pgcli` to install on macOS)
47
48
 
48
49
  ## How it works
@@ -59,7 +60,6 @@ pgcli-rails is little more than a proof-of-concept at this point. Next steps are
59
60
 
60
61
  * Add tests
61
62
  * Use [Appraisal][] to test against multiple versions of Rails
62
- * Set up Travis CI
63
63
 
64
64
  If you have other ideas, open an issue on GitHub!
65
65
 
@@ -71,5 +71,5 @@ Code contributions are also welcome! Read [CONTRIBUTING.md](CONTRIBUTING.md) to
71
71
 
72
72
  The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
73
73
 
74
- [pgcli]: http://pgcli.com
74
+ [pgcli]: https://www.pgcli.com/
75
75
  [Appraisal]: https://github.com/thoughtbot/appraisal
@@ -2,7 +2,7 @@ module Pgcli
2
2
  module Rails
3
3
  class Railtie < ::Rails::Railtie
4
4
  rake_tasks do
5
- load File.expand_path("../tasks.rake", __FILE__)
5
+ load File.expand_path("tasks.rake", __dir__)
6
6
  end
7
7
  end
8
8
  end
@@ -1,5 +1,5 @@
1
1
  module Pgcli
2
2
  module Rails
3
- VERSION = "0.3.0".freeze
3
+ VERSION = "0.5.3".freeze
4
4
  end
5
5
  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.3.0
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Brictson
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-02-24 00:00:00.000000000 Z
11
+ date: 2021-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -24,120 +24,29 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: 4.2.0
27
- - !ruby/object:Gem::Dependency
28
- name: bundler
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '1.12'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: '1.12'
41
- - !ruby/object:Gem::Dependency
42
- name: chandler
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
- - !ruby/object:Gem::Dependency
56
- name: rake
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - "~>"
60
- - !ruby/object:Gem::Version
61
- version: '12.0'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - "~>"
67
- - !ruby/object:Gem::Version
68
- version: '12.0'
69
- - !ruby/object:Gem::Dependency
70
- name: minitest
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - "~>"
74
- - !ruby/object:Gem::Version
75
- version: '5.0'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - "~>"
81
- - !ruby/object:Gem::Version
82
- version: '5.0'
83
- - !ruby/object:Gem::Dependency
84
- name: minitest-reporters
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - "~>"
88
- - !ruby/object:Gem::Version
89
- version: '1.1'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - "~>"
95
- - !ruby/object:Gem::Version
96
- version: '1.1'
97
- - !ruby/object:Gem::Dependency
98
- name: rubocop
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - '='
102
- - !ruby/object:Gem::Version
103
- version: 0.48.1
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - '='
109
- - !ruby/object:Gem::Version
110
- version: 0.48.1
111
- description:
27
+ description:
112
28
  email:
113
29
  - opensource@mattbrictson.com
114
30
  executables: []
115
31
  extensions: []
116
32
  extra_rdoc_files: []
117
33
  files:
118
- - ".gitignore"
119
- - ".rubocop.yml"
120
- - ".travis.yml"
121
- - CHANGELOG.md
122
- - CODE_OF_CONDUCT.md
123
- - CONTRIBUTING.md
124
- - Gemfile
125
34
  - LICENSE.txt
126
35
  - README.md
127
- - Rakefile
128
- - bin/console
129
- - bin/setup
130
36
  - lib/pgcli/rails.rb
131
37
  - lib/pgcli/rails/dbconsole.rb
132
38
  - lib/pgcli/rails/railtie.rb
133
39
  - lib/pgcli/rails/tasks.rake
134
40
  - lib/pgcli/rails/version.rb
135
- - pgcli-rails.gemspec
136
41
  homepage: https://github.com/mattbrictson/pgcli-rails
137
42
  licenses:
138
43
  - MIT
139
- metadata: {}
140
- post_install_message:
44
+ metadata:
45
+ bug_tracker_uri: https://github.com/mattbrictson/pgcli-rails/issues
46
+ changelog_uri: https://github.com/mattbrictson/pgcli-rails/releases
47
+ source_code_uri: https://github.com/mattbrictson/pgcli-rails
48
+ homepage_uri: https://github.com/mattbrictson/pgcli-rails
49
+ post_install_message:
141
50
  rdoc_options: []
142
51
  require_paths:
143
52
  - lib
@@ -145,16 +54,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
145
54
  requirements:
146
55
  - - ">="
147
56
  - !ruby/object:Gem::Version
148
- version: '0'
57
+ version: 2.5.0
149
58
  required_rubygems_version: !ruby/object:Gem::Requirement
150
59
  requirements:
151
60
  - - ">="
152
61
  - !ruby/object:Gem::Version
153
62
  version: '0'
154
63
  requirements: []
155
- rubyforge_project:
156
- rubygems_version: 2.7.6
157
- signing_key:
64
+ rubygems_version: 3.2.15
65
+ signing_key:
158
66
  specification_version: 4
159
67
  summary: Replaces the Rails PostgreSQL dbconsole with the much nicer pgcli
160
68
  test_files: []
data/.gitignore DELETED
@@ -1,9 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /Gemfile.lock
4
- /_yardoc/
5
- /coverage/
6
- /doc/
7
- /pkg/
8
- /spec/reports/
9
- /tmp/
data/.rubocop.yml DELETED
@@ -1,37 +0,0 @@
1
- AllCops:
2
- TargetRubyVersion: 1.9
3
- Exclude:
4
- - "*.gemspec"
5
-
6
- Metrics/AbcSize:
7
- Exclude:
8
- - "test/**/*"
9
-
10
- Metrics/MethodLength:
11
- Exclude:
12
- - "test/**/*"
13
-
14
- Metrics/ClassLength:
15
- Exclude:
16
- - "test/**/*"
17
-
18
- Style/BarePercentLiterals:
19
- EnforcedStyle: percent_q
20
-
21
- Style/ClassAndModuleChildren:
22
- Enabled: false
23
-
24
- Style/Documentation:
25
- Enabled: false
26
-
27
- Style/DoubleNegation:
28
- Enabled: false
29
-
30
- Style/HashSyntax:
31
- EnforcedStyle: hash_rockets
32
-
33
- Style/SpaceAroundEqualsInParameterDefault:
34
- EnforcedStyle: no_space
35
-
36
- Style/StringLiterals:
37
- EnforcedStyle: double_quotes
data/.travis.yml DELETED
@@ -1,5 +0,0 @@
1
- sudo: false
2
- language: ruby
3
- rvm:
4
- - 2.3.1
5
- before_install: gem install bundler -v 1.12.5
data/CHANGELOG.md DELETED
@@ -1,32 +0,0 @@
1
- # pgcli-rails Change Log
2
-
3
- All notable changes to this project will be documented in this file.
4
-
5
- pgcli-rails is in a pre-1.0 state. This means that its APIs and behavior are subject to breaking changes without deprecation notices. Until 1.0, version numbers will follow a [Semver][]-ish `0.y.z` format, where `y` is incremented when new features or breaking changes are introduced, and `z` is incremented for lesser changes or bug fixes.
6
-
7
- ## [Unreleased][]
8
-
9
- * Your contribution here!
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
-
15
- ## [0.2.1][] (2016-07-18)
16
-
17
- * Minor change to gemspec summary
18
-
19
- ## [0.2.0][] (2016-07-18)
20
-
21
- * Rewrite as a Rake task instead of a monkey patch
22
- * New usage: `bin/rake pgcli`
23
-
24
- ## 0.1.0 (2016-07-15)
25
-
26
- * Initial release
27
-
28
- [Semver]: http://semver.org
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
31
- [0.2.1]: https://github.com/mattbrictson/pgcli-rails/compare/v0.2.0...v0.2.1
32
- [0.2.0]: https://github.com/mattbrictson/pgcli-rails/compare/v0.1.0...v0.2.0
data/CODE_OF_CONDUCT.md DELETED
@@ -1,49 +0,0 @@
1
- # Contributor Code of Conduct
2
-
3
- As contributors and maintainers of this project, and in the interest of
4
- fostering an open and welcoming community, we pledge to respect all people who
5
- contribute through reporting issues, posting feature requests, updating
6
- documentation, submitting pull requests or patches, and other activities.
7
-
8
- We are committed to making participation in this project a harassment-free
9
- experience for everyone, regardless of level of experience, gender, gender
10
- identity and expression, sexual orientation, disability, personal appearance,
11
- body size, race, ethnicity, age, religion, or nationality.
12
-
13
- Examples of unacceptable behavior by participants include:
14
-
15
- * The use of sexualized language or imagery
16
- * Personal attacks
17
- * Trolling or insulting/derogatory comments
18
- * Public or private harassment
19
- * Publishing other's private information, such as physical or electronic
20
- addresses, without explicit permission
21
- * Other unethical or unprofessional conduct
22
-
23
- Project maintainers have the right and responsibility to remove, edit, or
24
- reject comments, commits, code, wiki edits, issues, and other contributions
25
- that are not aligned to this Code of Conduct, or to ban temporarily or
26
- permanently any contributor for other behaviors that they deem inappropriate,
27
- threatening, offensive, or harmful.
28
-
29
- By adopting this Code of Conduct, project maintainers commit themselves to
30
- fairly and consistently applying these principles to every aspect of managing
31
- this project. Project maintainers who do not follow or enforce the Code of
32
- Conduct may be permanently removed from the project team.
33
-
34
- This code of conduct applies both within project spaces and in public spaces
35
- when an individual is representing the project or its community.
36
-
37
- Instances of abusive, harassing, or otherwise unacceptable behavior may be
38
- reported by contacting a project maintainer at matt@mattbrictson.com. All
39
- complaints will be reviewed and investigated and will result in a response that
40
- is deemed necessary and appropriate to the circumstances. Maintainers are
41
- obligated to maintain confidentiality with regard to the reporter of an
42
- incident.
43
-
44
- This Code of Conduct is adapted from the [Contributor Covenant][homepage],
45
- version 1.3.0, available at
46
- [http://contributor-covenant.org/version/1/3/0/][version]
47
-
48
- [homepage]: http://contributor-covenant.org
49
- [version]: http://contributor-covenant.org/version/1/3/0/
data/CONTRIBUTING.md DELETED
@@ -1,25 +0,0 @@
1
- # Contributing to pgcli-rails
2
-
3
- Have a feature idea, bug fix, or refactoring suggestion? Contributions are welcome!
4
-
5
- ## Pull requests
6
-
7
- 1. Check [Issues][] to see if your contribution has already been discussed and/or implemented.
8
- 2. If not, open an issue to discuss your contribution. I won't accept all changes and do not want to waste your time.
9
- 3. Once you have the :thumbsup:, fork the repo, make your changes, and open a PR.
10
- 4. Don't forget to add your contribution and credit yourself in `CHANGELOG.md`!
11
-
12
- ## Coding guidelines
13
-
14
- * This project has a coding style enforced by [RuboCop][]. Use hash rockets and double-quoted strings, and otherwise try to follow the [Ruby style guide][style].
15
- * Writing tests is strongly encouraged! This project uses Minitest.
16
-
17
- ## Getting started
18
-
19
- After checking out the repo, run `bin/setup` to install dependencies.
20
-
21
- Use `rake` to execute all of pgcli-rails's tests and RuboCop checks
22
-
23
- [Issues]: https://github.com/mattbrictson/pgcli-rails/issues
24
- [RuboCop]: https://github.com/bbatsov/rubocop
25
- [style]: https://github.com/bbatsov/ruby-style-guide
data/Gemfile DELETED
@@ -1,4 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- # Specify your gem's dependencies in pgcli-rails.gemspec
4
- gemspec
data/Rakefile DELETED
@@ -1,15 +0,0 @@
1
- require "bundler/gem_tasks"
2
- require "chandler/tasks"
3
- require "rake/testtask"
4
- require "rubocop/rake_task"
5
-
6
- Rake::TestTask.new(:test) do |t|
7
- t.libs << "test"
8
- t.libs << "lib"
9
- t.test_files = FileList["test/**/*_test.rb"]
10
- end
11
-
12
- RuboCop::RakeTask.new
13
-
14
- task "release:rubygem_push" => "chandler:push"
15
- task :default => [:test, :rubocop]
data/bin/console DELETED
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require "bundler/setup"
4
- require "pgcli/rails"
5
-
6
- # You can add fixtures and/or initialization code here to make experimenting
7
- # with your gem easier. You can also use a different console, if you like.
8
-
9
- # (If you use this, don't forget to add pry to your Gemfile!)
10
- # require "pry"
11
- # Pry.start
12
-
13
- require "irb"
14
- IRB.start
data/bin/setup DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
-
8
- # Do any other automated setup that you need to do here
data/pgcli-rails.gemspec DELETED
@@ -1,29 +0,0 @@
1
- # coding: utf-8
2
- lib = File.expand_path("../lib", __FILE__)
3
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require "pgcli/rails/version"
5
-
6
- Gem::Specification.new do |spec|
7
- spec.name = "pgcli-rails"
8
- spec.version = Pgcli::Rails::VERSION
9
- spec.authors = ["Matt Brictson"]
10
- spec.email = ["opensource@mattbrictson.com"]
11
-
12
- spec.summary = "Replaces the Rails PostgreSQL dbconsole with the much nicer pgcli"
13
- spec.homepage = "https://github.com/mattbrictson/pgcli-rails"
14
- spec.license = "MIT"
15
-
16
- spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
17
- spec.bindir = "exe"
18
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
19
- spec.require_paths = ["lib"]
20
-
21
- spec.add_dependency "railties", ">= 4.2.0"
22
-
23
- spec.add_development_dependency "bundler", "~> 1.12"
24
- spec.add_development_dependency "chandler"
25
- spec.add_development_dependency "rake", "~> 12.0"
26
- spec.add_development_dependency "minitest", "~> 5.0"
27
- spec.add_development_dependency "minitest-reporters", "~> 1.1"
28
- spec.add_development_dependency "rubocop", "0.48.1"
29
- end