spirit_hands 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +7 -0
  2. checksums.yaml.gz.sig +0 -0
  3. data/.gitignore +17 -0
  4. data/.hound.yml +20 -0
  5. data/.pryrc +2 -0
  6. data/.rubocop.yml +20 -0
  7. data/.ruby-gemset +1 -0
  8. data/CHANGELOG.md +147 -0
  9. data/CONTRIBUTING.md +18 -0
  10. data/CONTRIBUTORS.md +10 -0
  11. data/Gemfile +3 -0
  12. data/LICENSE.md +22 -0
  13. data/README.md +133 -0
  14. data/Rakefile +3 -0
  15. data/gem-public_cert.pem +32 -0
  16. data/lib/spirit_hands/hirb/fixes/enabled.rb +38 -0
  17. data/lib/spirit_hands/hirb/fixes/pager.rb +144 -0
  18. data/lib/spirit_hands/hirb/fixes/util.rb +23 -0
  19. data/lib/spirit_hands/hirb/fixes/view.rb +10 -0
  20. data/lib/spirit_hands/hirb/fixes.rb +5 -0
  21. data/lib/spirit_hands/hirb.rb +2 -0
  22. data/lib/spirit_hands/load_plugins.rb +10 -0
  23. data/lib/spirit_hands/mattr_accessor_with_default.rb +48 -0
  24. data/lib/spirit_hands/melody.rb +41 -0
  25. data/lib/spirit_hands/options/color.rb +12 -0
  26. data/lib/spirit_hands/options/hirb.rb +34 -0
  27. data/lib/spirit_hands/options/less/colorize.rb +42 -0
  28. data/lib/spirit_hands/options/less/show_raw_unicode.rb +38 -0
  29. data/lib/spirit_hands/options/less.rb +2 -0
  30. data/lib/spirit_hands/options.rb +57 -0
  31. data/lib/spirit_hands/plugin.rb +28 -0
  32. data/lib/spirit_hands/print.rb +72 -0
  33. data/lib/spirit_hands/prompt/base.rb +249 -0
  34. data/lib/spirit_hands/prompt/main.rb +18 -0
  35. data/lib/spirit_hands/prompt/multiline.rb +17 -0
  36. data/lib/spirit_hands/prompt.rb +13 -0
  37. data/lib/spirit_hands/railtie.rb +7 -0
  38. data/lib/spirit_hands/terminal.rb +14 -0
  39. data/lib/spirit_hands/version.rb +3 -0
  40. data/lib/spirit_hands.rb +13 -0
  41. data/spirit_hands.gemspec +37 -0
  42. data.tar.gz.sig +0 -0
  43. metadata +258 -0
  44. metadata.gz.sig +0 -0
