artoo-pebble 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +3 -0
- data/.travis.yml +6 -0
- data/Gemfile.lock +3 -5
- data/README.md +25 -1
- data/artoo-pebble.gemspec +1 -1
- data/lib/artoo-pebble/version.rb +1 -1
- metadata +73 -36
- checksums.yaml +0 -7
data/.gitignore
ADDED
data/.travis.yml
ADDED
data/Gemfile.lock
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
artoo-pebble (0.
|
4
|
+
artoo-pebble (0.1.1)
|
5
5
|
artoo (~> 1.0.0.rc1)
|
6
|
-
hybridgroup-pebblewatch (~> 0.
|
6
|
+
hybridgroup-pebblewatch (~> 0.1.2)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: http://rubygems.org/
|
@@ -26,9 +26,7 @@ GEM
|
|
26
26
|
certified
|
27
27
|
http_parser.rb
|
28
28
|
http_parser.rb (0.5.3)
|
29
|
-
hybridgroup-pebblewatch (0.
|
30
|
-
hybridgroup-serialport (~> 1.2)
|
31
|
-
hybridgroup-serialport (1.2.1)
|
29
|
+
hybridgroup-pebblewatch (0.1.2)
|
32
30
|
metaclass (0.0.1)
|
33
31
|
method_source (0.8.1)
|
34
32
|
minitest (5.0.6)
|
data/README.md
CHANGED
@@ -6,15 +6,39 @@ Artoo is a open source micro-framework for robotics using Ruby.
|
|
6
6
|
|
7
7
|
For more information abut Artoo, check out our repo at https://github.com/hybridgroup/artoo
|
8
8
|
|
9
|
+
[![Code Climate](https://codeclimate.com/github/hybridgroup/artoo-pebble.png)](https://codeclimate.com/github/hybridgroup/artoo-pebble) [![Build Status](https://travis-ci.org/hybridgroup/artoo-pebble.png?branch=master)](https://travis-ci.org/hybridgroup/artoo-pebble)
|
10
|
+
|
9
11
|
## Installing
|
10
12
|
|
11
13
|
```
|
12
14
|
gem install artoo-pebble
|
13
15
|
```
|
14
16
|
|
17
|
+
## Using
|
18
|
+
|
19
|
+
```ruby
|
20
|
+
require 'artoo'
|
21
|
+
|
22
|
+
connection :pebble, :adaptor => :pebble, :port => "/dev/rfcomm0", :id => "378B"
|
23
|
+
device :watch, :driver => :pebble
|
24
|
+
|
25
|
+
def button_push(*data)
|
26
|
+
puts data[1].button unless data[1].nil?
|
27
|
+
end
|
28
|
+
|
29
|
+
work do
|
30
|
+
on watch, :media_control => :button_push
|
31
|
+
|
32
|
+
watch.set_nowplaying_metadata("Artoo", "Hello", Time.now.to_s)
|
33
|
+
every(5.seconds) do
|
34
|
+
watch.set_nowplaying_metadata("Artoo", "Update...", Time.now.to_s)
|
35
|
+
end
|
36
|
+
end
|
37
|
+
```
|
38
|
+
|
15
39
|
## Connecting to Pebble
|
16
40
|
|
17
|
-
This software requires version 1.
|
41
|
+
This software requires version 1.12.0 of the Pebble watch firmware.
|
18
42
|
|
19
43
|
### Ubuntu
|
20
44
|
|
data/artoo-pebble.gemspec
CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
|
|
20
20
|
s.require_paths = ["lib"]
|
21
21
|
|
22
22
|
s.add_runtime_dependency 'artoo', '~> 1.0.0.rc1'
|
23
|
-
s.add_runtime_dependency 'hybridgroup-pebblewatch', '~> 0.1.
|
23
|
+
s.add_runtime_dependency 'hybridgroup-pebblewatch', '~> 0.1.2'
|
24
24
|
s.add_development_dependency 'minitest', '~> 5.0'
|
25
25
|
s.add_development_dependency 'minitest-happy'
|
26
26
|
s.add_development_dependency 'mocha', '~> 0.14.0'
|
data/lib/artoo-pebble/version.rb
CHANGED
metadata
CHANGED
@@ -1,81 +1,92 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: artoo-pebble
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
prerelease:
|
5
|
+
version: 0.1.1
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- Ron Evans
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2013-07-
|
12
|
+
date: 2013-07-04 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
|
-
name: artoo
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
|
+
none: false
|
16
17
|
requirements:
|
17
18
|
- - ~>
|
18
19
|
- !ruby/object:Gem::Version
|
19
20
|
version: 1.0.0.rc1
|
20
|
-
type: :runtime
|
21
21
|
prerelease: false
|
22
|
+
name: artoo
|
23
|
+
type: :runtime
|
22
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
23
26
|
requirements:
|
24
27
|
- - ~>
|
25
28
|
- !ruby/object:Gem::Version
|
26
29
|
version: 1.0.0.rc1
|
27
30
|
- !ruby/object:Gem::Dependency
|
28
|
-
name: hybridgroup-pebblewatch
|
29
31
|
requirement: !ruby/object:Gem::Requirement
|
32
|
+
none: false
|
30
33
|
requirements:
|
31
34
|
- - ~>
|
32
35
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.1.
|
34
|
-
type: :runtime
|
36
|
+
version: 0.1.2
|
35
37
|
prerelease: false
|
38
|
+
name: hybridgroup-pebblewatch
|
39
|
+
type: :runtime
|
36
40
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
37
42
|
requirements:
|
38
43
|
- - ~>
|
39
44
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.1.
|
45
|
+
version: 0.1.2
|
41
46
|
- !ruby/object:Gem::Dependency
|
42
|
-
name: minitest
|
43
47
|
requirement: !ruby/object:Gem::Requirement
|
48
|
+
none: false
|
44
49
|
requirements:
|
45
50
|
- - ~>
|
46
51
|
- !ruby/object:Gem::Version
|
47
52
|
version: '5.0'
|
48
|
-
type: :development
|
49
53
|
prerelease: false
|
54
|
+
name: minitest
|
55
|
+
type: :development
|
50
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
51
58
|
requirements:
|
52
59
|
- - ~>
|
53
60
|
- !ruby/object:Gem::Version
|
54
61
|
version: '5.0'
|
55
62
|
- !ruby/object:Gem::Dependency
|
56
|
-
name: minitest-happy
|
57
63
|
requirement: !ruby/object:Gem::Requirement
|
64
|
+
none: false
|
58
65
|
requirements:
|
59
|
-
- - '>='
|
66
|
+
- - ! '>='
|
60
67
|
- !ruby/object:Gem::Version
|
61
68
|
version: '0'
|
62
|
-
type: :development
|
63
69
|
prerelease: false
|
70
|
+
name: minitest-happy
|
71
|
+
type: :development
|
64
72
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
65
74
|
requirements:
|
66
|
-
- - '>='
|
75
|
+
- - ! '>='
|
67
76
|
- !ruby/object:Gem::Version
|
68
77
|
version: '0'
|
69
78
|
- !ruby/object:Gem::Dependency
|
70
|
-
name: mocha
|
71
79
|
requirement: !ruby/object:Gem::Requirement
|
80
|
+
none: false
|
72
81
|
requirements:
|
73
82
|
- - ~>
|
74
83
|
- !ruby/object:Gem::Version
|
75
84
|
version: 0.14.0
|
76
|
-
type: :development
|
77
85
|
prerelease: false
|
86
|
+
name: mocha
|
87
|
+
type: :development
|
78
88
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
79
90
|
requirements:
|
80
91
|
- - ~>
|
81
92
|
- !ruby/object:Gem::Version
|
@@ -87,42 +98,68 @@ executables: []
|
|
87
98
|
extensions: []
|
88
99
|
extra_rdoc_files: []
|
89
100
|
files:
|
90
|
-
-
|
91
|
-
|
92
|
-
-
|
93
|
-
|
94
|
-
-
|
95
|
-
|
96
|
-
-
|
97
|
-
|
98
|
-
-
|
99
|
-
|
100
|
-
-
|
101
|
-
|
102
|
-
-
|
103
|
-
|
104
|
-
-
|
101
|
+
- !binary |-
|
102
|
+
LmdpdGlnbm9yZQ==
|
103
|
+
- !binary |-
|
104
|
+
LnRyYXZpcy55bWw=
|
105
|
+
- !binary |-
|
106
|
+
R2VtZmlsZQ==
|
107
|
+
- !binary |-
|
108
|
+
R2VtZmlsZS5sb2Nr
|
109
|
+
- !binary |-
|
110
|
+
TElDRU5TRQ==
|
111
|
+
- !binary |-
|
112
|
+
UkVBRE1FLm1k
|
113
|
+
- !binary |-
|
114
|
+
UmFrZWZpbGU=
|
115
|
+
- !binary |-
|
116
|
+
YXJ0b28tcGViYmxlLmdlbXNwZWM=
|
117
|
+
- !binary |-
|
118
|
+
ZXhhbXBsZXMvaGVsbG9fcGViYmxlLnJi
|
119
|
+
- !binary |-
|
120
|
+
ZXhhbXBsZXMvbWVkaWFfY29udHJvbC5yYg==
|
121
|
+
- !binary |-
|
122
|
+
bGliL2FydG9vLXBlYmJsZS5yYg==
|
123
|
+
- !binary |-
|
124
|
+
bGliL2FydG9vLXBlYmJsZS92ZXJzaW9uLnJi
|
125
|
+
- !binary |-
|
126
|
+
bGliL2FydG9vL2FkYXB0b3JzL3BlYmJsZS5yYg==
|
127
|
+
- !binary |-
|
128
|
+
bGliL2FydG9vL2RyaXZlcnMvcGViYmxlLnJi
|
129
|
+
- !binary |-
|
130
|
+
dGVzdC9hZGFwdG9ycy9wZWJibGVfYWRhcHRvcl90ZXN0LnJi
|
131
|
+
- !binary |-
|
132
|
+
dGVzdC9kcml2ZXJzL3BlYmJsZV9kcml2ZXJfdGVzdC5yYg==
|
133
|
+
- !binary |-
|
134
|
+
dGVzdC90ZXN0X2hlbHBlci5yYg==
|
105
135
|
homepage: https://github.com/hybridgroup/artoo-pebble
|
106
136
|
licenses: []
|
107
|
-
metadata: {}
|
108
137
|
post_install_message:
|
109
138
|
rdoc_options: []
|
110
139
|
require_paths:
|
111
140
|
- lib
|
112
141
|
required_ruby_version: !ruby/object:Gem::Requirement
|
142
|
+
none: false
|
113
143
|
requirements:
|
114
|
-
- - '>='
|
144
|
+
- - ! '>='
|
115
145
|
- !ruby/object:Gem::Version
|
146
|
+
segments:
|
147
|
+
- 0
|
116
148
|
version: '0'
|
149
|
+
hash: 2002549777813010636
|
117
150
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
151
|
+
none: false
|
118
152
|
requirements:
|
119
|
-
- - '>='
|
153
|
+
- - ! '>='
|
120
154
|
- !ruby/object:Gem::Version
|
155
|
+
segments:
|
156
|
+
- 0
|
121
157
|
version: '0'
|
158
|
+
hash: 2002549777813010636
|
122
159
|
requirements: []
|
123
160
|
rubyforge_project: artoo-pebble
|
124
|
-
rubygems_version:
|
161
|
+
rubygems_version: 1.8.25
|
125
162
|
signing_key:
|
126
|
-
specification_version:
|
163
|
+
specification_version: 3
|
127
164
|
summary: Artoo adaptor and driver for Pebble smart watch
|
128
165
|
test_files: []
|
checksums.yaml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
metadata.gz: 3505baa398f392646707145a946f5e83bb260eb5
|
4
|
-
data.tar.gz: b198a9e5738ca21c843c25feb63aa69339c7b536
|
5
|
-
SHA512:
|
6
|
-
metadata.gz: 30ff2cdb96a3c645530326c6238becc308bc7d72871a893d6e03f87a773eeef464c4304efcd1567cdda58b20042027e9e5f6bf96faa15ee8cb2fac6a61328071
|
7
|
-
data.tar.gz: 5ace8f4288c64ac20c77924730bcb14222457304d73cc6a233fd03c1a47646e5eedacf268450d311deda504083d4d0b45406a38af84f19027ddab19cdfcc21d1
|