Module: Parser
- Defined in:
- lib/fir/patches/parser_patch.rb
Defined Under Namespace
Class Method Summary collapse
- .crush_icon(uncrushed_icon_path, crushed_icon_path) ⇒ Object
- .png_bin ⇒ Object
- .uncrush_icon(crushed_icon_path, uncrushed_icon_path) ⇒ Object
Class Method Details
.crush_icon(uncrushed_icon_path, crushed_icon_path) ⇒ Object
15 16 17 |
# File 'lib/fir/patches/parser_patch.rb', line 15 def crush_icon uncrushed_icon_path, crushed_icon_path system("#{png_bin} -iphone #{uncrushed_icon_path} #{crushed_icon_path} &> /dev/null") end |
.png_bin ⇒ Object
7 8 9 |
# File 'lib/fir/patches/parser_patch.rb', line 7 def png_bin @png_bin ||= File.("../bin/pngcrush", __FILE__) end |
.uncrush_icon(crushed_icon_path, uncrushed_icon_path) ⇒ Object
11 12 13 |
# File 'lib/fir/patches/parser_patch.rb', line 11 def uncrush_icon crushed_icon_path, uncrushed_icon_path system("#{png_bin} -revert-iphone-optimizations #{crushed_icon_path} #{uncrushed_icon_path} &> /dev/null") end |