reditor 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -15,3 +15,4 @@ spec/reports
15
15
  test/tmp
16
16
  test/version_tmp
17
17
  tmp
18
+ vendor/
data/README.md CHANGED
@@ -40,6 +40,12 @@ Or install it yourself as:
40
40
  $ reditor mechanize
41
41
  ```
42
42
 
43
+ ### Open a shell and move to the library.
44
+
45
+ ```
46
+ $ reditor sh mechanize
47
+ ```
48
+
43
49
  ## Contributing
44
50
 
45
51
  1. Fork it
data/lib/reditor.rb CHANGED
@@ -1,6 +1,20 @@
1
1
  require 'pathname'
2
2
  require 'rubygems'
3
3
 
4
+ def gemfile_found?
5
+ if File.exists? 'Gemfile'
6
+ true
7
+ elsif (Dir.getwd != '/')
8
+ Dir.chdir('..')
9
+ gemfile_found?
10
+ end
11
+ end
12
+
13
+ if (gemfile_found?)
14
+ require 'bundler'
15
+ Bundler.setup
16
+ end
17
+
4
18
  module Reditor
5
19
  class LibraryNotFound < LoadError; end
6
20
 
@@ -1,3 +1,3 @@
1
1
  module Reditor
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
data/reditor.gemspec CHANGED
@@ -15,5 +15,6 @@ Gem::Specification.new do |gem|
15
15
  gem.require_paths = ['lib']
16
16
  gem.version = Reditor::VERSION
17
17
 
18
- gem.add_runtime_dependency 'thor', '>= 0.14.6'
18
+ gem.add_runtime_dependency 'thor', '>= 0.14.6'
19
+ gem.add_runtime_dependency 'bundler', '>= 1.1.4'
19
20
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reditor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-02 00:00:00.000000000 Z
12
+ date: 2012-06-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor
16
- requirement: &70335295082260 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,28 @@ dependencies:
21
21
  version: 0.14.6
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70335295082260
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: 0.14.6
30
+ - !ruby/object:Gem::Dependency
31
+ name: bundler
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: 1.1.4
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: 1.1.4
25
46
  description: Open a ruby library by your editor
26
47
  email:
27
48
  - celluloid.key@gmail.com
@@ -52,21 +73,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
52
73
  - - ! '>='
53
74
  - !ruby/object:Gem::Version
54
75
  version: '0'
55
- segments:
56
- - 0
57
- hash: -3496555786174773731
58
76
  required_rubygems_version: !ruby/object:Gem::Requirement
59
77
  none: false
60
78
  requirements:
61
79
  - - ! '>='
62
80
  - !ruby/object:Gem::Version
63
81
  version: '0'
64
- segments:
65
- - 0
66
- hash: -3496555786174773731
67
82
  requirements: []
68
83
  rubyforge_project:
69
- rubygems_version: 1.8.11
84
+ rubygems_version: 1.8.23
70
85
  signing_key:
71
86
  specification_version: 3
72
87
  summary: Open a ruby library by your editor