toolbus 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +2 -2
  3. data/lib/views.rb +3 -2
  4. metadata +17 -26
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: ccb5074de945b67aed0432df47ef97af1bc617c2
4
+ data.tar.gz: 7382c5bf096cd7c95877dc4b8de2057d14970895
5
+ SHA512:
6
+ metadata.gz: 9faa12082810aec85ed8ea661460670f7b0014590b7d42cb030625132088fb7a81578c31f1a498d8eab8580fcd469628fd350d529e0718a3302b69725b902464
7
+ data.tar.gz: 5c812313f3ff79779df19dd9650c5ad33112a250e7f1a36a3823be600445b7cdfcd8b539e7a209e0e3c197bf791888b84a9a226d95fb7e8915a69492f4e34de6
data/README.md CHANGED
@@ -9,7 +9,7 @@ Blueprint details
9
9
 
10
10
  Todo:
11
11
 
12
+ * Write Toolbus#fetch_features.
12
13
  * Implement SyntaxTree.include?
13
- * Fix StatusBoxView bug - the terminal line isn't clearing properly.
14
- * Fill out README.
15
14
  * Test various SyntaxTree inclusions.
15
+ * Fill out README.
data/lib/views.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # encoding: UTF-8
2
2
 
3
3
  module TerminalUtils
4
- SCREEN_WIDTH = [`tput cols`.to_i, 100].min
4
+ SCREEN_WIDTH = [`tput cols`.to_i, 130].min
5
5
  SAVE_CURSOR = `tput sc`
6
6
  RESTORE_CURSOR = `tput rc`
7
7
  ERASE_DISPLAY = `tput clear`
@@ -71,6 +71,7 @@ class StatusBoxView
71
71
  puts '-' * SCREEN_WIDTH
72
72
  puts
73
73
  num_lines = @statuses.length
74
- @statuses.last(8).fill(num_lines, 8 - num_lines) { '' }
74
+ lines = @statuses.last(8).fill(num_lines, 8 - num_lines) { '' }
75
+ lines.map { |line| line.truncate(SCREEN_WIDTH).ljust(SCREEN_WIDTH) }.join("\n")
75
76
  end
76
77
  end
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: toolbus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
5
- prerelease:
4
+ version: 0.1.3
6
5
  platform: ruby
7
6
  authors:
8
7
  - Jason Benn
@@ -14,65 +13,57 @@ dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: parser
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ~>
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
19
  version: '2.2'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ~>
24
+ - - "~>"
28
25
  - !ruby/object:Gem::Version
29
26
  version: '2.2'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: json_pure
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ~>
31
+ - - "~>"
36
32
  - !ruby/object:Gem::Version
37
33
  version: '1.8'
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ~>
38
+ - - "~>"
44
39
  - !ruby/object:Gem::Version
45
40
  version: '1.8'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: rspec
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ~>
45
+ - - "~>"
52
46
  - !ruby/object:Gem::Version
53
47
  version: '3.2'
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ~>
52
+ - - "~>"
60
53
  - !ruby/object:Gem::Version
61
54
  version: '3.2'
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: pry
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ~>
59
+ - - "~>"
68
60
  - !ruby/object:Gem::Version
69
61
  version: '0.10'
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ~>
66
+ - - "~>"
76
67
  - !ruby/object:Gem::Version
77
68
  version: '0.10'
78
69
  description: Scans and parses clean git repos, figures out how much of an API you've
@@ -83,40 +74,40 @@ executables:
83
74
  extensions: []
84
75
  extra_rdoc_files: []
85
76
  files:
77
+ - README.md
86
78
  - bin/toolbus
87
79
  - lib/toolbus.rb
88
80
  - lib/utils.rb
89
81
  - lib/views.rb
90
- - README.md
91
82
  - spec/fixture/sample.json
92
83
  - spec/spec_helper.rb
93
84
  - spec/toolbus_spec.rb
94
85
  homepage: http://www.jbenn.net
95
86
  licenses:
96
87
  - MIT
88
+ metadata: {}
97
89
  post_install_message:
98
90
  rdoc_options: []
99
91
  require_paths:
100
92
  - lib
101
93
  required_ruby_version: !ruby/object:Gem::Requirement
102
- none: false
103
94
  requirements:
104
- - - ! '>='
95
+ - - ">="
105
96
  - !ruby/object:Gem::Version
106
97
  version: '0'
107
98
  required_rubygems_version: !ruby/object:Gem::Requirement
108
- none: false
109
99
  requirements:
110
- - - ! '>='
100
+ - - ">="
111
101
  - !ruby/object:Gem::Version
112
102
  version: '0'
113
103
  requirements: []
114
104
  rubyforge_project:
115
- rubygems_version: 1.8.23
105
+ rubygems_version: 2.4.5
116
106
  signing_key:
117
- specification_version: 3
118
- summary: ! 'To learn a tool: build projects, measure your progress with Toolbus'
107
+ specification_version: 4
108
+ summary: 'To learn a tool: build projects, measure your progress with Toolbus'
119
109
  test_files:
120
110
  - spec/fixture/sample.json
121
111
  - spec/spec_helper.rb
122
112
  - spec/toolbus_spec.rb
113
+ has_rdoc: