contao 0.3.2 → 0.3.3
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.
- data/contao.gemspec +1 -1
- data/lib/contao/version.rb +1 -1
- data/lib/guard/assets.rb +4 -4
- data/spec/lib/guard/assets_spec.rb +6 -6
- metadata +5 -5
data/contao.gemspec
CHANGED
|
@@ -21,7 +21,7 @@ Gem::Specification.new do |gem|
|
|
|
21
21
|
gem.add_dependency 'oily_png'
|
|
22
22
|
gem.add_dependency 'uglifier'
|
|
23
23
|
gem.add_dependency 'activesupport'
|
|
24
|
-
gem.add_dependency 'guard'
|
|
24
|
+
gem.add_dependency 'guard', '>= 1.1.1'
|
|
25
25
|
gem.add_dependency 'json'
|
|
26
26
|
gem.add_dependency 'parseconfig'
|
|
27
27
|
gem.add_dependency 'highline'
|
data/lib/contao/version.rb
CHANGED
data/lib/guard/assets.rb
CHANGED
|
@@ -34,15 +34,15 @@ module Guard
|
|
|
34
34
|
|
|
35
35
|
# Called on file(s) modifications that the Guard watches.
|
|
36
36
|
# @param [Array<String>] paths the changes files or paths
|
|
37
|
-
# @raise [:task_has_failed] when
|
|
38
|
-
def
|
|
37
|
+
# @raise [:task_has_failed] when run_on_changes has failed
|
|
38
|
+
def run_on_changes(paths)
|
|
39
39
|
compile(paths)
|
|
40
40
|
end
|
|
41
41
|
|
|
42
42
|
# Called on file(s) deletions that the Guard watches.
|
|
43
43
|
# @param [Array<String>] paths the deleted files or paths
|
|
44
|
-
# @raise [:task_has_failed] when
|
|
45
|
-
def
|
|
44
|
+
# @raise [:task_has_failed] when run_on_changes has failed
|
|
45
|
+
def run_on_removals(paths)
|
|
46
46
|
compile(paths)
|
|
47
47
|
end
|
|
48
48
|
|
|
@@ -71,31 +71,31 @@ module Guard
|
|
|
71
71
|
end
|
|
72
72
|
end
|
|
73
73
|
|
|
74
|
-
describe '#
|
|
74
|
+
describe '#run_on_changes' do
|
|
75
75
|
before :each do
|
|
76
76
|
@paths = mock('paths').as_null_object
|
|
77
77
|
end
|
|
78
78
|
|
|
79
|
-
it {should respond_to :
|
|
79
|
+
it {should respond_to :run_on_changes}
|
|
80
80
|
|
|
81
81
|
it "should call #compile" do
|
|
82
82
|
subject.should_receive(:compile).with(@paths).once
|
|
83
83
|
|
|
84
|
-
subject.send(:
|
|
84
|
+
subject.send(:run_on_changes, @paths)
|
|
85
85
|
end
|
|
86
86
|
end
|
|
87
87
|
|
|
88
|
-
describe '#
|
|
88
|
+
describe '#run_on_removals' do
|
|
89
89
|
before :each do
|
|
90
90
|
@paths = mock('paths').as_null_object
|
|
91
91
|
end
|
|
92
92
|
|
|
93
|
-
it {should respond_to :
|
|
93
|
+
it {should respond_to :run_on_removals}
|
|
94
94
|
|
|
95
95
|
it "should call #compile" do
|
|
96
96
|
subject.should_receive(:compile).with(@paths).once
|
|
97
97
|
|
|
98
|
-
subject.send(:
|
|
98
|
+
subject.send(:run_on_removals, @paths)
|
|
99
99
|
end
|
|
100
100
|
end
|
|
101
101
|
|
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.3.
|
|
4
|
+
version: 0.3.3
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -98,7 +98,7 @@ dependencies:
|
|
|
98
98
|
requirements:
|
|
99
99
|
- - ! '>='
|
|
100
100
|
- !ruby/object:Gem::Version
|
|
101
|
-
version:
|
|
101
|
+
version: 1.1.1
|
|
102
102
|
type: :runtime
|
|
103
103
|
prerelease: false
|
|
104
104
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -106,7 +106,7 @@ dependencies:
|
|
|
106
106
|
requirements:
|
|
107
107
|
- - ! '>='
|
|
108
108
|
- !ruby/object:Gem::Version
|
|
109
|
-
version:
|
|
109
|
+
version: 1.1.1
|
|
110
110
|
- !ruby/object:Gem::Dependency
|
|
111
111
|
name: json
|
|
112
112
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -258,7 +258,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
258
258
|
version: '0'
|
|
259
259
|
segments:
|
|
260
260
|
- 0
|
|
261
|
-
hash:
|
|
261
|
+
hash: 343131435900038940
|
|
262
262
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
263
263
|
none: false
|
|
264
264
|
requirements:
|
|
@@ -267,7 +267,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
267
267
|
version: '0'
|
|
268
268
|
segments:
|
|
269
269
|
- 0
|
|
270
|
-
hash:
|
|
270
|
+
hash: 343131435900038940
|
|
271
271
|
requirements: []
|
|
272
272
|
rubyforge_project:
|
|
273
273
|
rubygems_version: 1.8.24
|