vedeu 0.6.15 → 0.6.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +2 -60
- data/config/rubocop_enabled.yml +6 -1023
- data/docs/events/refresh.md +6 -2
- data/docs/events/visibility.md +8 -3
- data/lib/vedeu.rb +4 -3
- data/lib/vedeu/all.rb +3 -2
- data/lib/vedeu/api/external.rb +6 -6
- data/lib/vedeu/bindings/bindings.rb +3 -3
- data/lib/vedeu/bindings/movement.rb +4 -4
- data/lib/vedeu/bindings/refresh.rb +9 -9
- data/lib/vedeu/bindings/visibility.rb +10 -12
- data/lib/vedeu/buffers/buffer.rb +1 -1
- data/lib/vedeu/buffers/refresh.rb +1 -1
- data/lib/vedeu/colours/repository.rb +1 -0
- data/lib/vedeu/colours/translator.rb +2 -6
- data/lib/vedeu/common.rb +2 -1
- data/lib/vedeu/configuration/api.rb +16 -7
- data/lib/vedeu/cursors/cursor.rb +12 -21
- data/lib/vedeu/cursors/refresh.rb +1 -1
- data/lib/vedeu/dsl/text.rb +21 -18
- data/lib/vedeu/dsl/use.rb +13 -11
- data/lib/vedeu/dsl/view.rb +52 -46
- data/lib/vedeu/editor/cursor.rb +2 -2
- data/lib/vedeu/editor/insert.rb +2 -6
- data/lib/vedeu/editor/line.rb +3 -8
- data/lib/vedeu/editor/lines.rb +1 -12
- data/lib/vedeu/events/event.rb +52 -43
- data/lib/vedeu/events/trigger.rb +7 -15
- data/lib/vedeu/geometry/generic_coordinate.rb +4 -12
- data/lib/vedeu/geometry/geometry.rb +1 -1
- data/lib/vedeu/input/translator.rb +50 -31
- data/lib/vedeu/models/focus.rb +33 -22
- data/lib/vedeu/models/group.rb +8 -7
- data/lib/vedeu/models/interface.rb +6 -10
- data/lib/vedeu/models/toggleable.rb +6 -9
- data/lib/vedeu/models/views/char.rb +24 -30
- data/lib/vedeu/models/views/html_char.rb +0 -33
- data/lib/vedeu/models/views/stream.rb +8 -7
- data/lib/vedeu/models/views/view.rb +9 -9
- data/lib/vedeu/options.rb +1 -1
- data/lib/vedeu/output/clear/all.rb +13 -0
- data/lib/vedeu/output/clear/{named_group.rb → group.rb} +4 -7
- data/lib/vedeu/output/clear/{named_interface.rb → interface.rb} +4 -7
- data/lib/vedeu/output/direct.rb +2 -2
- data/lib/vedeu/output/presentation/presentation.rb +10 -7
- data/lib/vedeu/output/renderers/all.rb +9 -4
- data/lib/vedeu/output/renderers/escape_sequence.rb +1 -1
- data/lib/vedeu/output/renderers/file.rb +1 -1
- data/lib/vedeu/output/renderers/null.rb +1 -1
- data/lib/vedeu/output/renderers/{renderer_options.rb → options.rb} +2 -2
- data/lib/vedeu/output/renderers/terminal.rb +1 -1
- data/lib/vedeu/output/renderers/text.rb +1 -1
- data/lib/vedeu/output/text.rb +4 -8
- data/lib/vedeu/output/viewport.rb +2 -6
- data/lib/vedeu/output/wordwrap.rb +2 -6
- data/lib/vedeu/repositories/repository.rb +9 -22
- data/lib/vedeu/runtime/application.rb +2 -6
- data/lib/vedeu/templating/view_template.rb +7 -15
- data/lib/vedeu/version.rb +1 -1
- data/test/lib/vedeu/bindings/bindings_test.rb +32 -6
- data/test/lib/vedeu/bindings/refresh_test.rb +1 -0
- data/test/lib/vedeu/bindings/visibility_test.rb +1 -0
- data/test/lib/vedeu/buffers/buffer_test.rb +2 -2
- data/test/lib/vedeu/colours/background_test.rb +0 -18
- data/test/lib/vedeu/colours/foreground_test.rb +0 -18
- data/test/lib/vedeu/cursors/refresh_test.rb +5 -3
- data/test/lib/vedeu/events/aliases_test.rb +0 -6
- data/test/lib/vedeu/models/views/view_test.rb +1 -1
- data/test/lib/vedeu/output/clear/{named_group_test.rb → group_test.rb} +5 -5
- data/test/lib/vedeu/output/clear/{named_interface_test.rb → interface_test.rb} +4 -4
- data/test/lib/vedeu/output/renderers/{renderer_options_test.rb → options_test.rb} +2 -2
- data/vedeu.gemspec +1 -1
- metadata +14 -14
- data/config/rubocop_disabled.yml +0 -50
data/config/rubocop_disabled.yml
DELETED
@@ -1,50 +0,0 @@
|
|
1
|
-
# These are all the cops that are disabled in the default configuration.
|
2
|
-
|
3
|
-
Style/AutoResourceCleanup:
|
4
|
-
Description: 'Suggests the usage of an auto resource cleanup version of a method (if available).'
|
5
|
-
Enabled: false
|
6
|
-
|
7
|
-
Style/CollectionMethods:
|
8
|
-
Description: 'Preferred collection methods.'
|
9
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#map-find-select-reduce-size'
|
10
|
-
Enabled: false
|
11
|
-
|
12
|
-
Style/Encoding:
|
13
|
-
Description: 'Use UTF-8 as the source file encoding.'
|
14
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#utf-8'
|
15
|
-
Enabled: false
|
16
|
-
|
17
|
-
Style/InlineComment:
|
18
|
-
Description: 'Avoid inline comments.'
|
19
|
-
Enabled: false
|
20
|
-
|
21
|
-
Style/MethodCalledOnDoEndBlock:
|
22
|
-
Description: 'Avoid chaining a method call on a do...end block.'
|
23
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#single-line-blocks'
|
24
|
-
Enabled: false
|
25
|
-
|
26
|
-
Style/MissingElse:
|
27
|
-
Description: >-
|
28
|
-
Require if/case expressions to have an else branches.
|
29
|
-
If enabled, it is recommended that
|
30
|
-
Style/UnlessElse and Style/EmptyElse be enabled.
|
31
|
-
This will conflict with Style/EmptyElse if
|
32
|
-
Style/EmptyElse is configured to style "both"
|
33
|
-
Enabled: false
|
34
|
-
EnforcedStyle: both
|
35
|
-
SupportedStyles:
|
36
|
-
# if - warn when an if expression is missing an else branch
|
37
|
-
# case - warn when a case expression is misisng an else branch
|
38
|
-
# both - warn when an if or case expression is missing an else branch
|
39
|
-
- if
|
40
|
-
- case
|
41
|
-
- both
|
42
|
-
|
43
|
-
Style/SymbolArray:
|
44
|
-
Description: 'Use %i or %I for arrays of symbols.'
|
45
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-i'
|
46
|
-
Enabled: false
|
47
|
-
|
48
|
-
Style/ExtraSpacing:
|
49
|
-
Description: 'Do not use unnecessary spacing.'
|
50
|
-
Enabled: false
|