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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e7d4f70a20b3f099882df5459337ea0987e090bb1399add54f4bcbc4c7e506f8
4
- data.tar.gz: '09b8bf9fdb81dc6fb00a132b9b6c2ab25e101bb14441b3d86eb0a8f0d10923bd'
3
+ metadata.gz: 618c3f5ccf698bc8007977e542897c609243bb54e73265c1e478bbdf4856fd06
4
+ data.tar.gz: 033ce5566b1ed4b0d61248e028ce4f250137f0531d1883f6a289c5c4cfc35499
5
5
  SHA512:
6
- metadata.gz: 356b4ac8e6ba621c066b6ed24682075ab1afdbad4b179719dd2e4708f2a8c3dd7fbc35b7b61214ab90bec9ebda4d5f0e4dfe5dc793aacb39c15424e754310936
7
- data.tar.gz: a154f819c891cb392cc2c57690db151d068f96f088e8644399a23925c1a3da94e6c578962bb52044c437e5459eff6ecd4ad32f76ee738402c2a906cf5d16a972
6
+ metadata.gz: d64bcdf13d66beb35de4e56561529c1842cd96007c43c725a5dfdfae020a57e55718b447437608652d12fc0a1ae0b12b017e1f1286866507f29ee2e2ee54eeca
7
+ data.tar.gz: 5eaaa638762b8b803f8bf7b31024effd517d80f69da3c366a06e08846b516911eb3ea1cd2f910b9d13d89cc42ac780368f20549252878f5d4052432fc9be3553
@@ -1,4 +1,4 @@
1
- name: pry-diff-routes
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: actions/setup-ruby@v1
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
@@ -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.0...HEAD
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 ![pry-diff-routes](https://github.com/styd/pry-diff-routes/workflows/pry-diff-routes/badge.svg?branch=master)
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 Pry::Diff::Routes project's codebases, issue trackers, chat rooms
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).
Binary file
@@ -19,11 +19,11 @@ module PryDiffRoutes
19
19
  end
20
20
 
21
21
  def highlight_red(text)
22
- "\e[1;30;41m#{text}\e[0m"
22
+ "\e[1;41m#{text}\e[0m"
23
23
  end
24
24
 
25
25
  def highlight_green(text)
26
- "\e[1;30;42m#{text}\e[0m"
26
+ "\e[1;42m#{text}\e[0m"
27
27
  end
28
28
 
29
29
  def bold(text)
@@ -1,3 +1,3 @@
1
1
  module PryDiffRoutes
2
- VERSION = "0.1.1"
2
+ VERSION = "0.2.0"
3
3
  end
@@ -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", "~> 0.12.0"
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.1.1
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-03-25 00:00:00.000000000 Z
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.0
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.0
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/pry-diff-routes.yml"
76
+ - ".github/workflows/build-test.yml"
77
77
  - ".gitignore"
78
78
  - ".rspec"
79
79
  - CHANGELOG.md