wii-robotic-arm 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: dac5fbc6ce62ac75617315d3631c66f797eb8dee
4
+ data.tar.gz: 95281a38051000164ab4bef8485a3110239fe405
5
+ SHA512:
6
+ metadata.gz: 66bec8e9e079d5230fabe71ad259171ad9487d5dc84e96029f303da69d0fe0432ff40af2f2ff70c433846713d520b4207756331f8dbe1e2035a881871ddea25b
7
+ data.tar.gz: 9344d29209966ac54f012b274b06e7c0e331278a62271222d064ec38f53676f6853551998ee92d8c4217bde8b052ea1c296260ef5f864449229cb6704589eb51
checksums.yaml.gz.sig ADDED
@@ -0,0 +1 @@
1
+ � ������{�iZa�3aN����A�7��㫅 PQ�0c���Cn==O�ބ$fj�8�M�ߧ�'���B3r�Sh1����%R���ET�o:>):�!1��돾NG�5�!CH�8���������_Q1a �oG��ʰ$d�u�Bꊚ&8��i�[~c�b�c�=��kg`�R�=��}�&2�}��'M������/���̪}X�#� ��؏�^"JIC^��/�u9^���U�P}X��d�Eß�
data.tar.gz.sig CHANGED
@@ -1 +1,3 @@
1
- E5(�a�x_��B���a!��05U�.�`���FB��}]�^��s�P�We�����$O@!zm�w�G�E�0�̔��|gˍSh��y��
1
+ GG!�2�P&�m���"E��W.���`:�A�Eh
2
+ 4��G�T�dA�"\ʁs8e
3
+ 0,f��,0���g�n���w��،E�$��T�;N���5��ҥ��T���'P�Rk��/�Co�-��{˄L���1�ՠu�Hbb?�A� �q�"C�8
@@ -14,13 +14,20 @@ class WiiRoboticArm < SimpleWiimote
14
14
  @terminator = ['home']
15
15
  end
16
16
 
17
- protected
18
-
19
- def on_btn_plus_press(wm) @ra.led.on end
20
- def on_btn_minus_press(wm) @ra.led.off end
17
+ def on_btn_plus_press(wm)
18
+ @ra.led.on? ? @ra.led.off : @ra.led.on
19
+ end
20
+
21
+ def on_btn_minus_press(wm)
22
+ end
21
23
 
22
24
  def on_btn_1_press(wm)
23
- @ra.recording.method(@ra.recording? ? :stop : :start).call
25
+ if @ra.recording? then
26
+ @ra.recording.stop
27
+ @played = nil
28
+ else
29
+ @ra.recording.start
30
+ end
24
31
  end
25
32
 
26
33
  def on_btn_2_press(wm)
metadata CHANGED
@@ -1,14 +1,13 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: wii-robotic-arm
3
- version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 0.1.3
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.4
6
5
  platform: ruby
7
- authors:
6
+ authors:
8
7
  - James Robertson
9
8
  autorequire:
10
9
  bindir: bin
11
- cert_chain:
10
+ cert_chain:
12
11
  - |
13
12
  -----BEGIN CERTIFICATE-----
14
13
  MIIDRDCCAiygAwIBAgIBADANBgkqhkiG9w0BAQUFADBIMRIwEAYDVQQDDAlnZW1t
@@ -30,67 +29,64 @@ cert_chain:
30
29
  URup9EZvsQ+RvKLGxx/ita8PpYrfUKa0TTtCUd8KXjPYoqonCU4uz2LZ6m43DOhO
31
30
  dK17deLIHmGGIiLzVUXQgTR7ppDeLhw/
32
31
  -----END CERTIFICATE-----
33
-
34
- date: 2013-02-06 00:00:00 Z
35
- dependencies:
36
- - !ruby/object:Gem::Dependency
32
+ date: 2013-03-03 00:00:00.000000000 Z
33
+ dependencies:
34
+ - !ruby/object:Gem::Dependency
37
35
  name: simple_wiimote
38
- prerelease: false
39
- requirement: &id001 !ruby/object:Gem::Requirement
40
- none: false
41
- requirements:
42
- - - ">="
43
- - !ruby/object:Gem::Version
44
- version: "0"
36
+ requirement: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
45
41
  type: :runtime
46
- version_requirements: *id001
47
- - !ruby/object:Gem::Dependency
48
- name: robotic-arm
49
42
  prerelease: false
50
- requirement: &id002 !ruby/object:Gem::Requirement
51
- none: false
52
- requirements:
53
- - - ">="
54
- - !ruby/object:Gem::Version
55
- version: "0"
43
+ version_requirements: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ - !ruby/object:Gem::Dependency
49
+ name: robotic-arm
50
+ requirement: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
56
55
  type: :runtime
57
- version_requirements: *id002
56
+ prerelease: false
57
+ version_requirements: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
58
62
  description:
59
63
  email:
60
64
  executables: []
61
-
62
65
  extensions: []
63
-
64
66
  extra_rdoc_files: []
65
-
66
- files:
67
+ files:
67
68
  - lib/wii-robotic-arm.rb
68
69
  homepage:
69
70
  licenses: []
70
-
71
+ metadata: {}
71
72
  post_install_message:
72
73
  rdoc_options: []
73
-
74
- require_paths:
74
+ require_paths:
75
75
  - lib
76
- required_ruby_version: !ruby/object:Gem::Requirement
77
- none: false
78
- requirements:
79
- - - ">="
80
- - !ruby/object:Gem::Version
81
- version: "0"
82
- required_rubygems_version: !ruby/object:Gem::Requirement
83
- none: false
84
- requirements:
85
- - - ">="
86
- - !ruby/object:Gem::Version
87
- version: "0"
76
+ required_ruby_version: !ruby/object:Gem::Requirement
77
+ requirements:
78
+ - - '>='
79
+ - !ruby/object:Gem::Version
80
+ version: '0'
81
+ required_rubygems_version: !ruby/object:Gem::Requirement
82
+ requirements:
83
+ - - '>='
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
88
86
  requirements: []
89
-
90
87
  rubyforge_project:
91
- rubygems_version: 1.8.23
88
+ rubygems_version: 2.0.0.rc.2
92
89
  signing_key:
93
- specification_version: 3
90
+ specification_version: 4
94
91
  summary: wii-robotic-arm
95
92
  test_files: []
96
-
metadata.gz.sig CHANGED
Binary file