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 +4 -4
- data/bin/_rsense.rb +3 -2
- data/lib/rsense/server/load_path.rb +1 -0
- data/lib/rsense/server/version.rb +1 -1
- data/spec/fixtures/sample.json +2 -2
- data/spec/rsense/server/options_spec.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8853834011f804c195a4d330d68632a2b326dd52
|
4
|
+
data.tar.gz: 401d58075daa63b83b702e2b7baf8887b4df0772
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1ae43ef6e1c566feffadee7883532dac8db808abecec482156067b2509c7185bee805652c65e6b3873e833b905f8b383639c9619431ec898d054224abf12f31
|
7
|
+
data.tar.gz: db7b83c149fd8beae9a905a1269601507912da488f52499ff5be04efacd46d4a9daf3891af90412cdb9e819f6fdcf0fa56360a1b3853eaf0683bf13506eab229
|
data/bin/_rsense.rb
CHANGED
@@ -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
|
-
|
37
|
+
options[:path] = Pathname.new(Dir.pwd).expand_path
|
38
|
+
conf.set_up(options[:path])
|
38
39
|
end
|
39
40
|
conf
|
40
41
|
end
|
data/spec/fixtures/sample.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"command": "code_completion",
|
3
|
-
"project": "
|
4
|
-
"file": "
|
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(/
|
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(/
|
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.
|
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-
|
12
|
+
date: 2014-07-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rsense-core
|