vedeu 0.6.54 → 0.6.56

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f9ec93e874a9c70bde34345200a2bb628af03e63
4
- data.tar.gz: 1a5e51d11cdbaff802b4169f4a6cd3f854a84898
3
+ metadata.gz: c92681933a1db2bfff9701b5eb7150bce03b6390
4
+ data.tar.gz: 3fbf5744728ed37c2557d0301a29bb82e4a255ae
5
5
  SHA512:
6
- metadata.gz: 43e8380fb175c457417c1fa586a0d0ae91d468118179d7965f2280544cfa0710858991de19c6cb34c14b192dd4959cb4da69fdaed462261b8011542cbf4629a9
7
- data.tar.gz: 8315f1aca1e347d7c0de04ba0be011d42e4f1000c835e09efdf2fceed71aa6eecb42511002c45f9714cd5023b257a2d7aef6d98d6aade1fd81b0bc2702b27430
6
+ metadata.gz: 3a558c37500d76ca3b937ed1e051e31d073d402f3ac84b8b95457676bc3ca96eaa7b21ff1c2dd5e16d194690494da767a144771edb199d24f6fa5752ef256201
7
+ data.tar.gz: 0f3d5c4c7decf8180d13c12911d54088090d72bcfd931b4fbb1a198b5ae1fb2dcb682d6dd74ea046f6f3b3649ba201f3f8fca953be62db00c0aa65efe3818e01
data/Guardfile CHANGED
@@ -1,4 +1,4 @@
1
- if ENV['RUBOCOP']
1
+ if ENV['RUBOCOP'] == 1
2
2
  guard :rubocop do
3
3
  watch(/.+\.rb$/)
4
4
  watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) }
data/Rakefile CHANGED
@@ -8,7 +8,7 @@ Rake::TestTask.new(:test) do |task|
8
8
  task.libs.push 'test'
9
9
  task.pattern = 'test/**/*_test.rb'
10
10
  task.verbose = false
11
- task.warning = true if ENV['WARNINGS']
11
+ task.warning = true if ENV['WARNINGS'] == 1
12
12
  end
13
13
 
14
14
  YARD::Rake::YardocTask.new(:yard) do |task|
@@ -51,7 +51,7 @@ RuboCop::RakeTask.new(:rubocop) do |task|
51
51
  end
52
52
 
53
53
  tasks_to_run = [:test]
54
- tasks_to_run << :rubocop if ENV['RUBOCOP']
55
- tasks_to_run << :yard if ENV['YARD']
54
+ tasks_to_run << :rubocop if ENV['RUBOCOP'] == 1
55
+ tasks_to_run << :yard if ENV['YARD'] == 1
56
56
 
57
57
  task default: tasks_to_run
@@ -121,6 +121,27 @@ class HorizontalAlignmentApp
121
121
 
122
122
  HorizontalAlignmentApp::CentreHorizontalAlignmentView.new.render
123
123
  }
124
+
125
+ key('1') {
126
+ Vedeu.trigger(:_maximise_, :left_interface)
127
+ }
128
+ key('2') {
129
+ Vedeu.trigger(:_unmaximise_, :left_interface)
130
+ }
131
+ key('3') {
132
+ Vedeu.trigger(:_maximise_, :centre_interface)
133
+ HorizontalAlignmentApp::CentreHorizontalAlignmentView.new.render
134
+ }
135
+ key('4') {
136
+ Vedeu.trigger(:_unmaximise_, :centre_interface)
137
+ HorizontalAlignmentApp::CentreHorizontalAlignmentView.new.render
138
+ }
139
+ key('5') {
140
+ Vedeu.trigger(:_maximise_, :right_interface)
141
+ }
142
+ key('6') {
143
+ Vedeu.trigger(:_unmaximise_, :right_interface)
144
+ }
124
145
  end
125
146
 
126
147
  Vedeu.render do
data/lib/vedeu/all.rb CHANGED
@@ -2,8 +2,7 @@ require 'vedeu/version'
2
2
 
3
3
  require 'vedeu/common'
4
4
  require 'vedeu/colours/all'
5
- require 'vedeu/configuration/api'
6
- require 'vedeu/configuration/configuration'
5
+ require 'vedeu/configuration/all'
7
6
  require 'vedeu/repositories/all'
8
7
  require 'vedeu/events/all'
9
8
  require 'vedeu/esc/all'
@@ -14,14 +13,7 @@ require 'vedeu/terminal/all'
14
13
 
15
14
  require 'vedeu/models/toggleable'
16
15
 
17
- require 'vedeu/output/compressor'
18
- require 'vedeu/output/text'
19
- require 'vedeu/output/output'
20
- require 'vedeu/output/viewport'
21
- require 'vedeu/output/wordwrap'
22
- require 'vedeu/output/presentation/all'
23
- require 'vedeu/output/refresh/refresh'
24
- require 'vedeu/output/renderers/all'
16
+ require 'vedeu/output/all'
25
17
 
