spirit_fingers 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +12 -6
- data/lib/spirit_fingers/railtie.rb +15 -0
- data/lib/spirit_fingers/version.rb +1 -1
- data/lib/spirit_fingers.rb +2 -5
- data/spirit_fingers.gemspec +1 -0
- metadata +16 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fe12da1c62757a00480dae076f1cebc420d73d13
|
4
|
+
data.tar.gz: 143da9a6e9edc454c9084b4da5fccaa66387b31b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 783d2b67c9f5a418df86904948a49890c86139ac35b81680e3bfaf9e261d0f8e72535d2a6416388526a74557be83aee12465181493cce38a7e3ebf5dc9f75d1f
|
7
|
+
data.tar.gz: 985ef280994a2f79fc5133433f7731d72e1ada92ccb414db7a242b8911292999be6a9c89bd576d2646c9e095ec360a61b198dcc312e019c46618df714d331c6f
|
data/README.md
CHANGED
@@ -34,7 +34,8 @@ Or install it yourself as:
|
|
34
34
|
## Useful ~/.pryc Config
|
35
35
|
Adding the following to your ~/.pryc will set some nice default configurations for the plugin:
|
36
36
|
|
37
|
-
```
|
37
|
+
```ruby
|
38
|
+
# pry-clipboard configuration
|
38
39
|
begin
|
39
40
|
require 'pry-clipboard'
|
40
41
|
# aliases
|
@@ -44,10 +45,15 @@ rescue LoadError => e
|
|
44
45
|
warn "can't load pry-clipboard"
|
45
46
|
end
|
46
47
|
|
48
|
+
# awesome_print configuration
|
47
49
|
begin
|
48
|
-
require "awesome_print"
|
49
|
-
# User awesome print by default
|
50
|
-
AwesomePrint.pry!
|
50
|
+
require "awesome_print"
|
51
|
+
# User awesome print by default
|
52
|
+
AwesomePrint.pry!
|
53
|
+
AwesomePrint.defaults = { indent: 2 }
|
54
|
+
rescue LoadError => e
|
55
|
+
warn "can't load awesome_print"
|
56
|
+
end
|
51
57
|
|
52
58
|
if defined?(PryByebug)
|
53
59
|
Pry.commands.alias_command 'c', 'continue'
|
@@ -58,14 +64,14 @@ end
|
|
58
64
|
|
59
65
|
# Hit Enter to repeat last command
|
60
66
|
Pry::Commands.command /^$/, "repeat last command" do
|
61
|
-
|
67
|
+
_pry_.run_command Pry.history.to_a.last
|
62
68
|
end
|
63
69
|
|
64
70
|
```
|
65
71
|
|
66
72
|
## Contributing
|
67
73
|
|
68
|
-
1. Fork it ( https://github.com/
|
74
|
+
1. Fork it ( https://github.com/natsumi/spirit_fingers/fork )
|
69
75
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
70
76
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
71
77
|
4. Push to the branch (`git push origin my-new-feature`)
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'pry'
|
2
|
+
require 'pry-rails'
|
3
|
+
require 'pry-doc'
|
4
|
+
require 'pry-stack_explorer'
|
5
|
+
require 'pry-byebug'
|
6
|
+
require 'pry-coolline'
|
7
|
+
require 'pry-rescue'
|
8
|
+
require 'pry-clipboard'
|
9
|
+
require 'hirb'
|
10
|
+
require 'awesome_print'
|
11
|
+
|
12
|
+
module SpiritFingers
|
13
|
+
class Railtie < Rails::Railtie
|
14
|
+
end
|
15
|
+
end
|
data/lib/spirit_fingers.rb
CHANGED
data/spirit_fingers.gemspec
CHANGED
@@ -22,6 +22,7 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.add_development_dependency 'rake', '~> 10.0'
|
23
23
|
|
24
24
|
spec.required_ruby_version = '>= 2.0.0'
|
25
|
+
spec.add_runtime_dependency 'railties', '>= 4.0'
|
25
26
|
spec.add_runtime_dependency 'pry', '~> 0.10.1'
|
26
27
|
spec.add_runtime_dependency 'pry-rails', '~> 0.3.2'
|
27
28
|
spec.add_runtime_dependency 'pry-doc', '~> 0.6.0'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spirit_fingers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ariya Seng
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: railties
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '4.0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '4.0'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: pry
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -191,6 +205,7 @@ files:
|
|
191
205
|
- README.md
|
192
206
|
- Rakefile
|
193
207
|
- lib/spirit_fingers.rb
|
208
|
+
- lib/spirit_fingers/railtie.rb
|
194
209
|
- lib/spirit_fingers/version.rb
|
195
210
|
- spirit_fingers.gemspec
|
196
211
|
homepage: https://github.com/natsumi/spirit_fingers
|