pikl 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,6 @@
1
+ == 0.2.1
2
+ * fix gem for mswin32.
3
+
1
4
  == 0.2.0
2
5
  * Supports method chain.
3
6
 
data/README.txt CHANGED
@@ -15,6 +15,7 @@ To use option for libjpeg and libpng directories:
15
15
  == SYNOPSIS:
16
16
 
17
17
  Basic use of pikl:
18
+ require "rubygems"
18
19
  require "pikl"
19
20
  Pikl::Image.open('path/to/image.jpg') do |img|
20
21
  img.trim(10,5,-10,-5)
@@ -22,6 +23,7 @@ Basic use of pikl:
22
23
  end
23
24
 
24
25
  Use method chain for processing image:
26
+ require "rubygems"
25
27
  require "pikl"
26
28
  Pikl::Image.open('path/to/image.jpg') do |img|
27
29
  img.resize(120,:auto).rotate(90).save('path/to/output.png')
@@ -42,6 +42,16 @@ class Hoe
42
42
  @extra_deps.reject! { |x| Array(x).first == 'hoe' }
43
43
  @extra_deps
44
44
  end
45
+
46
+ def spec= s
47
+
48
+ if PACKAGE_PLATFORM =~ /mswin32/
49
+ s.files = s.files.reject! {|f| f =~ /extconf\.rb/ }
50
+ else
51
+ s.files = s.files.reject! {|f| f =~ /pikl\.dll/ }
52
+ end
53
+ @spec = s
54
+ end
45
55
  end
46
56
 
47
57
  # Generate all the Rake tasks
@@ -58,7 +68,11 @@ $hoe = Hoe.new(GEM_NAME, VERS) do |p|
58
68
  # == Optional
59
69
  p.changes = p.paragraphs_of("History.txt", 0..1).join("\n\n")
60
70
  #p.extra_deps = [] # An array of rubygem dependencies [name, version], e.g. [ ['active_support', '>= 1.3.1'] ]
61
- p.spec_extras = (PACKAGE_PLATFORM =~ /mswin32/) ? {} : { :extensions => ['ext/pikl/extconf.rb'] }
71
+ if PACKAGE_PLATFORM =~ /mswin32/
72
+ p.spec_extras[:platform] = "mswin32"
73
+ else
74
+ p.spec_extras[:extensions] = ['ext/pikl/extconf.rb']
75
+ end
62
76
  # A hash of extra values to set in the gemspec.
63
77
  end
64
78
 
@@ -2,7 +2,7 @@ module Pikl #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 2
5
- TINY = 0
5
+ TINY = 1
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pikl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryota Maruko
@@ -57,7 +57,6 @@ files:
57
57
  - lib/pikl/errors.rb
58
58
  - lib/pikl/ext.rb
59
59
  - lib/pikl/image.rb
60
- - lib/pikl/pikl.dll
61
60
  - lib/pikl/version.rb
62
61
  - setup.rb
63
62
  - test/sample.jpg
Binary file