ngi 0.2.3 → 0.3.0

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 (80) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +7 -1
  3. data/bin/ngi +1 -31
  4. data/lib/config/{angular_init.config.json → backup/angular_init.config.json} +0 -0
  5. data/lib/config/backup/config.components.aliases.yml +3 -0
  6. data/lib/config/backup/config.components.yml +55 -0
  7. data/lib/config/backup/config.configurable.yml +1 -0
  8. data/lib/config/backup/config.languages.yml +5 -0
  9. data/lib/config/backup/config.yml +3 -0
  10. data/lib/config/backup/template-skeleton.js +93 -0
  11. data/lib/config/config.components.aliases.yml +3 -0
  12. data/lib/config/config.components.yml +55 -0
  13. data/lib/config/config.configurable.yml +2 -0
  14. data/lib/config/config.languages.yml +5 -0
  15. data/lib/config/config.yml +4 -0
  16. data/lib/ngi.rb +4 -7
  17. data/lib/ngi/configure.rb +236 -75
  18. data/lib/ngi/delegate.rb +3 -8
  19. data/lib/ngi/generator.rb +74 -46
  20. data/lib/ngi/parser.rb +97 -0
  21. data/lib/{templates → ngi/templates}/markup/html/default/index.html +0 -0
  22. data/lib/{templates → ngi/templates}/script/coffee/default/basic.js +0 -0
  23. data/lib/{templates → ngi/templates}/script/coffee/default/config.js +0 -0
  24. data/lib/{templates → ngi/templates}/script/coffee/default/constant.js +0 -0
  25. data/lib/{templates → ngi/templates}/script/coffee/default/module.js +0 -0
  26. data/lib/{templates → ngi/templates}/script/es5/default/basic.js +0 -0
  27. data/lib/{templates → ngi/templates}/script/es5/default/config.js +0 -0
  28. data/lib/{templates → ngi/templates}/script/es5/default/constant.js +0 -0
  29. data/lib/{templates → ngi/templates}/script/es5/default/module.js +0 -0
  30. data/lib/ngi/utils/command_parser.rb +90 -75
  31. data/lib/ngi/utils/current_dir.rb +20 -0
  32. data/lib/ngi/utils/jser.rb +45 -32
  33. data/lib/ngi/utils/user_input.rb +22 -0
  34. data/lib/ngi/utils/utils.rb +4 -21
  35. data/lib/ngi/version.rb +1 -1
  36. data/ngi.gemspec +2 -1
  37. data/test/config/config.components.aliases.yml +3 -0
  38. data/test/config/config.components.yml +55 -0
  39. data/test/config/config.configurable.yml +2 -0
  40. data/test/config/config.languages.yml +5 -0
  41. data/test/config/config.yml +4 -0
  42. data/test/finished_files/script/coffee/directive.finished.coffee +20 -0
  43. data/test/finished_files/script/es5/controller.finished.js +13 -0
  44. data/test/finished_files/script/es5/directive.finished.js +25 -0
  45. data/test/finished_files/script/es5/filter.finished.js +18 -0
  46. data/test/templates/markup/html/default/index.html +11 -0
  47. data/test/templates/script/coffee/default/basic.js +23 -0
  48. data/test/templates/script/coffee/default/config.js +12 -0
  49. data/test/templates/script/coffee/default/constant.js +7 -0
  50. data/test/templates/script/coffee/default/module.js +7 -0
  51. data/test/templates/script/es5/default/basic.js +29 -0
  52. data/test/templates/script/es5/default/config.js +13 -0
  53. data/test/templates/script/es5/default/constant.js +7 -0
  54. data/test/templates/script/es5/default/module.js +7 -0
  55. data/test/test_ngi.rb +274 -56
  56. data/test/testing_utils.rb +26 -0
  57. metadata +78 -36
  58. data/lib/dep/json.rb +0 -62
  59. data/lib/dep/json/add/bigdecimal.rb +0 -28
  60. data/lib/dep/json/add/complex.rb +0 -28
  61. data/lib/dep/json/add/core.rb +0 -11
  62. data/lib/dep/json/add/date.rb +0 -34
  63. data/lib/dep/json/add/date_time.rb +0 -50
  64. data/lib/dep/json/add/exception.rb +0 -31
  65. data/lib/dep/json/add/ostruct.rb +0 -31
  66. data/lib/dep/json/add/range.rb +0 -29
  67. data/lib/dep/json/add/rational.rb +0 -27
  68. data/lib/dep/json/add/regexp.rb +0 -30
  69. data/lib/dep/json/add/struct.rb +0 -30
  70. data/lib/dep/json/add/symbol.rb +0 -25
  71. data/lib/dep/json/add/time.rb +0 -38
  72. data/lib/dep/json/common.rb +0 -484
  73. data/lib/dep/json/ext.rb +0 -21
  74. data/lib/dep/json/ext/.keep +0 -0
  75. data/lib/dep/json/generic_object.rb +0 -70
  76. data/lib/dep/json/pure.rb +0 -21
  77. data/lib/dep/json/pure/generator.rb +0 -522
  78. data/lib/dep/json/pure/parser.rb +0 -359
  79. data/lib/dep/json/version.rb +0 -8
  80. data/test/sup/test.config.json +0 -100