@@ -0,0 +1,7 @@
1
+ class Railtie < Rails::Railtie
2
+ initializer 'spirit_hands.initialize' do |app|
3
+ silence_warnings do
4
+ ::SpiritHands.melody!(app)
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,14 @@
1
+ module SpiritHands
2
+ module Terminal
3
+ class << self
4
+ LOCALE_ENV_VARS = %w[LANG LC_ALL LC_TYPE LC_CTYPE].freeze.tap { |x| x.each(&:freeze) }
5
+ ENV_UNICODE_REGEX = /utf-?8/i.freeze
6
+
7
+ def unicode?
8
+ return false if defined? RbReadline
9
+ ::Gem.win_platform? ||
10
+ LOCALE_ENV_VARS.any? { |v| ENV[v] =~ ENV_UNICODE_REGEX }
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,3 @@
1
+ module SpiritHands
2
+ VERSION = '2.0.0'
3
+ end
@@ -0,0 +1,13 @@
1
+ # Do this to use SpiritHands outside Rails
2
+ #
3
+ # # .pryrc
4
+ # # ...
5
+ # SpiritHands.melody!
6
+ #
7
+ #
8
+ module SpiritHands
9
+ autoload :VERSION, 'spirit_hands/version'
10
+ end
11
+ require 'spirit_hands/options'
12
+ require 'spirit_hands/melody'
13
+ require 'spirit_hands/railtie' if defined? ::Rails
@@ -0,0 +1,37 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ $:.unshift File.expand_path('../lib', __FILE__)
4
+ module ::SpiritHands
5
+ autoload :VERSION, 'spirit_hands/version'
6
+ end
7
+
8
+ Gem::Specification.new do |gem|
9
+ gem.name = 'spirit_hands'
10
+ gem.version = SpiritHands::VERSION
11
+ gem.author = 'Barry Allard'
12
+ gem.email = 'barry.allard@gmail.com'
13
+ gem.license = 'MIT'
14
+ gem.homepage = 'https://github.com/steakknife/spirit_hands'
15
+ gem.summary = 'Exercise those fingers. Pry-based enhancements for the default Rails console.'
16
+ gem.description = "Spending hours in the rails console? Spruce it up and show off those hard-working hands! spirit_hands replaces IRB with Pry, improves output through awesome_print, and has some other goodies up its sleeves."
17
+
18
+ gem.executables = `git ls-files -z -- bin/*`.split("\0")
19
+ .select { |f| File.executable?(f) }
20
+ .map{ |f| File.basename(f) }
21
+ gem.files = `git ls-files -z`.split("\0")
22
+ gem.test_files = `git ls-files -z -- {test,spec,features}/*`.split("\0")
23
+
24
+ # Dependencies
25
+ gem.required_ruby_version = '>= 2.0'
26
+ gem.add_runtime_dependency 'pry', '~> 0.10'
27
+ gem.add_runtime_dependency 'pry-rails', '~> 0.3'
28
+ gem.add_runtime_dependency 'pry-doc', '~> 0.6'
29
+ gem.add_runtime_dependency 'pry-git', '~> 0.2'
30
+ gem.add_runtime_dependency 'pry-remote', '~> 0.1'
31
+ gem.add_runtime_dependency 'pry-byebug', '1.3.3'
32
+ gem.add_runtime_dependency 'hirb', '~> 0.7'
33
+ gem.add_runtime_dependency 'hirb-unicode-steakknife', '~> 0.0'
34
+ gem.add_runtime_dependency 'pry-coolline', '~> 0.2'
35
+ gem.add_runtime_dependency 'awesome_print', '~> 1.6'
36
+ end
37
+ .tap {|gem| pk = File.expand_path(File.join('~/.keys', 'gem-private_key.pem')); gem.signing_key = pk if File.exist? pk; gem.cert_chain = ['gem-public_cert.pem']} # pressed firmly by waxseal
data.tar.gz.sig ADDED
Binary file
metadata ADDED
@@ -0,0 +1,258 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: spirit_hands
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Barry Allard
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain:
11
+ - |
12
+ -----BEGIN CERTIFICATE-----
13
+ MIIFgDCCA2igAwIBAgIBATANBgkqhkiG9w0BAQUFADBDMRUwEwYDVQQDDAxiYXJy
14
+ eS5hbGxhcmQxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGC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J5LmFsbGFyZEBnbWFpbC5jb20wIQYDVR0SBBowGIEWYmFycnku
31
+ YWxsYXJkQGdtYWlsLmNvbTANBgkqhkiG9w0BAQUFAAOCAgEAiE2W4tGDNitT+iVA
32
+ kxshcdPkIp5vO4eWi9c1ccxuW/BdJU4fW5A9Fh2v0gfmQ1A4G8OuTdMyJXK+hmGl
33
+ dc7LOeBID5h/bAfEBi1zNJoW7XootEA9iksnt8BPd4ugKXmlypMfMNX8vYBIDLjk
34
+ Qvqzr3+iNr3WGVvLBAOc/PoZA2CncAcruNdEAYgLrw5N8GjpQ8mwxsSReCd6jVsW
35
+ tjuLCf8vMH5kkkaU99/wMMhEGKG1BsjvlXoMo9Wqh59z3ec/oW7TUmO5GOP2qkKt
36
+ 2je0Z2HKawn2HBANU7sRuvqa6jfJED5v++iAnXVkFcJxfNbQB48/Nvsx9PZtxfKF
37
+ Yys6dceHu5nceqUpkpTeBCto9CN6heUdFRqWQKQX8Mc/MhO91EHVfpHq8LBu6ZHY
38
+ /lQ0Pqu2tdnZ7/xQ9D419DZmiT1PPgT45WIDqcc4zEvAHtPhuG97IbXYXSaHgKxT
39
+ EIiCOfhftUXnq+QdbegXYLy4N89PSa0FjJfVMi6kTgl4IBrAMuwXhpDptGZ6RUJm
40
+ bOWXoekmbZsc6hZ5qpmp+f/xyHQo70vBav8R8uqecU88WBfFtRkru9akvxHgiLwl
41
+ TE/ChTQStrIVMKgW+FbU3E6AmrM6HcwTi7mwsDM8S36y2NZ5DVaZPCpvkiTDgPSW
42
+ t/HWh1yhriCUe/y8+De8M87btOs=
43
+ -----END CERTIFICATE-----
44
+ date: 2015-05-28 00:00:00.000000000 Z
45
+ dependencies:
46
+ - !ruby/object:Gem::Dependency
47
+ name: pry
48
+ requirement: !ruby/object:Gem::Requirement
49
+ requirements:
50
+ - - "~>"
51
+ - !ruby/object:Gem::Version
52
+ version: '0.10'
53
+ type: :runtime
54
+ prerelease: false
55
+ version_requirements: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - "~>"
58
+ - !ruby/object:Gem::Version
59
+ version: '0.10'
60
+ - !ruby/object:Gem::Dependency
61
+ name: pry-rails
62
+ requirement: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ - - "~>"
65
+ - !ruby/object:Gem::Version
66
+ version: '0.3'
67
+ type: :runtime
68
+ prerelease: false
69
+ version_requirements: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - "~>"
72
+ - !ruby/object:Gem::Version
73
+ version: '0.3'
74
+ - !ruby/object:Gem::Dependency
75
+ name: pry-doc
76
+ requirement: !ruby/object:Gem::Requirement
77
+ requirements:
78
+ - - "~>"
79
+ - !ruby/object:Gem::Version
80
+ version: '0.6'
81
+ type: :runtime
82
+ prerelease: false
83
+ version_requirements: !ruby/object:Gem::Requirement
84
+ requirements:
85
+ - - "~>"
86
+ - !ruby/object:Gem::Version
87
+ version: '0.6'
88
+ - !ruby/object:Gem::Dependency
89
+ name: pry-git
90
+ requirement: !ruby/object:Gem::Requirement
91
+ requirements:
92
+ - - "~>"
93
+ - !ruby/object:Gem::Version
94
+ version: '0.2'
95
+ type: :runtime
96
+ prerelease: false
97
+ version_requirements: !ruby/object:Gem::Requirement
98
+ requirements:
99
+ - - "~>"
100
+ - !ruby/object:Gem::Version
101
+ version: '0.2'
102
+ - !ruby/object:Gem::Dependency
103
+ name: pry-remote
104
+ requirement: !ruby/object:Gem::Requirement
105
+ requirements:
106
+ - - "~>"
107
+ - !ruby/object:Gem::Version
108
+ version: '0.1'
109
+ type: :runtime
110
+ prerelease: false
111
+ version_requirements: !ruby/object:Gem::Requirement
112
+ requirements:
113
+ - - "~>"
114
+ - !ruby/object:Gem::Version
115
+ version: '0.1'
116
+ - !ruby/object:Gem::Dependency
117
+ name: pry-byebug
118
+ requirement: !ruby/object:Gem::Requirement
119
+ requirements:
120
+ - - '='
121
+ - !ruby/object:Gem::Version
122
+ version: 1.3.3
123
+ type: :runtime
124
+ prerelease: false
125
+ version_requirements: !ruby/object:Gem::Requirement
126
+ requirements:
127
+ - - '='
128
+ - !ruby/object:Gem::Version
129
+ version: 1.3.3
130
+ - !ruby/object:Gem::Dependency
131
+ name: hirb
132
+ requirement: !ruby/object:Gem::Requirement
133
+ requirements:
134
+ - - "~>"
135
+ - !ruby/object:Gem::Version
136
+ version: '0.7'
137
+ type: :runtime
138
+ prerelease: false
139
+ version_requirements: !ruby/object:Gem::Requirement
140
+ requirements:
141
+ - - "~>"
142
+ - !ruby/object:Gem::Version
143
+ version: '0.7'
144
+ - !ruby/object:Gem::Dependency
145
+ name: hirb-unicode-steakknife
146
+ requirement: !ruby/object:Gem::Requirement
147
+ requirements:
148
+ - - "~>"
149
+ - !ruby/object:Gem::Version
150
+ version: '0.0'
151
+ type: :runtime
152
+ prerelease: false
153
+ version_requirements: !ruby/object:Gem::Requirement
154
+ requirements:
155
+ - - "~>"
156
+ - !ruby/object:Gem::Version
157
+ version: '0.0'
158
+ - !ruby/object:Gem::Dependency
159
+ name: pry-coolline
160
+ requirement: !ruby/object:Gem::Requirement
161
+ requirements:
162
+ - - "~>"
163
+ - !ruby/object:Gem::Version
164
+ version: '0.2'
165
+ type: :runtime
166
+ prerelease: false
167
+ version_requirements: !ruby/object:Gem::Requirement
168
+ requirements:
169
+ - - "~>"
170
+ - !ruby/object:Gem::Version
171
+ version: '0.2'
172
+ - !ruby/object:Gem::Dependency
173
+ name: awesome_print
174
+ requirement: !ruby/object:Gem::Requirement
175
+ requirements:
176
+ - - "~>"
177
+ - !ruby/object:Gem::Version
178
+ version: '1.6'
179
+ type: :runtime
180
+ prerelease: false
181
+ version_requirements: !ruby/object:Gem::Requirement
182
+ requirements:
183
+ - - "~>"
184
+ - !ruby/object:Gem::Version
185
+ version: '1.6'
186
+ description: Spending hours in the rails console? Spruce it up and show off those
187
+ hard-working hands! spirit_hands replaces IRB with Pry, improves output through
188
+ awesome_print, and has some other goodies up its sleeves.
189
+ email: barry.allard@gmail.com
190
+ executables: []
191
+ extensions: []
192
+ extra_rdoc_files: []
193
+ files:
194
+ - ".gitignore"
195
+ - ".hound.yml"
196
+ - ".pryrc"
197
+ - ".rubocop.yml"
198
+ - ".ruby-gemset"
199
+ - CHANGELOG.md
200
+ - CONTRIBUTING.md
201
+ - CONTRIBUTORS.md
202
+ - Gemfile
203
+ - LICENSE.md
204
+ - README.md
205
+ - Rakefile
206
+ - gem-public_cert.pem
207
+ - lib/spirit_hands.rb
208
+ - lib/spirit_hands/hirb.rb
209
+ - lib/spirit_hands/hirb/fixes.rb
210
+ - lib/spirit_hands/hirb/fixes/enabled.rb
211
+ - lib/spirit_hands/hirb/fixes/pager.rb
212
+ - lib/spirit_hands/hirb/fixes/util.rb
213
+ - lib/spirit_hands/hirb/fixes/view.rb
214
+ - lib/spirit_hands/load_plugins.rb
215
+ - lib/spirit_hands/mattr_accessor_with_default.rb
216
+ - lib/spirit_hands/melody.rb
217
+ - lib/spirit_hands/options.rb
218
+ - lib/spirit_hands/options/color.rb
219
+ - lib/spirit_hands/options/hirb.rb
220
+ - lib/spirit_hands/options/less.rb
221
+ - lib/spirit_hands/options/less/colorize.rb
222
+ - lib/spirit_hands/options/less/show_raw_unicode.rb
223
+ - lib/spirit_hands/plugin.rb
224
+ - lib/spirit_hands/print.rb
225
+ - lib/spirit_hands/prompt.rb
226
+ - lib/spirit_hands/prompt/base.rb
227
+ - lib/spirit_hands/prompt/main.rb
228
+ - lib/spirit_hands/prompt/multiline.rb
229
+ - lib/spirit_hands/railtie.rb
230
+ - lib/spirit_hands/terminal.rb
231
+ - lib/spirit_hands/version.rb
232
+ - spirit_hands.gemspec
233
+ homepage: https://github.com/steakknife/spirit_hands
234
+ licenses:
235
+ - MIT
236
+ metadata: {}
237
+ post_install_message:
238
+ rdoc_options: []
239
+ require_paths:
240
+ - lib
241
+ required_ruby_version: !ruby/object:Gem::Requirement
242
+ requirements:
243
+ - - ">="
244
+ - !ruby/object:Gem::Version
245
+ version: '2.0'
246
+ required_rubygems_version: !ruby/object:Gem::Requirement
247
+ requirements:
248
+ - - ">="
249
+ - !ruby/object:Gem::Version
250
+ version: '0'
251
+ requirements: []
252
+ rubyforge_project:
253
+ rubygems_version: 2.4.5
254
+ signing_key:
255
+ specification_version: 4
256
+ summary: Exercise those fingers. Pry-based enhancements for the default Rails console.
257
+ test_files: []
258
+ has_rdoc:
metadata.gz.sig ADDED
Binary file