bond 0.5.0 → 0.5.1

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: ca372e9b5f70dafcc3717d4f2cfffb886337f103
4
- data.tar.gz: 5f5b8a08dc31cf06fde145b1a3f33a94dbc63a56
3
+ metadata.gz: de9b7cd581f669bf9d60c770463040883d133fce
4
+ data.tar.gz: 4d0b580f56c5c88e37856d191f666abe67431ad1
5
5
  SHA512:
6
- metadata.gz: 93aac0d8a688aa129d86fe715777fbe94c1f7a6c86b3836f3a9a4b27e67f364e9ae3eefd263aad1afb4dfe86bd8b94d162db5aa97f0413f4d5b5976aa4e251b5
7
- data.tar.gz: 4b8175eadb23058e38ce55337e6487ea8f02caec18294834918ba932f175f0eab4aa687ef01891956da6291e1fd89dd69181e58027a794aad901c7509327eb2d
6
+ metadata.gz: abd0daef259152b2ee4a2fbb84c5901ed2fda506ee2e098d7e7da9d8e18a26194abaec754503aa3116dcf9b0cab74b01cc2e3a9e96f71089cff7758a58f23963
7
+ data.tar.gz: f525e5919de019cc854e43d1e00250542e3203ba8b9accab3b0cc3329ecddd4ace208387d5cd4ad9e3b0f1d03b75e67fc17f531ca7cac4750e8ed7f19f9ba6db
@@ -1,3 +1,6 @@
1
+ == 0.5.1
2
+ * Replace File#exists? with File#exist? for 2.1 deprecation
3
+
1
4
  == 0.5.0
2
5
  * Fixes to support latest rb-readline and jruby
3
6
 
@@ -224,6 +224,7 @@ has good instructions for reinstalling ruby with the official Readline.
224
224
  * headius and rking for jruby help
225
225
  * ConradIrwin for 2.0 and other fixes
226
226
  * tobias for a java version of the gem
227
+ * havenwood for 2.1 fixes
227
228
  * yui-knk, rev112 and dre-hh for bug fixes.
228
229
 
229
230
  == Bugs/Issues
@@ -82,7 +82,7 @@ module Bond
82
82
  # Returns nil if not found.
83
83
  def find_gem_file(rubygem, file)
84
84
  begin gem(rubygem); rescue Exception; end
85
- (dir = $:.find {|e| File.exists?(File.join(e, file)) }) && File.join(dir, file)
85
+ (dir = $:.find {|e| File.exist?(File.join(e, file)) }) && File.join(dir, file)
86
86
  end
87
87
 
88
88
  # Loads a completion file in Rc namespace.
@@ -94,7 +94,7 @@ module Bond
94
94
 
95
95
  # Loads completion files in given directory.
96
96
  def load_dir(base_dir)
97
- if File.exists?(dir = File.join(base_dir, 'completions'))
97
+ if File.exist?(dir = File.join(base_dir, 'completions'))
98
98
  Dir[dir + '/*.rb'].each {|file| load_file(file) }
99
99
  true
100
100
  end
@@ -129,7 +129,7 @@ module Bond
129
129
  def load_plugin_file(rubygem)
130
130
  namespace, file = rubygem.split(/\/|-/, 2)
131
131
  file += '.rb' unless file[/\.rb$/]
132
- if (dir = $:.find {|e| File.exists?(File.join(e, namespace, 'completions', file)) })
132
+ if (dir = $:.find {|e| File.exist?(File.join(e, namespace, 'completions', file)) })
133
133
  load_file File.join(dir, namespace, 'completions', file)
134
134
  true
135
135
  end
@@ -139,7 +139,7 @@ module Bond
139
139
  load_file File.join(File.dirname(__FILE__), 'completion.rb') unless config[:bare]
140
140
  load_dir File.dirname(__FILE__) unless config[:bare]
141
141
  load_gems *config[:gems] if config[:gems]
142
- load_file(File.join(home,'.bondrc')) if File.exists?(File.join(home, '.bondrc')) && !config[:bare]
142
+ load_file(File.join(home,'.bondrc')) if File.exist?(File.join(home, '.bondrc')) && !config[:bare]
143
143
  load_dir File.join(home, '.bond') unless config[:bare]
144
144
  end
145
145
  end
@@ -1,3 +1,3 @@
1
1
  module Bond