@@ -0,0 +1,13 @@
1
+ ;(function(app) {
2
+
3
+ 'use strict';
4
+
5
+ app.{{type}}({{type}});
6
+
7
+ {{type}}.$inject = {{inject | array_string}};
8
+
9
+ function {{type}}({{inject | comma_delimited_variables}}) {
10
+
11
+ }
12
+
13
+ })(angular.module('{{module}}'));
@@ -0,0 +1,7 @@
1
+ ;(function(app) {
2
+
3
+ 'use strict';
4
+
5
+ app.constant('{{name}}',/* data */);
6
+
7
+ })(angular.module('{{module}}'));
@@ -0,0 +1,7 @@
1
+ ;(function(angular) {
2
+
3
+ 'use strict';
4
+
5
+ angular.module('{{name}}',{{inject | array_string}});
6
+
7
+ })(angular);
@@ -1,91 +1,309 @@
1
1
  require_relative '../lib/ngi'
2
+ # require_relative 'testing_utils'
2
3
  require 'minitest/autorun'
3
- require 'json'
4
+ require 'memfs'
5
+
6
+ # Overwrite output so that we don't see it when testing
7
+ def puts(_)
8
+ nil
9
+ end
10
+
11
+ def print(_)
12
+ nil
13
+ end
4
14
 
5
15
  describe Ngi do
6
- DIR = File.dirname(__FILE__)
16
+ before do
17
+ ############ SETUP ##############
18
+ @dir = File.dirname(__FILE__)
7
19
 
8
- describe Ngi::Delegate::Configure do
9
- before do
10
- @path = "#{DIR}/sup/test.config.json"
11
- @config = Ngi::Delegate::Configure.new(@path)
12
- end
20
+ @components_file = "#{@dir}/config/config.components.yml"
21
+ @components_hash = Ngi::Delegate::Configure
22
+ .new(@components_file)
23
+ .to_ruby(from: 'yaml')
24
+ @components = @components_hash.collect { |c| c['name'] }
25
+
26
+ @config_file = "#{@dir}/config/config.yml"
27
+ @config_hash = Ngi::Delegate::Configure
28
+ .new(@config_file).to_ruby(from: 'yaml')
13
29
 
14
- describe 'when initialized' do
15
- it 'must read the file given from the path' do
16
- @config.file.must_equal IO.read(@path)
30
+ @languages_file = "#{@dir}/config/config.languages.yml"
31
+ @languages_hash = Ngi::Delegate::Configure
32
+ .new(@languages_file).to_ruby(from: 'yaml')
33
+
34
+ @configurable_file = "#{@dir}/config/config.configurable.yml"
35
+ @configurable = Ngi::Delegate::Configure
36
+ .new(@configurable_file).to_ruby(from: 'yaml')
37
+
38
+ module Utils
39
+ class CommandParser
40
+ # Redefine the output so we can test it
41
+ class Output
42
+ def to_s
43
+ @str
44
+ end
45
+ end
17
46
  end
18
47
  end
19
48
 
20
- describe '#from_json' do
21
- it 'must convert the file to a Ruby hash' do
22
- file_parsed_from_json_to_ruby = @config.from_json
23
- regular_file = IO.read(@path)
49
+ # Open this up to redefine some stuff
50
+ module Ngi
51
+ # Be able to mock $stdin
52
+ class MockedInput
53
+ @@input = []
54
+
55
+ def self.input=(input)
56
+ @@input = input
57
+ end
24
58
 
