rdm 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (95) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +0 -1
  3. data/Gemfile.lock +80 -0
  4. data/bin/rdm +78 -10
  5. data/example/.rdm/helpers/render_helper.rb +12 -0
  6. data/example/.rdm/templates/package/.gitignore +1 -0
  7. data/example/.rdm/templates/package/.rspec +2 -0
  8. data/example/.rdm/templates/package/<%=package_subdir_name%>/<%=package_name%>.rb +3 -0
  9. data/example/.rdm/templates/package/<%=package_subdir_name%>/<%=package_name%>/.gitkeep +0 -0
  10. data/{lib/rdm/templates/package/package.rb.erb → example/.rdm/templates/package/Package.rb} +0 -0
  11. data/{lib/rdm/templates/package/bin/console_irb → example/.rdm/templates/package/bin/console} +0 -0
  12. data/example/.rdm/templates/package/spec/spec_helper.rb +10 -0
  13. data/example/.rdm/templates/repository/dao/<%=name%>_dao.rb +4 -0
  14. data/example/.rdm/templates/repository/mapper/<%=name%>_mapper.rb +2 -0
  15. data/example/.rdm/templates/repository/repository/<%=name%>_repository.rb +2 -0
  16. data/example/.rdm/templates/repository/views/users.html.erb +2 -0
  17. data/example/Gemfile.lock +50 -0
  18. data/example/Rdm.packages +1 -0
  19. data/example/tests/diff_run +0 -0
  20. data/example/tests/run +0 -0
  21. data/lib/rdm.rb +40 -8
  22. data/lib/rdm/cli/compile_package.rb +56 -0
  23. data/lib/rdm/cli/dependencies_controller.rb +30 -0
  24. data/lib/rdm/cli/diff_package.rb +21 -0
  25. data/lib/rdm/cli/gen_package.rb +24 -32
  26. data/lib/rdm/cli/init.rb +20 -27
  27. data/lib/rdm/cli/template_generator.rb +38 -0
  28. data/lib/rdm/errors.rb +37 -0
  29. data/lib/rdm/gen/init.rb +29 -44
  30. data/lib/rdm/gen/package.rb +24 -78
  31. data/lib/rdm/git/diff_command.rb +13 -0
  32. data/lib/rdm/git/diff_manager.rb +30 -0
  33. data/lib/rdm/git/repository_locator.rb +23 -0
  34. data/lib/rdm/handlers/dependencies_handler.rb +110 -0
  35. data/lib/rdm/handlers/diff_package_handler.rb +48 -0
  36. data/lib/rdm/handlers/template_handler.rb +118 -0
  37. data/lib/rdm/helpers/path_helper.rb +15 -0
  38. data/lib/rdm/package.rb +6 -0
  39. data/lib/rdm/package_importer.rb +1 -1
  40. data/lib/rdm/packages/compiler_service.rb +78 -0
  41. data/lib/rdm/packages/locator.rb +28 -0
  42. data/lib/rdm/settings.rb +14 -1
  43. data/lib/rdm/spec_runner.rb +5 -0
  44. data/lib/rdm/spec_runner/command_generator.rb +28 -0
  45. data/lib/rdm/spec_runner/command_params.rb +3 -0
  46. data/lib/rdm/spec_runner/package_fetcher.rb +13 -0
  47. data/lib/rdm/spec_runner/runner.rb +122 -0
  48. data/lib/rdm/spec_runner/view.rb +20 -0
  49. data/lib/rdm/templates/init/.rdm/helpers/render_helper.rb +12 -0
  50. data/lib/rdm/templates/init/{Gemfile.erb → Gemfile} +0 -0
  51. data/lib/rdm/templates/init/{Rdm.packages.erb → Rdm.packages} +0 -0
  52. data/lib/rdm/templates/init/{Readme.md.erb → Readme.md} +0 -0
  53. data/lib/rdm/templates/init/tests/diff_run +29 -0
  54. data/lib/rdm/templates/init/tests/run +7 -210
  55. data/lib/rdm/templates/package/<%=package_subdir_name%>/<%=package_name%>.rb +3 -0
  56. data/lib/rdm/templates/package/<%=package_subdir_name%>/<%=package_name%>/.gitkeep +0 -0
  57. data/lib/rdm/templates/package/Package.rb +8 -0
  58. data/lib/rdm/templates/package/bin/console +16 -0
  59. data/lib/rdm/templates/template_detector.rb +32 -0
  60. data/lib/rdm/templates/template_renderer.rb +49 -0
  61. data/lib/rdm/utils/file_utils.rb +20 -0
  62. data/lib/rdm/utils/render_util.rb +24 -0
  63. data/lib/rdm/utils/string_utils.rb +16 -0
  64. data/lib/rdm/version.rb +1 -1
  65. data/rdm.gemspec +1 -1
  66. data/spec/helpers/example_project_helper.rb +217 -0
  67. data/spec/helpers/git_commands_helper.rb +13 -0
  68. data/spec/rdm/cli/compile_package_spec.rb +114 -0
  69. data/spec/rdm/cli/dependencies_controller_spec.rb +50 -0
  70. data/spec/rdm/cli/diff_package_spec.rb +5 -0
  71. data/spec/rdm/cli/gen_package_spec.rb +60 -86
  72. data/spec/rdm/cli/init_spec.rb +53 -70
  73. data/spec/rdm/gen/init_spec.rb +21 -38
  74. data/spec/rdm/gen/package_spec.rb +70 -51
  75. data/spec/rdm/git/diff_manager_spec.rb +81 -0
  76. data/spec/rdm/git/repository_locator_spec.rb +31 -0
  77. data/spec/rdm/handlers/dependencies_handler_spec.rb +84 -0
  78. data/spec/rdm/handlers/diff_package_handler_spec.rb +78 -0
  79. data/spec/rdm/handlers/template_handler_spec.rb +94 -0
  80. data/spec/rdm/helpers/path_helper_spec.rb +52 -0
  81. data/spec/rdm/package/compiler_service_spec.rb +124 -0
  82. data/spec/rdm/package/locator_spec.rb +31 -0
  83. data/spec/rdm/rdm_spec.rb +2 -2
  84. data/spec/rdm/spec_runner/runner_spec.rb +12 -0
  85. data/spec/rdm/templates/template_detector_spec.rb +39 -0
  86. data/spec/rdm/templates/template_renderer_spec.rb +42 -0
  87. data/spec/spec_helper.rb +31 -25
  88. metadata +84 -17
  89. data/lib/rdm/gen/concerns/template_handling.rb +0 -81
  90. data/lib/rdm/support/colorize.rb +0 -106
  91. data/lib/rdm/support/render.rb +0 -17
  92. data/lib/rdm/support/template.rb +0 -30
  93. data/lib/rdm/templates/package/main_module_file.rb.erb +0 -3
  94. data/spec/rdm/support/colorize_spec.rb +0 -24
  95. data/spec/rdm/support/template_spec.rb +0 -20
