rsense-server 0.5.14 → 0.5.15

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: ea182b6062d42fa28ce2ba4d34b75a3d307ce4e9
4
- data.tar.gz: dccda0540bcc4a683525ab6b9f166166b2316376
3
+ metadata.gz: 8853834011f804c195a4d330d68632a2b326dd52
4
+ data.tar.gz: 401d58075daa63b83b702e2b7baf8887b4df0772
5
5
  SHA512:
6
- metadata.gz: c7ebc99482aee64535ac04a90eb69ad5cd9420d066fef94b22948118d715596cc323dce3a57fecc4c1337b6952aebf38af571c35f9e886f9a8b7ef3eb3af4c12
7
- data.tar.gz: 944da85b054504a1b97e2419540142fe3db6eb412ebd4c1515e03267da6ae6e2bba4c11210ac1a0c38a646894f352029f43622b3146cf613818d02b690061aa9
6
+ metadata.gz: a1ae43ef6e1c566feffadee7883532dac8db808abecec482156067b2509c7185bee805652c65e6b3873e833b905f8b383639c9619431ec898d054224abf12f31
7
+ data.tar.gz: db7b83c149fd8beae9a905a1269601507912da488f52499ff5be04efacd46d4a9daf3891af90412cdb9e819f6fdcf0fa56360a1b3853eaf0683bf13506eab229
@@ -27,14 +27,15 @@ end.parse!
27
27
 
28
28
  def config(options)
29
29
  if options[:path]
30
- path = Pathname.new(options[:path]).expand_path
30
+ options[:path] = path = Pathname.new(options[:path]).expand_path
31
31
  end
32
32
  conf = Rsense::Server::Config.new
33
33
 
34
34
  if path && path.exist?
35
35
  conf.set_up(path)
36
36
  else
37
- conf.set_up(Pathname.new("~").expand_path)
37
+ options[:path] = Pathname.new(Dir.pwd).expand_path
38
+ conf.set_up(options[:path])
38
39
  end
39
40
  conf
40
41
  end
@@ -17,6 +17,7 @@ module Rsense
17
17
  end
18
18
 
19
19
  def dependencies(project)
20
+ @deps = []
20
21
  @gemfile = find_gemfile(project)
21
22
  if @gemfile
22
23
  start_dir = Dir.pwd
@@ -1,5 +1,5 @@
1
1
  module Rsense
2
2
  module Server
3
- VERSION = "0.5.14"
3
+ VERSION = "0.5.15"
4
4
  end
5
5
  end
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "command": "code_completion",
3
- "project": "~/code/rsense/rsense",
4
- "file": "~/code/rsense/rsense/lib/rsense.rb",
3
+ "project": "lib/rsense",
4
+ "file": "lib/rsense/server.rb",
5
5
  "code": "def check(testarg)\n testarg\nend\ncheck('hello')",
6
6
  "location": {
7
7
  "row": 2,
@@ -14,7 +14,7 @@ describe Rsense::Server::Options do
14
14
  end
15
15
 
16
16
  it "has a project path" do
17
- @options.project_path.to_s.must_match(/code/)
17
+ @options.project_path.to_s.must_match(/lib\/rsense/)
18
18
  @options.project_path.class.must_equal(Pathname)
19
19
  end
20
20
 
@@ -28,6 +28,6 @@ describe Rsense::Server::Options do
28
28
  end
29
29
 
30
30
  it "has a file" do
31
- @options.file.to_s.must_match(/rsense\.rb/)
31
+ @options.file.to_s.must_match(/server\.rb/)
32
32
  end
33
33
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rsense-server
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.14
4
+ version: 0.5.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric West
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-07-08 00:00:00.000000000 Z
12
+ date: 2014-07-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rsense-core