vedeu_cli 0.0.8 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. checksums.yaml +4 -4
  2. data/.ruby-version +1 -1
  3. data/lib/vedeu/cli/application.rb +33 -29
  4. data/lib/vedeu/cli/helpers.rb +40 -28
  5. data/lib/vedeu/cli/main.rb +2 -0
  6. data/lib/vedeu/cli/templates/application/LICENSE.txt +4 -1
  7. data/lib/vedeu/cli/templates/application/app/controllers/application_controller.erb +2 -0
  8. data/lib/vedeu/cli/templates/application/app/controllers/name.erb +2 -0
  9. data/lib/vedeu/cli/templates/application/app/helpers/application_helper.erb +2 -0
  10. data/lib/vedeu/cli/templates/application/app/helpers/name.erb +2 -0
  11. data/lib/vedeu/cli/templates/application/app/models/keymaps/_global_.rb +2 -0
  12. data/lib/vedeu/cli/templates/application/app/models/keymaps/name.erb +2 -0
  13. data/lib/vedeu/cli/templates/application/app/views/interfaces/borders/name.erb +51 -0
  14. data/lib/vedeu/cli/templates/application/app/views/interfaces/geometries/name.erb +34 -0
  15. data/lib/vedeu/cli/templates/application/app/views/interfaces/name.erb +34 -51
  16. data/lib/vedeu/cli/templates/application/app/views/name.erb +2 -0
  17. data/lib/vedeu/cli/templates/application/app/views/templates/name.erb +1 -0
  18. data/lib/vedeu/cli/templates/application/bin/name +2 -0
  19. data/lib/vedeu/cli/templates/application/config/configuration.erb +5 -3
  20. data/lib/vedeu/cli/version.rb +3 -1
  21. data/lib/vedeu/cli/view.rb +28 -12
  22. data/lib/vedeu_cli.rb +2 -0
  23. data/test/lib/vedeu/cli/application_test.rb +2 -0
  24. data/test/lib/vedeu/cli/helpers_test.rb +2 -0
  25. data/test/lib/vedeu/cli/main_test.rb +2 -0
  26. data/test/lib/vedeu/cli/version_test.rb +2 -0
  27. data/test/lib/vedeu/cli/view_test.rb +2 -0
  28. data/test/lib/vedeu_cli_test.rb +2 -0
  29. data/test/test_helper.rb +2 -0
  30. metadata +5 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 458779e8041e6792549e064d5babdca2436a4d6d
4
- data.tar.gz: fbdc956a222698a138133ae92ba80103ae9913f9
3
+ metadata.gz: a24a490252f117afc78c725535d98bdc727e6af7
4
+ data.tar.gz: 0163be54e79077f0d4eeb8d1d6ded1c746409833
5
5
  SHA512:
6
- metadata.gz: 7922f71b7ff9b8b97f044480b0bb6172c2ed67580f5fa8038a5638be3b26da0d80bbd0b4c886cb89917d545281a923e68b26cc096eb7ad50aa225f4ace6b779e
7
- data.tar.gz: e9abd0bbdaeef46181a0236fc5f7468a6ce0978b003f5c5e2ab7e6fade8e0f9b9047d2cb09542cde6c6f3909fddeaa75b0cd086cbbac1c3d0aa928d86d2ee503
6
+ metadata.gz: 306836f843ea9eca961fbbe6213462c3e1b0249bdf03c10aa6d1713c9963b0d84431094c074f86c91df3bfac03e9a5db0bb65b49cc3e20c78b5abc442b6f5a9b
7
+ data.tar.gz: 81bbfb73eaa2c9de2568b7cb153f568d0ddf939a4aff38d42aff44f047c1bb35de7e0c75c33675895eb10bcc0a09bf961ae0e28419f6e1f3826751cbcaeca9aa
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.2.3
1
+ 2.3.0
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Vedeu
2
4
 
3
5
  module CLI
@@ -52,14 +54,14 @@ module Vedeu
52
54
 
53
55
  # @return [void]
54
56
  def copy_application_bootstrapper
55
- make_file(source + '/application.erb'.freeze,
56
- app_root_path + '/application.rb'.freeze)
57
+ make_file(source + '/application.erb',
58
+ app_root_path + '/application.rb')
57
59
  end
58
60
 
59
61
  # @return [void]
60
62
  def copy_application_controller