25
- file_parsed_from_json_to_ruby.must_equal JSON.parse(regular_file)
59
+ def self.input
60
+ return @@input
61
+ end
62
+ end
63
+
64
+ class GeneratorMockedInput < MockedInput; end
65
+ class ConfigureMockedInput < MockedInput; end
66
+
67
+ class Delegate
68
+ # Redefine some methods/classes
69
+ class Generator
70
+ Utils::CurrentDir.dir = @dir
71
+
72
+ # Redefine the $stdin in Generator
73
+ class AcceptInput
74
+ def self.str(type)
75
+ case type
76
+ when :condensed
77
+ GeneratorMockedInput.input.shift
78
+ when :comma_delimited_to_array
79
+ GeneratorMockedInput.input.shift
80
+ when :downcased
81
+ GeneratorMockedInput.input.shift
82
+ end
83
+ end
84
+ end
85
+ end
86
+
87
+ # Redefine
88
+ class Configure
89
+ Utils::CurrentDir.dir = @dir
90
+
91
+ # Redefine the $stdin in Generator
92
+ class AcceptInput
93
+ def self.str(type)
94
+ case type
95
+ when :stripped
96
+ ConfigureMockedInput.input.shift
97
+ end
98
+ end
99
+ end
100
+ end
26
101
  end
27
102
  end
28
103
 
29
- # describe '#self.run' do
30
- # it 'must create an instance of Configure' do
104
+ # Expected file output
105
+ @finished_files = {
106
+ 'directive' => {
107
+ 'es5' => IO.read("#{@dir}/finished_files/script/es5/directive.finished.js"),
108
+ 'coffee' => IO.read("#{@dir}/finished_files/script/coffee/directive.finished.coffee")
109
+ },
110
+ 'controller' => {
111
+ 'es5' => IO.read("#{@dir}/finished_files/script/es5/controller.finished.js")
112
+ },
113
+ 'filter' => {
114
+ 'es5' => IO.read("#{@dir}/finished_files/script/es5/filter.finished.js")
115
+ }
116
+ }
117
+
118
+ @generator_mocked_input = {
119
+ 'directive' => [
120
+ 'test.directive.js',
121
+ 'myModule',
122
+ 'myDirective',
123
+ %w(someService anotherService)
124
+ ],
125
+ 'controller' => [
126
+ 'test.controller.js',
127
+ 'myModule',
128
+ 'MyController',
129
+ %w(someService anotherService)
130
+ ],
131
+ 'filter' => [
132
+ 'test.filter.js',
133
+ 'myModule',
134
+ 'someFilter',
135
+ %w(aService andAnotherOne)
136
+ ]
137
+ }
138
+
139
+ # Now we can activate MemFs so that we don't
140
+ # actually create any files in the file system
141
+ MemFs.activate!
142
+
143
+ # Make this directory in memory using MemFs (won't
144
+ # actually create this directory in the file system)
145
+ FileUtils.mkdir_p('templates/script/es5/default')
146
+ FileUtils.mkdir_p('templates/script/coffee/default')
147
+
148
+ # Make the default template in memory from the actual one using IO.read
149
+ # since MemFs doesn't use IO (it only uses File)
150
+ # This will just save me from having to write the whole template
151
+ # out as a string inside a variable right here...
152
+ dir_str = 'templates/script/es5/default/basic.js'
153
+ File.open(dir_str, 'w') do |f|
154
+ f.write(IO.read("#{@dir}/templates/script/es5/default/basic.js"))
155
+ f.close
156
+ end
157
+
158
+ dir_str = 'templates/script/coffee/default/basic.js'
159
+ File.open(dir_str, 'w') do |f|
160
+ f.write(IO.read("#{@dir}/templates/script/coffee/default/basic.js"))
161
+ f.close
162
+ end
31
163
 
32
- # end
33
- # end
164
+ def check_generated_content(type, language, file, comparison)
165
+ # Now we're going to "create" a new directive using the default template
166
+ if Ngi::GeneratorMockedInput.input.size == 0
167
+ Ngi::GeneratorMockedInput.input = @generator_mocked_input[type].dup
168
+ end
34
169
 
