pry-rails 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 293e3e4ff8735803adb6aa5c43a4ce6e4b53bbd9
4
- data.tar.gz: a99116c2b1e5636553ff3d1cf8ddd40f09386f47
3
+ metadata.gz: a0305d55aec048e6be191698ab148bab078139b2
4
+ data.tar.gz: 58c8deaa37ed83f87251cd03ba954249a38a24a7
5
5
  SHA512:
6
- metadata.gz: 02e7726c65f111b0bd1a8345ed8091fbe84720c18cb4ccdd938ce016debc94923ef64ba15cf4be622d17dcc4db46499948aa772139a537ab115d7f758b951cc9
7
- data.tar.gz: 9bf905c5f585c1a3fd1953d69991987bf35635691398eff87c13774d1ee5b8711062086c2289f213b71cd3064fe3f8d9d96d054b89708ae78e83e75dde4b0941
6
+ metadata.gz: 8af889acb91bb091cd9f8c375720d070418f7f2a5596dede8df28bd23a6977c2c284c9f966b40f067eefcdd7ee640ca2ef7e2c787b001c3e98ad726a813ad24b
7
+ data.tar.gz: 46707372f135a2c289f0d2c097d3062de5410cf6c18e1dc97c0afc1266ece9a79652b04e29730df8dfdf141f7f12d17375526cad90c5bb0363fd510453c45f68
data/Appraisals CHANGED
@@ -10,12 +10,31 @@ appraise "rails31" do
10
10
  end
11
11
 
12
12
  appraise "rails32" do
13
- gem "rails", "3.2.14"
13
+ gem "rails", "3.2.21"
14
14
  gem "mongoid"
15
15
  gem "sqlite3"
16
16
  end
17
17
 
18
- appraise "rails4" do
19
- gem "rails", "4.0.0"
18
+ appraise "rails40" do
19
+ gem "rails", "4.0.13"
20
+ gem "mongoid"
21
+ gem "sqlite3"
22
+ end
23
+
24
+ appraise "rails41" do
25
+ gem "rails", "4.1.9"
26
+ gem "mongoid"
27
+ gem "sqlite3"
28
+ end
29
+
30
+ appraise "rails42" do
31
+ gem "rails", "4.2.0"
32
+ gem "mongoid"
33
+ gem "sqlite3"
34
+ end
35
+
36
+ appraise "rails50" do
37
+ gem "rails", github: "rails/rails"
38
+ gem 'arel', github: "rails/arel"
20
39
  gem "sqlite3"
21
40
  end
data/Rakefile CHANGED
@@ -4,14 +4,6 @@ require "bundler/gem_tasks"
4
4
  require "rake/testtask"
5
5
  require "appraisal"
6
6
 
7
- if RUBY_VERSION =~ /^1.8/
8
- class Appraisal::File
9
- def path
10
- 'Appraisals-1.8'
11
- end
12
- end
13
- end
14
-
15
7
  Rake::TestTask.new do |t|
16
8
  t.libs.concat %w(pry-rails spec)
17
9
  t.pattern = "spec/*_spec.rb"
data/Readme.md CHANGED
@@ -77,15 +77,15 @@ irb(main):001:0>
77
77
 
78
78
  # Developing and Testing
79
79
 
80
- To generate Gemfiles for Rails 3.0, 3.1, 3.2, and 4.0, run
81
- `rake appraisal:gemfiles appraisal:install`.
80
+ To generate Gemfiles for Rails 3.0, 3.1, 3.2, 4.0, 4.1, and 4.2, run `rake
81
+ appraisal:gemfiles appraisal:install`.
82
82
 
83
- You can then run the tests across all four versions with `rake appraisal`.
84
- You can also manually run the Rails console and server with `rake
85
- appraisal console` and `rake appraisal server`.
83
+ You can then run the tests across all four versions with `rake appraisal`. You
84
+ can also manually run the Rails console and server with `rake appraisal
85
+ console` and `rake appraisal server`.
86
86
 
