toolbus 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +28 -5
- data/lib/toolbus.rb +1 -1
- data/lib/utils.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 60545eb94d54323986cb38833a84bbcc442b44ee
|
4
|
+
data.tar.gz: a8cd31d4f3ab8e7c7eed581148946457535b1ca4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c68e4430201799205533260b55cfb71116b85513dc396dc09588e91d782d5cb16a6c029c6e4bfb5612a2f9215b2ab8e02d7fd754a2cc7ce3afea48aa89c12012
|
7
|
+
data.tar.gz: 2a1c6d982e6aa93909516ba1afae41002b8ad1d86b37f45a868a31597fd6b58b8d1f2ac817af5e183b330eeb04d19650f76e2f7746b873eb4021e4066cfc18e6
|
data/README.md
CHANGED
@@ -1,15 +1,38 @@
|
|
1
|
+
A Feature can take many forms.
|
2
|
+
|
3
|
+
["(", rails_uses_activesupport, "||" , rails_uses_jbuilder, ")", "&&", ember_uses_active_model_adapter]
|
4
|
+
|
5
|
+
{
|
6
|
+
parser: "ruby-2.1.2", // { "whitquark/parser", "gem", "2.2.0" } ?
|
7
|
+
glob: "app**/*.rb", // if no files match glob when CLI runs, ask if we're at the right root
|
8
|
+
find: "includes ActionController::ImplicitRender"
|
9
|
+
}
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
TRANSFORM each task object into { loc: [{ line_start: 1, line_end: 5 }, { line_start: 10, line_end: 10 }] } or { loc: [] } // could just be arrays
|
14
|
+
JOIN any "(", ")" "&&", "||", "true", "false" into a string
|
15
|
+
IF EVAL string
|
16
|
+
// how do i post a completion with multiple matches?
|
17
|
+
POST completions, with rule id, username, project id, line_start. eventually will also need a gist id.
|
18
|
+
|
19
|
+
|
20
|
+
|
1
21
|
Blueprint details
|
2
22
|
|
3
|
-
|
4
|
-
|
23
|
+
One reserved word:
|
24
|
+
ANYTHING.
|
5
25
|
|
6
|
-
|
7
|
-
|
8
|
-
|
26
|
+
Maybe others are necessary?
|
27
|
+
ANYTHING_MATCHING("?"). # will cast symbols and strings
|
28
|
+
CONDITION. a predicate method. will be tested against all children, considered true if it passes.
|
9
29
|
|
10
30
|
Todo:
|
11
31
|
|
12
32
|
* Write Toolbus#fetch_features.
|
33
|
+
* POST /completions correctly, and update the status message.
|
13
34
|
* Implement SyntaxTree.include?
|
14
35
|
* Test various SyntaxTree inclusions.
|
15
36
|
* Fill out README.
|
37
|
+
* Fix display bug when you invoke toolbus when {toolbus height} > {remaining console height}.
|
38
|
+
* Add JS support with https://github.com/babel/ruby-babel-transpiler
|
data/lib/toolbus.rb
CHANGED
@@ -47,7 +47,7 @@ class Toolbus
|
|
47
47
|
if match
|
48
48
|
feature = @features.find { |feature| feature['id'] == id }
|
49
49
|
feature['count'] += 1
|
50
|
-
statuses << "POST /completions: repo_url: #{repo_url}, feature_id: #{id},
|
50
|
+
statuses << "POST /completions: repo_url: #{repo_url}, feature_id: #{id}, filename: #{file}, first_line: #{match[:first_line]}, last_line: #{match[:last_line]}, commit: #{head_sha}"
|
51
51
|
end
|
52
52
|
|
53
53
|
percent_complete = (progress / num_steps) * 100
|
data/lib/utils.rb
CHANGED