trackman 0.5.7 → 0.5.8

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -9,7 +9,7 @@ GIT
9
9
  PATH
10
10
  remote: .
11
11
  specs:
12
- trackman (0.5.6)
12
+ trackman (0.5.7)
13
13
  heroku (>= 2.26.2)
14
14
  json
15
15
  nokogiri
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # Trackman
2
- Trackman is a Heroku add-on that hosts your maintenance pages and their assets outside your app (S3).
2
+ [Trackman](http://www.trackman-addon.com) is a Heroku add-on that hosts your maintenance pages and their assets outside your app (S3).
3
3
  You keep them within your project and Trackman syncs them to S3 when you deploy.
4
4
 
5
5
  Works out of the box for Ruby(1.8.7 and 1.9.3) on
@@ -109,14 +109,13 @@ Executing this task will throw exceptions instead of silently failing like the n
109
109
 
110
110
  ### Bug reports
111
111
 
112
- Any bug report can be submitted here.
113
- https://github.com/SynApps/trackman/issues
112
+ Any bug report can be submitted [here](https://github.com/SynApps/trackman/issues).
114
113
 
115
114
 
116
115
  ### Creators / Maintainers
117
116
 
118
- * Jeremy Fabre (https://github.com/jfabre)
119
- * Emanuel Petre (https://github.com/epetre)
117
+ * [Jeremy Fabre](https://github.com/jfabre)
118
+ * [Emanuel Petre](https://github.com/epetre)
120
119
 
121
120
  ### Copyright
122
121
 
@@ -124,7 +123,7 @@ Copyright © 2012 SynApps
124
123
 
125
124
  ## License
126
125
 
127
- Trackman is released under the MIT license:
126
+ The trackman gem (client) is released under the MIT license:
128
127
 
129
128
  [LICENSE](https://github.com/jfabre/trackman/blob/master/LICENSE)
130
129
 
@@ -24,7 +24,10 @@ module Trackman
24
24
  end
25
25
 
26
26
  def inner_css_paths
27
- data.scan(@@import).collect{|x| @@url.match(x)[1]}.select{|x| !x.embedded? }
27
+ #clean css comments
28
+ my_data = data.gsub(/\/\*.*\*\//m, '')
29
+ my_data = my_data.gsub(/\<\!\-\-.*\-\-\>/m, '')
30
+ my_data.scan(@@import).collect{|x| @@url.match(x)[1]}.select{|x| !x.embedded? }
28
31
  end
29
32
  end
30
33
  end
@@ -1,3 +1,3 @@
1
1
  module Trackman
2
- VERSION = "0.5.7"
2
+ VERSION = "0.5.8"
3
3
  end
@@ -36,4 +36,12 @@ describe CssAsset do
36
36
 
37
37
  actual.should == expected
38
38
  end
39
+
40
+ it "does not return assets in comment" do
41
+ expected = []
42
+ asset = Asset.create(:path => 'spec/test_data/css/comments.css')
43
+ actual = asset.assets
44
+
45
+ actual.should == expected
46
+ end
39
47
  end
@@ -60,4 +60,13 @@ describe Trackman::Assets::HtmlAsset do
60
60
 
61
61
  actual.should == expected
62
62
  end
63
+
64
+ it "does not return assets in comments" do
65
+ asset = Asset.create(:path => 'spec/test_data/html/comments.html')
66
+ expected = []
67
+
68
+ actual = asset.children_paths
69
+
70
+ actual.should == expected
71
+ end
63
72
  end
@@ -0,0 +1,3 @@
1
+ /*
2
+ @import url('imported.css');
3
+ */
@@ -0,0 +1,5 @@
1
+ <!--
2
+ <style type="text/css">
3
+ @import url('css/imported.css');
4
+ </style>
5
+ -->
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trackman
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.7
4
+ version: 0.5.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-10-01 00:00:00.000000000 Z
13
+ date: 2012-10-08 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rest-client
@@ -468,6 +468,7 @@ files:
468
468
  - spec/test_data/all/all3.html
469
469
  - spec/test_data/b.js
470
470
  - spec/test_data/c.js
471
+ - spec/test_data/css/comments.css
471
472
  - spec/test_data/css/image/riding-you.jpg
472
473
  - spec/test_data/css/image/with-image.css
473
474
  - spec/test_data/css/imported-loop1.css
@@ -483,6 +484,7 @@ files:
483
484
  - spec/test_data/css/with-multiple-assets.css
484
485
  - spec/test_data/external_paths/1.css
485
486
  - spec/test_data/external_paths/1.html
487
+ - spec/test_data/html/comments.html
486
488
  - spec/test_data/sample.html
487
489
  - spec/test_data/test1.jpeg
488
490
  - spec/test_data/test2.png
@@ -781,6 +783,7 @@ test_files:
781
783
  - spec/test_data/all/all3.html
782
784
  - spec/test_data/b.js
783
785
  - spec/test_data/c.js
786
+ - spec/test_data/css/comments.css
784
787
  - spec/test_data/css/image/riding-you.jpg
785
788
  - spec/test_data/css/image/with-image.css
786
789
  - spec/test_data/css/imported-loop1.css
@@ -796,6 +799,7 @@ test_files:
796
799
  - spec/test_data/css/with-multiple-assets.css
797
800
  - spec/test_data/external_paths/1.css
798
801
  - spec/test_data/external_paths/1.html
802
+ - spec/test_data/html/comments.html
799
803
  - spec/test_data/sample.html
800
804
  - spec/test_data/test1.jpeg
801
805
  - spec/test_data/test2.png