61
- make_file(source + '/app/controllers/application_controller.erb'.freeze,
62
- app_controllers_path + 'application_controller.rb'.freeze)
63
+ make_file(source + '/app/controllers/application_controller.erb',
64
+ app_controllers_path + 'application_controller.rb')
63
65
  end
64
66
 
65
67
  # @return [void]
@@ -69,30 +71,30 @@ module Vedeu
69
71
 
70
72
  # @return [void]
71
73
  def copy_application_helper
72
- make_file(source + '/app/helpers/application_helper.erb'.freeze,
73
- app_helpers_path + 'application_helper.rb'.freeze)
74
+ make_file(source + '/app/helpers/application_helper.erb',
75
+ app_helpers_path + 'application_helper.rb')
74
76
  end
75
77
 
76
78
  # @return [void]
77
79
  def copy_configuration
78
- make_file(source + '/config/configuration.erb'.freeze,
79
- app_config_path + 'configuration.rb'.freeze)
80
+ make_file(source + '/config/configuration.erb',
81
+ app_config_path + 'configuration.rb')
80
82
  end
81
83
 
82
84
  # @return [void]
83
85
  def copy_app_name
84
- make_file(source + '/config/app_name.erb'.freeze,
85
- app_config_path + 'app_name'.freeze)
86
+ make_file(source + '/config/app_name.erb',
87
+ app_config_path + 'app_name')
86
88
  end
87
89
 
88
90
  # @return [void]
89
91
  def copy_app_root_files
90
92
  [
91
- '/Gemfile'.freeze,
92
- '/.gitignore'.freeze,
93
- '/LICENSE.txt'.freeze,
94
- '/README.md'.freeze,
95
- '/.ruby-version'.freeze,
93
+ '/Gemfile',
94
+ '/.gitignore',
95
+ '/LICENSE.txt',
96
+ '/README.md',
97
+ '/.ruby-version',
96
98
  ].each do |file|
97
99
  copy_file((source + file), (app_root_path + file))
98
100
  end
@@ -100,29 +102,31 @@ module Vedeu
100
102
 
101
103
  # @return [void]
102
104
  def make_application_executable
103
- FileUtils.chmod(0755, "#{name}/bin/#{name}".freeze)
105
+ FileUtils.chmod(0755, "#{name}/bin/#{name}")
104
106
  end
105
107
 
106
108
  # @return [void]
107
109
  def copy_global_keymap
108
- copy_file(source + '/app/models/keymaps/_global_.rb'.freeze,
109
- app_keymaps_path + '_global_.rb'.freeze)
110
+ copy_file(source + '/app/models/keymaps/_global_.rb',
111
+ app_keymaps_path + '_global_.rb')
110
112
  end
111
113
 
112
114
  # @return [Array<String>]
113
115
  def directories
114
116
  [
115
- '/app/controllers'.freeze,
116
- '/app/helpers'.freeze,
117
- '/app/models/keymaps'.freeze,
118
- '/app/views/interfaces'.freeze,
119
- '/app/views/templates'.freeze,
120
- '/bin'.freeze,
121
- '/config'.freeze,
122
- '/lib'.freeze,
123
- '/log'.freeze,
124
- '/test'.freeze,
125
- '/vendor'.freeze,
117
+ '/app/controllers',
118
+ '/app/helpers',
119
+ '/app/models/keymaps',
120
+ '/app/views/interfaces',
121
+ '/app/views/interfaces/borders',
122
+ '/app/views/interfaces/geometries',
123
+ '/app/views/templates',
124
+ '/bin',
125
+ '/config',
126
+ '/lib',
127
+ '/log',
128
+ '/test',
129
+ '/vendor',
126
130
  ]
127
131
  end
128
132
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Vedeu
2
4
 
3
5
  module CLI
@@ -12,42 +14,52 @@ module Vedeu
12
14
 
13
15
  # @return [String]
14
16
  def app_name
15
- @app_name ||= File.read('./config/app_name'.freeze)
17
+ @app_name ||= File.read('./config/app_name' )
16
18
  end
17
19
 
18
20
  # @return [String]
19
21
  def app_bin_path
20
- name + '/bin/'.freeze
22
+ name + '/bin/'
21
23
  end
22
24
 
23
25
  # @return [String]
24
26
  def app_config_path
25
- name + '/config/'.freeze
27
+ name + '/config/'
26
28
  end