87
87
  For a specific version of Rails, use `rake appraisal:rails30`, `rake
88
- appraisal:rails31`, `rake appraisal:rails32`, or `rake appraisal:rails4`.
88
+ appraisal:rails31`, `rake appraisal:rails32`, etc.
89
89
 
90
90
  # Alternative
91
91
 
@@ -5,4 +5,4 @@ source "http://rubygems.org"
5
5
  gem "rails", "3.0.20"
6
6
  gem "sqlite3"
7
7
 
8
- gemspec :path=>"../"
8
+ gemspec :path => "../"
@@ -6,4 +6,4 @@ gem "rails", "3.1.12"
6
6
  gem "mongoid"
7
7
  gem "sqlite3"
8
8
 
9
- gemspec :path=>"../"
9
+ gemspec :path => "../"
@@ -2,8 +2,8 @@
2
2
 
3
3
  source "http://rubygems.org"
4
4
 
5
- gem "rails", "3.2.14"
5
+ gem "rails", "3.2.21"
6
6
  gem "mongoid"
7
7
  gem "sqlite3"
8
8
 
9
- gemspec :path=>"../"
9
+ gemspec :path => "../"
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "http://rubygems.org"
4
+
5
+ gem "rails", "4.0.13"
6
+ gem "mongoid"
7
+ gem "sqlite3"
8
+
9
+ gemspec :path => "../"
@@ -2,7 +2,8 @@
2
2
 
3
3
  source "http://rubygems.org"
4
4
 
5
- gem "rails", "4.0.0"
5
+ gem "rails", "4.1.9"
6
+ gem "mongoid"
6
7
  gem "sqlite3"
7
8
 
8
- gemspec :path=>"../"
9
+ gemspec :path => "../"
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "http://rubygems.org"
4
+
5
+ gem "rails", "4.2.0"
6
+ gem "mongoid"
7
+ gem "sqlite3"
8
+
9
+ gemspec :path => "../"
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "http://rubygems.org"
4
+
5
+ gem "rails", :github => "rails/rails"
6
+ gem "arel", :github => "rails/arel"
7
+ gem "sqlite3"
8
+
9
+ gemspec :path => "../"
@@ -0,0 +1,79 @@
1
+ class PryRails::FindRoute < Pry::ClassCommand
2
+ match 'find-route'
3
+ group 'Rails'
4
+ description 'See which URLs match a given Controller.'
5
+ command_options argument_required: true
6
+ banner <<-BANNER
7
+ Usage: find-route <controller>
8
+
9
+ Returns the URL(s) that match a given controller or controller action.
10
+
11
+ find-route MyController#show #=> The URL that matches the MyController show action
12
+ find-route MyController #=> All the URLs that hit MyController
13
+ find-route Admin #=> All the URLs that hit the Admin namespace
14
+ BANNER
15
+
16
+ def process(controller)
17
+ if single_action?(controller)
18
+ single_action(controller)
19
+ else
20
+ all_actions(controller)
21
+ end
22
+ end
23
+
24
+ private
25
+
26
+ def single_action(controller)
27
+ show_routes { |route| route.defaults == controller_and_action_from(controller) }
28
+ end
29
+
30
+ def all_actions(controller)
31
+ show_routes do |route|
32
+ route.defaults[:controller].to_s.starts_with?(normalize_controller_name(controller))
33
+ end
34
+ end
35
+
36
+ def controller_and_action_from(controller_and_action)
37
+ controller, action = controller_and_action.split("#")
38
+ {controller: normalize_controller_name(controller), action: action}
39
+ end
40
+
41
+ def routes
42
+ Rails.application.routes.routes
43
+ end
44
+
45
+ def normalize_controller_name(controller)
46
+ controller.underscore.chomp('_controller')
47
+ end
48
+
49
+ def show_routes(&block)
50
+ all_routes = routes.select(&block)
51
+ if all_routes.any?
52
+ grouped_routes = all_routes.group_by { |route| route.defaults[:controller] }
53
+ result = grouped_routes.each_with_object("") do |(controller, routes), result|
54
+ result << "Routes for " + text.bold(controller.camelize + "Controller") + "\n"
55
+ result << "--\n"
56
+ routes.each do |route|
57
+ spec = route.path.is_a?(String) ? route.path : route.path.spec
58
+ result << "#{route.defaults[:action]} #{text.bold(verb_for(route))} #{spec}" + "\n"
59
+ end
60
+ result << "\n"
61
+ end
62
+ stagger_output result
63
+ else
64
+ output.puts "No routes found."
65
+ end
66
+ end
67
+
68
+ def verb_for(route)
69
+ %w(GET PUT POST PATCH DELETE).find { |v| route.verb === v }
70
+ end
71
+
72
+ def single_action?(controller)
73
+ controller =~ /#/
74
+ end
75
+
76
+ PryRails::Commands.add_command(self)
77
+ end
78
+
79
+ PryRails::Commands.alias_command "find-routes", "find-route"
@@ -1,28 +1,27 @@
1
- # encoding: UTF-8
1
+ class PryRails::RecognizePath < Pry::ClassCommand
2
+ match 'recognize-path'
3
+ group 'Rails'
4
+ description 'See which route matches a URL.'
5
+ command_options argument_required: true
6
+ banner <<-BANNER
7
+ Usage: recognize-path <path> [-m|--method METHOD]
2
8
 
3
- PryRails::Commands.create_command "recognize-path" do
4
- group "Rails"
5
- description "See which route matches a URL."
9
+ Verifies that a given path is mapped to the right controller and action.
6
10
 
7
- def options(opt)
8
- opt.banner unindent <<-USAGE
9
- Usage: recognize-path <path> [-m|--method METHOD]
10
-
11
- Verifies that a given path is mapped to the right controller and action.
12
-
13
- recognize-path example.com
14
- recognize-path example.com -m post
15
- USAGE
11
+ recognize-path example.com
12
+ recognize-path example.com -m post
13
+ BANNER
16
14
 
15
+ def options(opt)
17
16
  opt.on :m, :method, "Methods", :argument => true
18
17
  end
19
18
 
20
- def process
19
+ def process(path)
21
20
  method = (opts.m? ? opts[:m] : :get)
22
21
  routes = Rails.application.routes
23
22
 
24
23
  begin
25
- info = routes.recognize_path("http://#{args.first}", :method => method)
24
+ info = routes.recognize_path("http://#{path}", :method => method)
26
25
  rescue ActionController::UnknownHttpMethod
27
26
  output.puts "Unknown HTTP method: #{method}"
28
27
  rescue ActionController::RoutingError => e
@@ -31,4 +30,6 @@ PryRails::Commands.create_command "recognize-path" do
31
30
 
32
31
  output.puts Pry::Helpers::BaseHelpers.colorize_code(info)
33
32
  end
33
+
34
+ PryRails::Commands.add_command(self)
34
35
  end
@@ -1,20 +1,18 @@
1
- # encoding: UTF-8
1
+ class PryRails::ShowMiddleware < Pry::ClassCommand
2
+ match 'show-middleware'
3
+ group 'Rails'
4
+ description 'Show all middleware (that Rails knows about).'
5
+ banner <<-BANNER
6
+ Usage: show-middleware [-G]
2
7
 
3
- PryRails::Commands.create_command "show-middleware" do
4
- group "Rails"
5
- description "Show all middleware (that Rails knows about)."
8
+ show-middleware shows the Rails app's middleware.
6
9
 
7
- def options(opt)
8
- opt.banner unindent <<-USAGE
9
- Usage: show-middleware [-G]
10
-
11
- show-middleware shows the Rails app's middleware.
12
-
13
- If this pry REPL is attached to a Rails server, the entire middleware
14
- stack is displayed. Otherwise, only the middleware Rails knows about is
15
- printed.
16
- USAGE
10
+ If this pry REPL is attached to a Rails server, the entire middleware
11
+ stack is displayed. Otherwise, only the middleware Rails knows about is
12
+ printed.
13
+ BANNER
17
14
 
15
+ def options(opt)
18
16
  opt.on :G, "grep", "Filter output by regular expression", :argument => true
19
17
  end
20
18
 
@@ -64,4 +62,6 @@ PryRails::Commands.create_command "show-middleware" do
64
62
  output.puts string
65
63
  end
66
64
  end
65
+
66
+ PryRails::Commands.add_command(self)
67
67
  end
@@ -31,7 +31,7 @@ class PryRails::ShowModel < Pry::ClassCommand
31
31
  formatter = PryRails::ModelFormatter.new
32
32
 
33
33
  case
34
- when model < ActiveRecord::Base
34
+ when defined?(ActiveRecord::Base) && model < ActiveRecord::Base
35
35
  output.puts formatter.format_active_record(model)
36
36
  when defined?(Mongoid::Document) && model < Mongoid::Document
37
37
  output.puts formatter.format_mongoid(model)
@@ -44,7 +44,7 @@ class PryRails::ShowModels < Pry::ClassCommand
44
44
 
45
45
  begin
46
46
  is_model = o.class == Class && o.ancestors.include?(Mongoid::Document)
47
- rescue => e
47
+ rescue
48
48
  # If it's a weird object, it's not what we want anyway.
49
49
  end
50
50
 
@@ -1,16 +1,13 @@
1
- # encoding: UTF-8
2
-
3
- PryRails::Commands.create_command "show-routes" do
4
- group "Rails"
5
- description "Show all routes in match order."
1
+ class PryRails::ShowRoutes < Pry::ClassCommand
2
+ match 'show-routes'
3
+ group 'Rails'
4
+ description 'Show all routes in match order.'
5
+ banner <<-BANNER
6
+ Usage: show-routes [-G]
7
+ show-routes displays the current Rails app's routes.
8
+ BANNER
6
9
 
7
10
  def options(opt)
8
- opt.banner unindent <<-USAGE
9
- Usage: show-routes [-G]
10
-
11
- show-routes displays the current Rails app's routes.
12
- USAGE
13
-
14
11
  opt.on :G, "grep", "Filter output by regular expression", :argument => true
15
12
  end
16
13
 
@@ -19,8 +16,8 @@ PryRails::Commands.create_command "show-routes" do
19
16
  all_routes = Rails.application.routes.routes
20
17
 
21
18
  formatted = case Rails.version.to_s
22
- when /^4/
23
- process_rails_4(all_routes)
19
+ when /^[45]/
20
+ process_rails_4_and_5(all_routes)
24
21
  when /^3\.2/
25
22
  process_rails_3_2(all_routes)
26
23
  else
@@ -57,8 +54,10 @@ PryRails::Commands.create_command "show-routes" do
57
54
  Rails::Application::RouteInspector.new.format(all_routes)
58
55
  end
59
56
 
60
- def process_rails_4(all_routes)
57
+ def process_rails_4_and_5(all_routes)
61
58
  require 'action_dispatch/routing/inspector'
62
59
  ActionDispatch::Routing::RoutesInspector.new(all_routes).format(ActionDispatch::Routing::ConsoleFormatter.new).split(/\n/)
63
60
  end
61
+
62
+ PryRails::Commands.add_command(self)
64
63
  end
@@ -25,6 +25,14 @@ module PryRails
25
25
  options << "through #{text.blue ":#{reflection.options[:through]}"}"
26
26
  end
27
27
 
28
+ if reflection.options[:class_name].present?
29
+ options << "class_name #{text.green ":#{reflection.options[:class_name]}"}"
30
+ end
31
+
32
+ if reflection.options[:foreign_key].present?
33
+ options << "foreign_key #{text.red ":#{reflection.options[:foreign_key]}"}"
34
+ end
35
+
28
36
  out.push format_association reflection.macro, other_model, options
29
37
  end
30
38
 
@@ -14,12 +14,12 @@ module PryRails
14
14
  end
15
15
  end
16
16
 
17
- if Rails::VERSION::MAJOR == 4
17
+ if Rails::VERSION::MAJOR == 4 || Rails::VERSION::MAJOR == 5
18
18
  Rails.application.config.console = Pry
19
19
  end
20
20
 
21
21
  if (Rails::VERSION::MAJOR == 3 && Rails::VERSION::MINOR >= 2) ||
22
- Rails::VERSION::MAJOR == 4
22
+ Rails::VERSION::MAJOR == 4 || Rails::VERSION::MAJOR == 5
23
23
  require "rails/console/app"
24
24
  require "rails/console/helpers"
25
25
  TOPLEVEL_BINDING.eval('self').extend ::Rails::ConsoleMethods
@@ -1,5 +1,5 @@
1
1
  # encoding: UTF-8
2
2
 
3
3
  module PryRails
4
- VERSION = "0.3.2"
4
+ VERSION = "0.3.3"
5
5
  end
@@ -22,5 +22,4 @@ Gem::Specification.new do |s|
22
22
  s.add_dependency "pry", ">= 0.9.10"
23
23
  s.add_development_dependency "appraisal"
24
24
  s.add_development_dependency "minitest"
25
- s.add_development_dependency "rr"
26
25
  end
@@ -75,5 +75,5 @@ begin
75
75
  field :name, :type => String
76
76
  embedded_in :artist
77
77
  end
78
- rescue LoadError # Mongoid doesn't support Rails 3.0 or 4.0 or Ruby 1.8
78
+ rescue LoadError # Mongoid doesn't support Rails 3.0
79
79
  end
@@ -1,4 +1,5 @@
1
1
  TestApp.routes.draw do
2
2
  resource :pokemon, :beer
3
+ get 'exit' => proc { exit! }
3
4
  get 'pry' => proc { binding.pry; [200, {}, ['']] }
4
5
  end
@@ -0,0 +1,44 @@
1
+ # encoding: UTF-8
2
+
3
+ require 'spec_helper'
4
+
5
+ describe "find-route" do
6
+ before do
7
+ routes = Rails.application.routes
8
+ routes.draw {
9
+ namespace :admin do
10
+ resources :users
11
+ resources :images
12
+ end
13
+ }
14
+ routes.finalize!
15
+ end
16
+
17
+ it 'returns the route for a single action' do
18
+ output = mock_pry('find-route Admin::UsersController#show', 'exit-all')
19
+ output.must_match /show GET/
20
+ output.wont_match /index GET/
21
+ end
22
+
23
+ it 'returns all the routes for a controller' do
24
+ output = mock_pry('find-route Admin::UsersController', 'exit-all')
25
+ output.must_match /index GET/
26
+ output.must_match /show GET/
27
+ output.must_match /new GET/
28
+ output.must_match /edit GET/
29
+ output.must_match /update (PATCH|PUT)/
30
+ output.must_match /update PUT/
31
+ output.must_match /destroy DELETE/
32
+ end
33
+
34
+ it 'returns all routes for controllers under a namespace' do
35
+ output = mock_pry('find-route Admin', 'exit-all')
36
+ output.must_match /Routes for Admin::UsersController/
37
+ output.must_match /Routes for Admin::ImagesController/
38
+ end
39
+
40
+ it 'returns no routes found when controller is not recognized' do
41
+ output = mock_pry('find-route Foo', 'exit-all')
42
+ output.must_match /No routes found/
43
+ end
44
+ end
@@ -5,9 +5,27 @@ require 'rails/commands/console'
5
5
 
6
6
  describe PryRails::Railtie do
7
7
  it 'should start Pry instead of IRB and make the helpers available' do
8
- mock(Pry).start
9
- Rails::Console.start(Rails.application)
10
- assert RR.verify
8
+ # Yes, I know this is horrible.
9
+ begin
10
+ $called_start = false
11
+ real_pry = Pry
12
+
13
+ silence_warnings do
14
+ ::Pry = Class.new do
15
+ def self.start(*)
16
+ $called_start = true
17
+ end
18
+ end
19
+ end
20
+
21
+ Rails::Console.start(Rails.application)
22
+
23
+ assert $called_start
24
+ ensure
25
+ silence_warnings do
26
+ ::Pry = real_pry
27
+ end
28
+ end
11
29
 
12
30
  %w(app helper reload!).each do |helper|
13
31
  TOPLEVEL_BINDING.eval("respond_to?(:#{helper}, true)").must_equal true
@@ -20,6 +20,12 @@ describe "recognize-path" do
20
20
  }
21
21
  end
22
22
 
23
+ it 'fails gracefully if no path is given' do
24
+ output = mock_pry('recognize-path', 'exit-all')
25
+ output.must_equal \
26
+ "Error: The command 'recognize-path' requires an argument.\n"
27
+ end
28
+
23
29
  it "prints info about controller/action that is bound to the given path" do
24
30
  output = mock_pry('recognize-path example.com', 'exit-all')
25
31
  output.must_match /controller.+foo/
@@ -6,7 +6,7 @@ describe "show-middleware" do
6
6
  it "should print a list of middleware" do
7
7
  output = mock_pry('show-middleware', 'exit-all')
8
8
 
9
- output.must_match %r{\Ause ActionDispatch::Static}
9
+ output.must_match %r{^use ActionDispatch::Static$}
10
10
  output.must_match %r{^use ActionDispatch::ShowExceptions$}
11
11
  output.must_match %r{^run TestApp.routes\Z}
12
12
  end
@@ -3,9 +3,6 @@
3
3
  require 'spec_helper'
4
4
 
5
5
  describe "show-models" do
6
- before { Pry.color = false }
7
- after { Pry.color = true }
8
-
9
6
  it "should print one ActiveRecord model" do
10
7
  output = mock_pry('show-model Beer', 'exit-all')
11
8
 
@@ -29,13 +26,14 @@ MODEL
29
26
 
30
27
  expected = <<MODEL
31
28
  Artist
32
- _id: Moped::BSON::ObjectId
29
+ _id: BSON::ObjectId
33
30
  name: String
34
31
  embeds_one :beer (validate)
35
32
  embeds_many :instruments (validate)
36
33
  MODEL
37
34
 
38
35
  output.gsub! /^ *_type: String\n/, '' # mongoid 3.0 and 3.1 differ on this
36
+ output.gsub! /Moped::BSON/, 'BSON' # mongoid 3 and 4 differ on this
39
37
  output.must_equal expected
40
38
  end
41
39
  end
@@ -4,7 +4,7 @@ require 'spec_helper'
4
4
 
5
5
  describe "show-models" do
6
6
  it "should print a list of models" do
7
- output = mock_pry('Pry.color = false;', 'show-models', 'exit-all')
7
+ output = mock_pry('show-models', 'exit-all')
8
8
 
9
9
  ar_models = <<MODELS
10
10
  Beer
@@ -32,18 +32,19 @@ MODELS
32
32
 
33
33
  mongoid_models = <<MODELS
34
34
  Artist
35
- _id: Moped::BSON::ObjectId
35
+ _id: BSON::ObjectId
36
36
  name: String
37
37
  embeds_one :beer (validate)
38
38
  embeds_many :instruments (validate)
39
39
  Instrument
40
- _id: Moped::BSON::ObjectId
40
+ _id: BSON::ObjectId
41
41
  name: String
42
42
  embedded_in :artist
43
43
  MODELS
44
44
 
45
45
  if defined?(Mongoid)
46
46
  output.gsub! /^ *_type: String\n/, '' # mongoid 3.0 and 3.1 differ on this
47
+ output.gsub! /Moped::BSON/, 'BSON' # mongoid 3 and 4 differ on this
47
48
  output.must_equal [ar_models, mongoid_models].join
48
49
  else
49
50
  output.must_equal ar_models
@@ -1,11 +1,4 @@
1
1
  require 'minitest/autorun'
2
-
3
- require 'rr'
4
-
5
- class MiniTest::Spec
6
- include RR::Adapters::RRMethods
7
- end
8
-
9
2
  require 'config/environment'
10
3
 
11
4
  # Pry testing stuff (taken from Pry itself)
metadata CHANGED
@@ -1,69 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pry-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robin Wenglewski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-25 00:00:00.000000000 Z
11
+ date: 2015-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: 0.9.10
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: 0.9.10
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: appraisal
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: minitest
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
- - !ruby/object:Gem::Dependency
56
- name: rr
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - '>='
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - '>='
52
+ - - ">="
67
53
  - !ruby/object:Gem::Version
68
54
  version: '0'
69
55
  description:
@@ -73,10 +59,8 @@ executables: []
73
59
  extensions: []
74
60
  extra_rdoc_files: []
75
61
  files:
76
- - .gitignore
77
- - .travis.yml
62
+ - ".gitignore"
78
63
  - Appraisals
79
- - Appraisals-1.8
80
64
  - Gemfile
81
65
  - LICENCE
82
66
  - Rakefile
@@ -84,9 +68,13 @@ files:
84
68
  - gemfiles/rails30.gemfile
85
69
  - gemfiles/rails31.gemfile
86
70
  - gemfiles/rails32.gemfile
87
- - gemfiles/rails4.gemfile
71
+ - gemfiles/rails40.gemfile
72
+ - gemfiles/rails41.gemfile
73
+ - gemfiles/rails42.gemfile
74
+ - gemfiles/rails50.gemfile
88
75
  - lib/pry-rails.rb
89
76
  - lib/pry-rails/commands.rb
77
+ - lib/pry-rails/commands/find_route.rb
90
78
  - lib/pry-rails/commands/recognize_path.rb
91
79
  - lib/pry-rails/commands/show_middleware.rb
92
80
  - lib/pry-rails/commands/show_model.rb
@@ -101,6 +89,7 @@ files:
101
89
  - spec/config/database.yml
102
90
  - spec/config/environment.rb
103
91
  - spec/config/routes.rb
92
+ - spec/find_route_spec.rb
104
93
  - spec/railtie_spec.rb
105
94
  - spec/recognize_path_spec.rb
106
95
  - spec/show_middleware_spec.rb
@@ -118,17 +107,17 @@ require_paths:
118
107
  - lib
119
108
  required_ruby_version: !ruby/object:Gem::Requirement
120
109
  requirements:
121
- - - '>='
110
+ - - ">="
122
111
  - !ruby/object:Gem::Version
123
112
  version: '0'
124
113
  required_rubygems_version: !ruby/object:Gem::Requirement
125
114
  requirements:
126
- - - '>='
115
+ - - ">="
127
116
  - !ruby/object:Gem::Version
128
117
  version: '0'
129
118
  requirements: []
130
119
  rubyforge_project:
131
- rubygems_version: 2.0.2
120
+ rubygems_version: 2.4.4
132
121
  signing_key:
133
122
  specification_version: 4
134
123
  summary: Use Pry as your rails console
@@ -137,6 +126,7 @@ test_files:
137
126
  - spec/config/database.yml
138
127
  - spec/config/environment.rb
139
128
  - spec/config/routes.rb
129
+ - spec/find_route_spec.rb
140
130
  - spec/railtie_spec.rb
141
131
  - spec/recognize_path_spec.rb
142
132
  - spec/show_middleware_spec.rb
@@ -1,16 +0,0 @@
1
- services: mongodb
2
- rvm:
3
- - 1.9.2
4
- - 1.9.3
5
- - 2.0.0
6
- gemfile:
7
- - gemfiles/rails30.gemfile
8
- - gemfiles/rails31.gemfile
9
- - gemfiles/rails32.gemfile
10
- - gemfiles/rails4.gemfile
11
- matrix:
12
- exclude:
13
- - rvm: 1.9.2
14
- gemfile: gemfiles/rails32.gemfile
15
- - rvm: 1.9.2
16
- gemfile: gemfiles/rails4.gemfile
@@ -1,14 +0,0 @@
1
- appraise "rails30" do
2
- gem "rails", "3.0.15"
3
- gem "sqlite3"
4
- end
5
-
6
- appraise "rails31" do
7
- gem "rails", "3.1.6"
8
- gem "sqlite3"
9
- end
10
-
11
- appraise "rails32" do
12
- gem "rails", "3.2.6"
13
- gem "sqlite3"
14
- end