2
- VERSION = '0.5.0'
2
+ VERSION = '0.5.1'
3
3
  end
@@ -62,7 +62,7 @@ describe "Bond" do
62
62
 
63
63
  describe "start with :gems" do
64
64
  before {
65
- File.stubs(:exists?).returns(true)
65
+ File.stubs(:exist?).returns(true)
66
66
  M.stubs(:load_file)
67
67
  }
68
68
 
@@ -6,8 +6,8 @@ describe "M" do
6
6
  after { $:.pop }
7
7
 
8
8
  def mock_file_exists(file)
9
- File.expects(:exists?).at_least(1).returns(false).with {|e| e != file }
10
- File.expects(:exists?).times(1).returns(true).with {|e| e == file }
9
+ File.expects(:exist?).at_least(1).returns(false).with {|e| e != file }
10
+ File.expects(:exist?).times(1).returns(true).with {|e| e == file }
11
11
  end
12
12
 
13
13
  it "loads gem" do
metadata CHANGED
@@ -1,69 +1,69 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bond
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriel Horner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-02 00:00:00.000000000 Z
11
+ date: 2014-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bacon
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: 1.1.0
20
20
  type: :development
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: 1.1.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: mocha
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ~>
32
32
  - !ruby/object:Gem::Version
33
33
  version: 0.12.1
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.12.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: mocha-on-bacon
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ~>
46
46
  - !ruby/object:Gem::Version
47
47
  version: 0.2.1
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ~>
53
53
  - !ruby/object:Gem::Version
54
54
  version: 0.2.1
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: bacon-bits
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - '>='
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - '>='
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  description: Bond is on a mission to improve autocompletion in ruby, especially for
@@ -83,16 +83,6 @@ extra_rdoc_files:
83
83
  - README.rdoc
84
84
  - LICENSE.txt
85
85
  files:
86
- - ".gemspec"
87
- - ".travis.yml"
88
- - CHANGELOG.rdoc
89
- - CONTRIBUTING.md
90
- - LICENSE.txt
91
- - README.rdoc
92
- - Rakefile
93
- - ext/readline_line_buffer/extconf.rb
94
- - ext/readline_line_buffer/readline_line_buffer.c
95
- - lib/bond.rb
96
86
  - lib/bond/agent.rb
97
87
  - lib/bond/completion.rb
98
88
  - lib/bond/completions/activerecord.rb
@@ -118,6 +108,7 @@ files:
118
108
  - lib/bond/readlines/ruby.rb
119
109
  - lib/bond/search.rb
120
110
  - lib/bond/version.rb
111
+ - lib/bond.rb
121
112
  - test/agent_test.rb
122
113
  - test/anywhere_mission_test.rb
123
114
  - test/bond_test.rb
@@ -130,29 +121,38 @@ files:
130
121
  - test/operator_method_mission_test.rb
131
122
  - test/search_test.rb
132
123
  - test/test_helper.rb
124
+ - LICENSE.txt
125
+ - CHANGELOG.rdoc
126
+ - README.rdoc
127
+ - CONTRIBUTING.md
128
+ - Rakefile
129
+ - .gemspec
130
+ - .travis.yml
131
+ - ext/readline_line_buffer/extconf.rb
132
+ - ext/readline_line_buffer/readline_line_buffer.c
133
133
  homepage: http://tagaholic.me/bond/
134
134
  licenses:
135
135
  - MIT
136
136
  metadata: {}
137
137
  post_install_message:
138
138
  rdoc_options:
139
- - "--title"
140
- - Bond 0.5.0 Documentation
139
+ - --title
140
+ - Bond 0.5.1 Documentation
141
141
  require_paths:
142
142
  - lib
143
143
  required_ruby_version: !ruby/object:Gem::Requirement
144
144
  requirements:
145
- - - ">="
145
+ - - '>='
146
146
  - !ruby/object:Gem::Version
147
147
  version: '0'
148
148
  required_rubygems_version: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - ">="
150
+ - - '>='
151
151
  - !ruby/object:Gem::Version
152
152
  version: 1.3.6
153
153
  requirements: []
154
154
  rubyforge_project:
155
- rubygems_version: 2.2.0
155
+ rubygems_version: 2.0.0
156
156
  signing_key:
157
157
  specification_version: 4
158
158
  summary: 'Mission: Easy custom autocompletion for arguments, methods and beyond. Accomplished