rails-console-pry 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +15 -2
- data/Rakefile +1 -0
- data/VERSION +1 -1
- data/bin/rails-console-pry +1 -5
- data/rails-console-pry.gemspec +4 -1
- metadata +14 -3
data/README.md
CHANGED
@@ -2,6 +2,18 @@
|
|
2
2
|
|
3
3
|
Run Rails 3 console using [pry][] without adding it to Gemfile.
|
4
4
|
|
5
|
+
If you want to add [pry][] in your Rails app Gemfile and replace the IRB in console, use [pry-rails][] instead.
|
6
|
+
|
7
|
+
## Installation ##
|
8
|
+
|
9
|
+
gem install rails-console-pry
|
10
|
+
|
11
|
+
And install some pry plugins:
|
12
|
+
|
13
|
+
gem install pry-doc awesome_print
|
14
|
+
|
15
|
+
## Usage ##
|
16
|
+
|
5
17
|
Use `-r` to add global gems before loading `Bundler`, e.g., run it in Rails root directory:
|
6
18
|
|
7
19
|
rails-console-pry -r pry-doc -r awesome_print
|
@@ -16,7 +28,7 @@ It is recommended to add an alias to load your favorite pry plugins:
|
|
16
28
|
|
17
29
|
alias rpry="rails-console-pry -r pry-doc -r awesome_print"
|
18
30
|
|
19
|
-
|
31
|
+
## Contributing to rails-console-pry ##
|
20
32
|
|
21
33
|
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
|
22
34
|
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
|
@@ -26,9 +38,10 @@ It is recommended to add an alias to load your favorite pry plugins:
|
|
26
38
|
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
|
27
39
|
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
|
28
40
|
|
29
|
-
|
41
|
+
## Copyright ##
|
30
42
|
|
31
43
|
Copyright (c) 2012 Ian Yang. See LICENSE.txt for
|
32
44
|
further details.
|
33
45
|
|
34
46
|
[pry]: http://pry.github.com/
|
47
|
+
[pry-rails]: https://github.com/rweng/pry-rails
|
data/Rakefile
CHANGED
@@ -14,6 +14,7 @@ Jeweler::Tasks.new do |gem|
|
|
14
14
|
gem.email = "me@iany.me"
|
15
15
|
gem.authors = ["Ian Yang"]
|
16
16
|
gem.add_runtime_dependency "pry", ">= 0"
|
17
|
+
gem.add_runtime_dependency "pry-rails", ">= 0"
|
17
18
|
gem.executables = ['rails-console-pry']
|
18
19
|
end
|
19
20
|
Jeweler::RubygemsDotOrgTasks.new
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.2
|
data/bin/rails-console-pry
CHANGED
@@ -27,11 +27,7 @@ ARGV.unshift "console"
|
|
27
27
|
APP_PATH = File.expand_path('config/application')
|
28
28
|
require APP_PATH
|
29
29
|
|
30
|
-
|
31
|
-
class Console
|
32
|
-
IRB = ::Pry
|
33
|
-
end
|
34
|
-
end
|
30
|
+
require 'pry-rails'
|
35
31
|
|
36
32
|
if ARGV.include?('-h') || ARGV.include?('--help')
|
37
33
|
at_exit do
|
data/rails-console-pry.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "rails-console-pry"
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Ian Yang"]
|
@@ -36,11 +36,14 @@ Gem::Specification.new do |s|
|
|
36
36
|
|
37
37
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
38
38
|
s.add_runtime_dependency(%q<pry>, [">= 0"])
|
39
|
+
s.add_runtime_dependency(%q<pry-rails>, [">= 0"])
|
39
40
|
else
|
40
41
|
s.add_dependency(%q<pry>, [">= 0"])
|
42
|
+
s.add_dependency(%q<pry-rails>, [">= 0"])
|
41
43
|
end
|
42
44
|
else
|
43
45
|
s.add_dependency(%q<pry>, [">= 0"])
|
46
|
+
s.add_dependency(%q<pry-rails>, [">= 0"])
|
44
47
|
end
|
45
48
|
end
|
46
49
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails-console-pry
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-04-08 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: pry
|
16
|
-
requirement: &
|
16
|
+
requirement: &7438880 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,18 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *7438880
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: pry-rails
|
27
|
+
requirement: &7459440 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
type: :runtime
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *7459440
|
25
36
|
description: run rails console using rails without adding it to Gemfile
|
26
37
|
email: me@iany.me
|
27
38
|
executables:
|