favicon_maker 0.0.9 → 0.1

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.
@@ -17,8 +17,8 @@ Gem::Specification.new do |s|
17
17
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
18
18
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
19
  s.require_paths = ["lib"]
20
-
21
- s.add_runtime_dependency("mini_magick", ["~> 3.0"])
22
-
20
+
21
+ s.add_runtime_dependency("mini_magick", ["~> 3.5"])
22
+
23
23
  s.add_development_dependency("rspec", ["~> 2.6.0"])
24
24
  end
@@ -38,12 +38,12 @@ module FaviconMaker
38
38
  composed_path = File.join(base_path, version[:filename])
39
39
  output_path = File.join(options[:root_dir], options[:output_dir], version[:filename])
40
40
 
41
- created = false
41
+ build_mode = nil
42
42
  # check for self composed icon file
43
43
  if File.exist?(composed_path)
44
44
  if options[:copy]
45
45
  FileUtils.cp composed_path, output_path
46
- created = true
46
+ build_mode = :copied
47
47
  end
48
48
  else
49
49
  image = MiniMagick::Image.open(input_path)
@@ -51,11 +51,11 @@ module FaviconMaker
51
51
  image.resize version[:dimensions]
52
52
  image.format version[:format]
53
53
  image.write output_path
54
- created = true
54
+ build_mode = :generated
55
55
  end
56
56
 
57
- if block_given? && created
58
- yield output_path
57
+ if block_given?
58
+ yield output_path, build_mode
59
59
  end
60
60
  end
61
61
  end
@@ -1,3 +1,3 @@
1
1
  module FaviconMaker
2
- VERSION = "0.0.9"
2
+ VERSION = "0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: favicon_maker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: '0.1'
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-30 00:00:00.000000000 Z
12
+ date: 2013-03-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mini_magick
@@ -18,7 +18,7 @@ dependencies:
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: '3.0'
21
+ version: '3.5'
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ~>
28
28
  - !ruby/object:Gem::Version
29
- version: '3.0'
29
+ version: '3.5'
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: rspec
32
32
  requirement: !ruby/object:Gem::Requirement