bond 0.5.0-java → 0.5.1-java

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: f68182f9114f917c9cd6098120ed34b0f9b68e8e
4
- data.tar.gz: ee75371d0bbf02a3f85aca6b622af46b28b6e4b1
3
+ metadata.gz: e370f1a2b1c854dabbe795bfe0a9a147d4f258c5
4
+ data.tar.gz: 44ef252b4d7a0b78e1fcb80c9abb36cf89bb77cb
5
5
  SHA512:
6
- metadata.gz: 40cbd3f3b2d124a5cc5e19ec329c31046da8dfb5a366173c28e1bb0caa87268996f26569eafc4ada3d62664b5506871c8d200947a26dbe336b9f72959cc32d7d
7
- data.tar.gz: 2defc9c261d8acda82e8c6b3063de0def7e066105cc6536b35456a72b724ef44fbf58b384f4e9f01f916331fb3328649a69634b2497b51e1481e580ff26abacd
6
+ metadata.gz: 6d70a39f7ac8539d049e0c61185724862fadd23b46060b53f750b74b6cd50cb7279632675551fdfce5df2d518416e6efbe3f3263f4a80143c90ad115afa6a59c
7
+ data.tar.gz: e51919e8e459c6f7d71e297f4d3b70d23d81ab32b6ce8fc28fa72c4d36763973e0a7d106a0e07d7088d40eb367e0d4dd0ad0f7fdc4b2754f1d577f46c3f73bdd
@@ -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: java
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
@@ -82,14 +82,6 @@ extra_rdoc_files:
82
82
  - README.rdoc
83
83
  - LICENSE.txt
84
84
  files:
85
- - ".gemspec"
86
- - ".travis.yml"
87
- - CHANGELOG.rdoc
88
- - CONTRIBUTING.md
89
- - LICENSE.txt
90
- - README.rdoc
91
- - Rakefile
92
- - lib/bond.rb
93
85
  - lib/bond/agent.rb
94
86
  - lib/bond/completion.rb
95
87
  - lib/bond/completions/activerecord.rb
@@ -115,6 +107,7 @@ files:
115
107
  - lib/bond/readlines/ruby.rb
116
108
  - lib/bond/search.rb
117
109
  - lib/bond/version.rb
110
+ - lib/bond.rb
118
111
  - test/agent_test.rb
119
112
  - test/anywhere_mission_test.rb
120
113
  - test/bond_test.rb
@@ -127,29 +120,36 @@ files:
127
120
  - test/operator_method_mission_test.rb
128
121
  - test/search_test.rb
129
122
  - test/test_helper.rb
123
+ - LICENSE.txt
124
+ - CHANGELOG.rdoc
125
+ - README.rdoc
126
+ - CONTRIBUTING.md
127
+ - Rakefile
128
+ - .gemspec
129
+ - .travis.yml
130
130
  homepage: http://tagaholic.me/bond/
131
131
  licenses:
132
132
  - MIT
133
133
  metadata: {}
134
134
  post_install_message:
135
135
  rdoc_options:
136
- - "--title"
137
- - Bond 0.5.0 Documentation
136
+ - --title
137
+ - Bond 0.5.1 Documentation
138
138
  require_paths:
139
139
  - lib
140
140
  required_ruby_version: !ruby/object:Gem::Requirement
141
141
  requirements:
142
- - - ">="
142
+ - - '>='
143
143
  - !ruby/object:Gem::Version
144
144
  version: '0'
145
145
  required_rubygems_version: !ruby/object:Gem::Requirement
146
146
  requirements:
147
- - - ">="
147
+ - - '>='
148
148
  - !ruby/object:Gem::Version
149
149
  version: 1.3.6
150
150
  requirements: []
151
151
  rubyforge_project:
152
- rubygems_version: 2.2.0
152
+ rubygems_version: 2.0.0
153
153
  signing_key:
154
154
  specification_version: 4
155
155
  summary: 'Mission: Easy custom autocompletion for arguments, methods and beyond. Accomplished