imageruby 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/AUTHORS CHANGED
@@ -1,2 +1,5 @@
1
- imageruby de tario <rseminara@hotmail.com>
1
+ imageruby de tario <darios3@gmail.com>
2
2
  - Roberto Dario Seminara
3
+
4
+ Thanks to:
5
+ - akatakritos (http://github.com/akatakritos) - Compatibility with Ruby2.0 gem index api
data/Rakefile CHANGED
@@ -1,12 +1,12 @@
1
1
  require 'rubygems'
2
2
  require 'rake'
3
3
  require 'rake/testtask'
4
- require 'rake/rdoctask'
5
- require 'rake/gempackagetask'
4
+ require 'rubygems/package_task'
5
+ require 'rdoc/task'
6
6
 
7
7
  spec = Gem::Specification.new do |s|
8
8
  s.name = 'imageruby'
9
- s.version = '0.2.1'
9
+ s.version = '0.2.2'
10
10
  s.author = 'Dario Seminara'
11
11
  s.email = 'robertodarioseminara@gmail.com'
12
12
  s.platform = Gem::Platform::RUBY
@@ -36,10 +36,11 @@ Rake::RDocTask.new :rdoc do |rd|
36
36
  end
37
37
 
38
38
  desc 'Build Gem'
39
- Rake::GemPackageTask.new spec do |pkg|
39
+ Gem::PackageTask.new spec do |pkg|
40
40
  pkg.need_tar = true
41
41
  end
42
42
 
43
+
43
44
  desc 'Clean up'
44
45
  task :clean => [ :clobber_rdoc, :clobber_package ]
45
46
 
@@ -21,9 +21,19 @@ along with imageruby. if not, see <http://www.gnu.org/licenses/>.
21
21
  require "rubygems"
22
22
 
23
23
  def auto_require(prefix)
24
- Gem.source_index.each do |entry|
25
- if entry[0] =~ prefix
26
- require entry[1].name
24
+ # in Ruby 2.0 it appears Gem.source_index was removed.
25
+ # The same functionality can be found using Gem::Specification
26
+ if defined?(Gem::Specification) && Gem::Specification.respond_to?(:each)
27
+ Gem::Specification.each do |entry|
28
+ if entry.name =~ prefix
29
+ require entry.name
30
+ end
31
+ end
32
+ else
33
+ Gem.source_index.each do |entry|
34
+ if entry[0] =~ prefix
35
+ require entry[1].name
36
+ end
27
37
  end
28
38
  end
29
39
  end
metadata CHANGED
@@ -1,106 +1,72 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: imageruby
3
- version: !ruby/object:Gem::Version
4
- hash: 21
5
- prerelease: false
6
- segments:
7
- - 0
8
- - 2
9
- - 1
10
- version: 0.2.1
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.2
5
+ prerelease:
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Dario Seminara
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-05-19 00:00:00 -03:00
19
- default_executable:
12
+ date: 2013-08-22 00:00:00.000000000 Z
20
13
  dependencies: []
21
-
22
14
  description:
23
15
  email: robertodarioseminara@gmail.com
24
16
  executables: []
25
-
26
17
  extensions: []
27
-
28
- extra_rdoc_files:
18
+ extra_rdoc_files:
29
19
  - README
30
- files:
31
- - examples/with_mask.bmp
32
- - examples/colors.bmp
33
- - examples/gradient0.bmp
34
- - examples/gradients-output.bmp
35
- - examples/sample2.bmp
36
- - examples/gradient2.bmp
37
- - examples/gradient1.bmp
38
- - examples/without_mask.bmp
39
- - examples/black.bmp
40
- - examples/alpha.rb
41
- - examples/colors.rb
42
- - examples/gradients.bmp
20
+ files:
43
21
  - examples/gradient.rb
44
- - examples/gradients-output.jpg
45
- - examples/gradients_sample.png
46
- - examples/sample1.bmp
47
- - examples/black.rb
48
22
  - examples/mask_color.rb
49
- - lib/imageruby/fileloader.rb
50
- - lib/imageruby/color.rb
51
- - lib/imageruby/abstract/subclass_enum.rb
52
- - lib/imageruby/abstract/auto_require.rb
23
+ - examples/colors.rb
24
+ - examples/black.rb
25
+ - examples/alpha.rb
26
+ - lib/imageruby/pureruby.rb
27
+ - lib/imageruby/decoder.rb
28
+ - lib/imageruby/encoder.rb
29
+ - lib/imageruby/image.rb
53
30
  - lib/imageruby/persistor/encoder_persistor.rb
54
31
  - lib/imageruby/persistor/decoder_loader.rb
55
- - lib/imageruby/image.rb
56
- - lib/imageruby/encoder.rb
32
+ - lib/imageruby/color.rb
33
+ - lib/imageruby/fileloader.rb
34
+ - lib/imageruby/abstract/auto_require.rb
35
+ - lib/imageruby/abstract/subclass_enum.rb
57
36
  - lib/imageruby/bitmap/bitmap.rb
58
37
  - lib/imageruby/bitmap/rbbitmap.rb
59
- - lib/imageruby/pureruby.rb
60
38
  - lib/imageruby/filepersistor.rb
61
- - lib/imageruby/decoder.rb
62
39
  - lib/imageruby.rb
63
- - spec/validation_spec.rb
64
40
  - spec/image_spec.rb
41
+ - spec/validation_spec.rb
65
42
  - spec/color_spec.rb
66
43
  - LICENSE
67
44
  - AUTHORS
68
45
  - CHANGELOG
69
46
  - README
70
47
  - Rakefile
71
- has_rdoc: true
72
48
  homepage: http://github.com/tario/imageruby
73
49
  licenses: []
74
-
75
50
  post_install_message:
76
51
  rdoc_options: []
77
-
78
- require_paths:
52
+ require_paths:
79
53
  - lib
80
- required_ruby_version: !ruby/object:Gem::Requirement
54
+ required_ruby_version: !ruby/object:Gem::Requirement
81
55
  none: false
82
- requirements:
83
- - - ">="
84
- - !ruby/object:Gem::Version
85
- hash: 3
86
- segments:
87
- - 0
88
- version: "0"
89
- required_rubygems_version: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - ! '>='
58
+ - !ruby/object:Gem::Version
59
+ version: '0'
60
+ required_rubygems_version: !ruby/object:Gem::Requirement
90
61
  none: false
91
- requirements:
92
- - - ">="
93
- - !ruby/object:Gem::Version
94
- hash: 3
95
- segments:
96
- - 0
97
- version: "0"
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
98
66
  requirements: []
99
-
100
67
  rubyforge_project:
101
- rubygems_version: 1.3.7
68
+ rubygems_version: 1.8.10
102
69
  signing_key:
103
70
  specification_version: 3
104
71
  summary: flexible and easy to use ruby gem for image processing
105
72
  test_files: []
106
-
data/examples/black.bmp DELETED
Binary file
data/examples/colors.bmp DELETED
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
data/examples/sample1.bmp DELETED
Binary file
data/examples/sample2.bmp DELETED
Binary file
Binary file
Binary file