35
- describe '#to_json' do
36
- it 'must convert the file to a prettified JSON file if file is a hash' do
37
- regular_file = IO.read(@path)
170
+ type = type
171
+ component = Ngi::Parser::ComponentChooser
172
+ .new(
173
+ type: type,
174
+ components_hash: @components_hash,
175
+ config_hash: @config_hash
176
+ )
177
+ .component
38
178
 
39
- # set the file to a Ruby hash version of the JSON file
40
- @config.file = @config.from_json
179
+ Ngi::Delegate::Generator.run(
180
+ type: type,
181
+ config: @config_hash,
182
+ component: component
183
+ )
41
184
 
42
- # convert the file back to a prettified JSON representation
43
- # if the file was a Ruby hash
44
- back_to_json = @config.to_json
185
+ ###### ASSERTIONS ########
186
+ # It should've created the directive
187
+ File.exist?(file).must_equal true
45
188
 
46
- back_to_json.must_equal regular_file
189
+ # The directive should match the expected output,
190
+ # which is shown in @finished_file
191
+ File.open(file, 'r') do |f|
192
+ content = f.read.to_s.gsub(/\s/, '')
193
+ assert content == comparison
194
+ f.close
195
+ end
196
+ ##########################
197
+ end
198
+ #########################################################
199
+ end
47
200
 
48
- # set the file to a JSON version
49
- @config.file = regular_file
50
- attempt_to_generate_json = @config.to_json
201
+ after { MemFs.deactivate! }
51
202
 
52
- attempt_to_generate_json.must_equal regular_file
203
+ describe 'Parser' do
204
+ describe '-v' do
205
+ it 'should show the version of ngi' do
206
+ assert Parser.parse(['-v']) == "ngi #{Ngi::VERSION}"
53
207
  end
54
208
  end
209
+ end
55
210
 
56
- describe '::Configurable' do
57
- before do
58
- c = Ngi::Delegate::Configure
59
- @hash_config_file = @config.from_json
60
- @questioner = c::Questioner.new(@hash_config_file)
211
+ describe 'Generator' do
212
+ describe 'Default Templates' do
213
+ it 'should make a directive' do
214
+ type = 'directive'
215
+ language = 'es5'
216
+ check_generated_content(
217
+ type, language,
218
+ 'test.directive.js', @finished_files[type][language].gsub(/\s/, '')
219
+ )
61
220
  end
62
221
 
63
- describe '#language' do
64
- it 'must output a hash' do
65
- output = Configure::Configurable.language(@questioner)
222
+ it 'should make a controller' do
223
+ type = 'controller'
224
+ language = 'es5'
225
+ check_generated_content(
226
+ type, language, 'test.controller.js',
227
+ @finished_files[type][language].gsub(/\s/, '')
228
+ )
229
+ end
66
230
 
67
- output.must_be_instance_of Hash
68
- end
231
+ it 'should make a filter' do
232
+ type = 'filter'
233
+ language = 'es5'
234
+ check_generated_content(
235
+ type, language,
236
+ 'test.filter.js', @finished_files[type][language].gsub(/\s/, '')
237
+ )
69
238
  end
70
239
  end
71
240
 
72
- describe '::Questioner' do
73
- before do
74
- c = Ngi::Delegate::Configure
75
- @hash_config_file = @config.from_json
76
- @configurable_properties = @hash_config_file['global']['configurable'].collect { |_, v| v }
77
- @questioner = c::Questioner.new(@hash_config_file)
241
+ it 'should use the custom template if one was set for that language (and it should use the default for all other languages not set)' do
242
+ # First we'll create our custom template in memory
243
+ # using MemFs to mock it
244
+ File.open('test.template.js', 'w') do |f|
245
+ f.write('hello {{name}}')
246
+ f.close
78
247
  end
79
248
 
80
- describe '#initialize' do
81
- it 'must set its file in JSON format' do
82
- @questioner.file.must_equal @config.from_json
83
- end
249
+ # Make this directory in memory with MemFs
250
+ FileUtils.mkdir_p('test/config')
84
251
 
