contao 0.6.5 → 0.6.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,11 +2,13 @@ language: ruby
2
2
  rvm:
3
3
  - 1.9.2
4
4
  - 1.9.3
5
+ - ruby-head
5
6
  - rbx-19mode
6
7
  - jruby-19mode
7
8
  matrix:
8
9
  allow_failures:
9
10
  - rvm: rbx-19mode # We have some failing specs we need to take care of
11
+ - rvm: ruby-head # Experimental
10
12
  notifications:
11
13
  recipients:
12
14
  - wael.nasreddine@gmail.com
@@ -1,3 +1,3 @@
1
1
  module Contao
2
- VERSION = '0.6.5'
2
+ VERSION = '0.6.6'
3
3
  end
@@ -80,6 +80,10 @@ namespace :contao do
80
80
  end
81
81
  end
82
82
 
83
+ Dir["#{public_path}/system/modules/*/config/runonce.php"].each do |f|
84
+ FileUtils.chmod 0666, f
85
+ end
86
+
83
87
  FileUtils.chmod 0666, public_path.join('sitemap.xml')
84
88
 
85
89
  TechnoGate::Contao::Notifier.notify 'The permissions of the contao folder has been fixed'
@@ -26,7 +26,8 @@ module TechnoGate
26
26
  it "should call #exhaustive_list_of_files_to_link" do
27
27
  subject.should_receive(:exhaustive_list_of_files_to_link).with(
28
28
  Rails.root.join(Rails.application.config.contao.path),
29
- Rails.public_path
29
+ Rails.public_path,
30
+ group: true
30
31
  ).once.and_return []
31
32
 
32
33
  subject.linkify
@@ -47,11 +48,19 @@ module TechnoGate
47
48
  end
48
49
 
49
50
  describe '#exhaustive_list_of_files_to_link' do
50
- it "should return the correct list of files" do
51
+ it 'should return the correct list of files' do
51
52
  list = subject.send :exhaustive_list_of_files_to_link, '/root/my_awesome_project/contao', '/root/my_awesome_project/public'
52
53
  list.should == [
53
- ['/root/my_awesome_project/contao/non_existing_folder', '/root/my_awesome_project/public/non_existing_folder'],
54
- ['/root/my_awesome_project/contao/system/modules/some_extension', '/root/my_awesome_project/public/system/modules/some_extension']
54
+ ['/root/my_awesome_project/contao/mod1', '/root/my_awesome_project/public/mod1'],
55
+ ['/root/my_awesome_project/contao/mod2', '/root/my_awesome_project/public/mod2']
56
+ ]
57
+ end
58
+
59
+ it 'should return the correct list of files when groups are enabled' do
60
+ list = subject.send :exhaustive_list_of_files_to_link, '/root/my_awesome_project/contao', '/root/my_awesome_project/public', group: true
61
+ list.should == [
62
+ ['/root/my_awesome_project/contao/mod1/non_existing_folder', '/root/my_awesome_project/public/non_existing_folder'],
63
+ ['/root/my_awesome_project/contao/mod2/system/modules/some_extension', '/root/my_awesome_project/public/system/modules/some_extension']
55
64
  ]
56
65
  end
57
66
  end
@@ -7,8 +7,8 @@ def stub_filesystem!(options = {})
7
7
  '/root/my_awesome_project/app/assets/javascripts',
8
8
  '/root/my_awesome_project/app/assets/stylesheets',
9
9
  '/root/my_awesome_project/app/assets/images',
10
- '/root/my_awesome_project/contao/non_existing_folder',
11
- '/root/my_awesome_project/contao/system/modules/some_extension',
10
+ '/root/my_awesome_project/contao/mod1/non_existing_folder',
11
+ '/root/my_awesome_project/contao/mod2/system/modules/some_extension',
12
12
  '/root/my_awesome_project/public/resources',
13
13
  '/root/my_awesome_project/public/system/config',
14
14
  '/root/my_awesome_project/public/system/modules/frontend',
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.5
4
+ version: 0.6.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-04 00:00:00.000000000 Z
12
+ date: 2012-07-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -211,7 +211,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
211
211
  version: '0'
212
212
  segments:
213
213
  - 0
214
- hash: -2106694263602221580
214
+ hash: 2094975421785634173
215
215
  requirements: []
216
216
  rubyforge_project:
217
217
  rubygems_version: 1.8.23