pry-remote-auto 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 0ef57cc14d0be4f2b259265f6d81c6ac62ce9378
4
+ data.tar.gz: e73d0a1d0687c3041f4f235f5a53e137421533c3
5
+ SHA512:
6
+ metadata.gz: 63c58bc1e6ebd29e72a4a9c6674764709cef081ff4e300bc3555741c488910141dff6074e85905fb502ff81c25bf81bb78e5f479be79d103f595a5daf437595f
7
+ data.tar.gz: 9e1bfccbd9fa9f8758771834db4b967a30f9ac4d9b3ad2eb85b2a7f3f6a87b2363a822d9f5a14b7c77264f27325168036a8a10341d9c9fd75010eaaae15ec441
@@ -15,8 +15,18 @@ require "pry-remote"
15
15
  class Object
16
16
  def remote_pry_with_auto_launch(*args)
17
17
  Thread.start do
18
+ cmd = if defined?(Rails)
19
+ rc = "cd #{Rails.root};"
20
+ rc += "bundle exec " if File.exist?(Rails.root.join('Gemfile'))
21
+ rc
22
+ end
23
+
24
+ cmd ||= ""
25
+ cmd += "pry-remote"
26
+
18
27
  sleep 1
19
- system 'osascript', '-e', 'tell application "Terminal" to do script "pry-remote"'
28
+ system 'osascript', '-e', 'tell application "Terminal" to do script "' + cmd + '"'
29
+ system 'osascript', '-e', 'tell application "Terminal" to activate'
20
30
  end
21
31
  remote_pry_without_auto_launch(*args)
22
32
  end
@@ -12,7 +12,7 @@ Gem::Specification.new do |gem|
12
12
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
13
13
  gem.name = "pry-remote-auto"
14
14
  gem.require_paths = ["lib"]
15
- gem.version = '1.1.0'
15
+ gem.version = '1.2.0'
16
16
 
17
17
  gem.add_runtime_dependency 'pry-remote'
18
18
  end
metadata CHANGED
@@ -1,27 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pry-remote-auto
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
5
- prerelease:
4
+ version: 1.2.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - jugyo
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-05-14 00:00:00.000000000Z
11
+ date: 2013-04-12 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: pry-remote
16
- requirement: &70126855377240 !ruby/object:Gem::Requirement
17
- none: false
15
+ requirement: !ruby/object:Gem::Requirement
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :runtime
23
21
  prerelease: false
24
- version_requirements: *70126855377240
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
25
27
  description: Open the Terminal and run pry-remote automatically
26
28
  email:
27
29
  - kkohno@gmail.com
@@ -38,26 +40,25 @@ files:
38
40
  - pry-remote-auto.gemspec
39
41
  homepage: https://github.com/jugyo/pry-remote-auto
40
42
  licenses: []
43
+ metadata: {}
41
44
  post_install_message:
42
45
  rdoc_options: []
43
46
  require_paths:
44
47
  - lib
45
48
  required_ruby_version: !ruby/object:Gem::Requirement
46
- none: false
47
49
  requirements:
48
- - - ! '>='
50
+ - - '>='
49
51
  - !ruby/object:Gem::Version
50
52
  version: '0'
51
53
  required_rubygems_version: !ruby/object:Gem::Requirement
52
- none: false
53
54
  requirements:
54
- - - ! '>='
55
+ - - '>='
55
56
  - !ruby/object:Gem::Version
56
57
  version: '0'
57
58
  requirements: []
58
59
  rubyforge_project:
59
- rubygems_version: 1.8.10
60
+ rubygems_version: 2.0.3
60
61
  signing_key:
61
- specification_version: 3
62
+ specification_version: 4
62
63
  summary: The pry-remote improveemnt to open the Terminal and run pry-remote automatically
63
64
  test_files: []