spriteful 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/spriteful.rb +1 -0
- data/lib/spriteful/cli.rb +6 -0
- data/lib/spriteful/version.rb +3 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f6a3467b29b4f0d94a39ffecd6d769b3c2ce87a7
|
4
|
+
data.tar.gz: 05d120f9e634b12107fa1f65b6ea0e61e837ad49
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aec4ebca88f1ed0f8444a849fb95db9d944f18e79b618bfd9f2fa9360036b0511943e1db5d4b6edf535ce5c9b4277513a78694bd283fd1dd3af022ee60a519e4
|
7
|
+
data.tar.gz: d78f09c1211e45df2f94462deda97294dd8cc5bf673ae5b75db28a7500ee2abab54af1d5c6ea71ae871308bd41b090647130d419eab4b9b8ce4f1aa35e2ccdc8
|
data/lib/spriteful.rb
CHANGED
data/lib/spriteful/cli.rb
CHANGED
@@ -19,6 +19,7 @@ module Spriteful
|
|
19
19
|
class_option :save, type: :boolean, desc: 'Save the supplied arguments to ".spritefulrc".'
|
20
20
|
class_option :spacing, type: :numeric, desc: 'Add spacing between the images in the sprite.'
|
21
21
|
|
22
|
+
class_option :version, type: :boolean, aliases: '-v'
|
22
23
|
# Public: Gets the CLI banner for the Thor help message.
|
23
24
|
#
|
24
25
|
# Returns a String.
|
@@ -37,6 +38,11 @@ module Spriteful
|
|
37
38
|
# into combined images and stylesheets.
|
38
39
|
# Returns nothing.
|
39
40
|
def execute
|
41
|
+
if options.version?
|
42
|
+
say "Spriteful #{Spriteful::VERSION}"
|
43
|
+
exit(0)
|
44
|
+
end
|
45
|
+
|
40
46
|
prepare_options!
|
41
47
|
if sources.empty?
|
42
48
|
self.class.help(shell)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spriteful
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lucas Mazza
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-10-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -102,6 +102,7 @@ files:
|
|
102
102
|
- lib/spriteful/stylesheet.rb
|
103
103
|
- lib/spriteful/stylesheets/template.css.erb
|
104
104
|
- lib/spriteful/stylesheets/template.scss.erb
|
105
|
+
- lib/spriteful/version.rb
|
105
106
|
- lib/spriteful.rb
|
106
107
|
- spec/fixtures/simple/blue.png
|
107
108
|
- spec/fixtures/simple/red.png
|