27
29
 
28
30
  # @return [String]
29
31
  def app_controllers_path
30
- name + '/app/controllers/'.freeze
32
+ name + '/app/controllers/'
31
33
  end
32
34
 
33
35
  # @return [String]
34
36
  def app_helpers_path
35
- name + '/app/helpers/'.freeze
37
+ name + '/app/helpers/'
36
38
  end
37
39
 
38
40
  # @return [String]
39
41
  def app_models_path
40
- name + '/app/models/'.freeze
42
+ name + '/app/models/'
43
+ end
44
+
45
+ # @return [String]
46
+ def app_borders_path
47
+ name + '/app/views/interfaces/borders/'
48
+ end
49
+
50
+ # @return [String]
51
+ def app_geometries_path
52
+ name + '/app/views/interfaces/geometries/'
41
53
  end
42
54
 
43
55
  # @return [String]
44
56
  def app_keymaps_path
45
- name + '/app/models/keymaps/'.freeze
57
+ name + '/app/models/keymaps/'
46
58
  end
47
59
 
48
60
  # @return [String]
49
61
  def app_views_path
50
- name + '/app/views/'.freeze
62
+ name + '/app/views/'
51
63
  end
52
64
 
53
65
  # @param destination [String]
@@ -78,49 +90,49 @@ module Vedeu
78
90
  end
79
91
  end
80
92
 
81
- # @param source [String]
82
- # @param destination [String]
93
+ # @param source_path [String]
94
+ # @param destination_path [String]
83
95
  # @return [void]
84
- def make_file(source, destination)
85
- if File.exist?(destination)
86
- log_skipped_file(destination)
96
+ def make_file(source_path, destination_path)
97
+ if File.exist?(destination_path)
98
+ log_skipped_file(destination_path)
87
99
 
88
100
  false
89
101
 
90
102
  else
91
- log_processed_file(destination)
103
+ log_processed_file(destination_path)
92
104
 
93
- File.write(destination, parse(source))
105
+ File.write(destination_path, parse(source_path))
94
106
 
95
107
  true
96
108
  end
97
109
  end
98
110
 
99
- # @param destination [String]
111
+ # @param destination_path [String]
100
112
  # @return [TrueClass]
101
- def log_processed_file(destination)
102
- Vedeu.log_stdout(type: :create, message: "#{destination}".freeze)
113
+ def log_processed_file(destination_path)
114
+ Vedeu.log_stdout(type: :create, message: "#{destination_path}")
103
115
 
104
116
  true
105
117
  end
106
118
 
107
- # @param destination [String]
119
+ # @param destination_path [String]
108
120
  # @return [TrueClass]
109
- def log_skipped_file(destination)
121
+ def log_skipped_file(destination_path)
110
122
  Vedeu.log_stdout(type: :create,
111
- message: "#{destination} " +
123
+ message: "#{destination_path} " +
112
124
  Vedeu::EscapeSequences::Esc.red {
113
125
  'already exists, skipped.'
114
126
  })
115
127
  true
116
128
  end
117
129
 
118
- # @param destination [String]
130
+ # @param destination_path [String]
119
131
  # @return [void]
120
- def touch_file(destination)
121
- log_processed_file(destination)
132
+ def touch_file(destination_path)
133
+ log_processed_file(destination_path)
122
134
 
123
- FileUtils.touch(destination)
135
+ FileUtils.touch(destination_path)
124
136
 
125
137
  true
126
138
  end
@@ -145,13 +157,13 @@ module Vedeu
145
157
 
146
158
  # @param source [String]
147
159
  # @return [String]
148
- def parse(source)
149
- Vedeu::Templating::Template.parse(self, source)
160
+ def parse(source_path)
161
+ Vedeu::Templating::Template.parse(self, source_path)
150
162
  end
151
163
 
152
164
  # @return [String]
153
165
  def source
154
- File.dirname(__FILE__) + '/templates/application/.'.freeze
166
+ File.dirname(__FILE__) + '/templates/application/.'
155
167
  end
156
168
 
157
169
  end # Helpers
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Vedeu
2
4
 
3
5
  # Provide a command line interface to Vedeu.
@@ -1,6 +1,9 @@
1
1
  Copyright (c) 2014 Your Name Here
2
+ Copyright (c) 2014 Gavin Laking (Vedeu)
2
3
 
