sprite 0.2.7 → 0.3.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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 63475759620146e4bbf03ade76e0aab2a2392ba3
4
+ data.tar.gz: 1729e0d062b1f6557cf7fbc89c0bb141df1e2e49
5
+ SHA512:
6
+ metadata.gz: e964c1dac47d35c11080ce7dbc88951ee935a9e44b690b892c4c86a717251453d3363e70e76481085614dd1456b5b07707127629a07424615983c34ae470c71c
7
+ data.tar.gz: dbb6a2d6b02828c824137bbc6f31b7b66829541478b9febd4d47b4593d13f14bd6d49592be88bb6f9aea8f96c4a0a88f60f99e3816843985fe56af1b8db4f7ea
data/Gemfile CHANGED
@@ -1,9 +1,12 @@
1
- source :rubygems
1
+ source "https://rubygems.org"
2
2
  gemspec
3
3
 
4
- gem "rake"
4
+ ruby "2.2.4"
5
5
 
6
- gem "ruby-debug", :platforms => :mri_18
7
- gem "ruby-debug19", :platforms => :mri_19
6
+ gem "rake", "0.9.2"
8
7
 
9
- gem "rmagick"
8
+ gem "byebug"
9
+
10
+ gem "rspec", "2.14.1"
11
+
12
+ gem "rmagick", ">= 2.15"
@@ -1,50 +1,37 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sprite (0.2.7)
4
+ sprite (0.3.0)
5
5
 
6
6
  GEM
7
- remote: http://rubygems.org/
7
+ remote: https://rubygems.org/
8
8
  specs:
9
- archive-tar-minitar (0.5.2)
10
- columnize (0.3.2)
11
- diff-lcs (1.1.2)
12
- linecache (0.43)
13
- linecache19 (0.5.11)
14
- ruby_core_source (>= 0.1.4)
15
- rake (0.8.7)
16
- rmagick (2.13.1)
17
- rspec (2.5.0)
18
- rspec-core (~> 2.5.0)
19
- rspec-expectations (~> 2.5.0)
20
- rspec-mocks (~> 2.5.0)
21
- rspec-core (2.5.1)
22
- rspec-expectations (2.5.0)
23
- diff-lcs (~> 1.1.2)
24
- rspec-mocks (2.5.0)
25
- ruby-debug (0.10.4)
26
- columnize (>= 0.1)
27
- ruby-debug-base (~> 0.10.4.0)
28
- ruby-debug-base (0.10.4)
29
- linecache (>= 0.3)
30
- ruby-debug-base19 (0.11.24)
31
- columnize (>= 0.3.1)
32
- linecache19 (>= 0.5.11)
33
- ruby_core_source (>= 0.1.4)
34
- ruby-debug19 (0.11.6)
35
- columnize (>= 0.3.1)
36
- linecache19 (>= 0.5.11)
37
- ruby-debug-base19 (>= 0.11.19)
38
- ruby_core_source (0.1.4)
39
- archive-tar-minitar (>= 0.5.2)
9
+ byebug (1.6.1)
10
+ columnize (~> 0.3.6)
11
+ debugger-linecache (~> 1.2.0)
12
+ columnize (0.3.6)
13
+ debugger-linecache (1.2.0)
14
+ diff-lcs (1.2.5)
15
+ rake (0.9.2)
16
+ rmagick (2.15.4)
17
+ rspec (2.14.1)
18
+ rspec-core (~> 2.14.0)
19
+ rspec-expectations (~> 2.14.0)
20
+ rspec-mocks (~> 2.14.0)
21
+ rspec-core (2.14.8)
22
+ rspec-expectations (2.14.5)
23
+ diff-lcs (>= 1.1.3, < 2.0)
24
+ rspec-mocks (2.14.6)
40
25
 
41
26
  PLATFORMS
42
27
  ruby
43
28
 
44
29
  DEPENDENCIES
45
- rake
46
- rmagick
47
- rspec (~> 2.0)
48
- ruby-debug
49
- ruby-debug19
30
+ byebug
31
+ rake (= 0.9.2)
32
+ rmagick (>= 2.15)
33
+ rspec (= 2.14.1)
50
34
  sprite!
35
+
36
+ BUNDLED WITH
37
+ 1.11.2
data/Rakefile CHANGED
@@ -41,4 +41,4 @@ Rake::RDocTask.new do |rdoc|
41
41
  end
42
42
 
43
43
 
44
- task :default => :spec
44
+ task :default => :spec
@@ -18,7 +18,7 @@ module Sprite
18
18
  if @image_config.background_color
19
19
  image.opacity = 0
20
20
  else
21
- image.opacity = Magick::MaxRGB
21
+ image.opacity = Magick::QuantumRange
22
22
  end
23
23
 
24
24
  image.composite!(dest_image, 0, 0, Magick::OverCompositeOp)