26
18
  require 'vedeu/esc/all'
27
19
  require 'vedeu/null/all'
@@ -0,0 +1,26 @@
1
+ module Vedeu
2
+
3
+ # Namespace for configuration classes.
4
+ #
5
+ module Config
6
+
7
+ module_function
8
+
9
+ # Custom log for configuration.
10
+ #
11
+ # @param from [String] Which configuration set the options.
12
+ # @param options [Hash<Symbol => void>] The configuration options set.
13
+ # @return [Hash<Symbol => void>] The options param.
14
+ def log(from, options)
15
+ options.each do |option, value|
16
+ Vedeu.log(type: :config,
17
+ message: "#{from} #{option}: #{value}".freeze)
18
+ end
19
+ end
20
+
21
+ end
22
+
23
+ end # Vedeu
24
+
25
+ require 'vedeu/configuration/api'
26
+ require 'vedeu/configuration/configuration'
@@ -1,25 +1,5 @@
1
1
  module Vedeu
2
2
 
3
- # Namespace for configuration classes.
4
- #
5
- module Config
6
-
7
- module_function
8
-
9
- # Custom log for configuration.
10
- #
11
- # @param from [String] Which configuration set the options.
12
- # @param options [Hash<Symbol => void>] The configuration options set.
13
- # @return [Hash<Symbol => void>] The options param.
14
- def log(from, options)
15
- options.each do |option, value|
16
- Vedeu.log(type: :config,
17
- message: "#{from} #{option}: #{value}".freeze)
18
- end
19
- end
20
-
21
- end
22
-
23
3
  # Allows the customisation of Vedeu's behaviour through the
24
4
  # configuration API.
25
5
  #
@@ -0,0 +1,16 @@
1
+ module Vedeu
2
+
3
+ module Output
4
+
5
+ end # Output
6
+
7
+ end # Vedeu
8
+
9
+ require 'vedeu/output/compressor'
10
+ require 'vedeu/output/text'
11
+ require 'vedeu/output/output'
12
+ require 'vedeu/output/viewport'
13
+ require 'vedeu/output/wordwrap'
14
+ require 'vedeu/output/presentation/all'
15
+ require 'vedeu/output/refresh'
16
+ require 'vedeu/output/renderers/all'
@@ -62,7 +62,9 @@ module Vedeu
62
62
  out = ''
63
63
 
64
64
  content.each do |cell|
65
- out << position_for(cell)
65
+ # out << position_for(cell)
66
+
67
+ out << cell.position.to_s
66
68
  out << colour_for(cell)
67
69
  out << style_for(cell)
68
70
  out << cell.value
File without changes
@@ -175,9 +175,7 @@ module Vedeu
175
175
  Vedeu.bind(:_drb_retrieve_output_) { Vedeu::Terminal::Buffer.output }
176
176
 
177
177
  # See {file:docs/events/drb.md#\_drb_store_output_}
178
- Vedeu.bind(:_drb_store_output_) do |data|
179
- Vedeu::Terminal::Buffer.write(data)
180
- end
178
+ Vedeu.bind(:_drb_store_output_) { |data| Vedeu::Terminal::Buffer.write(data) }
181
179
 
182
180
  # :nocov:
183
181
 
data/lib/vedeu/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module Vedeu
2
2
 
3
3
  # The current version of Vedeu.
4
- VERSION = '0.6.54'.freeze
4
+ VERSION = '0.6.56'.freeze
5
5
 
6
6
  end
@@ -45,7 +45,8 @@ module Vedeu
45
45
  }
46
46
  it 'converts the non-Vedeu::Views::Char elements into String ' \
47
47
  'elements' do
48
- subject.must_equal("\e[1;1H\e[38;2;255;0;0mYes")
48
+ # subject.must_equal("\e[1;1H\e[38;2;255;0;0mYes")
49
+ subject.must_equal("\e[1;1H\e[38;2;255;0;0mY\e[1;2He\e[1;3Hs")
49
50
  end
50
51
  end
51
52
 
@@ -71,7 +72,8 @@ module Vedeu
71
72
  ])
72
73
  }
73
74
  it 'compresses multiple colours and styles where possible' do
74
- subject.must_equal("\e[1;1H\e[38;2;255;0;0mab\e[38;2;0;0;255mcd")
75
+ # subject.must_equal("\e[1;1H\e[38;2;255;0;0mab\e[38;2;0;0;255mcd")
76
+ subject.must_equal("\e[1;1H\e[38;2;255;0;0ma\e[1;2Hb\e[1;3H\e[38;2;0;0;255mc\e[1;4Hd")
75
77
  end
76
78
  end
77
79
 
@@ -86,7 +88,8 @@ module Vedeu
86
88
  }
87
89
  it 'converts the non-Vedeu::Views::Char elements into String ' \