@@ -0,0 +1,52 @@
1
+ require 'spec_helper'
2
+
3
+ describe Rdm::Helpers::PathHelper do
4
+ include ExampleProjectHelper
5
+
6
+ describe "::package_path" do
7
+ subject { Class.new }
8
+
9
+ before do
10
+ subject.extend(described_class)
11
+ initialize_example_project
12
+ end
13
+
14
+ after { reset_example_project }
15
+
16
+ context "if rdm is not initialized" do
17
+ before do
18
+ @file_without_rdm = File.join(File.dirname(example_project_path), 'path_helper_example.rb')
19
+ end
20
+
21
+ it "raises Rdm::Errors::SourceFileDoesNotExist error" do
22
+ expect{
23
+ Rdm.package_path(:core, current_file: @file_without_rdm)
24
+ }.to raise_error(Rdm::Errors::SourceFileDoesNotExist)
25
+ end
26
+ end
27
+
28
+ context "with invalid package name" do
29
+ before do
30
+ @file_with_invalid_package_name = File.join(example_project_path, 'path_helper_example.rb')
31
+ end
32
+
33
+ it "raises Rdm::Errors::PackageDoesNotExist error" do
34
+ expect{
35
+ Rdm.package_path(:invalid_package_name, current_file: @file_with_invalid_package_name)
36
+ }.to raise_error(Rdm::Errors::PackageDoesNotExist)
37
+ end
38
+ end
39
+
40
+ context "with valid package name" do
41
+ before do
42
+ @example_file = File.join(example_project_path, 'path_helper_example.rb')
43
+ end
44
+
45
+ it "returns path to file" do
46
+ expect(
47
+ subject.package_path(:core, current_file: @example_file)
48
+ ).to eq(File.join(example_project_path, "domain/core"))
49
+ end
50
+ end
51
+ end
52
+ end
@@ -0,0 +1,124 @@
1
+ require 'spec_helper'
2
+
3
+ describe Rdm::Packages::CompilerService do
4
+ include ExampleProjectHelper
5
+
6
+ subject { described_class }
7
+ let(:source_parser) { Rdm::SourceParser }
8
+ let(:source_path) { File.join(compile_path, Rdm::SOURCE_FILENAME) }
9
+ let(:compile_path) { "/tmp/example_compile" }
10
+
11
+ describe "::compile" do
12
+ before { initialize_example_project }
13
+
14
+ after do
15
+ reset_example_project
16
+ FileUtils.rm_rf compile_path
17
+ end
18
+
19
+ context "to existing directory" do
20
+ before do
21
+ subject.compile(
22
+ package_name: 'web',
23
+ compile_path: compile_path,
24
+ project_path: example_project_path
25
+ )
26
+ end
27
+
28
+ context 'deletes old directory and creates new package' do
29
+ before do
30
+ subject.compile(
31
+ package_name: 'core',
32
+ compile_path: compile_path,
33
+ project_path: example_project_path
34
+ )
35
+ end
36
+
37
+ it "deletes old unused package from file structure" do
38
+ expect(
39
+ File.exists?(File.join(compile_path, 'application/web/package/web.rb'))
40
+ ).to be false
41
+ end
42
+
43
+ it "deletes old unused package from Rdm.packages" do
44
+ package_names = source_parser
45
+ .read_and_init_source(source_path)
46
+ .packages
47
+ .values
48
+ .map(&:name)
49
+
50
+ expect(package_names).to_not include("web")
51
+ expect(package_names).to include("core")
52
+ end
53
+ end
54
+ end
55
+
56
+ context "package without dependencies" do
57
+ before do
58
+ subject.compile(
59
+ package_name: 'repository',
60
+ compile_path: compile_path,
61
+ project_path: example_project_path
62
+ )
63
+ end
64
+
65
+ it "creates folder" do
66
+ expect(Dir.exists?(compile_path)).to be true
67
+ end
68
+
69
+ it "creates Rdm.packges" do
70
+ expect(File.exists?(source_path)).to be true
71
+ end
72
+
73
+ it "copies files structure from original package" do
74
+ expect(
75
+ File.exists?(File.join(compile_path, 'infrastructure/repository/package/repository.rb'))
76
+ ).to be true
77
+ end
78
+
79
+ it "add only required package name to Rdm.packages" do
80
+ package_names = source_parser
81
+ .read_and_init_source(source_path)
82
+ .packages
83
+ .values
84
+ .map(&:name)
85
+
86
+ expect(package_names).to include("repository")
87
+ expect(package_names.size).to eq(1)
88
+ end
89
+ end
90
+
91
+ context "package with dependencies" do
92
+ before do
93
+ subject.compile(
94
+ package_name: 'web',
95
+ compile_path: compile_path,
96
+ project_path: example_project_path
97
+ )
98
+ end
99
+
100
+ it "copies files structure for each dependent package" do
101
+ expect(
102
+ File.exists?(File.join(compile_path, 'domain/core/package/core.rb'))
103
+ ).to be true
104
+
105
+ expect(
106
+ File.exists?(File.join(compile_path, 'application/web/package/web.rb'))
107
+ ).to be true
108
+ end
109
+
110
+ it "add only required package name to Rdm.packages" do
111
+ package_names = source_parser
112
+ .read_and_init_source(source_path)
113
+ .packages
114
+ .values
115
+ .map(&:name)
116
+
117
+ expect(package_names).to include("web")
118
+ expect(package_names).to include("core")
119
+ expect(package_names).to include("repository")
120
+ expect(package_names.size).to eq(3)
121
+ end
122
+ end
123
+ end
124
+ end
@@ -0,0 +1,31 @@
1
+ require "spec_helper"
2
+
3
+ describe Rdm::Packages::Locator do
4
+ subject { described_class }
5
+
6
+ let(:example_path) {
7
+ File.join(File.expand_path("../../../", __dir__), "example")
8
+ }
9
+
10
+ context "::locate" do
11
+ it "returns package name for existing package path" do
12
+ existing_path = File.join(example_path, 'application/web/package/web/sample_controller.rb')
13
+
14
+ expect(subject.locate(existing_path)).to eq(File.join(example_path, "application/web"))
15
+ end
16
+
17
+ it "returns package name for non existing package path" do
18
+ non_existing_path = File.join(example_path, 'domain/core/invalid/path.rb')
19
+
20
+ expect(subject.locate(non_existing_path)).to eq(File.join(example_path, "domain/core"))
21
+ end
22
+
23
+ it "raises PackageNotFound error if no package found within source folder" do
24
+ no_package_path = File.join(example_path, 'helpers/url_helper.rb')
25
+
26
+ expect{
27
+ subject.locate(no_package_path)
28
+ }.to raise_error(Rdm::Errors::PackageFileDoesNotFound)
29
+ end
30
+ end
31
+ end
@@ -9,14 +9,14 @@ describe Rdm do
9
9
  let(:source_file) {
10
10
  example_path.join('Rdm.packages').to_s
11
11
  }
12
-
13
12
  let(:package_path) {
14
13
  example_path.join("application/web").to_s
15
14
  }
15
+ let(:stdout) { SpecLogger.new }
16
16
 
17
17
  context "init" do
18
18
  it "will initialize RDM based on path to a package.rb file" do
19
- package = Rdm.init(package_path)
19
+ package = Rdm.init(package_path, stdout: stdout)
20
20
  expect(package.name).to eq("web")
21
21
  end
22
22
  end
@@ -0,0 +1,12 @@
1
+ require 'spec_helper'
2
+
3
+ describe Rdm::SpecRunner::Runner do
4
+ include ExampleProjectHelper
5
+
6
+ before { initialize_example_project }
7
+ after { reset_example_project }
8
+
9
+ it 'run some test' do
10
+
11
+ end
12
+ end
@@ -0,0 +1,39 @@
1
+ require 'spec_helper'
2
+
3
+ describe Rdm::Templates::TemplateDetector do
4
+ subject { described_class.new(project_path) }
5
+
6
+ let(:project_path) { File.join(File.expand_path('../../../..', __FILE__), 'example')}
7
+
8
+ context "#detect_template_folder" do
9
+ context "for existing template" do
10
+ it "returns absolute path to templates folder" do
11
+ expect(
12
+ subject.detect_template_folder(:repository)
13
+ ).to eq(File.join(project_path, '.rdm/templates/repository'))
14
+ end
15
+ end
16
+
17
+ context "for missing template" do
18
+ it "raises Rdm::Errors::TemplateDoesNotExist error" do
19
+ expect {
20
+ subject.detect_template_folder(:invalid_repository)
21
+ }.to raise_error(Rdm::Errors::TemplateDoesNotExist)
22
+ end
23
+ end
24
+ end
25
+
26
+ context "#check_template_file" do
27
+ context "for file in projects templates directory folder" do
28
+
29
+ end
30
+
31
+ context "for file in gem templates directory folder" do
32
+
33
+ end
34
+
35
+ context "for missing file" do
36
+
37
+ end
38
+ end
39
+ end
@@ -0,0 +1,42 @@
1
+ require 'spec_helper'
2
+
3
+ describe Rdm::Templates::TemplateRenderer do
4
+ subject { described_class }
5
+
6
+ let(:example_string) { '/tmp/example_project/<%=entity_name%>/services/<%=service_name%>/' }
7
+ let(:no_variables_string) { "/tmp/example_project/\nhello" }
8
+ let(:entity_name) { 'users' }
9
+ let(:service_name) { 'creator' }
10
+
11
+ describe '::handle' do
12
+ context "without undefined variables" do
13
+ it "replace variables to real values for specified string" do
14
+ expect(
15
+ subject.handle(example_string, {
16
+ entity_name: entity_name,
17
+ service_name: service_name
18
+ })
19
+ ).to eq('/tmp/example_project/users/services/creator/')
20
+ end
21
+ end
22
+
23
+ context "with undefined variables" do
24
+ it "raises Rdm::Errors::TemplateVariableNotDefined" do
25
+ expect {
26
+ subject.handle(example_string)
27
+ }.to raise_error(Rdm::Errors::TemplateVariableNotDefined)
28
+ end
29
+ end
30
+
31
+ context "without variables" do
32
+ it "not modified string without any variables" do
33
+ expect(
34
+ subject.handle(no_variables_string, {
35
+ entity_name: entity_name,
36
+ service_name: service_name
37
+ })
38
+ ).to eq("/tmp/example_project/\nhello")
39
+ end
40
+ end
41
+ end
42
+ end
@@ -1,4 +1,11 @@
1
1
  require 'simplecov'
2
+ require 'rdm'
3
+ require 'byebug'
4
+ require 'fileutils'
5
+
6
+ require_relative 'helpers/example_project_helper'
7
+ require_relative 'helpers/git_commands_helper'
8
+
2
9
  SimpleCov.start do
3
10
  add_filter "/spec/"
4
11
  add_filter "/.direnv/"
@@ -9,47 +16,46 @@ if ENV['CI']=='true'
9
16
  SimpleCov.formatter = SimpleCov::Formatter::Codecov
10
17
  end
11
18
 
12
- require 'rdm'
13
- require "byebug"
14
-
15
19
  Rdm.setup do
16
- silence_missing_package_file(true)
20
+ silence_missing_package_file true
17
21
  end
18
22
 
19
23
  RSpec.configure do |config|
20
24
  config.color = true
21
25
  end
22
26
 
27
+ def ensure_exists(file)
28
+ expect(File.exists?(file)).to be true
29
+ end
23
30
 
24
- module SetupHelper
25
- def clean_tmp
26
- FileUtils.rm_rf(tmp_dir)
27
- end
31
+ def ensure_content(file, content)
32
+ expect(File.read(file)).to match(content)
33
+ end
28
34
 
29
- def fresh_project
30
- clean_tmp
31
- FileUtils.mkdir_p(tmp_dir)
32
- FileUtils.cp_r(example_src, tmp_dir)
33
- end
35
+ class SpecLogger
36
+ attr_reader :output
34
37
 
35
- def fresh_empty_project
36
- clean_tmp
37
- FileUtils.mkdir_p(empty_project_dir)
38
+ def initialize(stdin: nil)
39
+ @stdin = stdin
40
+ @output = []
38
41
  end
39
42
 
40
- def project_dir
41
- File.join(tmp_dir, "example")
43
+ def puts(message)
44
+ @output.push(message)
42
45
  end
43
-
44
- def empty_project_dir
45
- File.join(tmp_dir, "empty_project")
46
+
47
+ def print(message)
48
+ @output.push(message)
46
49
  end
47
50
 
48
- def tmp_dir
49
- File.join(File.dirname(__FILE__), "tmp/projects")
51
+ def clean
52
+ @output = []
50
53
  end
51
54
 
52
- def example_src
53
- File.join(File.dirname(__FILE__), "../example/")
55
+ def gets
56
+ @stdin
54
57
  end
55
58
  end
59
+
60
+ module SetupHelper
61
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Droid Labs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-11 00:00:00.000000000 Z
11
+ date: 2017-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -120,6 +120,7 @@ files:
120
120
  - ".rubocop.yml"
121
121
  - ".travis.yml"
122
122
  - Gemfile
123
+ - Gemfile.lock
123
124
  - LICENSE.txt
124
125
  - README.md
125
126
  - Rakefile
@@ -128,7 +129,20 @@ files:
128
129
  - docs/_config.yml
129
130
  - docs/index.md
130
131
  - docs/interface_brainstorming.md
132
+ - example/.rdm/helpers/render_helper.rb
133
+ - example/.rdm/templates/package/.gitignore
134
+ - example/.rdm/templates/package/.rspec
135
+ - example/.rdm/templates/package/<%=package_subdir_name%>/<%=package_name%>.rb
136
+ - example/.rdm/templates/package/<%=package_subdir_name%>/<%=package_name%>/.gitkeep
137
+ - example/.rdm/templates/package/Package.rb
138
+ - example/.rdm/templates/package/bin/console
139
+ - example/.rdm/templates/package/spec/spec_helper.rb
140
+ - example/.rdm/templates/repository/dao/<%=name%>_dao.rb
141
+ - example/.rdm/templates/repository/mapper/<%=name%>_mapper.rb
142
+ - example/.rdm/templates/repository/repository/<%=name%>_repository.rb
143
+ - example/.rdm/templates/repository/views/users.html.erb
131
144
  - example/Gemfile
145
+ - example/Gemfile.lock
132
146
  - example/Makefile
133
147
  - example/Rdm.packages
134
148
  - example/Readme.md
@@ -147,55 +161,94 @@ files:
147
161
  - example/server/Package.rb
148
162
  - example/server/package/server.rb
149
163
  - example/server/server.rb
164
+ - example/tests/diff_run
165
+ - example/tests/run
150
166
  - lib/rdm.rb
167
+ - lib/rdm/cli/compile_package.rb
168
+ - lib/rdm/cli/dependencies_controller.rb
169
+ - lib/rdm/cli/diff_package.rb
151
170
  - lib/rdm/cli/gen_package.rb
152
171
  - lib/rdm/cli/init.rb
172
+ - lib/rdm/cli/template_generator.rb
153
173
  - lib/rdm/config.rb
154
174
  - lib/rdm/config_manager.rb
155
175
  - lib/rdm/config_scope.rb
156
176
  - lib/rdm/errors.rb
157
- - lib/rdm/gen/concerns/template_handling.rb
158
177
  - lib/rdm/gen/init.rb
159
178
  - lib/rdm/gen/package.rb
179
+ - lib/rdm/git/diff_command.rb
180
+ - lib/rdm/git/diff_manager.rb
181
+ - lib/rdm/git/repository_locator.rb
182
+ - lib/rdm/handlers/dependencies_handler.rb
183
+ - lib/rdm/handlers/diff_package_handler.rb
184
+ - lib/rdm/handlers/template_handler.rb
185
+ - lib/rdm/helpers/path_helper.rb
160
186
  - lib/rdm/package.rb
161
187
  - lib/rdm/package_importer.rb
162
188
  - lib/rdm/package_parser.rb
189
+ - lib/rdm/packages/compiler_service.rb
190
+ - lib/rdm/packages/locator.rb
163
191
  - lib/rdm/settings.rb
164
192
  - lib/rdm/source.rb
165
193
  - lib/rdm/source_locator.rb
166
194
  - lib/rdm/source_parser.rb
167
- - lib/rdm/support/colorize.rb
168
- - lib/rdm/support/render.rb
169
- - lib/rdm/support/template.rb
170
- - lib/rdm/templates/init/Gemfile.erb
171
- - lib/rdm/templates/init/Rdm.packages.erb
172
- - lib/rdm/templates/init/Readme.md.erb
195
+ - lib/rdm/spec_runner.rb
196
+ - lib/rdm/spec_runner/command_generator.rb
197
+ - lib/rdm/spec_runner/command_params.rb
198
+ - lib/rdm/spec_runner/package_fetcher.rb
199
+ - lib/rdm/spec_runner/runner.rb
200
+ - lib/rdm/spec_runner/view.rb
201
+ - lib/rdm/templates/init/.rdm/helpers/render_helper.rb
202
+ - lib/rdm/templates/init/Gemfile
203
+ - lib/rdm/templates/init/Rdm.packages
204
+ - lib/rdm/templates/init/Readme.md
205
+ - lib/rdm/templates/init/tests/diff_run
173
206
  - lib/rdm/templates/init/tests/run
174
207
  - lib/rdm/templates/package/.gitignore
175
208
  - lib/rdm/templates/package/.rspec
176
- - lib/rdm/templates/package/bin/console_irb
177
- - lib/rdm/templates/package/main_module_file.rb.erb
178
- - lib/rdm/templates/package/package.rb.erb
209
+ - lib/rdm/templates/package/<%=package_subdir_name%>/<%=package_name%>.rb
210
+ - lib/rdm/templates/package/<%=package_subdir_name%>/<%=package_name%>/.gitkeep
211
+ - lib/rdm/templates/package/Package.rb
212
+ - lib/rdm/templates/package/bin/console
179
213
  - lib/rdm/templates/package/spec/spec_helper.rb
214
+ - lib/rdm/templates/template_detector.rb
215
+ - lib/rdm/templates/template_renderer.rb
216
+ - lib/rdm/utils/file_utils.rb
217
+ - lib/rdm/utils/render_util.rb
218
+ - lib/rdm/utils/string_utils.rb
180
219
  - lib/rdm/version.rb
181
220
  - rdm.gemspec
182
221
  - spec/fixtures/SampleSource.rb
183
222
  - spec/fixtures/config.yml
184
223
  - spec/fixtures/sample_prj/Rdm.packages
185
224
  - spec/fixtures/sample_prj/infrastructure/web/Package.rb
225
+ - spec/helpers/example_project_helper.rb
226
+ - spec/helpers/git_commands_helper.rb
227
+ - spec/rdm/cli/compile_package_spec.rb
228
+ - spec/rdm/cli/dependencies_controller_spec.rb
229
+ - spec/rdm/cli/diff_package_spec.rb
186
230
  - spec/rdm/cli/gen_package_spec.rb
187
231
  - spec/rdm/cli/init_spec.rb
188
232
  - spec/rdm/config_manager_spec.rb
189
233
  - spec/rdm/gen/init_spec.rb
190
234
  - spec/rdm/gen/package_spec.rb
235
+ - spec/rdm/git/diff_manager_spec.rb
236
+ - spec/rdm/git/repository_locator_spec.rb
237
+ - spec/rdm/handlers/dependencies_handler_spec.rb
238
+ - spec/rdm/handlers/diff_package_handler_spec.rb
239
+ - spec/rdm/handlers/template_handler_spec.rb
240
+ - spec/rdm/helpers/path_helper_spec.rb
241
+ - spec/rdm/package/compiler_service_spec.rb
242
+ - spec/rdm/package/locator_spec.rb
191
243
  - spec/rdm/package_importer_spec.rb
192
244
  - spec/rdm/package_parser_spec.rb
193
245
  - spec/rdm/rdm_spec.rb
194
246
  - spec/rdm/settings_spec.rb
195
247
  - spec/rdm/source_locator_spec.rb
196
248
  - spec/rdm/source_parser_spec.rb
197
- - spec/rdm/support/colorize_spec.rb
198
- - spec/rdm/support/template_spec.rb
249
+ - spec/rdm/spec_runner/runner_spec.rb
250
+ - spec/rdm/templates/template_detector_spec.rb
251
+ - spec/rdm/templates/template_renderer_spec.rb
199
252
  - spec/spec_helper.rb
200
253
  homepage:
201
254
  licenses: []
@@ -216,7 +269,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
216
269
  version: '0'
217
270
  requirements: []
218
271
  rubyforge_project:
219
- rubygems_version: 2.5.1
272
+ rubygems_version: 2.6.12
220
273
  signing_key:
221
274
  specification_version: 4
222
275
  summary: Ruby Dependency Manager
@@ -225,17 +278,31 @@ test_files:
225
278
  - spec/fixtures/config.yml
226
279
  - spec/fixtures/sample_prj/Rdm.packages
227
280
  - spec/fixtures/sample_prj/infrastructure/web/Package.rb
281
+ - spec/helpers/example_project_helper.rb
282
+ - spec/helpers/git_commands_helper.rb
283
+ - spec/rdm/cli/compile_package_spec.rb
284
+ - spec/rdm/cli/dependencies_controller_spec.rb
285
+ - spec/rdm/cli/diff_package_spec.rb
228
286
  - spec/rdm/cli/gen_package_spec.rb
229
287
  - spec/rdm/cli/init_spec.rb
230
288
  - spec/rdm/config_manager_spec.rb
231
289
  - spec/rdm/gen/init_spec.rb
232
290
  - spec/rdm/gen/package_spec.rb
291
+ - spec/rdm/git/diff_manager_spec.rb
292
+ - spec/rdm/git/repository_locator_spec.rb
293
+ - spec/rdm/handlers/dependencies_handler_spec.rb
294
+ - spec/rdm/handlers/diff_package_handler_spec.rb
295
+ - spec/rdm/handlers/template_handler_spec.rb
296
+ - spec/rdm/helpers/path_helper_spec.rb
297
+ - spec/rdm/package/compiler_service_spec.rb
298
+ - spec/rdm/package/locator_spec.rb
233
299
  - spec/rdm/package_importer_spec.rb
234
300
  - spec/rdm/package_parser_spec.rb
235
301
  - spec/rdm/rdm_spec.rb
236
302
  - spec/rdm/settings_spec.rb
237
303
  - spec/rdm/source_locator_spec.rb
238
304
  - spec/rdm/source_parser_spec.rb
239
- - spec/rdm/support/colorize_spec.rb
240
- - spec/rdm/support/template_spec.rb
305
+ - spec/rdm/spec_runner/runner_spec.rb
306
+ - spec/rdm/templates/template_detector_spec.rb
307
+ - spec/rdm/templates/template_renderer_spec.rb
241
308
  - spec/spec_helper.rb