cv2.py 0.1.0 → 0.2.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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +4 -2
  3. data/cv2.py.gemspec +2 -2
  4. data/lib/cv2.rb +5 -7
  5. metadata +7 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1d6b5a6386b84912d45f0db9bd249ddceef414ce4f885d6d43baa5f58a25c45b
4
- data.tar.gz: 77464586887322948272634528aa3475671d5dc2c750eed043292a6d1bccddba
3
+ metadata.gz: 253eb5df8fc56a1cf36de261eb355578f7f520b28cc91bc59d312fa079a3b7c3
4
+ data.tar.gz: 812268c17fdddec847e4ee06c0ea167c005639aa3e5a5617b28d3bc66bba13bc
5
5
  SHA512:
6
- metadata.gz: f28f093985156aaafa503999c7552413d3e8321b93682764afc5d804b33c22b0331193d1f66d42f37b21b397a5a34c572dd4ef595286752e6b817741628c1ea8
7
- data.tar.gz: 69c9c7e84743b4f5374caaebd920f9c6a0f832d940e26c7947bae16c899548eb7345451fe5dd146c1581bae47f1e7f94bee6acb2ef1216e94a94d12e33f0f34d
6
+ metadata.gz: c4caae31197ee5aae02846ec8b2b3d9cebe291b9439c90e1637ead1cc9730425af73c75ef6bbd4bf9640923069fe6291b0a29a9c48959034890d5dcc57afd463
7
+ data.tar.gz: 558579216f9cd09880b92d66115e906169aa38ca677ffd7a29c0e7ae3155eca35a7427173708468f8535f97f45dbd466f3f545ae31b3af15e87a58c45c51c079
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cv2.py (0.1.0)
5
- pycall
4
+ cv2.py (0.2.0)
5
+ ruby.py (~> 0.2)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
@@ -44,6 +44,8 @@ GEM
44
44
  ruby-progressbar (~> 1.7)
45
45
  unicode-display_width (~> 1.0, >= 1.0.1)
46
46
  ruby-progressbar (1.9.0)
47
+ ruby.py (0.2.1)
48
+ pycall
47
49
  unicode-display_width (1.4.0)
48
50
 
49
51
  PLATFORMS
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
 
4
4
  Gem::Specification.new do |spec|
5
5
  spec.name = 'cv2.py'
6
- spec.version = '0.1.0'
6
+ spec.version = '0.2.0'
7
7
  spec.authors = ['Frank J. Cameron']
8
8
  spec.email = ['fjc@fastmail.net']
9
9
 
@@ -29,5 +29,5 @@ Gem::Specification.new do |spec|
29
29
  spec.add_development_dependency 'rspec', '~> 3.0'
30
30
  spec.add_development_dependency 'rubocop', '~> 0.57.2'
31
31
 
32
- spec.add_dependency 'pycall'
32
+ spec.add_dependency 'ruby.py', '~> 0.2'
33
33
  end
data/lib/cv2.rb CHANGED
@@ -1,22 +1,20 @@
1
- require 'pycall/import'
1
+ require 'ruby.py'
2
2
 
3
3
  # Top-level module to expose Python 'cv2' API to Ruby.
4
4
  module CV2
5
- # Internal module to contain wrapped Python API.
6
- module PyCall
7
- extend ::PyCall::Import
8
- pyimport :cv2
5
+ def self._pym
6
+ @pym ||= RubyPy.import('cv2')
9
7
  end
10
8
 
11
9
  def self.method_missing(method_name, *arguments, &block)
12
10
  if respond_to_missing?(method_name)
13
- PyCall.cv2.send(method_name, *arguments, &block)
11
+ _pym.send(method_name, *arguments, &block)
14
12
  else
15
13
  super
16
14
  end
17
15
  end
18
16
 
19
17
  def self.respond_to_missing?(method_name, include_private = false)
20
- PyCall.cv2.respond_to?(method_name, include_private)
18
+ _pym.respond_to?(method_name, include_private)
21
19
  end
22
20
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cv2.py
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Frank J. Cameron
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-07-01 00:00:00.000000000 Z
11
+ date: 2018-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -81,19 +81,19 @@ dependencies:
81
81
  - !ruby/object:Gem::Version
82
82
  version: 0.57.2
83
83
  - !ruby/object:Gem::Dependency
84
- name: pycall
84
+ name: ruby.py
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ">="
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '0'
89
+ version: '0.2'
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ">="
94
+ - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '0'
96
+ version: '0.2'
97
97
  description: ''
98
98
  email:
99
99
  - fjc@fastmail.net