88
90
  'elements' do
89
- subject.must_equal("\e[1;1HN\e[?25lt")
91
+ # subject.must_equal("\e[1;1HN\e[?25lt")
92
+ subject.must_equal("\e[1;1HN\e[1;1H\e[?25l\e[1;3Ht")
90
93
  end
91
94
  end
92
95
  end
data/test/test_helper.rb CHANGED
@@ -1,9 +1,9 @@
1
- if ENV['SIMPLECOV'] || ENV['CONSOLE_COVERAGE']
1
+ if ENV['SIMPLECOV'] == 1 || ENV['CONSOLE_COVERAGE'] == 1
2
2
  require 'simplecov'
3
- require 'simplecov-console' if ENV['CONSOLE_COVERAGE']
3
+ require 'simplecov-console' if ENV['CONSOLE_COVERAGE'] == 1
4
4
 
5
5
  SimpleCov.start do
6
- formatter SimpleCov::Formatter::Console if ENV['CONSOLE_COVERAGE']
6
+ formatter SimpleCov::Formatter::Console if ENV['CONSOLE_COVERAGE'] == 1
7
7
  command_name 'MiniTest::Spec'
8
8
  add_filter '/test/'
9
9
  add_group 'application', 'vedeu/application'
@@ -40,7 +40,7 @@ require 'minitest/pride'
40
40
  require 'minitest/hell'
41
41
 
42
42
  # Appears to remove ~20ms from test run speed.
43
- if ENV['DISABLE_GC']
43
+ if ENV['DISABLE_GC'] == 1
44
44
  GC.disable
45
45
  end
46
46
 
@@ -89,7 +89,7 @@ require 'mocha/setup'
89
89
  require 'vedeu'
90
90
  require 'support/helpers/model_test_class'
91
91
 
92
- if ENV['PERFORMANCE']
92
+ if ENV['PERFORMANCE'] == 1
93
93
  require 'minitest/reporters'
94
94
  require 'minitest/reporters/mean_time_reporter'
95
95
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vedeu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.54
4
+ version: 0.6.56
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gavin Laking
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-14 00:00:00.000000000 Z
11
+ date: 2015-11-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: guard
@@ -351,6 +351,7 @@ files:
351
351
  - lib/vedeu/colours/repository.rb
352
352
  - lib/vedeu/colours/translator.rb
353
353
  - lib/vedeu/common.rb
354
+ - lib/vedeu/configuration/all.rb
354
355
  - lib/vedeu/configuration/api.rb
355
356
  - lib/vedeu/configuration/configuration.rb
356
357
  - lib/vedeu/cursors/all.rb
@@ -477,6 +478,7 @@ files:
477
478
  - lib/vedeu/null/all.rb
478
479
  - lib/vedeu/null/generic.rb
479
480
  - lib/vedeu/null/view.rb
481
+ - lib/vedeu/output/all.rb
480
482
  - lib/vedeu/output/compressor.rb
481
483
  - lib/vedeu/output/output.rb
482
484
  - lib/vedeu/output/presentation/all.rb
@@ -484,7 +486,7 @@ files:
484
486
  - lib/vedeu/output/presentation/presentation.rb
485
487
  - lib/vedeu/output/presentation/style.rb
486
488
  - lib/vedeu/output/presentation/styles.rb
487
- - lib/vedeu/output/refresh/refresh.rb
489
+ - lib/vedeu/output/refresh.rb
488
490
  - lib/vedeu/output/renderers/all.rb
489
491
  - lib/vedeu/output/renderers/file.rb
490
492
  - lib/vedeu/output/renderers/html.rb
@@ -657,7 +659,7 @@ files:
657
659
  - test/lib/vedeu/output/presentation/presentation_test.rb
658
660
  - test/lib/vedeu/output/presentation/style_test.rb
659
661
  - test/lib/vedeu/output/presentation/styles_test.rb
660
- - test/lib/vedeu/output/refresh/refresh_test.rb
662
+ - test/lib/vedeu/output/refresh_test.rb
661
663
  - test/lib/vedeu/output/renderers/all_test.rb
662
664
  - test/lib/vedeu/output/renderers/file_test.rb
663
665
  - test/lib/vedeu/output/renderers/html_test.rb
@@ -868,7 +870,7 @@ test_files:
868
870
  - test/lib/vedeu/output/presentation/presentation_test.rb
869
871
  - test/lib/vedeu/output/presentation/style_test.rb
870
872
  - test/lib/vedeu/output/presentation/styles_test.rb
871
- - test/lib/vedeu/output/refresh/refresh_test.rb
873
+ - test/lib/vedeu/output/refresh_test.rb
872
874
  - test/lib/vedeu/output/renderers/all_test.rb
873
875
  - test/lib/vedeu/output/renderers/file_test.rb
874
876
  - test/lib/vedeu/output/renderers/html_test.rb