touchy 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
data/bin/touchy CHANGED
@@ -4,11 +4,11 @@ $:.unshift Pathname.new(__FILE__).realpath.join('../../lib') if $0 == __FILE__
4
4
  require 'thor'
5
5
  require "touchy"
6
6
 
7
- module touchy
7
+ module Touchy
8
8
  class Command < Thor
9
9
  desc "odd", "search odd size images"
10
10
  def odd(*path)
11
- found = touchy.find_odd_size_images(path)
11
+ found = Touchy.find_odd_size_images(path)
12
12
 
13
13
  found.each do |path|
14
14
  puts path
@@ -18,21 +18,21 @@ module touchy
18
18
 
19
19
  desc "fix", "fix image's size to even"
20
20
  def fix(*path)
21
- found = touchy.find_odd_size_images(path)
21
+ found = Touchy.find_odd_size_images(path)
22
22
 
23
23
  found.each do |path|
24
24
  image = Magick::Image.read(path).first
25
- new_image = touchy.extend_size_to_odd image
25
+ new_image = Touchy.extend_size_to_odd image
26
26
  new_image.write(path)
27
27
  end
28
28
  end
29
29
 
30
30
  desc "create_test_image", "create test image"
31
31
  def create_test_image(x, y, name)
32
- image = touchy.create_transparent_image x.to_i, y.to_i
32
+ image = Touchy.create_transparent_image x.to_i, y.to_i
33
33
  image.write(name)
34
34
  end
35
35
  end
36
36
  end
37
37
 
38
- touchy::Command.start
38
+ Touchy::Command.start
@@ -1,3 +1,3 @@
1
1
  module Touchy
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
data/lib/touchy.rb CHANGED
@@ -3,7 +3,7 @@ require "fastimage"
3
3
  require "rmagick"
4
4
  include Magick
5
5
 
6
- module touchy
6
+ module Touchy
7
7
  def self.find_odd_size_images(image_paths)
8
8
  image_paths.map do |image_path|
9
9
  size = FastImage.size(image_path)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: touchy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: