awesome_rails_console 0.4.3 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +10 -4
- data/README.md +10 -42
- data/lib/awesome_rails_console/railtie.rb +7 -1
- data/lib/awesome_rails_console/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 7e1735aa009f7ad10520d811ba58c7f4e6a2ff9aa70e17f181d98a23b53a9a1c
|
4
|
+
data.tar.gz: a731b799854091c963bffa94cc7a53a1bce258f37bfc7136d8dcd0abd5553134
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 225bc12553b189bd212eb2cb5ec4e0c8866a50dddf3c17431134f32fc93010ce7ca85ad5320370ad1067cae5e821a303ea9f3913e555b89ed2e597d9e7bf212e
|
7
|
+
data.tar.gz: 6de554970d7cca7ad6371a4b1daaee2c43ef66eca7eb17071519ae95a8a79e4ab8c614a776d9c216b2231fe16320b778695028a4c23c19e6a36963b26ef46cfa
|
data/CHANGELOG.md
CHANGED
@@ -1,16 +1,22 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
+
## v0.4.4
|
4
|
+
|
5
|
+
* Fix deprecation warning `Module#parent_name` in Rails 6.x
|
6
|
+
|
3
7
|
## v0.4.3
|
4
8
|
|
5
|
-
* Fix my stupid mistake on v0.4.2
|
9
|
+
* Fix my stupid mistake on v0.4.2: Require hirb-unicode-steakknife as hirb-unicode
|
6
10
|
|
7
|
-
## v0.4.2
|
11
|
+
## v0.4.2 [DO NOT USE]
|
8
12
|
|
9
|
-
*
|
13
|
+
* Require hirb-unicode-steakknife as unicode-steakknife
|
14
|
+
* BUG: The require name was wrong
|
10
15
|
|
11
|
-
## v0.4.1
|
16
|
+
## v0.4.1 [DO NOT USE]
|
12
17
|
|
13
18
|
* Replace `hirb-unicode` with `hirb-unicode-steakknife` in optional enhancement. (Run `rails generate awesome_rails_console:install` to install them)
|
19
|
+
* BUG: It doesn't require properly
|
14
20
|
|
15
21
|
## v0.4.0
|
16
22
|
|
data/README.md
CHANGED
@@ -4,11 +4,11 @@ This gem was inspired by [Using pry in production](https://bugsnag.com/blog/prod
|
|
4
4
|
|
5
5
|
The pros of `awesome_rails_console` are:
|
6
6
|
|
7
|
-
* Less gem dependances (
|
8
|
-
* Simpler prompt modification (
|
9
|
-
* No need to worry about configuration (
|
7
|
+
* Less gem dependances (Only pry-rails and awesome_print other than rails. The rest are optional)
|
8
|
+
* Simpler prompt modification (Similar to the default prompt you're already familiar with)
|
9
|
+
* No need to worry about configuration (because there are not much options anyway)
|
10
10
|
|
11
|
-
##
|
11
|
+
## Installation
|
12
12
|
|
13
13
|
Gemfile:
|
14
14
|
|
@@ -20,9 +20,13 @@ In terminal:
|
|
20
20
|
|
21
21
|
``` sh
|
22
22
|
bundle
|
23
|
-
rails g awesome_rails_console:install
|
23
|
+
rails g awesome_rails_console:install # This will include dependency gems to the gemfile
|
24
|
+
# you should review your Gemfile at this point (and adjust if needed)
|
25
|
+
```
|
26
|
+
|
27
|
+
```sh
|
24
28
|
bundle
|
25
|
-
spring stop
|
29
|
+
spring stop # to restart spring, if you are using it
|
26
30
|
rails c
|
27
31
|
```
|
28
32
|
|
@@ -64,39 +68,3 @@ With pry-byebug (optional enhancement)
|
|
64
68
|
Insert `binding.pry` (break point) to start debugging. See [pry-byebug](https://github.com/deivid-rodriguez/pry-byebug) For detail.
|
65
69
|
|
66
70
|
![](http://i.imgur.com/mJbC24h.png)
|
67
|
-
|
68
|
-
## Installation
|
69
|
-
|
70
|
-
Add this line to your application's `Gemfile`:
|
71
|
-
|
72
|
-
```ruby
|
73
|
-
gem 'awesome_rails_console'
|
74
|
-
```
|
75
|
-
|
76
|
-
And then execute in terminal:
|
77
|
-
|
78
|
-
$ bundle
|
79
|
-
|
80
|
-
Install and config enhancement gems: (optinal)
|
81
|
-
|
82
|
-
$ rails generate awesome_rails_console:install
|
83
|
-
|
84
|
-
Finally, restart your rails console. (You may need to restart `spring` also)
|
85
|
-
|
86
|
-
## Changelog
|
87
|
-
|
88
|
-
See `CHANGELOG.md`.
|
89
|
-
|
90
|
-
## Development
|
91
|
-
|
92
|
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment.
|
93
|
-
|
94
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release` to create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
95
|
-
|
96
|
-
## Contributing
|
97
|
-
|
98
|
-
1. Fork it ( https://github.com/ascendbruce/awesome_rails_console/fork )
|
99
|
-
2. Create your feature branch (`git checkout -b my-new-feature`)
|
100
|
-
3. Commit your changes (`git commit -am 'Add some feature'`)
|
101
|
-
4. Push to the branch (`git push origin my-new-feature`)
|
102
|
-
5. Create a new Pull Request
|
@@ -21,7 +21,13 @@ module AwesomeRailsConsole
|
|
21
21
|
end
|
22
22
|
|
23
23
|
def set_prompt_name_to_project_name
|
24
|
-
|
24
|
+
# ref from https://github.com/rweng/pry-rails/blob/035d5c8203521f5eaac0001300152281c765df88/lib/pry-rails/prompt.rb
|
25
|
+
Pry.config.prompt_name =
|
26
|
+
if Rails::VERSION::MAJOR >= 6
|
27
|
+
Rails.application.class.module_parent_name.underscore
|
28
|
+
else
|
29
|
+
Rails.application.class.parent_name.underscore
|
30
|
+
end
|
25
31
|
end
|
26
32
|
|
27
33
|
def show_rails_env_name_before_prompt
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: awesome_rails_console
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bruce Li
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -139,7 +139,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
139
139
|
version: '0'
|
140
140
|
requirements: []
|
141
141
|
rubyforge_project:
|
142
|
-
rubygems_version: 2.
|
142
|
+
rubygems_version: 2.7.3
|
143
143
|
signing_key:
|
144
144
|
specification_version: 4
|
145
145
|
summary: Simple and useful rails console enhancements
|