85
- it 'must collect all the configurable properties in an array' do
86
- @questioner.configurable_properties.must_equal @configurable_properties
87
- end
88
- end
252
+ Ngi::ConfigureMockedInput
253
+ .input = %w(templates directive test.template.js es5)
254
+
255
+ # We're going to configure ngi,
256
+ # according to CONFIGURE_MOCKED_INPUT
257
+ # It'll basically create a custom template
258
+ # for use with es5
259
+ Ngi::Delegate::Configure.run(
260
+ write: true,
261
+ to: 'yaml',
262
+ destination: @config_file,
263
+ languages: @languages_hash,
264
+ config: @config_hash,
265
+ components: @components,
266
+ components_hash: @components_hash,
267
+ configurable: @configurable
268
+ )
269
+
270
+ check_generated_content(
271
+ 'directive', 'es5',
272
+ 'test.directive.js', 'hellomyDirective'
273
+ )
274
+
275
+ # Change the language to coffee so we can
276
+ # make sure that it will use the default
277
+ # coffee template, since only the es5
278
+ # custom template was set
279
+ Ngi::ConfigureMockedInput
280
+ .input = %w(language script coffee)
281
+
282
+ Ngi::Delegate::Configure.run(
283
+ write: true,
284
+ to: 'yaml',
285
+ destination: @config_file,
286
+ languages: @languages_hash,
287
+ config: @config_hash,
288
+ components: @components,
289
+ components_hash: @components_hash,
290
+ configurable: @configurable
291
+ )
292
+
293
+ type = 'directive'
294
+ language = 'coffee'
295
+ Ngi::GeneratorMockedInput
296
+ .input = [
297
+ 'second.test.directive.js',
298
+ 'myModule',
299
+ 'myDirective',
300
+ %w(someService anotherService)
301
+ ]
302
+ check_generated_content(
303
+ type, language,
304
+ 'second.test.directive.js',
305
+ @finished_files[type][language].gsub(/\s/, '')
306
+ )
89
307
  end
90
308
  end
91
309
  end
@@ -0,0 +1,26 @@
1
+ # Some testing utilities
2
+ module TestingUtils
3
+ # Turn output on or off
4
+ class ToggleOutput
5
+ def initialize(bool)
6
+ case bool
7
+ when true
8
+ def puts(o)
9
+ super(o)
10
+ end
11
+
12
+ def print(o)
13
+ super(o)
14
+ end
15
+ when false
16
+ def puts(_)
17
+ nil
18
+ end
19
+
20
+ def print(_)
21
+ nil
22
+ end
23
+ end
24
+ end
25
+ end
26
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ngi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Beam
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-08 00:00:00.000000000 Z
11
+ date: 2015-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: memfs
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
55
69
  description: This tool can make (for example) an AngularJS controller template file
56
70
  for you (.js), so that whenever you want to make a new controller for your app,
57
71
  you don't have to type the same starting code over and over again (by the way, this
@@ -71,49 +85,59 @@ files:
71
85
  - LICENSE.txt
72
86
  - Rakefile
73
87
  - bin/ngi
74
- - lib/config/angular_init.config.json
75
- - lib/dep/json.rb
76
- - lib/dep/json/add/bigdecimal.rb
77
- - lib/dep/json/add/complex.rb
78
- - lib/dep/json/add/core.rb
79
- - lib/dep/json/add/date.rb
80
- - lib/dep/json/add/date_time.rb
81
- - lib/dep/json/add/exception.rb
82
- - lib/dep/json/add/ostruct.rb
83
- - lib/dep/json/add/range.rb
84
- - lib/dep/json/add/rational.rb
85
- - lib/dep/json/add/regexp.rb
86
- - lib/dep/json/add/struct.rb
87
- - lib/dep/json/add/symbol.rb
88
- - lib/dep/json/add/time.rb
89
- - lib/dep/json/common.rb
90
- - lib/dep/json/ext.rb
91
- - lib/dep/json/ext/.keep
92
- - lib/dep/json/generic_object.rb
93
- - lib/dep/json/pure.rb
94
- - lib/dep/json/pure/generator.rb
95
- - lib/dep/json/pure/parser.rb
96
- - lib/dep/json/version.rb
88
+ - lib/config/backup/angular_init.config.json
89
+ - lib/config/backup/config.components.aliases.yml
90
+ - lib/config/backup/config.components.yml
91
+ - lib/config/backup/config.configurable.yml
92
+ - lib/config/backup/config.languages.yml
93
+ - lib/config/backup/config.yml
94
+ - lib/config/backup/template-skeleton.js
95
+ - lib/config/config.components.aliases.yml
96
+ - lib/config/config.components.yml
97
+ - lib/config/config.configurable.yml
98
+ - lib/config/config.languages.yml
99
+ - lib/config/config.yml
97
100
  - lib/ngi.rb
