rails_debug 1.0.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.
- data/Readme.markdown +15 -0
- data/init.rb +2 -0
- data/lib/rails_debug.rb +24 -0
- data/rails_debug.gemspec +12 -0
- metadata +49 -0
data/Readme.markdown
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
Rails debug
|
2
|
+
============
|
3
|
+
|
4
|
+
Simple gem that facilitates debugging of rails applications.
|
5
|
+
|
6
|
+
|
7
|
+
Installation
|
8
|
+
============
|
9
|
+
|
10
|
+
To install this gem, add it to your Gemfile
|
11
|
+
gem 'rails_debug'
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
Copyright (c) 2013 Tomislav Car, released under the MIT license
|
data/init.rb
ADDED
data/lib/rails_debug.rb
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
module RailsDebug
|
2
|
+
def r(obj)
|
3
|
+
raise obj.to_yaml
|
4
|
+
end
|
5
|
+
|
6
|
+
def rj(obj)
|
7
|
+
render :text => obj.to_yaml, :status => 500
|
8
|
+
return
|
9
|
+
end
|
10
|
+
|
11
|
+
def not_blank?
|
12
|
+
! self.blank?
|
13
|
+
end
|
14
|
+
|
15
|
+
def not_nil?
|
16
|
+
! self.nil?
|
17
|
+
end
|
18
|
+
|
19
|
+
# shortcut for ruby-debug, script/server must be started with "--debugger" option
|
20
|
+
def d
|
21
|
+
debugger
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
data/rails_debug.gemspec
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
Gem::Specification.new do |s|
|
2
|
+
s.name = 'rails_debug'
|
3
|
+
s.version = '1.0.0'
|
4
|
+
s.date = '2013-02-24'
|
5
|
+
s.summary = "Simple methods for debugging rails applications"
|
6
|
+
s.description = "Some simple methods to help with debugging of rails applications"
|
7
|
+
s.authors = ["Tomislav Car"]
|
8
|
+
s.email = ["tomislav@infinum.hr"]
|
9
|
+
s.homepage = 'https://github.com/infinum/rails_debug'
|
10
|
+
|
11
|
+
s.files = `git ls-files`.split("\n")
|
12
|
+
end
|
metadata
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rails_debug
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Tomislav Car
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2013-02-24 00:00:00.000000000 Z
|
13
|
+
dependencies: []
|
14
|
+
description: Some simple methods to help with debugging of rails applications
|
15
|
+
email:
|
16
|
+
- tomislav@infinum.hr
|
17
|
+
executables: []
|
18
|
+
extensions: []
|
19
|
+
extra_rdoc_files: []
|
20
|
+
files:
|
21
|
+
- Readme.markdown
|
22
|
+
- init.rb
|
23
|
+
- lib/rails_debug.rb
|
24
|
+
- rails_debug.gemspec
|
25
|
+
homepage: https://github.com/infinum/rails_debug
|
26
|
+
licenses: []
|
27
|
+
post_install_message:
|
28
|
+
rdoc_options: []
|
29
|
+
require_paths:
|
30
|
+
- lib
|
31
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
32
|
+
none: false
|
33
|
+
requirements:
|
34
|
+
- - ! '>='
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: '0'
|
37
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
38
|
+
none: false
|
39
|
+
requirements:
|
40
|
+
- - ! '>='
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '0'
|
43
|
+
requirements: []
|
44
|
+
rubyforge_project:
|
45
|
+
rubygems_version: 1.8.23
|
46
|
+
signing_key:
|
47
|
+
specification_version: 3
|
48
|
+
summary: Simple methods for debugging rails applications
|
49
|
+
test_files: []
|