3
- Note: You may wish to change this license to suit your legal needs.
4
+ Note: You may wish to change this license to suit your legal needs,
5
+ but please leave the copyright notice of Vedeu in place or add it to
6
+ your new `LICENSE.txt` file.
4
7
 
5
8
  MIT License
6
9
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module <%= object.name_as_class %>
2
4
 
3
5
  class ApplicationController < Vedeu::ApplicationController
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require_relative 'application_controller'
2
4
  require_relative '../views/<%= object.name %>'
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module <%= object.name_as_class %>
2
4
 
3
5
  module ApplicationHelper
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require_relative 'application_helper'
2
4
 
3
5
  module <%= object.app_name %>
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Vedeu.keymap('_global_') do
2
4
  # see http://www.rubydoc.info/gems/vedeu/Vedeu/DSL/Keymap
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Vedeu.keymap('<%= object.name %>') do
2
4
  # see http://www.rubydoc.info/gems/vedeu/Vedeu/DSL/Keymap
3
5
  end
@@ -0,0 +1,51 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Defines a border for the interface/view with the same name.
4
+ #
5
+ Vedeu.border '<%= object.name %>' do
6
+ # Define colour and style of border
7
+ #
8
+ # colour foreground: '#ffffff', background: '#000000'
9
+ # style 'normal'
10
+
11
+ # Define visibility of border. Uncomment one of these:
12
+ #
13
+ # enable!
14
+ # disable!
15
+
16
+ # Individually control the visibility of each border:
17
+ #
18
+ # hide_bottom!
19
+ # hide_left!
20
+ # hide_right!
21
+ # hide_top!
22
+ #
23
+ # show_bottom!
24
+ # show_left!
25
+ # show_right!
26
+ # show_top!
27
+
28
+ # Define characters used to draw border:
29
+ #
30
+ # Corners:
31
+ #
32
+ # bottom_right '+'
33
+ # bottom_left '+'
34
+ # top_right '+'
35
+ # top_left '+'
36
+ #
37
+ # Sides:
38
+ #
39
+ # horizontal '-'
40
+ # vertical '|'
41
+
42
+ # Define the title of the interface, this is displayed in the top
43
+ # border.
44
+ #
45
+ # title '<%= object.name %>'
46
+
47
+ # Define the caption of the interface, this is displayed in the
48
+ # bottom border.
49
+ #
50
+ # caption ''
51
+ end
@@ -0,0 +1,34 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Defines the geometry for the interface/view with the same name.
4
+ #
5
+ Vedeu.geometry '<%= object.name %>' do
6
+ # Uncomment this and provide a height and width to centrally align
7
+ # the interface in the terminal.
8
+ #
9
+ # centred!
10
+
11
+ # Uncomment this to use all available space in the terminal.
12
+ #
13
+ # maximised!
14
+
15
+ # Set the height and width of the interface.
16
+ # - If 'centred!' is set, then the y, x coordinates will be
17
+ # calculated automatically.
18
+ # - If 'centred! is not set, then the y, x coordinates will be 1, 1.
19
+ # - If 'x' and/or 'y' coordinate(s) are set, then they will be the
20
+ # starting coordinates.
21
+ # - If 'xn' and/or 'yn' coordinate(s) are set, then either/both
22
+ # height and width will be ignored.
23
+ #
24
+ # height 10
25
+ # width 10
26
+
27
+ # Set the width via the x (start), or xn (end) coordinates.
28
+ # x 1
29
+ # xn 11
30
+
31
+ # Set the height via the y (start), or yn (end) coordinates.
32
+ # y 1
33
+ # yn 11
34
+ end
@@ -1,67 +1,50 @@
1
- Vedeu.interface '<%= object.name %>' do
2
- # border do
3
- # Define colour and style of border
4
- # colour foreground: '#ffffff', background: '#000000'
5
- # style 'normal'
6
-
7
- # Define visibility of border
8
- #
9
- # Uncomment one of these:
10
- # enable!
11
- # disable!
12
- #
13
- # Individually control each border:
14
- # hide_bottom!
15
- # hide_left!
16
- # hide_right!
17
- # hide_top!
18
- # show_bottom!
19
- # show_left!
20
- # show_right!
21
- # show_top!
22
-
23
- # Define characters used to draw border
24
- # bottom_right '+'
25
- # bottom_left '+'
26
- # horizontal '-'
27
- # top_right '+'
28
- # top_left '+'
29
- # vertical '|'
30
-
31
- # Define the title of the interface
32
- # title '<%= object.name %>'
33
- # end
1
+ # frozen_string_literal: true
34
2
 