@@ -24,9 +24,11 @@ RSpec.configure do |c|
24
24
  c.before(:all) do
25
25
  end
26
26
 
27
+ c.mock_with :rspec
28
+
27
29
  # returns the file path of a fixture setting file
28
30
  def config_path(filename)
29
31
  @fixture_path.join(filename)
30
32
  end
31
33
 
32
- end
34
+ end
@@ -1,7 +1,7 @@
1
1
  require File.dirname(__FILE__) + '/../spec_helper.rb'
2
2
 
3
3
  describe Sprite::Builder do
4
-
4
+
5
5
  context "should generate vertical android icon sprites" do
6
6
  before(:all) do
7
7
  @sprite = Sprite::Builder.from_config("resources/configs/android-icons.yml")
@@ -9,27 +9,27 @@ describe Sprite::Builder do
9
9
  @sprite.config["image_output_path"] = "output/android_vertical/images/sprites/"
10
10
  @sprite.images.first["align"] = "vertical"
11
11
  @sprite.build
12
-
12
+
13
13
  @output_path = "#{Sprite.root}/output/android_vertical"
14
14
  end
15
-
15
+
16
16
  context "and the sprite result image" do
17
17
  before(:all) do
18
18
  combiner = Sprite::ImageCombiner.new(mock())
19
19
  @result_image = Sprite::ImageReader.read("#{@output_path}/images/sprites/android-icons.png")
20
20
  @result_properties = combiner.image_properties(@result_image)
21
21
  end
22
-
22
+
23
23
  it "should be 48x2890" do
24
24
  "#{@result_properties[:width]}x#{@result_properties[:height]}".should == "48x2890"
25
25
  end
26
26
  end
27
-
27
+
28
28
  context "and the sprite result styles" do
29
29
  before(:all) do
30
30
  @styles = File.read("#{@output_path}/stylesheets/android-icons.css")
31
31
  end
32
-
32
+
33
33
  it "should have some styles in it" do
34
34
  @styles.should_not be_nil
35
35
  @styles.strip.should_not == ""
@@ -44,27 +44,27 @@ describe Sprite::Builder do
44
44
  @sprite.config["image_output_path"] = "output/android_horizontal/images/sprites/"
45
45
  @sprite.images.first["align"] = "horizontal"
46
46
  @sprite.build
47
-
47
+
48
48
  @output_path = "#{Sprite.root}/output/android_horizontal"
49
49
  end
50
-
50
+
51
51
  context "and the sprite result image" do
52
52
  before(:all) do
53
53
  combiner = Sprite::ImageCombiner.new(@sprite.config)
54
54
  @result_image = Sprite::ImageReader.read("#{@output_path}/images/sprites/android-icons.png")
55
55
  @result_properties = combiner.image_properties(@result_image)
56
56
  end
57
-
57
+
58
58
  it "should be 2890x48" do
59
59
  "#{@result_properties[:width]}x#{@result_properties[:height]}".should == "2890x48"
60
60
  end
61
61
  end
62
-
62
+
63
63
  context "and sprite result styles" do
64
64
  before(:all) do
65
65
  @styles = File.read("#{@output_path}/stylesheets/android-icons.css")
66
66
  end
67
-
67
+
68
68
  it "should have some styles in it" do
69
69
  @styles.should_not be_nil
70
70
  @styles.strip.should_not == ""
@@ -73,4 +73,4 @@ describe Sprite::Builder do
73
73
  end
74
74
 
75
75
 
76
- end
76
+ end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "sprite"
3
- s.version = "0.2.7"
3
+ s.version = "0.3.0"
4
4
 
5
5
  s.executables = ["sprite"]
6
6
 
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
9
9
  s.description = "sprite is a ruby executable that to easily generate sprites along with css, sass"
10
10
 
11
11
  s.email = "railsjedi@gmail.com"
12
- s.homepage = "http://github.com/railsjedi/sprite"
12
+ s.homepage = "http://github.com/jacquescrocker/sprite"
13
13
  s.rubyforge_project = "none"
14
14
 
15
15
  s.require_paths = ["lib"]
@@ -33,4 +33,4 @@ Gem::Specification.new do |s|
33
33
  ]
34
34
 
35
35
  s.add_development_dependency "rspec", "~> 2.0"
36
- end
36
+ end
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sprite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
5
- prerelease:
4
+ version: 0.3.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Jacques Crocker
@@ -10,22 +9,20 @@ authors:
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2012-12-19 00:00:00.000000000 Z
12
+ date: 2016-03-31 00:00:00.000000000 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: rspec
17
16
  requirement: !ruby/object:Gem::Requirement
18
- none: false
19
17
  requirements:
20
- - - ~>
18
+ - - "~>"
21
19
  - !ruby/object:Gem::Version
