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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f6cf5f6f9da3adc2537eedce271cdf44121395d5
4
- data.tar.gz: 7986af3aacb58098b2ffd059631529f9d7446e71
3
+ metadata.gz: f6a3467b29b4f0d94a39ffecd6d769b3c2ce87a7
4
+ data.tar.gz: 05d120f9e634b12107fa1f65b6ea0e61e837ad49
5
5
  SHA512:
6
- metadata.gz: 6e30d010efaa8b3167dfabf53f4aeba3e76fcab957b644418d7a70abc180b744dcd5c3d066b951925088c34d116889ea940d4fec9cf39dddafa11cf924127bf6
7
- data.tar.gz: 056140c5247449b352b092d5fbfe57da6e2cfb8c27f5cbdd3d85ef42dc11f353d2dc17bc8fc5e0bebee0d606bdcdd199790072414ce2be24d776335091c000ad
6
+ metadata.gz: aec4ebca88f1ed0f8444a849fb95db9d944f18e79b618bfd9f2fa9360036b0511943e1db5d4b6edf535ce5c9b4277513a78694bd283fd1dd3af022ee60a519e4
7
+ data.tar.gz: d78f09c1211e45df2f94462deda97294dd8cc5bf673ae5b75db28a7500ee2abab54af1d5c6ea71ae871308bd41b090647130d419eab4b9b8ce4f1aa35e2ccdc8
data/lib/spriteful.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  require 'thor/error'
2
2
 
3
+ require 'spriteful/version'
3
4
  require 'spriteful/image'
4
5
  require 'spriteful/sprite'
5
6
  require 'spriteful/stylesheet'
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)
@@ -0,0 +1,3 @@
1
+ module Spriteful
2
+ VERSION = '0.0.4'
3
+ end
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.3
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-09-03 00:00:00.000000000 Z
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