jazz_fingers 5.2.0 → 5.2.1

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: 68eb4443091b5d11a09fe647b29ec39a0285e8194cf160773ea2c648d4a0c6fb
4
- data.tar.gz: afef7c899f5a9d8cf40d9395a6890a62ba27ad915afda4ce11ff1bc9b48ea666
3
+ metadata.gz: bf15e3fff4144b2f8497097e0ad14e631091f2baf18faab756d0a74764539884
4
+ data.tar.gz: 75d7edba78a71f7b13eb5222de79719e0b7aed023d344230fa51c9efe09e39f6
5
5
  SHA512:
6
- metadata.gz: ebf8563fc9845812c5898b8ac79b56f7a322202e3e3ed18108551cf35561a50d068179a8031e62f94aae43af2dd01671ae59d335de29b5cfe78cde2cdba43f6c
7
- data.tar.gz: 5cc24c6094438c859fbc41590acefe95bf5be2056237955ba86aa6275ddd03f18340ba24f9f44ae73181c5d1a8f0932752722d11b9d231eb0c791d38933cb7fe
6
+ metadata.gz: 71c22ebac22ce8c1d69a765a7680a3ed7cdb9429ea9e7f47c3291f2746879b5789400d71e09f808fe2d6ae5240f71367050593acd0a8ec48ce2b80a71b9767dd
7
+ data.tar.gz: 949cb360d56b3ef4b4c9cfbeecd67fb92fc1c5a9d7bee604be673cc1ffa03b5ce8b295c4131f834f99d68e2bbd6f3f557283a2b2f9c303ef8c8d43171f8e8366
@@ -40,7 +40,16 @@ module JazzFingers
40
40
 
41
41
  def application_name
42
42
  return underscore(@application_name) unless @application_name.nil?
43
- return Rails.application.class.parent_name.underscore if defined?(Rails)
43
+
44
+ if defined?(Rails)
45
+ application_class = Rails.application.class
46
+
47
+ if application_class.respond_to?(:module_parent_name)
48
+ application_class.module_parent_name.underscore
49
+ else
50
+ application_class.parent_name.underscore
51
+ end
52
+ end
44
53
 
45
54
  "jazz_fingers"
46
55
  end
@@ -1,3 +1,3 @@
1
1
  module JazzFingers
2
- VERSION = '5.2.0'.freeze
2
+ VERSION = '5.2.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jazz_fingers
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.2.0
4
+ version: 5.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paulo Henrique Lopes Ribeiro
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-09 00:00:00.000000000 Z
11
+ date: 2020-07-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: awesome_print
@@ -121,7 +121,7 @@ homepage: https://github.com/plribeiro3000/jazz_fingers
121
121
  licenses:
122
122
  - MIT
123
123
  metadata: {}
124
- post_install_message:
124
+ post_install_message:
125
125
  rdoc_options: []
126
126
  require_paths:
127
127
  - lib
@@ -136,8 +136,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
136
136
  - !ruby/object:Gem::Version
137
137
  version: '0'
138
138
  requirements: []
139
- rubygems_version: 3.0.8
140
- signing_key:
139
+ rubygems_version: 3.1.3
140
+ signing_key:
141
141
  specification_version: 4
142
142
  summary: Exercise those fingers. Pry-based enhancements for the default Ruby console.
143
143
  test_files: []