the_shocker 0.1.0

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 80d51ceae5567db0533320bb907540329124f086
4
+ data.tar.gz: 739f07e2fe55b1dd255b9867366268d3db9ebae0
5
+ SHA512:
6
+ metadata.gz: caeb0801f497e67309a9ce42fe65438a432b8fa1da294034e4771c8b5ede8bafa3bca27dc9821eaa026e039b6e1b1a8722a174a03c21433bedde81a201448a9c
7
+ data.tar.gz: 6608e4ed932298d717fdeb1084c32a28361b650e34f4a9d69be8caeb4c19ef837ee20c3f40503240dc1cb1b8e962acf4ea72716d5727a4f23e66f295a3f364b0
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2016 Long Huynh
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,78 @@
1
+ # The Shocker
2
+
3
+ A collection of Pry add-ons for Rails, based on Spirit Fingers with updated dependencies.
4
+
5
+ | Add On | Description
6
+ ----------| -----------
7
+ [**pry**](https://github.com/pry/pry) | Pry is a powerful alternative to the standard IRB shell for Ruby.
8
+ [**pry-doc**](https://github.com/pry/pry-doc) | Provides extended documentation support for Pry.
9
+ [**pry-rails**](https://github.com/rweng/pry-rails) | This is a small gem which causes rails console to open pry.
10
+ [**pry-stack_explorer**](https://github.com/pry/pry-stack_explorer) | Enables the user to navigate the call-stack.
11
+ [**pry-byebug**](https://github.com/deivid-rodriguez/pry-byebug) | Adds step, next, finish and continue commands and breakpoints to Pry using byebug.
12
+ [**pry-coolline**](https://github.com/pry/pry-coolline) | The pry-coolline plugin provides live syntax highlighting for the Pry REPL for Ruby 1.9.2+ (MRI).
13
+ [**pry-rescue**](https://github.com/ConradIrwin/pry-rescue) | Pry-rescue is an implementation of "break on unhandled exception" for Ruby. Whenever an exception is raised, but not rescued, pry-rescue will automatically open Pry for you:
14
+ [**pry-clipboard**](https://github.com/hotchpotch/pry-clipboard) | Copy history/result to clipboard.
15
+ [**hirb**](https://github.com/cldwalker/hirb) | Given an object or array of objects, hirb renders a view based on the object's class and/or ancestry.
16
+ [**awesome_print**](https://github.com/michaeldv/awesome_print) | Awesome Print is a Ruby library that pretty prints Ruby objects in full color exposing their internal structure with proper indentation.
17
+
18
+ ## Installation
19
+
20
+ Add this line to your application's Gemfile:
21
+
22
+ ```ruby
23
+ gem 'the_shocker', :group => :development
24
+ ```
25
+
26
+ And then execute:
27
+
28
+ $ bundle install
29
+
30
+ Or install it yourself as:
31
+
32
+ $ gem install the_shocker
33
+
34
+ ## Useful ~/.pryc Config
35
+ Adding the following to your ~/.pryc will set some nice default configurations for the plugin:
36
+
37
+ ```ruby
38
+ # pry-clipboard configuration
39
+ begin
40
+ require 'pry-clipboard'
41
+ # aliases
42
+ Pry.config.commands.alias_command 'ch', 'copy-history'
43
+ Pry.config.commands.alias_command 'cr', 'copy-result'
44
+ rescue LoadError => e
45
+ warn "can't load pry-clipboard"
46
+ end
47
+
48
+ # awesome_print configuration
49
+ begin
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
57
+
58
+ if defined?(PryByebug)
59
+ Pry.commands.alias_command 'c', 'continue'
60
+ Pry.commands.alias_command 's', 'step'
61
+ Pry.commands.alias_command 'n', 'next'
62
+ Pry.commands.alias_command 'f', 'finish'
63
+ end
64
+
65
+ # Hit Enter to repeat last command
66
+ Pry::Commands.command /^$/, "repeat last command" do
67
+ _pry_.run_command Pry.history.to_a.last
68
+ end
69
+
70
+ ```
71
+
72
+ ## Contributing
73
+
74
+ 1. Fork it (https://github.com/longh957/the_shocker)
75
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
76
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
77
+ 4. Push to the branch (`git push origin my-new-feature`)
78
+ 5. Create a new Pull Request
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require 'bundle/gem_tasks'
@@ -0,0 +1,15 @@
1
+ require 'pry'
2
+ require 'pry-rails'
3
+ require 'pry-stack_explorer'
4
+ require 'pry-doc'
5
+ require 'pry-coolline'
6
+ require 'pry-byebug'
7
+ require 'pry-rescue'
8
+ require 'pry-clipboard'
9
+ require 'awesome_print'
10
+ require 'hirb'
11
+
12
+ module TheShocker
13
+ class Railtie < Rails::Railtie
14
+ end
15
+ end
@@ -0,0 +1,3 @@
1
+ module TheShocker
2
+ VERSION = '0.1.0'
3
+ end
@@ -0,0 +1,2 @@
1
+ require 'the_shocker/version'
2
+ require 'the_shocker/railtie' if defined? Rails
@@ -0,0 +1,35 @@
1
+ lib = File.expand_path('../lib', __FILE__)
2
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include? lib
3
+ require 'the_shocker/version'
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = 'the_shocker'
7
+ spec.version = TheShocker::VERSION
8
+ spec.authors = ['Long Huynh']
9
+ spec.email = ['long@longkhuynh.com']
10
+ spec.summary = 'A collections of pry add-ons for Rails development'
11
+ spec.description = 'A collections of pry add-ons for Rails development'
12
+ spec.homepage = 'https://github.com/longh957/the_shocker.git'
13
+ spec.license = 'MIT'
14
+
15
+ spec.files = `git ls-files -z`.split("\x0")
16
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
17
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
+ spec.require_paths = ['lib']
19
+
20
+ spec.add_development_dependency 'bundler', '~> 1.12'
21
+ spec.add_development_dependency 'rake', '~> 11.2'
22
+
23
+ spec.required_ruby_version = '>= 2.2.0'
24
+ spec.add_runtime_dependency 'railties', '~> 4.2'
25
+ spec.add_runtime_dependency 'pry', '~> 0.10'
26
+ spec.add_runtime_dependency 'pry-rails', '~> 0.3'
27
+ spec.add_runtime_dependency 'pry-doc', '~> 0.8'
28
+ spec.add_runtime_dependency 'pry-stack_explorer', '~> 0.4.9'
29
+ spec.add_runtime_dependency 'pry-byebug', '~> 3.4'
30
+ spec.add_runtime_dependency 'pry-coolline', '~> 0.2'
31
+ spec.add_runtime_dependency 'pry-rescue', '~> 1.4'
32
+ spec.add_runtime_dependency 'pry-clipboard', '~> 0.1'
33
+ spec.add_runtime_dependency 'hirb', '~> 0.7'
34
+ spec.add_runtime_dependency 'awesome_print', '~> 1.7'
35
+ end
metadata ADDED
@@ -0,0 +1,235 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: the_shocker
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Long Huynh
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-06-15 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.12'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.12'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '11.2'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '11.2'
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.2'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '4.2'
55
+ - !ruby/object:Gem::Dependency
56
+ name: pry
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '0.10'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '0.10'
69
+ - !ruby/object:Gem::Dependency
70
+ name: pry-rails
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '0.3'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '0.3'
83
+ - !ruby/object:Gem::Dependency
84
+ name: pry-doc
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '0.8'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '0.8'
97
+ - !ruby/object:Gem::Dependency
98
+ name: pry-stack_explorer
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: 0.4.9
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: 0.4.9
111
+ - !ruby/object:Gem::Dependency
112
+ name: pry-byebug
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '3.4'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '3.4'
125
+ - !ruby/object:Gem::Dependency
126
+ name: pry-coolline
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: '0.2'
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: '0.2'
139
+ - !ruby/object:Gem::Dependency
140
+ name: pry-rescue
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: '1.4'
146
+ type: :runtime
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: '1.4'
153
+ - !ruby/object:Gem::Dependency
154
+ name: pry-clipboard
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: '0.1'
160
+ type: :runtime
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "~>"
165
+ - !ruby/object:Gem::Version
166
+ version: '0.1'
167
+ - !ruby/object:Gem::Dependency
168
+ name: hirb
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - "~>"
172
+ - !ruby/object:Gem::Version
173
+ version: '0.7'
174
+ type: :runtime
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - "~>"
179
+ - !ruby/object:Gem::Version
180
+ version: '0.7'
181
+ - !ruby/object:Gem::Dependency
182
+ name: awesome_print
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - "~>"
186
+ - !ruby/object:Gem::Version
187
+ version: '1.7'
188
+ type: :runtime
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - "~>"
193
+ - !ruby/object:Gem::Version
194
+ version: '1.7'
195
+ description: A collections of pry add-ons for Rails development
196
+ email:
197
+ - long@longkhuynh.com
198
+ executables: []
199
+ extensions: []
200
+ extra_rdoc_files: []
201
+ files:
202
+ - Gemfile
203
+ - LICENSE.txt
204
+ - README.md
205
+ - Rakefile
206
+ - lib/the_shocker.rb
207
+ - lib/the_shocker/railtie.rb
208
+ - lib/the_shocker/version.rb
209
+ - the_shocker.gemspec
210
+ homepage: https://github.com/longh957/the_shocker.git
211
+ licenses:
212
+ - MIT
213
+ metadata: {}
214
+ post_install_message:
215
+ rdoc_options: []
216
+ require_paths:
217
+ - lib
218
+ required_ruby_version: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - ">="
221
+ - !ruby/object:Gem::Version
222
+ version: 2.2.0
223
+ required_rubygems_version: !ruby/object:Gem::Requirement
224
+ requirements:
225
+ - - ">="
226
+ - !ruby/object:Gem::Version
227
+ version: '0'
228
+ requirements: []
229
+ rubyforge_project:
230
+ rubygems_version: 2.5.1
231
+ signing_key:
232
+ specification_version: 4
233
+ summary: A collections of pry add-ons for Rails development
234
+ test_files: []
235
+ has_rdoc: