web_server_config_generator 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README +0 -0
  2. data/bin/web_server_setup +7 -3
  3. metadata +2 -2
data/README CHANGED
Binary file
data/bin/web_server_setup CHANGED
@@ -312,7 +312,11 @@ module WebServerSetup
312
312
  server_name_env_project_map[server_name][:projects] << p
313
313
  end
314
314
  end
315
- server_name_env_project_map = server_name_env_project_map.select { |server_name, env_and_projects| env_and_projects[:projects].size > 1 }
315
+ server_name_env_project_map = server_name_env_project_map.select do |server_name, env_and_projects|
316
+ # more than one project with the same server_name
317
+ # don't count projects that evaluate to the same path
318
+ env_and_projects[:projects].map { |p| p.realpath }.uniq.size > 1
319
+ end
316
320
  @sub_uri_projects = server_name_env_project_map.map do |server_name, env_and_projects|
317
321
  WebServerConfigGenerator::SubUriProject.new(server_name, env_and_projects, self)
318
322
  end
@@ -410,8 +414,8 @@ module WebServerSetup
410
414
  Dir[File.join(projects_dir, "*", ".webconfig.yml")],
411
415
  Dir[File.join(projects_dir, "*", "*", ".webconfig.yml")],
412
416
  Dir[File.join(projects_dir, "*", "*", "*", ".webconfig.yml")],
413
- ].flatten.each do |webconfig_path|
414
- @app_projects << WebServerConfigGenerator::ProjectDirectory.new(File.dirname(webconfig_path), self)
417
+ ].flatten.map { |p| Pathname.new(p).realpath.dirname }.uniq.each do |path|
418
+ @app_projects << WebServerConfigGenerator::ProjectDirectory.new(path, self)
415
419
  end
416
420
  end
417
421
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 5
9
- version: 0.0.5
8
+ - 6
9
+ version: 0.0.6
10
10
  platform: ruby
11
11
  authors:
12
12
  - Expected Behavior