artoo-leapmotion 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 162af68408d602a5a482333ebd39a2cecc40b74b
4
- data.tar.gz: 848c559000f80727272dcab898fbca94cff5aa0c
3
+ metadata.gz: cdcfa679e9c30c0d5e71489195e0ec3c7cbf3d62
4
+ data.tar.gz: 31896196a3725614be18e60c2b17e363f5886fab
5
5
  SHA512:
6
- metadata.gz: b786d357bba4156462f78fc56f3ae959779c02116bc7d1a860a5c7aa3fe2012e61dde60b1addd5f77e0708086c433e5e0589059eb402ed12d9962283d13f577d
7
- data.tar.gz: baae8130ea437b2ad93113b6a6d3f4e1181eb57b9b1d7741e5555b9192c0051b28be0e17e4be8c1c0b77b14c69d60e69f9924020c2a3d311e2d501adc535c4e5
6
+ metadata.gz: d2b61d82ac6af4e83ed49d63ade2f85b6beaba8bbd9050df93757384aee14b0b010037e35c98f78e532bf51004a7c0bd00434052ac3ee3d78314eacb9f0f6e90
7
+ data.tar.gz: 88f82d63a793e8a7a1e3bd73ff8135b4cd87550c9baade033868a8bc084cae7639086c7a81ef03a49ff9ce0eb0e29cee8b7c33c3e99c40c1ba37c557cd1915e8
@@ -1,19 +1,19 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- artoo-leapmotion (0.2.0)
5
- artoo (~> 1.2.0)
4
+ artoo-leapmotion (0.2.1)
5
+ artoo (>= 1.2.2)
6
6
  hybridgroup-celluloid-websocket-client
7
7
 
8
8
  GEM
9
9
  remote: http://rubygems.org/
10
10
  specs:
11
- artoo (1.2.0)
11
+ artoo (1.2.2)
12
12
  celluloid (~> 0.15.0)
13
13
  celluloid-io (~> 0.15.0)
14
14
  multi_json (~> 1.6)
15
15
  pry (~> 0.9)
16
- rake (~> 10.0)
16
+ rake
17
17
  reel (~> 0.4.0)
18
18
  thor (~> 0.18.1)
19
19
  celluloid (0.15.1)
@@ -59,6 +59,6 @@ PLATFORMS
59
59
 
60
60
  DEPENDENCIES
61
61
  artoo-leapmotion!
62
- minitest (~> 5.0)
62
+ minitest (>= 5.0)
63
63
  minitest-happy
64
- mocha (~> 0.14.0)
64
+ mocha (>= 0.14.0)
data/README.md CHANGED
@@ -73,4 +73,4 @@ The main steps are:
73
73
 
74
74
  The normal Windows download of the Leap Motion software from https://www.leapmotion.com/setup should work with Artoo.
75
75
 
76
- More instructions need to go here...
76
+ We are currently working with the Celluloid team to add Windows support. Please check back soon!
@@ -19,9 +19,9 @@ Gem::Specification.new do |s|
19
19
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
20
20
  s.require_paths = ["lib"]
21
21
 
22
- s.add_runtime_dependency 'artoo', '~> 1.2.0'
22
+ s.add_runtime_dependency 'artoo', '>= 1.2.2'
23
23
  s.add_runtime_dependency 'hybridgroup-celluloid-websocket-client'
24
- s.add_development_dependency 'minitest', '~> 5.0'
24
+ s.add_development_dependency 'minitest', '>= 5.0'
25
25
  s.add_development_dependency 'minitest-happy'
26
- s.add_development_dependency 'mocha', '~> 0.14.0'
26
+ s.add_development_dependency 'mocha', '>= 0.14.0'
27
27
  end
@@ -13,15 +13,10 @@ def on_open(*args)
13
13
  puts args
14
14
  end
15
15
 
16
- def on_hand(*args)
17
- hand = args[1]
18
- puts "#{scale_to_servo(hand.palm_x, -200, 200)},#{scale_to_servo(hand.palm_y, -130, 130)}" if hand
16
+ def on_hand(sender, hand)
17
+ puts "#{hand.palm_x},#{hand.palm_y},#{hand.palm_z}" if hand
19
18
  end
20
19
 
21
20
  def on_close(*args)
22
21
  puts args
23
22
  end
24
-
25
- def scale_to_servo(val, min, max)
26
- (((val - min) / (max - min)) * 180).ceil
27
- end
@@ -1,5 +1,5 @@
1
1
  module Artoo
2
2
  module Leapmotion
3
- VERSION = '0.2.0'
3
+ VERSION = '0.2.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: artoo-leapmotion
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ron Evans
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-18 00:00:00.000000000 Z
11
+ date: 2013-09-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: artoo
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - '>='
18
18
  - !ruby/object:Gem::Version
19
- version: 1.2.0
19
+ version: 1.2.2
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - '>='
25
25
  - !ruby/object:Gem::Version
26
- version: 1.2.0
26
+ version: 1.2.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: hybridgroup-celluloid-websocket-client
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -42,14 +42,14 @@ dependencies:
42
42
  name: minitest
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - '>='
46
46
  - !ruby/object:Gem::Version
47
47
  version: '5.0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: '5.0'
55
55
  - !ruby/object:Gem::Dependency
@@ -70,14 +70,14 @@ dependencies:
70
70
  name: mocha
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ~>
73
+ - - '>='
74
74
  - !ruby/object:Gem::Version
75
75
  version: 0.14.0
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ~>
80
+ - - '>='
81
81
  - !ruby/object:Gem::Version
82
82
  version: 0.14.0
83
83
  description: Artoo adaptor and driver for Leap Motion