css_counter 0.1.0 → 0.2.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 86846896b7045f4aafd79dbf819ce33ea76935b5
4
- data.tar.gz: f001cdcc7747037ba0b59adb8ca67e7611c37132
3
+ metadata.gz: c19011ae338a69b2111e23f50c19c78bc5b35f95
4
+ data.tar.gz: 191c790ad2483843d49ad54c0cae50176262a80a
5
5
  SHA512:
6
- metadata.gz: f302c5b5944de389e19d1f87a978ec53bf3dfe4d6ad1f54773be770e3a948b3b36f022a81abc796b7279988f76ffc71beb01e99f3b66e3c9c6bbb2e084f45016
7
- data.tar.gz: 42d1e0723306b8bfb066f48d72552bd72de6ec8f75abbdd9667f18d4e971e51fd3b19f7db858b5ef542dc6232e9dab804769e5f3dacbbf32eec92753318ccae5
6
+ metadata.gz: 16d976c4fb1bd8e5d770f9db2f69ce38d6154684e7cbd4d1b6788d3d1b7decb9700d4aaccc05539edf239b7d12c2ed2698077a8b346666c496730857ba554f8a
7
+ data.tar.gz: 6f2516df27eab8b51577d29ca48a853351987f93189304780c9a0001ffb7ea8149c99517e3546114e0046b9f64d5e4f6ea2430b607b6755d6055fbea2673c062
data/CHANGELOG CHANGED
@@ -1,11 +1,14 @@
1
- v0.1.0 (24th February 2013)
1
+ v0.2.0 (23rd April 2015)
2
+ * Support sprockets 2.x and 3.x
3
+
4
+ v0.1.0 (24th February 2014)
2
5
  * improve logging output from the rake task
3
6
 
4
- v0.0.3 (14th February 2013)
7
+ v0.0.3 (14th February 2014)
5
8
  * improve counting of some CSS3 selectors
6
9
 
7
- v0.0.2 (14th February 2013)
10
+ v0.0.2 (14th February 2014)
8
11
  * added a rake task for checking the CSS selector count from rails
9
12
 
10
- v0.0.1 (14th February 2013)
13
+ v0.0.1 (14th February 2014)
11
14
  * initial release
@@ -13,7 +13,7 @@ namespace :css_counter do
13
13
  }
14
14
  exit_non_zero = false
15
15
  css_paths.each do |path|
16
- css = sprockets[path].body
16
+ css = sprockets[path].source
17
17
  selector_count = CssCounter.new(css).selectors
18
18
  if selector_count > IE_SELECTOR_LIMIT
19
19
  $stderr.puts "#{path} has #{selector_count} CSS selectors, must not exceed #{IE_SELECTOR_LIMIT}"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: css_counter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Healy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-23 00:00:00.000000000 Z
11
+ date: 2015-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -89,7 +89,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
89
89
  version: '0'
90
90
  requirements: []
91
91
  rubyforge_project:
92
- rubygems_version: 2.2.0
92
+ rubygems_version: 2.4.5
93
93
  signing_key:
94
94
  specification_version: 4
95
95
  summary: a (very) small library that counts selectors in a CSS file