98
101
  - lib/ngi/configure.rb
99
102
  - lib/ngi/delegate.rb
100
103
  - lib/ngi/generator.rb
104
+ - lib/ngi/parser.rb
105
+ - lib/ngi/templates/markup/html/default/index.html
106
+ - lib/ngi/templates/script/coffee/default/basic.js
107
+ - lib/ngi/templates/script/coffee/default/config.js
108
+ - lib/ngi/templates/script/coffee/default/constant.js
109
+ - lib/ngi/templates/script/coffee/default/module.js
110
+ - lib/ngi/templates/script/es5/default/basic.js
111
+ - lib/ngi/templates/script/es5/default/config.js
112
+ - lib/ngi/templates/script/es5/default/constant.js
113
+ - lib/ngi/templates/script/es5/default/module.js
101
114
  - lib/ngi/utils/command_parser.rb
115
+ - lib/ngi/utils/current_dir.rb
102
116
  - lib/ngi/utils/jser.rb
117
+ - lib/ngi/utils/user_input.rb
103
118
  - lib/ngi/utils/utils.rb
104
119
  - lib/ngi/version.rb
105
- - lib/templates/markup/html/default/index.html
106
- - lib/templates/script/coffee/default/basic.js
107
- - lib/templates/script/coffee/default/config.js
108
- - lib/templates/script/coffee/default/constant.js
109
- - lib/templates/script/coffee/default/module.js
110
- - lib/templates/script/es5/default/basic.js
111
- - lib/templates/script/es5/default/config.js
112
- - lib/templates/script/es5/default/constant.js
113
- - lib/templates/script/es5/default/module.js
114
120
  - ngi.gemspec
115
- - test/sup/test.config.json
121
+ - test/config/config.components.aliases.yml
122
+ - test/config/config.components.yml
123
+ - test/config/config.configurable.yml
124
+ - test/config/config.languages.yml
125
+ - test/config/config.yml
126
+ - test/finished_files/script/coffee/directive.finished.coffee
127
+ - test/finished_files/script/es5/controller.finished.js
128
+ - test/finished_files/script/es5/directive.finished.js
129
+ - test/finished_files/script/es5/filter.finished.js
130
+ - test/templates/markup/html/default/index.html
131
+ - test/templates/script/coffee/default/basic.js
132
+ - test/templates/script/coffee/default/config.js
133
+ - test/templates/script/coffee/default/constant.js
134
+ - test/templates/script/coffee/default/module.js
135
+ - test/templates/script/es5/default/basic.js
136
+ - test/templates/script/es5/default/config.js
137
+ - test/templates/script/es5/default/constant.js
138
+ - test/templates/script/es5/default/module.js
116
139
  - test/test_ngi.rb
140
+ - test/testing_utils.rb
117
141
  homepage: https://github.com/joshbeam/angular_init
118
142
  licenses:
119
143
  - MIT
@@ -140,5 +164,23 @@ specification_version: 4
140
164
  summary: Speed up AngularJS development by creating templates for all your components
141
165
  from the command line.
142
166
  test_files:
143
- - test/sup/test.config.json
167
+ - test/config/config.components.aliases.yml
168
+ - test/config/config.components.yml
169
+ - test/config/config.configurable.yml
170
+ - test/config/config.languages.yml
171
+ - test/config/config.yml
172
+ - test/finished_files/script/coffee/directive.finished.coffee
173
+ - test/finished_files/script/es5/controller.finished.js
174
+ - test/finished_files/script/es5/directive.finished.js
175
+ - test/finished_files/script/es5/filter.finished.js
176
+ - test/templates/markup/html/default/index.html
177
+ - test/templates/script/coffee/default/basic.js
178
+ - test/templates/script/coffee/default/config.js
179
+ - test/templates/script/coffee/default/constant.js
180
+ - test/templates/script/coffee/default/module.js
181
+ - test/templates/script/es5/default/basic.js
182
+ - test/templates/script/es5/default/config.js
183
+ - test/templates/script/es5/default/constant.js
184
+ - test/templates/script/es5/default/module.js
144
185
  - test/test_ngi.rb
186
+ - test/testing_utils.rb