artoo-digispark 0.3.0 → 0.4.0

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: b2a51a27bf37373fd338272feb32e8691b5491ff
4
- data.tar.gz: fdf61c7207c4938354df7d66a8b2a13c287b35e9
3
+ metadata.gz: 1252b057ea97cbf0cb6fb71bec9a713e810c094f
4
+ data.tar.gz: c68ee311f92f1c6f3cbd086d0defb5a3eb6b8a6a
5
5
  SHA512:
6
- metadata.gz: 3ef3906365c958cdd101fd253cfa99dd19a543baac8134cb5dc4bd59df2e4c95c91148f4c6ce8284f30b6f826187e54ae1f6857f2c06fc2ede2a409e88e2ae36
7
- data.tar.gz: 85584d6fee31abf1e934f7c0bda629d7331a6b0126f38d5ac76b2c7b533cc431205d0793432aaf451ed1f3c20ba352b82f99049b53d0080dd9c928263b27bf15
6
+ metadata.gz: 2525f55ff1d28811cdfbcd25406a012999bbeaa45452b090ebdfdcc28f5905883401c6b0a6e68625aead58842639b01f3fc03bda19090e882c0bcb2a064ee6b7
7
+ data.tar.gz: d771480ba834c27822e4994f1d266d91e229127e7170eaa735f9f9b6d441450e240884d5e069ebfa87da2adf0a8fe39992e8e6abff11d4e806eac91f3fec3f3f
@@ -0,0 +1 @@
1
+ .rvmrc
@@ -1,6 +1,7 @@
1
1
  language: ruby
2
2
  rvm:
3
+ - 2.1.0
3
4
  - 2.0.0
4
5
  - 1.9.3
5
- - jruby-19mode
6
- - rbx-19mode
6
+ - jruby-1.7.9
7
+ - rbx-2.1.1
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- artoo-digispark (0.3.0)
5
- artoo (>= 1.4.0)
4
+ artoo-digispark (0.4.0)
5
+ artoo (>= 1.6.0)
6
6
  artoo-gpio
7
7
  artoo-i2c
8
8
  littlewire (>= 0.9.10)
@@ -10,30 +10,31 @@ PATH
10
10
  GEM
11
11
  remote: http://rubygems.org/
12
12
  specs:
13
- artoo (1.4.1)
13
+ artoo (1.6.0)
14
14
  celluloid (~> 0.15.0)
15
15
  celluloid-io (~> 0.15.0)
16
16
  multi_json (~> 1.6)
17
17
  pry (~> 0.9)
18
18
  rake
19
19
  reel (~> 0.4.0)
20
+ robeaux (~> 0.0.3)
20
21
  thor (~> 0.18.1)
21
- artoo-gpio (0.3.0)
22
- artoo (>= 1.4.0)
23
- artoo-i2c (0.4.0)
24
- artoo (>= 1.4.0)
22
+ artoo-gpio (0.4.0)
23
+ artoo (>= 1.6.0)
24
+ artoo-i2c (0.5.0)
25
+ artoo (>= 1.6.0)
25
26
  celluloid (0.15.2)
26
27
  timers (~> 1.1.0)
27
28
  celluloid-io (0.15.0)
28
29
  celluloid (>= 0.15.0)
29
30
  nio4r (>= 0.5.0)
30
- coderay (1.0.9)
31
+ coderay (1.1.0)
31
32
  colorist (0.0.2)
32
- ffi (1.9.0)
33
+ ffi (1.9.3)
33
34
  http (0.5.0)
34
35
  http_parser.rb
35
- http_parser.rb (0.6.0.beta.2)
36
- libusb (0.3.4)
36
+ http_parser.rb (0.6.0)
37
+ libusb (0.4.0)
37
38
  ffi (>= 1.0)
38
39
  littlewire (0.9.10)
39
40
  colorist (>= 0.0.2)
@@ -45,24 +46,24 @@ GEM
45
46
  minitest-happy (1.0.0)
46
47
  mocha (0.14.0)
47
48
  metaclass (~> 0.0.1)
48
- multi_json (1.8.2)
49
- nio4r (0.5.0)
50
- pry (0.9.12.2)
51
- coderay (~> 1.0.5)
49
+ multi_json (1.8.4)
50
+ nio4r (1.0.0)
51
+ pry (0.9.12.6)
52
+ coderay (~> 1.0)
52
53
  method_source (~> 0.8)
