cssmin-cli 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +6 -6
- data/cssmin-cli.gemspec +5 -5
- data/lib/cssmin_cli.rb +3 -3
- data/test/cssmin_cli_test.rb +1 -1
- metadata +22 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 78c2f24031f75dbcf5182f0879193979b02b1b18
|
4
|
+
data.tar.gz: bcecc1af26a9211ff69487a64079f3b33497d878
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68c46d7e383c51cbb64c36251a2e1069d7f524d37f68024e5bdf1f10404f4e93dcd6d9ae83a66bd150848117ce42678a035ff2ef919dc19e6ebc2b667a3e2ca3
|
7
|
+
data.tar.gz: b3af09256a07e775266670e9b38dd4425c12ff9741b0192d81c57e8dd06644ffb7b2ac97f26f5f9721c48cca096ca348fc1c9405ed732fb14c0e2a4eadc15879
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -7,7 +7,7 @@ It provides command line script for minifying css using CSSMin.
|
|
7
7
|
Instalation
|
8
8
|
-----------
|
9
9
|
|
10
|
-
Just install it from RubyGems
|
10
|
+
Just install it from good old RubyGems.
|
11
11
|
|
12
12
|
```
|
13
13
|
gem install cssmin-cli
|
@@ -19,7 +19,7 @@ Usage
|
|
19
19
|
1. To minify CSS source file run following command:
|
20
20
|
|
21
21
|
```
|
22
|
-
cssmin -s style.css -
|
22
|
+
cssmin -s style.css -d style.min.css
|
23
23
|
```
|
24
24
|
|
25
25
|
This command will read CSS from `style.css`, minify css and store result to `style.min.css`
|
@@ -27,15 +27,15 @@ This command will read CSS from `style.css`, minify css and store result to `sty
|
|
27
27
|
2. To minify inline CSS, run following command:
|
28
28
|
|
29
29
|
```
|
30
|
-
cssmin -i 'div { border: 1px solid #ffff; margin: 0px }' -
|
30
|
+
cssmin -i 'div { border: 1px solid #ffff; margin: 0px }' -d style.min.css
|
31
31
|
```
|
32
32
|
|
33
|
-
*Note*: If you don't provide
|
33
|
+
*Note*: If you don't provide destination file, output is printed to standart output
|
34
34
|
|
35
|
-
Contribute :thumbsup:
|
35
|
+
To Contribute... :thumbsup:
|
36
36
|
---------------------
|
37
37
|
|
38
|
-
|
38
|
+
... just send me pull request. :man_with_turban:
|
39
39
|
|
40
40
|
Authors
|
41
41
|
-------
|
data/cssmin-cli.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "cssmin-cli"
|
3
|
-
s.version = "1.0.
|
3
|
+
s.version = "1.0.3"
|
4
4
|
s.date = "2014-05-05"
|
5
5
|
s.summary = "Command line tool for minifying CSS."
|
6
6
|
s.description = "Command line tool for minifying CSS. Based on CSSMin library."
|
@@ -19,10 +19,10 @@ Gem::Specification.new do |s|
|
|
19
19
|
|
20
20
|
s.required_ruby_version = ">= 1.8.6"
|
21
21
|
|
22
|
-
s.add_runtime_dependency "cssmin"
|
23
|
-
s.add_runtime_dependency "mercenary"
|
22
|
+
s.add_runtime_dependency "cssmin", "~> 1.0"
|
23
|
+
s.add_runtime_dependency "mercenary", "~> 0.3"
|
24
24
|
|
25
|
-
s.add_development_dependency "rake"
|
26
|
-
s.add_development_dependency "minitest"
|
25
|
+
s.add_development_dependency "rake", "~> 10.3"
|
26
|
+
s.add_development_dependency "minitest", "~> 5.3"
|
27
27
|
|
28
28
|
end
|
data/lib/cssmin_cli.rb
CHANGED
@@ -59,18 +59,18 @@ module CSSMinCli
|
|
59
59
|
|
60
60
|
destination.write(minified)
|
61
61
|
destination.close
|
62
|
-
|
62
|
+
|
63
63
|
return true
|
64
64
|
end
|
65
65
|
|
66
66
|
# Resolves CSS source for given options.
|
67
67
|
# Inline option has precedence over source option.
|
68
|
-
#
|
68
|
+
#
|
69
69
|
# Supported options are:
|
70
70
|
# source - Path to CSS source file
|
71
71
|
# inline - String containing CSS
|
72
72
|
#
|
73
|
-
# Returns string, that contains loaded css from source or
|
73
|
+
# Returns string, that contains loaded css from source or
|
74
74
|
# nil if invalid options hash was provided.
|
75
75
|
def self.resolve_source(options)
|
76
76
|
if options[:inline]
|
data/test/cssmin_cli_test.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cssmin-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Ferko
|
@@ -14,58 +14,58 @@ dependencies:
|
|
14
14
|
name: cssmin
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0'
|
19
|
+
version: '1.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0'
|
26
|
+
version: '1.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: mercenary
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
33
|
+
version: '0.3'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
40
|
+
version: '0.3'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '10.3'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '10.3'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: minitest
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '5.3'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '5.3'
|
69
69
|
description: Command line tool for minifying CSS. Based on CSSMin library.
|
70
70
|
email: jan.ferko3@gmail.com
|
71
71
|
executables:
|
@@ -73,8 +73,8 @@ executables:
|
|
73
73
|
extensions: []
|
74
74
|
extra_rdoc_files: []
|
75
75
|
files:
|
76
|
-
- .gitignore
|
77
|
-
- .travis.yml
|
76
|
+
- ".gitignore"
|
77
|
+
- ".travis.yml"
|
78
78
|
- Gemfile
|
79
79
|
- Gemfile.lock
|
80
80
|
- LICENSE.md
|
@@ -96,17 +96,17 @@ require_paths:
|
|
96
96
|
- lib
|
97
97
|
required_ruby_version: !ruby/object:Gem::Requirement
|
98
98
|
requirements:
|
99
|
-
- -
|
99
|
+
- - ">="
|
100
100
|
- !ruby/object:Gem::Version
|
101
101
|
version: 1.8.6
|
102
102
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
103
103
|
requirements:
|
104
|
-
- -
|
104
|
+
- - ">="
|
105
105
|
- !ruby/object:Gem::Version
|
106
106
|
version: '0'
|
107
107
|
requirements: []
|
108
108
|
rubyforge_project:
|
109
|
-
rubygems_version: 2.
|
109
|
+
rubygems_version: 2.2.2
|
110
110
|
signing_key:
|
111
111
|
specification_version: 4
|
112
112
|
summary: Command line tool for minifying CSS.
|