pycall 0.1.0.alpha → 0.1.0.alpha.20170224

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,33 @@
1
+ module PyCall
2
+ module Utils
3
+ def int(pyobj)
4
+ @int ||= PyCall.eval('int')
5
+ @int.(pyobj)
6
+ end
7
+
8
+ def len(pyobj)
9
+ @len ||= PyCall.eval('len')
10
+ @len.(pyobj)
11
+ end
12
+
13
+ def slice(*args)
14
+ Slice.new(*args)
15
+ end
16
+
17
+ def str(pyobj)
18
+ @str ||= PyCall.eval('str')
19
+ @str.(pyobj)
20
+ end
21
+
22
+ def tuple(*args)
23
+ PyCall::Tuple[*args]
24
+ end
25
+
26
+ def type(pyobj)
27
+ @type ||= PyCall.eval('type')
28
+ @type.(pyobj)
29
+ end
30
+ end
31
+
32
+ extend Utils
33
+ end
@@ -1,3 +1,3 @@
1
- module Pycall
2
- VERSION = "0.1.0.alpha"
1
+ module PyCall
2
+ VERSION = "0.1.0.alpha.20170224"
3
3
  end
@@ -5,7 +5,7 @@ require 'pycall/version'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "pycall"
8
- spec.version = Pycall::VERSION
8
+ spec.version = PyCall::VERSION
9
9
  spec.authors = ["Kenta Murata"]
10
10
  spec.email = ["mrkn@mrkn.jp"]
11
11
 
@@ -21,6 +21,8 @@ Gem::Specification.new do |spec|
21
21
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
22
  spec.require_paths = ["lib"]
23
23
 
24
+ spec.add_dependency "ffi"
25
+
24
26
  spec.add_development_dependency "bundler", "~> 1.13"
25
27
  spec.add_development_dependency "rake", "~> 10.0"
26
28
  spec.add_development_dependency "rspec", "~> 3.0"
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pycall
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.alpha
4
+ version: 0.1.0.alpha.20170224
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kenta Murata
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-10-05 00:00:00.000000000 Z
11
+ date: 2017-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: ffi
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'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: bundler
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -63,12 +77,36 @@ files:
63
77
  - ".rspec"
64
78
  - ".travis.yml"
65
79
  - Gemfile
80
+ - Guardfile
66
81
  - LICENSE.txt
67
82
  - README.md
68
83
  - Rakefile
69
84
  - bin/console
85
+ - bin/guard
86
+ - bin/rspec
70
87
  - bin/setup
88
+ - config/Guardfile
89
+ - examples/classifier_comparison.rb
90
+ - examples/hist.rb
91
+ - examples/plot_forest_importances_faces.rb
92
+ - examples/sum_benchmarking.rb
71
93
  - lib/pycall.rb
94
+ - lib/pycall/conversion.rb
95
+ - lib/pycall/dict.rb
96
+ - lib/pycall/eval.rb
97
+ - lib/pycall/import.rb
98
+ - lib/pycall/init.rb
99
+ - lib/pycall/libpython.rb
100
+ - lib/pycall/list.rb
101
+ - lib/pycall/pyerror.rb
102
+ - lib/pycall/pyobject.rb
103
+ - lib/pycall/pyobject_wrapper.rb
104
+ - lib/pycall/python/investigator.py
105
+ - lib/pycall/set.rb
106
+ - lib/pycall/slice.rb
107
+ - lib/pycall/tuple.rb
108
+ - lib/pycall/types.rb
109
+ - lib/pycall/utils.rb
72
110
  - lib/pycall/version.rb
73
111
  - pycall.gemspec
74
112
  homepage: https://github.com/mrkn/pycall
@@ -91,7 +129,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
91
129
  version: 1.3.1
92
130
  requirements: []
93
131
  rubyforge_project:
94
- rubygems_version: 2.6.3
132
+ rubygems_version: 2.6.8
95
133
  signing_key:
96
134
  specification_version: 4
97
135
  summary: pycall