pry-diff-routes 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/{pry-diff-routes.yml → build-test.yml} +3 -3
- data/CHANGELOG.md +7 -2
- data/README.md +25 -2
- data/images/demo-screenshot.gif +0 -0
- data/lib/pry_diff_routes/util.rb +2 -2
- data/lib/pry_diff_routes/version.rb +1 -1
- data/pry-diff-routes.gemspec +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 618c3f5ccf698bc8007977e542897c609243bb54e73265c1e478bbdf4856fd06
|
4
|
+
data.tar.gz: 033ce5566b1ed4b0d61248e028ce4f250137f0531d1883f6a289c5c4cfc35499
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d64bcdf13d66beb35de4e56561529c1842cd96007c43c725a5dfdfae020a57e55718b447437608652d12fc0a1ae0b12b017e1f1286866507f29ee2e2ee54eeca
|
7
|
+
data.tar.gz: 5eaaa638762b8b803f8bf7b31024effd517d80f69da3c366a06e08846b516911eb3ea1cd2f910b9d13d89cc42ac780368f20549252878f5d4052432fc9be3553
|
@@ -1,4 +1,4 @@
|
|
1
|
-
name:
|
1
|
+
name: build-test
|
2
2
|
|
3
3
|
on:
|
4
4
|
push:
|
@@ -12,11 +12,11 @@ jobs:
|
|
12
12
|
fail-fast: false
|
13
13
|
matrix:
|
14
14
|
os: [ubuntu-latest, macos-latest]
|
15
|
-
ruby: [2.5, 2.6, 2.7]
|
15
|
+
ruby: [2.5, 2.6, 2.7, jruby]
|
16
16
|
runs-on: ${{ matrix.os }}
|
17
17
|
steps:
|
18
18
|
- uses: actions/checkout@v2
|
19
|
-
- uses:
|
19
|
+
- uses: ruby/setup-ruby@v1.31.1
|
20
20
|
with:
|
21
21
|
ruby-version: ${{ matrix.ruby }}
|
22
22
|
- name: Build and test with Rake
|
data/CHANGELOG.md
CHANGED
@@ -1,8 +1,12 @@
|
|
1
1
|
# Changelog
|
2
2
|
All notable changes to this project will be documented in this file.
|
3
3
|
|
4
|
-
|
5
4
|
## [Unreleased]
|
5
|
+
### Changed
|
6
|
+
- Highlight red and green text style and color
|
7
|
+
|
8
|
+
|
9
|
+
## [0.1.1] - 2020-03-25
|
6
10
|
### Added
|
7
11
|
- Testing status badge
|
8
12
|
- Github action for testing workflow
|
@@ -21,5 +25,6 @@ All notable changes to this project will be documented in this file.
|
|
21
25
|
- `diff-routes --save`
|
22
26
|
|
23
27
|
|
24
|
-
[Unreleased]: https://github.com/styd/pry-diff-routes/compare/v0.1.
|
28
|
+
[Unreleased]: https://github.com/styd/pry-diff-routes/compare/v0.1.1...HEAD
|
29
|
+
[0.1.1]: https://github.com/styd/pry-diff-routes/compare/v0.1.0...v0.1.1
|
25
30
|
[0.1.0]: https://github.com/styd/pry-diff-routes/releases/tag/v0.1.0
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# PryDiffRoutes ![
|
1
|
+
# PryDiffRoutes ![build-test](https://github.com/styd/pry-diff-routes/workflows/build-test/badge.svg?branch=master)
|
2
2
|
|
3
3
|
> Inspect routes changes in Rails console.
|
4
4
|
|
@@ -10,6 +10,29 @@ Add this line to your application's Gemfile:
|
|
10
10
|
gem 'pry-diff-routes', group: :development
|
11
11
|
```
|
12
12
|
|
13
|
+
PryDiffRoutes will set Pry as the REPL in your Rails console, just like when you use PryRails.
|
14
|
+
|
15
|
+
If you already used PryRails, you should install PryDiffRoutes after it.
|
16
|
+
|
17
|
+
```ruby
|
18
|
+
gem 'pry-rails' # not a dependency
|
19
|
+
gem 'pry-diff-routes'
|
20
|
+
```
|
21
|
+
|
22
|
+
When you type `help` in Rails console, you'll notice that `diff-routes` is listed in the same
|
23
|
+
group as PryRails commands.
|
24
|
+
|
25
|
+
```
|
26
|
+
Rails
|
27
|
+
diff-routes Show the difference you made in routes.
|
28
|
+
find-route See which urls match a given controller.
|
29
|
+
recognize-path See which route matches a url.
|
30
|
+
show-middleware Show all middleware (that rails knows about).
|
31
|
+
show-model Show the given model.
|
32
|
+
show-models Show all models.
|
33
|
+
show-routes Show all routes in match order.
|
34
|
+
```
|
35
|
+
|
13
36
|
## Usage
|
14
37
|
### Flags
|
15
38
|
|
@@ -54,6 +77,6 @@ The gem is available as open source under the terms of the
|
|
54
77
|
|
55
78
|
## Code of Conduct
|
56
79
|
|
57
|
-
Everyone interacting in the
|
80
|
+
Everyone interacting in the PryDiffRoutes project's codebases, issue trackers, chat rooms
|
58
81
|
and mailing lists is expected to follow the
|
59
82
|
[code of conduct](https://github.com/styd/pry-diff-routes/blob/master/CODE_OF_CONDUCT.md).
|
data/images/demo-screenshot.gif
CHANGED
Binary file
|
data/lib/pry_diff_routes/util.rb
CHANGED
data/pry-diff-routes.gemspec
CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
|
|
19
19
|
end
|
20
20
|
spec.require_paths = ["lib"]
|
21
21
|
|
22
|
-
spec.add_dependency "pry", "
|
22
|
+
spec.add_dependency "pry", ">= 0.12"
|
23
23
|
|
24
24
|
spec.add_development_dependency "rails", ">= 5"
|
25
25
|
spec.add_development_dependency "rake", "~> 12.0"
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pry-diff-routes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adrian Setyadi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-12-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.12
|
19
|
+
version: '0.12'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.12
|
26
|
+
version: '0.12'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rails
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -73,7 +73,7 @@ executables: []
|
|
73
73
|
extensions: []
|
74
74
|
extra_rdoc_files: []
|
75
75
|
files:
|
76
|
-
- ".github/workflows/
|
76
|
+
- ".github/workflows/build-test.yml"
|
77
77
|
- ".gitignore"
|
78
78
|
- ".rspec"
|
79
79
|
- CHANGELOG.md
|