spirit_hands 2.0.1 → 2.0.2

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
2
  SHA1:
3
- metadata.gz: e5174c2979f5f2cc6d58b9e110f46d2774f1cd83
4
- data.tar.gz: 20fae6c53d7321bedfcc79a0472abc14eb325d33
3
+ metadata.gz: f690fc593198061c35dff3af75e8710e914389fe
4
+ data.tar.gz: 1f315fd43cacf09768658c51f67ee7f142dfc700
5
5
  SHA512:
6
- metadata.gz: c3f1bd55337a7dad619503ee73b98564290a6a8117848faf1ac2eb7b8bcbe344dde7e85f4c01f1db054e0a05d214722a33ad067ee91ba999d6164d5f929acf99
7
- data.tar.gz: 63fb3268db843cd4cd468704ee97f415fd15a07bfbcb27f377025442bb2f0c73e39059cded9f865e4628504455e9c2992d4581ad7b2ea0e186f603eff56aa8f2
6
+ metadata.gz: fb1df1be0643c3ae97ae54249e09d5aeb2ef094c45c8ba0a9f5120c412dee54c64db2aeed1944dd0867c0a76a716d1d8568ba4c0e28eba8ca4c2e446352eff98
7
+ data.tar.gz: 63057f951975c842bf452fd36b81a7db28ed0d171de7d09f90a6b3bd6d71d3b4efcf6729fca93b2b62547b8149f9578add141502590d6163ede776a4fca1091b
checksums.yaml.gz.sig CHANGED
Binary file
@@ -18,8 +18,12 @@ module SpiritHands
18
18
 
19
19
  # Name of the app, which can be displayed to <app/> tag in prompt
20
20
  mattr_accessor_with_default :app, -> {
21
- # Trumpet emoji or pry
22
- (Terminal.unicode?) ? "\u{1F3BA}" : 'pry'
21
+ if defined?(::Rails)
22
+ ::Rails.application
23
+ else
24
+ # Trumpet emoji or pry
25
+ (Terminal.unicode?) ? "\u{1F3BA}" : 'pry'
26
+ end
23
27
  }
24
28
 
25
29
  # <color>...</color>
@@ -5,7 +5,6 @@ module SpiritHands
5
5
  module Prompt
6
6
  class << self
7
7
  def install!(app = nil)
8
- ::SpiritHands.app = ::Rails.application if defined?(Rails)
9
8
  ::Pry.config.prompt = [ main, multiline ].freeze
10
9
  end
11
10
  end
@@ -1,3 +1,3 @@
1
1
  module SpiritHands
2
- VERSION = '2.0.1'
2
+ VERSION = '2.0.2'
3
3
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spirit_hands
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Barry Allard
metadata.gz.sig CHANGED
Binary file