contao 0.6.4 → 0.6.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -8,7 +8,8 @@ module TechnoGate
8
8
  def linkify
9
9
  exhaustive_list_of_files_to_link(
10
10
  Rails.root.join(config.contao.path),
11
- Rails.public_path
11
+ Rails.public_path,
12
+ group: true
12
13
  ).each do |list|
13
14
  FileUtils.ln_s list[0], list[1]
14
15
  end
@@ -61,11 +62,13 @@ module TechnoGate
61
62
  # @param [String] Absolute path to folder from which to link
62
63
  # @param [String] Absolute path to folder to which to link
63
64
  # @return [Array]
64
- def exhaustive_list_of_files_to_link(from, to)
65
+ def exhaustive_list_of_files_to_link(from, to, options = {})
65
66
  files = []
66
67
  Dir["#{from}/*"].each do |f|
67
68
  file = "#{to}/#{File.basename f}"
68
- if File.exists? file
69
+ if options[:group]
70
+ exhaustive_list_of_files_to_link(f, to).each { |f| files << f }
71
+ elsif File.exists? file
69
72
  exhaustive_list_of_files_to_link(f, file).each { |f| files << f }
70
73
  else
71
74
  files << [f, file]
@@ -1,3 +1,3 @@
1
1
  module Contao
2
- VERSION = '0.6.4'
2
+ VERSION = '0.6.5'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: contao
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.4
4
+ version: 0.6.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -211,7 +211,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
211
211
  version: '0'
212
212
  segments:
213
213
  - 0
214
- hash: 1687258099450564260
214
+ hash: -2106694263602221580
215
215
  requirements: []
216
216
  rubyforge_project:
217
217
  rubygems_version: 1.8.23