53
54
  slop (~> 3.4)
54
- rake (10.1.0)
55
+ rake (10.1.1)
55
56
  reel (0.4.0)
56
57
  celluloid (>= 0.15.1)
57
58
  celluloid-io (>= 0.15.0)
58
59
  http (>= 0.5.0)
59
60
  http_parser.rb (>= 0.6.0.beta.2)
60
61
  websocket_parser (>= 0.1.4)
61
- slop (3.4.6)
62
+ robeaux (0.0.3)
63
+ slop (3.4.7)
62
64
  thor (0.18.1)
63
65
  timers (1.1.0)
64
- websocket_parser (0.1.4)
65
- http
66
+ websocket_parser (0.1.6)
66
67
 
67
68
  PLATFORMS
68
69
  ruby
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2013 The Hybrid Group
1
+ Copyright (c) 2013-2014 The Hybrid Group
2
2
 
3
3
  Licensed under the Apache License, Version 2.0 (the "License");
4
4
  you may not use this file except in compliance with the License.
data/README.md CHANGED
@@ -49,52 +49,61 @@ The following hardware devices have driver support, via the artoo-i2c gem:
49
49
 
50
50
  ## Connecting to Digispark
51
51
 
52
- If your Digispark (http://www.kickstarter.com/projects/digistump/digispark-the-tiny-arduino-enabled-usb-dev-board) ATTiny-based USB development board already has the Little Wire (http://littlewire.cc/) protocol firmware installed, you can connect right away with Artoo.
53
-
54
- Otherwise, for instructions on how to install Little Wire on a Digispark check out http://digistump.com/board/index.php/topic,160.0.html
52
+ Connecting to the Digispark (http://www.kickstarter.com/projects/digistump/digispark-the-tiny-arduino-enabled-usb-dev-board) ATTiny-based USB development board is very easy using Artoo, first we need to install the littlewire (http://littlewire.cc/) protocol to communicate with the digispark, Artoo includes CLI commands to make the process of uploading littlewire to the digispark as simple as possible, after littlewire has been uploaded you can connect and communicate using Artoo.
55
53
 
56
54
  ### OSX
57
55
 
58
56
  The main steps are:
59
- - Plug in the Digispark to the USB port
57
+ - Install the artoo-digispark gem
58
+ - Upload the Littlewire protocol to the digispark
60
59
  - Connect to the device via Artoo
61
60
 
62
- First plug the Digispark into your computer via the USB port. Then... (directions go here)
61
+ DO NOT plug in the Digispark to your computer's USB port until prompted.
62
+
63
+ Install the artoo-digispark gem:
64
+
65
+ ```
66
+ $ gem install artoo-digispark
67
+ ```
68
+
69
+ After installing the artoo-digispark gem run the following command to upload littlewire to the digispark, plug it to a USB port when prompted:
70
+
71
+ ```
72
+ $ artoo littlewire upload
73
+ ```
74
+
75
+ Once plugged in, use the `artoo connect scan` command with the `-t usb` option to verify your connection info:
76
+
77
+ ```
78
+ $ artoo connect scan -t usb
79
+ ```
80
+
81
+ Now use the `ID` info returned to find the `product` and `vendor` ID's required to establish a connection with the Digispark in your Artoo code.
82
+
83
+ That is it, you are set to start running Artoo digispark examples.
63
84
 
64
85
  ### Ubuntu
65
86
 
66
87
  The main steps are:
67
- - Add a udev rule to allow access to the Digispark device
88
+ - Install the artoo-digispark gem
89
+ - Add a udev rule to allow access to the Digispark device (Do not worry
90
+ about this, the `cylon littlewire upload` command does it for you if none is detected)
68
91
  - Plug in the Digispark to the USB port
69
92
  - Connect to the device via Artoo
70
93
 
71
- First, you must add a udev rule, so that Artoo can communicate with the USB device. Ubuntu and other modern Linux distibutions use udev to manage device files when USB devices are added and removed. By default, udev will create a device with read-only permission which will not allow to you download code. You must place the udev rules below into a file named /etc/udev/rules.d/49-micronucleus.rules.
94
+ DO NOT plug in the Digispark to your computer's USB port until prompted.
95
+
96
+ Install the artoo-digispark gem:
72
97
 
73
98
  ```
74
- # UDEV Rules for Micronucleus boards including the Digispark.
75
- # This file must be placed at:
76
- #
77
- # /etc/udev/rules.d/49-micronucleus.rules (preferred location)
78
- # or
79
- # /lib/udev/rules.d/49-micronucleus.rules (req'd on some broken systems)
80
- #
81
- # After this file is copied, physically unplug and reconnect the board.
82
- #
83
- SUBSYSTEMS=="usb", ATTRS{idVendor}=="1781", ATTRS{idProduct}=="0c9f", MODE:="0666"
84
- KERNEL=="ttyACM*", ATTRS{idVendor}=="1781", ATTRS{idProduct}=="0c9f", MODE:="0666", ENV{ID_MM_DEVICE_IGNORE}="1"
85
-
86
- SUBSYSTEMS=="usb", ATTRS{idVendor}=="16d0", ATTRS{idProduct}=="0753", MODE:="0666"
87
- KERNEL=="ttyACM*", ATTRS{idVendor}=="16d0", ATTRS{idProduct}=="0753", MODE:="0666", ENV{ID_MM_DEVICE_IGNORE}="1"
88
- #
89
- # If you share your linux system with other users, or just don't like the
90
- # idea of write permission for everybody, you can replace MODE:="0666" with
91
- # OWNER:="yourusername" to create the device owned by you, or with
92
- # GROUP:="somegroupname" and mange access using standard unix groups.
99
+ $ gem install artoo-digispark
93
100
  ```
94
101
 
95
- Thanks to [@bluebie](https://github.com/Bluebie) for these instructions! (https://github.com/Bluebie/micronucleus-t85/wiki/Ubuntu-Linux)
102
+ After installing the artoo-digispark gem run the following command to upload littlewire to the digispark, plug it to a USB port when prompted, you might be asked to enter your sudo password, since uploading littlewire to the digispark requires some new udev rules, you can check and review them in /etc/udev/rules.d/49-micronucleus.rules after running the `artoo littlewire upload` command):
96
103
 
97
- Now plug the Digispark into your computer via the USB port.
104
+ ```
105
+ $ artoo littlewire upload
106
+ ```
98
107
 
99
108
  Once plugged in, use the `artoo connect scan` command with the `-t usb` option to verify your connection info:
100
109
 
@@ -102,16 +111,37 @@ Once plugged in, use the `artoo connect scan` command with the `-t usb` option
102
111
  $ artoo connect scan -t usb
103
112
  ```
104
113
 
105
- Now use the `ID` info returned to find the `product` and `vendor` ID's for the connection info Digispark in your Artoo code.
114
+ Now use the `ID` info returned to find the `product` and `vendor` ID's required to establish a connection with the Digispark in your Artoo code.
115
+
116
+ That is it, you are set to start running Artoo digispark examples.
117
+
118
+ Thanks to [@bluebie](https://github.com/Bluebie) for the help with udev rules used when uploading littlewire to the digispark! (https://github.com/Bluebie/micronucleus-t85/wiki/Ubuntu-Linux)
106
119
 
107
120
  ### Windows
108
121
 
109
122
  We are currently working with the Celluloid team to add Windows support. Please check back soon!
110
123
 
124
+ ## Documentation
125
+
126
+ Check out our [documentation](http://artoo.io/documentation/) for lots of information about how to use Artoo.
127
+
128
+ ## IRC
129
+
130
+ Need more help? Just want to say "Hello"? Come visit us on IRC freenode #artoo
131
+
111
132
  ## Contributing
112
133
 
113
- 1. Fork it
114
- 2. Create your feature branch (`git checkout -b my-new-feature`)
115
- 3. Commit your changes (`git commit -am 'Add some feature'`)
116
- 4. Push to the branch (`git push origin my-new-feature`)
117
- 5. Create new Pull Request
134
+ * All patches must be provided under the Apache 2.0 License
135
+ * Please use the -s option in git to "sign off" that the commit is your work and you are providing it under the Apache 2.0 License
136
+ * Submit a Github Pull Request to the appropriate branch and ideally discuss the changes with us in IRC.
137
+ * We will look at the patch, test it out, and give you feedback.
138
+ * Avoid doing minor whitespace changes, renamings, etc. along with merged content. These will be done by the maintainers from time to time but they can complicate merges and should be done seperately.
139
+ * Take care to maintain the existing coding style.
140
+ * Add unit tests for any new or changed functionality.
141
+ * All pull requests should be "fast forward"
142
+ * If there are commits after yours use “git rebase -i <new_head_branch>”
143
+ * If you have local changes you may need to use “git stash”
144
+ * For git help see [progit](http://git-scm.com/book) which is an awesome (and free) book on git
145
+
146
+
147
+ (c) 2012-2014 The Hybrid Group
@@ -6,7 +6,7 @@ Gem::Specification.new do |s|
6
6
  s.name = "artoo-digispark"
7
7
  s.version = Artoo::Digispark::VERSION
8
8
  s.platform = Gem::Platform::RUBY
9
- s.authors = ["Ron Evans"]
9
+ s.authors = ["Ron Evans", "Edgar Silva"]
10
10
  s.email = ["artoo@hybridgroup.com"]
11
11
  s.homepage = "https://github.com/hybridgroup/artoo-digispark"
12
12
  s.summary = %q{Artoo adaptor for Digispark}
@@ -21,7 +21,7 @@ Gem::Specification.new do |s|
21
21
  s.require_paths = ["lib"]
22
22
  s.extensions = ["ext/Rakefile"]
23
23
 
24
- s.add_runtime_dependency 'artoo', '>= 1.4.0'
24
+ s.add_runtime_dependency 'artoo', '>= 1.6.0'
25
25
  s.add_runtime_dependency 'artoo-gpio'
26
26
  s.add_runtime_dependency 'artoo-i2c'
27
27
  s.add_runtime_dependency 'littlewire', '>= 0.9.10'
@@ -4,5 +4,7 @@ task :default => :install_commands
4
4
 
5
5
  task :install_commands do
6
6
  @install = Artoo::Commands::Install.new
7
- @install.command(File.expand_path(File.dirname(__FILE__) + "/../lib/artoo/commands/digispark.rb"))
7
+ @install.command(File.expand_path(File.dirname(__FILE__) + "/../lib/artoo/commands/littlewire.rb"))
8
+ @install.command(File.expand_path(File.dirname(__FILE__) + "/../lib/artoo/commands/deps/49-micronucleus.rules"))
9
+ @install.command(File.expand_path(File.dirname(__FILE__) + "/../lib/artoo/commands/deps/littlewireLoader_v13"))
8
10
  end
@@ -1,5 +1,5 @@
1
1
  module Artoo
2
2
  module Digispark
3
- VERSION = '0.3.0'
3
+ VERSION = '0.4.0'
4
4
  end
5
5
  end
@@ -0,0 +1,19 @@
1
+ # UDEV Rules for Micronucleus boards including the Digispark.
2
+ # This file must be placed at:
3
+ #
4
+ # /etc/udev/rules.d/49-micronucleus.rules (preferred location)
5
+ # or
6
+ # /lib/udev/rules.d/49-micronucleus.rules (req'd on some broken systems)
7
+ #
8
+ # After this file is copied, physically unplug and reconnect the board.
9
+ #
10
+ SUBSYSTEMS=="usb", ATTRS{idVendor}=="1781", ATTRS{idProduct}=="0c9f", MODE:="0666"
11
+ KERNEL=="ttyACM*", ATTRS{idVendor}=="1781", ATTRS{idProduct}=="0c9f", MODE:="0666", ENV{ID_MM_DEVICE_IGNORE}="1"
12
+
13
+ SUBSYSTEMS=="usb", ATTRS{idVendor}=="16d0", ATTRS{idProduct}=="0753", MODE:="0666"
14
+ KERNEL=="ttyACM*", ATTRS{idVendor}=="16d0", ATTRS{idProduct}=="0753", MODE:="0666", ENV{ID_MM_DEVICE_IGNORE}="1"
15
+ #
16
+ # If you share your linux system with other users, or just don't like the
17
+ # idea of write permission for everybody, you can replace MODE:="0666" with
18
+ # OWNER:="yourusername" to create the device owned by you, or with
19
+ # GROUP:="somegroupname" and mange access using standard unix groups.
@@ -0,0 +1,64 @@
1
+ require 'artoo/commands/commands'
2
+
3
+ module Artoo
4
+ module Commands
5
+ class Littlewire < Commands
6
+ package_name "littlewire"
7
+
8
+ desc "upload", "Uploads littlewire to Digispark devices"
9
+ def upload
10
+ upload_cmd = File.join(File.expand_path(File.dirname(__FILE__)), "littlewireLoader_v13")
11
+
12
+ case os
13
+ when :linux
14
+ sleep(5) if copy_udev_rules
15
+ run(upload_cmd)
16
+ when :macosx
17
+ run(upload_cmd)
18
+ else
19
+ say "OS not yet supported..."
20
+ end
21
+
22
+ end
23
+
24
+ desc "set-udev-rules", "Sets necessary udev-rules in linux systems"
25
+ def set_udev_rules
26
+ copy_udev_rules(true)
27
+ end
28
+
29
+ private
30
+ def copy_udev_rules(force = false)
31
+
32
+ udev_sys_path = '/etc/udev/rules.d/49-micronucleus.rules'
33
+ udev_bkp_path = File.join(File.expand_path(File.dirname(__FILE__)), "49-micronucleus.rules")
34
+
35
+ if !File.file?(udev_sys_path) || force
36
+ run("sudo cp #{ udev_bkp_path } #{ udev_sys_path }")
37
+ true
38
+ else
39
+ false
40
+ end
41
+
42
+ end
43
+ end
44
+ end
45
+ end
46
+
47
+ # We need to register the commands in the main artoo CLI so they
48
+ # can be picked up when this command file is required.
49
+ # The steps needed to register new CLI commands from outside
50
+ # artoo are:
51
+ # 1. Related command files need to be copied to the artoo install commands.
52
+ # 2. We do this with a rake task that is triggered when the gem is installed
53
+ # (see .gemspec file and look for extensions, ext/Rakefile), in the Rakefile
54
+ # we defined a new default class that makes use of an artoo helper class/method
55
+ # Artoo::Commands::Install helper method '.command'; see ext/Rakefile for details.
56
+ # 3. Finally in our main command file (THIS FILE) we open the artoo CLI::Root class to register
57
+ # the new commands.
58
+ #
59
+ module CLI
60
+ class Root
61
+ desc "littlewire SUBCOMMAND", "Uploads littlewire protocol to digispark"
62
+ subcommand "littlewire", Artoo::Commands::Littlewire
63
+ end
64
+ end
metadata CHANGED
@@ -1,111 +1,112 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: artoo-digispark
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ron Evans
8
+ - Edgar Silva
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2013-10-18 00:00:00.000000000 Z
12
+ date: 2014-02-07 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: artoo
15
16
  requirement: !ruby/object:Gem::Requirement
16
17
  requirements:
17
- - - '>='
18
+ - - ">="
18
19
  - !ruby/object:Gem::Version
19
- version: 1.4.0
20
+ version: 1.6.0
20
21
  type: :runtime
21
22
  prerelease: false
22
23
  version_requirements: !ruby/object:Gem::Requirement
23
24
  requirements:
24
- - - '>='
25
+ - - ">="
25
26
  - !ruby/object:Gem::Version
26
- version: 1.4.0
27
+ version: 1.6.0
27
28
  - !ruby/object:Gem::Dependency
28
29
  name: artoo-gpio
29
30
  requirement: !ruby/object:Gem::Requirement
30
31
  requirements:
31
- - - '>='
32
+ - - ">="
32
33
  - !ruby/object:Gem::Version
33
34
  version: '0'
34
35
  type: :runtime
35
36
  prerelease: false
36
37
  version_requirements: !ruby/object:Gem::Requirement
37
38
  requirements:
38
- - - '>='
39
+ - - ">="
39
40
  - !ruby/object:Gem::Version
40
41
  version: '0'
41
42
  - !ruby/object:Gem::Dependency
42
43
  name: artoo-i2c
43
44
  requirement: !ruby/object:Gem::Requirement
44
45
  requirements:
45
- - - '>='
46
+ - - ">="
46
47
  - !ruby/object:Gem::Version
47
48
  version: '0'
48
49
  type: :runtime
49
50
  prerelease: false
50
51
  version_requirements: !ruby/object:Gem::Requirement
51
52
  requirements:
52
- - - '>='
53
+ - - ">="
53
54
  - !ruby/object:Gem::Version
54
55
  version: '0'
55
56
  - !ruby/object:Gem::Dependency
56
57
  name: littlewire
57
58
  requirement: !ruby/object:Gem::Requirement
58
59
  requirements:
59
- - - '>='
60
+ - - ">="
60
61
  - !ruby/object:Gem::Version
61
62
  version: 0.9.10
62
63
  type: :runtime
63
64
  prerelease: false
64
65
  version_requirements: !ruby/object:Gem::Requirement
65
66
  requirements:
66
- - - '>='
67
+ - - ">="
67
68
  - !ruby/object:Gem::Version
68
69
  version: 0.9.10
69
70
  - !ruby/object:Gem::Dependency
70
71
  name: minitest
71
72
  requirement: !ruby/object:Gem::Requirement
72
73
  requirements:
73
- - - '>='
74
+ - - ">="
74
75
  - !ruby/object:Gem::Version
75
76
  version: '5.0'
76
77
  type: :development
77
78
  prerelease: false
78
79
  version_requirements: !ruby/object:Gem::Requirement
79
80
  requirements:
80
- - - '>='
81
+ - - ">="
81
82
  - !ruby/object:Gem::Version
82
83
  version: '5.0'
83
84
  - !ruby/object:Gem::Dependency
84
85
  name: minitest-happy
85
86
  requirement: !ruby/object:Gem::Requirement
86
87
  requirements:
87
- - - '>='
88
+ - - ">="
88
89
  - !ruby/object:Gem::Version
89
90
  version: '0'
90
91
  type: :development
91
92
  prerelease: false
92
93
  version_requirements: !ruby/object:Gem::Requirement
93
94
  requirements:
94
- - - '>='
95
+ - - ">="
95
96
  - !ruby/object:Gem::Version
96
97
  version: '0'
97
98
  - !ruby/object:Gem::Dependency
98
99
  name: mocha
99
100
  requirement: !ruby/object:Gem::Requirement
100
101
  requirements:
101
- - - '>='
102
+ - - ">="
102
103
  - !ruby/object:Gem::Version
103
104
  version: 0.14.0
104
105
  type: :development
105
106
  prerelease: false
106
107
  version_requirements: !ruby/object:Gem::Requirement
107
108
  requirements:
108
- - - '>='
109
+ - - ">="
109
110
  - !ruby/object:Gem::Version
110
111
  version: 0.14.0
111
112
  description: Artoo adaptor for Digispark USB development board
@@ -116,7 +117,8 @@ extensions:
116
117
  - ext/Rakefile
117
118
  extra_rdoc_files: []
118
119
  files:
119
- - .travis.yml
120
+ - ".gitignore"
121
+ - ".travis.yml"
120
122
  - Gemfile
121
123
  - Gemfile.lock
122
124
  - LICENSE
@@ -133,7 +135,9 @@ files:
133
135
  - lib/artoo-digispark.rb
134
136
  - lib/artoo-digispark/version.rb
135
137
  - lib/artoo/adaptors/littlewire.rb
136
- - lib/artoo/commands/digispark.rb
138
+ - lib/artoo/commands/deps/49-micronucleus.rules
139
+ - lib/artoo/commands/deps/littlewireLoader_v13
140
+ - lib/artoo/commands/littlewire.rb
137
141
  - lib/artoo/drivers/digispark.rb
138
142
  - test/adaptors/littlewire_test.rb
139
143
  - test/drivers/digispark_driver_test.rb
@@ -148,17 +152,17 @@ require_paths:
148
152
  - lib
149
153
  required_ruby_version: !ruby/object:Gem::Requirement
150
154
  requirements:
151
- - - '>='
155
+ - - ">="
152
156
  - !ruby/object:Gem::Version
153
157
  version: '0'
154
158
  required_rubygems_version: !ruby/object:Gem::Requirement
155
159
  requirements:
156
- - - '>='
160
+ - - ">="
157
161
  - !ruby/object:Gem::Version
158
162
  version: '0'
159
163
  requirements: []
160
164
  rubyforge_project: artoo-digispark
161
- rubygems_version: 2.0.3
165
+ rubygems_version: 2.2.1
162
166
  signing_key:
163
167
  specification_version: 4
164
168
  summary: Artoo adaptor for Digispark
@@ -1,21 +0,0 @@
1
- require 'artoo/commands/install'
2
-
3
- module Artoo
4
- module Commands
5
- class Install < Commands
6
- desc "digispark", "Installs firmware on Digispark devices"
7
- option :version, :aliases => "-v", :default => "1.2", :desc => "Version of firmware to install"
8
- def digispark
9
- case os
10
- when :linux
11
- # TODO: install the udev rules file
12
- run("littlewire.rb install #{options[:version]}")
13
- when :macosx
14
- run("littlewire.rb install #{options[:version]}")
15
- else
16
- say "OS not yet supported..."
17
- end
18
- end
19
- end
20
- end
21
- end