toolbus 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +28 -5
  3. data/lib/toolbus.rb +1 -1
  4. data/lib/utils.rb +1 -1
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 06edf1245ee5e21a3eac3bc7ebcf8a906d794053
4
- data.tar.gz: 36da9d2ac09607b41bb8ef45e6080612321b2ab7
3
+ metadata.gz: 60545eb94d54323986cb38833a84bbcc442b44ee
4
+ data.tar.gz: a8cd31d4f3ab8e7c7eed581148946457535b1ca4
5
5
  SHA512:
6
- metadata.gz: 9f9f79ad3052b07d3e07405b8255da330fa1704a04cf5ad5c3d66055f9dab91cacaa83266934c15dc439be3bc640402fb2f26f0075cddd5c3b0d3bd446fa37a0
7
- data.tar.gz: 4e97e3acd1446a404dfd5b8c97b3165a5763bc65188159b64d015178fb804950910c73bfd7c9dad04db58ca80d2fd53fb2f5b04d8382990a32690a43278b353b
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
- # One reserved word:
4
- # ANYTHING.
23
+ One reserved word:
24
+ ANYTHING.
5
25
 
6
- # Maybe others are necessary?
7
- # ANYTHING_MATCHING("?"). # will cast symbols and strings
8
- # CONDITION. a predicate method. will be tested against all children, considered true if it passes.
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
@@ -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}, commit: ???, filename: #{file}, first_line: #{match[:first_line]}, last_line: #{match[:last_line]}"
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
@@ -20,7 +20,7 @@ module GitUtils
20
20
  end
21
21
 
22
22
  def latest_commit_online?
23
- `git log --oneline origin/master..HEAD`.length == 0
23
+ `git log --oneline $(git remote)/master...HEAD`.length == 0
24
24
  end
25
25
 
26
26
  def repo_url
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: toolbus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Benn