awesome_rails_console 0.4.3 → 0.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: aca9533eddafb47be54ae00af80aefb84ec16254
4
- data.tar.gz: 06c8ace7c311b8713ea13f7247830cacf816cb47
2
+ SHA256:
3
+ metadata.gz: 7e1735aa009f7ad10520d811ba58c7f4e6a2ff9aa70e17f181d98a23b53a9a1c
4
+ data.tar.gz: a731b799854091c963bffa94cc7a53a1bce258f37bfc7136d8dcd0abd5553134
5
5
  SHA512:
6
- metadata.gz: 07473d870ed430830000a8e7b4987ea57b5aee2f29fa278345dd24d27c349424de156166560d02d1d11f259a23687d27a3100d31880ead6e3707322619b52002
7
- data.tar.gz: 0c4de9eb034b42325bf0d3cb3a0e69f305b8e72f9574a32f90d416db7019882a668a357563c4e0103c0638803dbb62c9fef2fcd7ea47abf14f77e1d33b8567fb
6
+ metadata.gz: 225bc12553b189bd212eb2cb5ec4e0c8866a50dddf3c17431134f32fc93010ce7ca85ad5320370ad1067cae5e821a303ea9f3913e555b89ed2e597d9e7bf212e
7
+ data.tar.gz: 6de554970d7cca7ad6371a4b1daaee2c43ef66eca7eb17071519ae95a8a79e4ab8c614a776d9c216b2231fe16320b778695028a4c23c19e6a36963b26ef46cfa
@@ -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
- * Replace `hirb-unicode` with `hirb-unicode-steakknife` in optional enhancement. (Run `rails generate awesome_rails_console:install` to install them)
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 (You can remove enhancement gems easily)
8
- * Simpler prompt modification (Closer to the default pry prompt you're familiar with)
9
- * No need to worry about configuration (Not much configurable options available)
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
- ## TL; DR;
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 #This will include dependancy gems to the gemfile
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
- Pry.config.prompt_name = Rails.application.class.parent_name.underscore.dasherize
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
@@ -1,3 +1,3 @@
1
1
  module AwesomeRailsConsole
2
- VERSION = "0.4.3"
2
+ VERSION = "0.4.4"
3
3
  end
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.3
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: 2018-11-06 00:00:00.000000000 Z
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.5.2.3
142
+ rubygems_version: 2.7.3
143
143
  signing_key:
144
144
  specification_version: 4
145
145
  summary: Simple and useful rails console enhancements