sprockets-media_query_combiner 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +4 -0
- data/README.md +5 -0
- data/lib/sprockets/media_query_combiner/engine.rb +2 -2
- data/lib/sprockets/media_query_combiner/version.rb +1 -1
- data/spec/spec_helper.rb +3 -6
- metadata +12 -9
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Sprockets::MediaQueryCombiner
|
2
2
|
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/sprockets-media_query_combiner.png)](http://badge.fury.io/rb/sprockets-media_query_combiner)
|
4
|
+
[![Build Status](https://travis-ci.org/aaronjensen/sprockets-media_query_combiner.png)](https://travis-ci.org/aaronjensen/sprockets-media_query_combiner)
|
5
|
+
[![Coverage Status](https://coveralls.io/repos/aaronjensen/sprockets-media_query_combiner/badge.png?branch=master)](https://coveralls.io/r/aaronjensen/sprockets-media_query_combiner)
|
6
|
+
[![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/aaronjensen/sprockets-media_query_combiner)
|
7
|
+
|
3
8
|
Combines all matching media queries while compiling your assets with
|
4
9
|
sprockets/Rails asset pipeline.
|
5
10
|
|
@@ -1,9 +1,9 @@
|
|
1
1
|
require 'sprockets/media_query_combiner/processor'
|
2
2
|
|
3
|
-
if defined?(Rails)
|
3
|
+
if defined?(::Rails)
|
4
4
|
module Sprockets
|
5
5
|
module MediaQueryCombiner
|
6
|
-
class Engine < Rails::Engine
|
6
|
+
class Engine < ::Rails::Engine
|
7
7
|
initializer :setup_media_query_combiner, after: 'sprockets.environment', group: :all do |app|
|
8
8
|
app.assets.register_postprocessor 'text/css', Sprockets::MediaQueryCombiner::Processor
|
9
9
|
app.assets.register_bundle_processor 'text/css', Sprockets::MediaQueryCombiner::Processor
|
data/spec/spec_helper.rb
CHANGED
@@ -1,9 +1,6 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
# loaded once.
|
5
|
-
#
|
6
|
-
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
1
|
+
require 'coveralls'
|
2
|
+
Coveralls.wear!
|
3
|
+
|
7
4
|
RSpec.configure do |config|
|
8
5
|
config.treat_symbols_as_metadata_keys_with_true_values = true
|
9
6
|
config.run_all_when_everything_filtered = true
|
metadata
CHANGED
@@ -1,64 +1,64 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sprockets-media_query_combiner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.5
|
5
4
|
prerelease:
|
5
|
+
version: 0.0.6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Aaron Jensen
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-09-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sprockets
|
16
|
-
|
16
|
+
type: :runtime
|
17
17
|
requirement: !ruby/object:Gem::Requirement
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
20
20
|
- !ruby/object:Gem::Version
|
21
21
|
version: '2.1'
|
22
22
|
none: false
|
23
|
-
type: :runtime
|
24
23
|
version_requirements: !ruby/object:Gem::Requirement
|
25
24
|
requirements:
|
26
25
|
- - ~>
|
27
26
|
- !ruby/object:Gem::Version
|
28
27
|
version: '2.1'
|
29
28
|
none: false
|
29
|
+
prerelease: false
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: rspec
|
32
|
-
|
32
|
+
type: :development
|
33
33
|
requirement: !ruby/object:Gem::Requirement
|
34
34
|
requirements:
|
35
35
|
- - ! '>='
|
36
36
|
- !ruby/object:Gem::Version
|
37
37
|
version: '0'
|
38
38
|
none: false
|
39
|
-
type: :development
|
40
39
|
version_requirements: !ruby/object:Gem::Requirement
|
41
40
|
requirements:
|
42
41
|
- - ! '>='
|
43
42
|
- !ruby/object:Gem::Version
|
44
43
|
version: '0'
|
45
44
|
none: false
|
45
|
+
prerelease: false
|
46
46
|
- !ruby/object:Gem::Dependency
|
47
47
|
name: rake
|
48
|
-
|
48
|
+
type: :development
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
51
|
- - ! '>='
|
52
52
|
- !ruby/object:Gem::Version
|
53
53
|
version: '0'
|
54
54
|
none: false
|
55
|
-
type: :development
|
56
55
|
version_requirements: !ruby/object:Gem::Requirement
|
57
56
|
requirements:
|
58
57
|
- - ! '>='
|
59
58
|
- !ruby/object:Gem::Version
|
60
59
|
version: '0'
|
61
60
|
none: false
|
61
|
+
prerelease: false
|
62
62
|
description: Sprockets bundle processor to combine all like media queries
|
63
63
|
email:
|
64
64
|
- aaronjensen@gmail.com
|
@@ -95,11 +95,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
95
95
|
requirements:
|
96
96
|
- - ! '>='
|
97
97
|
- !ruby/object:Gem::Version
|
98
|
+
segments:
|
99
|
+
- 0
|
100
|
+
hash: 1280964489433274080
|
98
101
|
version: '0'
|
99
102
|
none: false
|
100
103
|
requirements: []
|
101
104
|
rubyforge_project:
|
102
|
-
rubygems_version: 1.8.
|
105
|
+
rubygems_version: 1.8.25
|
103
106
|
signing_key:
|
104
107
|
specification_version: 3
|
105
108
|
summary: Automatically combine media queries
|