22
20
  version: '2.0'
23
21
  type: :development
24
22
  prerelease: false
25
23
  version_requirements: !ruby/object:Gem::Requirement
26
- none: false
27
24
  requirements:
28
- - - ~>
25
+ - - "~>"
29
26
  - !ruby/object:Gem::Version
30
27
  version: '2.0'
31
28
  description: sprite is a ruby executable that to easily generate sprites along with
@@ -38,7 +35,13 @@ extra_rdoc_files:
38
35
  - MIT-LICENSE
39
36
  - README.md
40
37
  files:
38
+ - Gemfile
39
+ - Gemfile.lock
40
+ - MIT-LICENSE
41
+ - README.md
42
+ - Rakefile
41
43
  - bin/sprite
44
+ - lib/sprite.rb
42
45
  - lib/sprite/builder.rb
43
46
  - lib/sprite/config.rb
44
47
  - lib/sprite/image_combiner.rb
@@ -48,18 +51,14 @@ files:
48
51
  - lib/sprite/image_writer.rb
49
52
  - lib/sprite/runner.rb
50
53
  - lib/sprite/sass_extensions.rb
54
+ - lib/sprite/styles.rb
51
55
  - lib/sprite/styles/css_generator.rb
52
56
  - lib/sprite/styles/sass_generator.rb
53
57
  - lib/sprite/styles/sass_mixin_generator.rb
54
58
  - lib/sprite/styles/sass_yml_generator.rb
55
59
  - lib/sprite/styles/stylus_generator.rb
56
60
  - lib/sprite/styles/templated_css_generator.rb
57
- - lib/sprite/styles.rb
58
- - lib/sprite.rb
59
- - MIT-LICENSE
60
61
  - rails/init.rb
61
- - Rakefile
62
- - README.md
63
62
  - spec/output/android_horizontal/images/sprites/android-icons.png
64
63
  - spec/output/android_horizontal/stylesheets/android-icons.css
65
64
  - spec/output/android_vertical/images/sprites/android-icons.png
@@ -67,6 +66,7 @@ files:
67
66
  - spec/resources/android_css.erb
68
67
  - spec/resources/configs/android-icons.yml
69
68
  - spec/resources/configs/config-test.yml
69
+ - spec/resources/images/android-icons/LICENSE
70
70
  - spec/resources/images/android-icons/barcode.png
71
71
  - spec/resources/images/android-icons/cards.png
72
72
  - spec/resources/images/android-icons/chart.png
@@ -83,7 +83,6 @@ files:
83
83
  - spec/resources/images/android-icons/globe.png
84
84
  - spec/resources/images/android-icons/happy.png
85
85
  - spec/resources/images/android-icons/large-tiles.png
86
- - spec/resources/images/android-icons/LICENSE
87
86
  - spec/resources/images/android-icons/light.png
88
87
  - spec/resources/images/android-icons/love.png
89
88
  - spec/resources/images/android-icons/magnet.png
@@ -108,40 +107,31 @@ files:
108
107
  - spec/sprite/styles/css_spec.rb
109
108
  - spec/sprite/styles/sass_mixin_spec.rb
110
109
  - spec/sprite/styles/sass_spec.rb
111
- - tasks/sprite_tasks.rake
112
110
  - sprite.gemspec
113
- - Gemfile
114
- - Gemfile.lock
115
- homepage: http://github.com/railsjedi/sprite
111
+ - tasks/sprite_tasks.rake
112
+ homepage: http://github.com/jacquescrocker/sprite
116
113
  licenses: []
114
+ metadata: {}
117
115
  post_install_message:
118
116
  rdoc_options:
119
- - --charset=UTF-8
117
+ - "--charset=UTF-8"
120
118
  require_paths:
121
119
  - lib
122
120
  required_ruby_version: !ruby/object:Gem::Requirement
123
- none: false
124
121
  requirements:
125
- - - ! '>='
122
+ - - ">="
126
123
  - !ruby/object:Gem::Version
127
124
  version: '0'
128
- segments:
129
- - 0
130
- hash: 1703190802677343372
131
125
  required_rubygems_version: !ruby/object:Gem::Requirement
132
- none: false
133
126
  requirements:
134
- - - ! '>='
127
+ - - ">="
135
128
  - !ruby/object:Gem::Version
136
129
  version: '0'
137
- segments:
138
- - 0
139
- hash: 1703190802677343372
140
130
  requirements: []
141
131
  rubyforge_project: none
142
- rubygems_version: 1.8.21
132
+ rubygems_version: 2.4.8
143
133
  signing_key:
144
- specification_version: 3
134
+ specification_version: 4
145
135
  summary: generate your css and sass sprites automagically
146
136
  test_files:
147
137
  - spec/output/android_horizontal/images/sprites/android-icons.png