flic 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +10 -0
- data/.rspec +2 -0
- data/.travis.yml +5 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +30 -0
- data/Rakefile +12 -0
- data/flic.gemspec +25 -0
- data/lib/flic.rb +7 -0
- data/lib/flic/client.rb +247 -0
- data/lib/flic/client/connection.rb +87 -0
- data/lib/flic/event_bus.rb +81 -0
- data/lib/flic/event_bus/driver.rb +23 -0
- data/lib/flic/event_bus/subscription.rb +66 -0
- data/lib/flic/protocol.rb +64 -0
- data/lib/flic/protocol/commands.rb +44 -0
- data/lib/flic/protocol/commands/cancel_scan_wizard.rb +15 -0
- data/lib/flic/protocol/commands/change_mode_parameters.rb +17 -0
- data/lib/flic/protocol/commands/command.rb +21 -0
- data/lib/flic/protocol/commands/create_connection_channel.rb +20 -0
- data/lib/flic/protocol/commands/create_scan_wizard.rb +15 -0
- data/lib/flic/protocol/commands/create_scanner.rb +14 -0
- data/lib/flic/protocol/commands/force_disconnect.rb +15 -0
- data/lib/flic/protocol/commands/get_button_uuid.rb +15 -0
- data/lib/flic/protocol/commands/get_info.rb +12 -0
- data/lib/flic/protocol/commands/ping.rb +14 -0
- data/lib/flic/protocol/commands/remove_connection_channel.rb +14 -0
- data/lib/flic/protocol/commands/remove_scanner.rb +14 -0
- data/lib/flic/protocol/events.rb +60 -0
- data/lib/flic/protocol/events/advertisement_packet.rb +25 -0
- data/lib/flic/protocol/events/bluetooth_controller_state_change.rb +15 -0
- data/lib/flic/protocol/events/button_click_or_hold.rb +19 -0
- data/lib/flic/protocol/events/button_single_or_double_click.rb +19 -0
- data/lib/flic/protocol/events/button_single_or_double_click_or_hold.rb +19 -0
- data/lib/flic/protocol/events/button_up_or_down.rb +19 -0
- data/lib/flic/protocol/events/connection_channel_removed.rb +16 -0
- data/lib/flic/protocol/events/connection_status_changed.rb +19 -0
- data/lib/flic/protocol/events/create_connection_channel_response.rb +18 -0
- data/lib/flic/protocol/events/event.rb +21 -0
- data/lib/flic/protocol/events/get_button_uuid_response.rb +17 -0
- data/lib/flic/protocol/events/get_info_response.rb +27 -0
- data/lib/flic/protocol/events/got_space_for_new_connection.rb +14 -0
- data/lib/flic/protocol/events/new_verified_button.rb +15 -0
- data/lib/flic/protocol/events/no_space_for_new_connection.rb +14 -0
- data/lib/flic/protocol/events/ping_response.rb +14 -0
- data/lib/flic/protocol/events/scan_wizard_button_connected.rb +14 -0
- data/lib/flic/protocol/events/scan_wizard_completed.rb +16 -0
- data/lib/flic/protocol/events/scan_wizard_found_private_button.rb +14 -0
- data/lib/flic/protocol/events/scan_wizard_found_public_button.rb +19 -0
- data/lib/flic/protocol/packet_header.rb +12 -0
- data/lib/flic/protocol/primitives.rb +22 -0
- data/lib/flic/protocol/primitives/bluetooth_address.rb +35 -0
- data/lib/flic/protocol/primitives/bluetooth_address_type.rb +13 -0
- data/lib/flic/protocol/primitives/bluetooth_controller_state.rb +14 -0
- data/lib/flic/protocol/primitives/boolean.rb +19 -0
- data/lib/flic/protocol/primitives/click_type.rb +17 -0
- data/lib/flic/protocol/primitives/connection_status.rb +14 -0
- data/lib/flic/protocol/primitives/create_connection_channel_error.rb +13 -0
- data/lib/flic/protocol/primitives/device_name.rb +44 -0
- data/lib/flic/protocol/primitives/disconnect_reason.rb +15 -0
- data/lib/flic/protocol/primitives/enum.rb +85 -0
- data/lib/flic/protocol/primitives/latency_mode.rb +14 -0
- data/lib/flic/protocol/primitives/removed_reason.rb +18 -0
- data/lib/flic/protocol/primitives/scan_wizard_result.rb +18 -0
- data/lib/flic/protocol/primitives/uuid.rb +23 -0
- data/lib/flic/version.rb +3 -0
- metadata +180 -0
data/lib/flic/version.rb
ADDED
metadata
ADDED
@@ -0,0 +1,180 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: flic
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Alec Larsen
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-08-11 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bindata
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '2.3'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '2.3'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.12'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.12'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '10.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '10.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '3.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '3.0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: pry
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
description:
|
84
|
+
email:
|
85
|
+
- aleclarsen42@gmail.com
|
86
|
+
executables: []
|
87
|
+
extensions: []
|
88
|
+
extra_rdoc_files: []
|
89
|
+
files:
|
90
|
+
- ".gitignore"
|
91
|
+
- ".rspec"
|
92
|
+
- ".travis.yml"
|
93
|
+
- Gemfile
|
94
|
+
- LICENSE.txt
|
95
|
+
- README.md
|
96
|
+
- Rakefile
|
97
|
+
- flic.gemspec
|
98
|
+
- lib/flic.rb
|
99
|
+
- lib/flic/client.rb
|
100
|
+
- lib/flic/client/connection.rb
|
101
|
+
- lib/flic/event_bus.rb
|
102
|
+
- lib/flic/event_bus/driver.rb
|
103
|
+
- lib/flic/event_bus/subscription.rb
|
104
|
+
- lib/flic/protocol.rb
|
105
|
+
- lib/flic/protocol/commands.rb
|
106
|
+
- lib/flic/protocol/commands/cancel_scan_wizard.rb
|
107
|
+
- lib/flic/protocol/commands/change_mode_parameters.rb
|
108
|
+
- lib/flic/protocol/commands/command.rb
|
109
|
+
- lib/flic/protocol/commands/create_connection_channel.rb
|
110
|
+
- lib/flic/protocol/commands/create_scan_wizard.rb
|
111
|
+
- lib/flic/protocol/commands/create_scanner.rb
|
112
|
+
- lib/flic/protocol/commands/force_disconnect.rb
|
113
|
+
- lib/flic/protocol/commands/get_button_uuid.rb
|
114
|
+
- lib/flic/protocol/commands/get_info.rb
|
115
|
+
- lib/flic/protocol/commands/ping.rb
|
116
|
+
- lib/flic/protocol/commands/remove_connection_channel.rb
|
117
|
+
- lib/flic/protocol/commands/remove_scanner.rb
|
118
|
+
- lib/flic/protocol/events.rb
|
119
|
+
- lib/flic/protocol/events/advertisement_packet.rb
|
120
|
+
- lib/flic/protocol/events/bluetooth_controller_state_change.rb
|
121
|
+
- lib/flic/protocol/events/button_click_or_hold.rb
|
122
|
+
- lib/flic/protocol/events/button_single_or_double_click.rb
|
123
|
+
- lib/flic/protocol/events/button_single_or_double_click_or_hold.rb
|
124
|
+
- lib/flic/protocol/events/button_up_or_down.rb
|
125
|
+
- lib/flic/protocol/events/connection_channel_removed.rb
|
126
|
+
- lib/flic/protocol/events/connection_status_changed.rb
|
127
|
+
- lib/flic/protocol/events/create_connection_channel_response.rb
|
128
|
+
- lib/flic/protocol/events/event.rb
|
129
|
+
- lib/flic/protocol/events/get_button_uuid_response.rb
|
130
|
+
- lib/flic/protocol/events/get_info_response.rb
|
131
|
+
- lib/flic/protocol/events/got_space_for_new_connection.rb
|
132
|
+
- lib/flic/protocol/events/new_verified_button.rb
|
133
|
+
- lib/flic/protocol/events/no_space_for_new_connection.rb
|
134
|
+
- lib/flic/protocol/events/ping_response.rb
|
135
|
+
- lib/flic/protocol/events/scan_wizard_button_connected.rb
|
136
|
+
- lib/flic/protocol/events/scan_wizard_completed.rb
|
137
|
+
- lib/flic/protocol/events/scan_wizard_found_private_button.rb
|
138
|
+
- lib/flic/protocol/events/scan_wizard_found_public_button.rb
|
139
|
+
- lib/flic/protocol/packet_header.rb
|
140
|
+
- lib/flic/protocol/primitives.rb
|
141
|
+
- lib/flic/protocol/primitives/bluetooth_address.rb
|
142
|
+
- lib/flic/protocol/primitives/bluetooth_address_type.rb
|
143
|
+
- lib/flic/protocol/primitives/bluetooth_controller_state.rb
|
144
|
+
- lib/flic/protocol/primitives/boolean.rb
|
145
|
+
- lib/flic/protocol/primitives/click_type.rb
|
146
|
+
- lib/flic/protocol/primitives/connection_status.rb
|
147
|
+
- lib/flic/protocol/primitives/create_connection_channel_error.rb
|
148
|
+
- lib/flic/protocol/primitives/device_name.rb
|
149
|
+
- lib/flic/protocol/primitives/disconnect_reason.rb
|
150
|
+
- lib/flic/protocol/primitives/enum.rb
|
151
|
+
- lib/flic/protocol/primitives/latency_mode.rb
|
152
|
+
- lib/flic/protocol/primitives/removed_reason.rb
|
153
|
+
- lib/flic/protocol/primitives/scan_wizard_result.rb
|
154
|
+
- lib/flic/protocol/primitives/uuid.rb
|
155
|
+
- lib/flic/version.rb
|
156
|
+
homepage: https://github.com/anarchocurious/flic
|
157
|
+
licenses:
|
158
|
+
- MIT
|
159
|
+
metadata: {}
|
160
|
+
post_install_message:
|
161
|
+
rdoc_options: []
|
162
|
+
require_paths:
|
163
|
+
- lib
|
164
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
165
|
+
requirements:
|
166
|
+
- - ">="
|
167
|
+
- !ruby/object:Gem::Version
|
168
|
+
version: '0'
|
169
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ">="
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
requirements: []
|
175
|
+
rubyforge_project:
|
176
|
+
rubygems_version: 2.5.1
|
177
|
+
signing_key:
|
178
|
+
specification_version: 4
|
179
|
+
summary: A Ruby implementation of the (Fliclib)[https://github.com/50ButtonsEach/fliclib-linux-hci/blob/master/ProtocolDocumentation.md]
|
180
|
+
test_files: []
|