ruby-dlib 1.0.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.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 73504817ab89454a8b33525a303bfc8d6bc86001
4
+ data.tar.gz: ba208789e5d1e36586b085640828be4c21ac071f
5
+ SHA512:
6
+ metadata.gz: 490cf1fdcaae291ab2226a64b67beb9e3318af17184b68c01fa6a9e160e1eb5e5b758fa274cf15c1f0321b8f711dd432e415ee8cc53e7159999fa384a91cd8ae
7
+ data.tar.gz: 977c5f103184085aa29c4c1e616411c2ab4d654fc5734be6d69de3913ffc6bdaaacc7ebb3674773ce9512bd22752da6e874304ef130ba2106625f1077dcecb76
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in ruby-dlib.gemspec
6
+ gemspec
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+ task :default => :spec
@@ -0,0 +1,16 @@
1
+ require "pkg-config"
2
+ require "native-package-installer"
3
+
4
+ task :default => "dependency:check"
5
+
6
+ namespace :dependency do
7
+ desc "Check dependency"
8
+ task :check do
9
+ unless PKGConfig.check_version?("dlib-glib")
10
+ unless NativePackageInstaller.install(:debian => "libdlib-glib-dev",
11
+ :redhat => "dlib-glib-devel")
12
+ exit(false)
13
+ end
14
+ end
15
+ end
16
+ end
data/lib/dlib.rb ADDED
@@ -0,0 +1,20 @@
1
+ require "gobject-introspection"
2
+
3
+ require "dlib/version"
4
+
5
+ module DLIB
6
+ class Loader < GObjectIntrospection::Loader
7
+ end
8
+
9
+ Loader.load("DLIB", self)
10
+
11
+ class Image
12
+ alias_method :initialize_raw, :initialize
13
+ def initialize(filename)
14
+ if filename.respond_to?(:to_path)
15
+ filename = filename.to_path
16
+ end
17
+ initialize_raw(filename)
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,3 @@
1
+ module DLIB
2
+ VERSION = "1.0.0"
3
+ end
data/ruby-dlib.gemspec ADDED
@@ -0,0 +1,24 @@
1
+ $LOAD_PATH.unshift(File.join(__dir__, "lib"))
2
+ require "dlib/version"
3
+
4
+ Gem::Specification.new do |spec|
5
+ spec.name = "ruby-dlib"
6
+ spec.version = DLIB::VERSION
7
+ spec.homepage = "https://github.com/shiro615/ruby-dlib"
8
+ spec.authors = ["Yosuke Shiro"]
9
+ spec.email = ["ys2014hs@gmail.com"]
10
+
11
+ spec.summary = "Ruby Dlib is a Ruby bindings of Dlib."
12
+ spec.description = "You can use computer vision features in Ruby."
13
+ spec.license = "Boost Software License"
14
+ spec.files = ["Rakefile", "Gemfile", "#{spec.name}.gemspec"]
15
+ spec.files += Dir.glob("lib/**/*.rb")
16
+
17
+ spec.extensions = ["dependency-check/Rakefile"]
18
+
19
+ spec.add_runtime_dependency("gobject-introspection")
20
+
21
+ spec.add_development_dependency("bundler")
22
+ spec.add_development_dependency("rake")
23
+ spec.add_development_dependency("test-unit")
24
+ end
metadata ADDED
@@ -0,0 +1,107 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ruby-dlib
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Yosuke Shiro
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2018-07-30 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: gobject-introspection
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: test-unit
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ description: You can use computer vision features in Ruby.
70
+ email:
71
+ - ys2014hs@gmail.com
72
+ executables: []
73
+ extensions:
74
+ - dependency-check/Rakefile
75
+ extra_rdoc_files: []
76
+ files:
77
+ - Gemfile
78
+ - Rakefile
79
+ - dependency-check/Rakefile
80
+ - lib/dlib.rb
81
+ - lib/dlib/version.rb
82
+ - ruby-dlib.gemspec
83
+ homepage: https://github.com/shiro615/ruby-dlib
84
+ licenses:
85
+ - Boost Software License
86
+ metadata: {}
87
+ post_install_message:
88
+ rdoc_options: []
89
+ require_paths:
90
+ - lib
91
+ required_ruby_version: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - ">="
94
+ - !ruby/object:Gem::Version
95
+ version: '0'
96
+ required_rubygems_version: !ruby/object:Gem::Requirement
97
+ requirements:
98
+ - - ">="
99
+ - !ruby/object:Gem::Version
100
+ version: '0'
101
+ requirements: []
102
+ rubyforge_project:
103
+ rubygems_version: 2.6.14
104
+ signing_key:
105
+ specification_version: 4
106
+ summary: Ruby Dlib is a Ruby bindings of Dlib.
107
+ test_files: []