imagecore 0.0.1 → 0.1.0

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.
@@ -0,0 +1,3 @@
1
+ ### ImageCore
2
+
3
+ Get the core of the image.
@@ -0,0 +1,11 @@
1
+ require 'mkmf'
2
+
3
+ # not valid for C++ code
4
+ if $warnflags
5
+ $warnflags = ($warnflags.split - %w(-Wdeclaration-after-statement -Wimplicit-function-declaration)) * ' '
6
+ end
7
+
8
+ # OpenCV includes
9
+ inc = File.expand_path('../opencv/include', __FILE__)
10
+
11
+ $INCFLAGS << " -I #{inc}"
@@ -1,9 +1,3 @@
1
- require 'mkmf'
2
-
3
- # not valid for C++ code
4
- $warnflags = ($warnflags.split - %w(-Wdeclaration-after-statement -Wimplicit-function-declaration)) * ' '
5
-
6
- # OpenCV includes
7
- $INCFLAGS << ' -I ../opencv/include'
1
+ require File.expand_path('../../extconf_common', __FILE__)
8
2
 
9
3
  create_makefile("imagecore")
@@ -1,22 +1,4 @@
1
- require 'mkmf'
1
+ require File.expand_path('../../../extconf_common', __FILE__)
2
2
 
3
- # not valid for C++ code
4
- $warnflags = ($warnflags.split - %w(-Wdeclaration-after-statement -Wimplicit-function-declaration)) * ' '
5
-
6
- # OpenCV includes
7
- $INCFLAGS << ' -I ../include'
8
-
9
- # Find stuff
10
- #if have_library('jpeg')
11
- #$defs.push '-DHAVE_JPEG'
12
- #end
13
-
14
- #if have_library('tiff')
15
- #$defs.push '-DHAVE_TIFF'
16
- #end
17
-
18
- # Sources
19
-
20
- #dir_config("imagecore")
21
3
  create_header('cvconfig.h')
22
4
  create_makefile("opencv_core")
@@ -1,10 +1,4 @@
1
- require 'mkmf'
2
-
3
- # not valid for C++ code
4
- $warnflags = ($warnflags.split - %w(-Wdeclaration-after-statement -Wimplicit-function-declaration)) * ' '
5
-
6
- # OpenCV includes
7
- $INCFLAGS << ' -I ../include'
1
+ require File.expand_path('../../../extconf_common', __FILE__)
8
2
 
9
3
  # Find stuff
10
4
  if have_library('jpeg')
@@ -24,5 +18,4 @@ if have_library('jasper')
24
18
  end
25
19
 
26
20
  create_header('cvconfig.h')
27
-
28
21
  create_makefile("opencv_highgui")
@@ -1,11 +1,4 @@
1
- require 'mkmf'
2
-
3
- # not valid for C++ code
4
- $warnflags = ($warnflags.to_s.split - %w(-Wdeclaration-after-statement -Wimplicit-function-declaration)) * ' '
5
-
6
- # OpenCV includes
7
- $INCFLAGS << ' -I ../include'
1
+ require File.expand_path('../../../extconf_common', __FILE__)
8
2
 
9
3
  create_header('cvconfig.h')
10
-
11
4
  create_makefile("opencv_imgproc")
@@ -6,7 +6,7 @@ Gem::Specification.new do |gem|
6
6
  gem.email = ["olegdashevskii@gmail.com"]
7
7
  gem.description = %q{Determine the core of an image file, stripping any borders}
8
8
  gem.summary = %q{Get image file core}
9
- gem.homepage = ""
9
+ gem.homepage = "https://github.com/be9/imagecore"
10
10
 
11
11
  gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
12
12
  gem.files = `git ls-files`.split("\n")
@@ -1,3 +1,3 @@
1
1
  module ImageCore
2
- VERSION = "0.0.1"
2
+ VERSION = "0.1.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: imagecore
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -24,7 +24,9 @@ extra_rdoc_files: []
24
24
  files:
25
25
  - .gitignore
26
26
  - Gemfile
27
+ - README.markdown
27
28
  - Rakefile
29
+ - ext/extconf_common.rb
28
30
  - ext/imagecore/analyze_image.cxx
29
31
  - ext/imagecore/analyze_image.h
30
32
  - ext/imagecore/extconf.rb
@@ -92,7 +94,7 @@ files:
92
94
  - imagecore.gemspec
93
95
  - lib/imagecore.rb
94
96
  - lib/imagecore/version.rb
95
- homepage: ''
97
+ homepage: https://github.com/be9/imagecore
96
98
  licenses: []
97
99
  post_install_message:
98
100
  rdoc_options: []