35
- # background
3
+ # Defines an interface.
4
+ #
5
+ Vedeu.interface '<%= object.name %>' do
6
+ # Define the colour of the interface:
7
+ #
8
+ # background '#000000'
9
+ # foreground '#ffffff'
36
10
 
37
- # colour
11
+ # Define the colour of the interface concisely:
12
+ #
13
+ # colour background: '#000000', foreground: '#ffffff'
38
14
 
39
- # cursor!
15
+ # Define whether the interface should have a cursor (can be
16
+ # overridden by the view):
17
+ #
18
+ # cursor! # => same as `cursor(true)`
19
+ # no_cursor! # => same as `cursor(false)`
40
20
 
41
21
  # See Vedeu::DSL::Interface#delay
42
22
  # delay 1.0
43
23
 
24
+ # Uncomment to indicate this interface as having focus at startup.
25
+ # Note: If multiple interfaces are set to have focus on startup,
26
+ # the last defined will have focus.
27
+ #
44
28
  # focus!
45
29
 
46
- # foreground
47
-
48
- # geometry do
49
- # centred!
50
- # x 1
51
- # y 1
52
- # xn 11
53
- # yn 11
54
- # height 10
55
- # width 10
56
- # end
57
-
30
+ # Define the group the interface belongs to. Allowing multiple
31
+ # interfaces to be manipulated at once.
32
+ #
58
33
  # group ''
59
34
 
35
+ # Define visibility of the interface.
36
+ #
60
37
  # hide!
61
-
62
38
  # show!
63
39
 
64
- # style
40
+ # Define the default style for the interface, this affects all
41
+ # characters in the interface unless overridden on a per-line,
42
+ # per-stream or per-character basis.
43
+ #
44
+ # style :normal
65
45
 
66
- # zindex
46
+ # Interfaces with a higher zindex will be display on top of
47
+ # interfaces with a lower zindex.
48
+ #
49
+ # zindex 1
67
50
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module <%= object.app_name %>
2
4
 
3
5
  class <%= object.name_as_class %>View < Vedeu::ApplicationView
@@ -0,0 +1 @@
1
+ # frozen_string_literal: true
@@ -1,5 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
+ # frozen_string_literal: true
4
+
3
5
  ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
4
6
 
5
7
  require 'bundler/setup' # Set up gems listed in the Gemfile.
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Vedeu.configure do
2
4
  # see http://rubydoc.info/gems/vedeu/file/docs/configuration.md
3
5
 
@@ -31,7 +33,7 @@ Vedeu.configure do
31
33
  # standalone!
32
34
 
33
35
  # Not used yet
34
- # stdin File.open("/dev/tty", "r")
35
- # stdout File.open("/dev/tty", "w")
36
- # stderr File.open("/tmp/vedeu_error.log", "w+")
36
+ # stdin File.open('/dev/tty', 'r')
37
+ # stdout File.open('/dev/tty', 'w')
38
+ # stderr File.open(Dir.tmpdir + '/vedeu_error.log', 'w+')
37
39
  end
@@ -1,9 +1,11 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Vedeu
2
4
 
3
5
  module CLI
4
6
 
5
7
  # The current version of Vedeu CLI.
6
- VERSION = '0.0.8'.freeze
8
+ VERSION = '0.0.9'
7
9
 
8
10
  end # CLI
9
11
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Vedeu
2
4
 
3
5
  module CLI
@@ -32,6 +34,8 @@ module Vedeu
32
34
  make_controller_file
33
35
  make_helper_file
34
36
  make_keymap_file
37
+ make_border_file
38
+ make_geometry_file
35
39
  make_interface_file
36
40
  make_template_file
37
41
  make_view_class_file
@@ -41,44 +45,56 @@ module Vedeu
41
45
  "controller and action: (args are optional)\n\n" \
42
46
  "Vedeu.configure do\n" \
43
47
  " root :some_controller, :show, *args\n" \
44
- "end\n\n".freeze)
48
+ "end\n\n")
45
49
  end
46
50
 
47
51
  private
48
52
 
49
53
  # @return [void]
50
54
  def make_controller_file
51
- make_file(source + '/app/controllers/name.erb'.freeze,
52
- '.' + "/app/controllers/#{name}_controller.rb".freeze)
55
+ make_file(source + '/app/controllers/name.erb',
56
+ "./app/controllers/#{name}_controller.rb")
53
57
  end
54
58
 
55
59
  # @return [void]
56
60
  def make_helper_file
57
- make_file(source + '/app/helpers/name.erb'.freeze,
58
- '.' + "/app/helpers/#{name}_helper.rb".freeze)
61
+ make_file(source + '/app/helpers/name.erb',
62
+ "./app/helpers/#{name}_helper.rb")
59
63
  end
60
64
 
61
65
  # @return [void]
62
66
  def make_keymap_file
63
- make_file(source + '/app/models/keymaps/name.erb'.freeze,
64
- '.' + "/app/models/keymaps/#{name}.rb".freeze)
67
+ make_file(source + '/app/models/keymaps/name.erb',
68
+ "./app/models/keymaps/#{name}.rb")
69
+ end
70
+
71
+ # @return [void]
72
+ def make_border_file
73
+ make_file(source + '/app/views/interfaces/borders/name.erb',
74
+ "./app/views/interfaces/borders/#{name}.rb")
75
+ end
76
+
77
+ # @return [void]
78
+ def make_geometry_file
79
+ make_file(source + '/app/views/interfaces/geometries/name.erb',
80
+ "./app/views/interfaces/geometries/#{name}.rb")
65
81
  end
66
82
 
67
83
  # @return [void]
68
84
  def make_interface_file
69
- make_file(source + '/app/views/interfaces/name.erb'.freeze,
70
- '.' + "/app/views/interfaces/#{name}.rb".freeze)
85
+ make_file(source + '/app/views/interfaces/name.erb',
86
+ "./app/views/interfaces/#{name}.rb")
71
87
  end
72
88
 
73
89
  # @return [void]
74
90
  def make_template_file
75
- touch_file('.' + "/app/views/templates/#{name}.erb".freeze)
91
+ touch_file("./app/views/templates/#{name}.erb")
76
92
  end
77
93
 
78
94
  # @return [void]
79
95
  def make_view_class_file
80
- make_file(source + '/app/views/name.erb'.freeze,
81
- '.' + "/app/views/#{name}.rb".freeze)
96
+ make_file(source + '/app/views/name.erb',
97
+ "./app/views/#{name}.rb")
82
98
  end
83
99
 
84
100
  end # View
data/lib/vedeu_cli.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'thor'
2
4
  require 'vedeu'
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'test_helper'
2
4
 
3
5
  module Vedeu
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'test_helper'
2
4
 
3
5
  module Vedeu
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'test_helper'
2
4
 
3
5
  module Vedeu
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'test_helper'
2
4
 
3
5
  module Vedeu
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'test_helper'
2
4
 
3
5
  module Vedeu
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'test_helper'
2
4
 
3
5
  describe Vedeu do
data/test/test_helper.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'simplecov'
2
4
  require 'simplecov-console' if ENV['CONSOLE_COVERAGE']
3
5
  require 'pry'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vedeu_cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
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-26 00:00:00.000000000 Z
11
+ date: 2016-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: guard
@@ -239,6 +239,8 @@ files:
239
239
  - lib/vedeu/cli/templates/application/app/helpers/name.erb
240
240
  - lib/vedeu/cli/templates/application/app/models/keymaps/_global_.rb
241
241
  - lib/vedeu/cli/templates/application/app/models/keymaps/name.erb
242
+ - lib/vedeu/cli/templates/application/app/views/interfaces/borders/name.erb
243
+ - lib/vedeu/cli/templates/application/app/views/interfaces/geometries/name.erb
242
244
  - lib/vedeu/cli/templates/application/app/views/interfaces/name.erb
243
245
  - lib/vedeu/cli/templates/application/app/views/name.erb
244
246
  - lib/vedeu/cli/templates/application/app/views/templates/name.erb
@@ -280,7 +282,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
280
282
  version: '0'
281
283
  requirements: []
282
284
  rubyforge_project:
283
- rubygems_version: 2.4.5.1
285
+ rubygems_version: 2.5.1
284
286
  signing_key:
285
287
  specification_version: 4
286
288
  summary: A plugin for Vedeu.