Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

gemfile/rakefile and more

  • Loading branch information...
commit 42cf473c782d11f3a7938103fcaa1266aaa5b34b 1 parent ad55dbf
Marcos Piccinini authored
4  Gemfile
... ...
@@ -0,0 +1,4 @@
  1
+source :rubygems
  2
+
  3
+gemspec
  4
+
30  Gemfile.lock
... ...
@@ -0,0 +1,30 @@
  1
+PATH
  2
+  remote: .
  3
+  specs:
  4
+    subduino (0.5.0)
  5
+      eventmachine
  6
+      redis
  7
+      serialport
  8
+
  9
+GEM
  10
+  remote: http://rubygems.org/
  11
+  specs:
  12
+    diff-lcs (1.1.3)
  13
+    eventmachine (0.12.10)
  14
+    redis (2.2.2)
  15
+    rspec (2.8.0)
  16
+      rspec-core (~> 2.8.0)
  17
+      rspec-expectations (~> 2.8.0)
  18
+      rspec-mocks (~> 2.8.0)
  19
+    rspec-core (2.8.0)
  20
+    rspec-expectations (2.8.0)
  21
+      diff-lcs (~> 1.1.2)
  22
+    rspec-mocks (2.8.0)
  23
+    serialport (1.0.4)
  24
+
  25
+PLATFORMS
  26
+  ruby
  27
+
  28
+DEPENDENCIES
  29
+  rspec (>= 1.2.9)
  30
+  subduino!
0  Readme.textile → README.md
Source Rendered
File renamed without changes
64  Rakefile
... ...
@@ -1,51 +1,37 @@
1  
-require 'rubygems'
2  
-require 'rake'
  1
+require 'bundler'
  2
+Bundler.setup
3 3
 
4  
-begin
5  
-  require 'jeweler'
6  
-  Jeweler::Tasks.new do |gem|
7  
-    gem.name = "subduino"
8  
-    gem.summary = "Arduino Ruby Helpers"
9  
-    gem.description = "Interface, compile, upload... Play with arduino on ruby!"
10  
-    gem.email = "x@nofxx.com"
11  
-    gem.homepage = "http://github.com/nofxx/subduino"
12  
-    gem.authors = ["Marcos Piccinini"]
13  
-    gem.add_dependency "redis"
14  
-    gem.add_dependency "eventmachine"
15  
-    gem.add_development_dependency "rspec", ">= 1.2.9"
16  
-    # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
17  
-  end
18  
-  Jeweler::GemcutterTasks.new
19  
-rescue LoadError
20  
-  puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
21  
-end
  4
+require "rspec"
  5
+require "rspec/core/rake_task"
22 6
 
23  
-# require 'spec/rake/spectask'
24  
-# Spec::Rake::SpecTask.new(:spec) do |spec|
25  
-#   spec.libs << 'lib' << 'spec'
26  
-#   spec.spec_files = FileList['spec/**/*_spec.rb']
27  
-# end
  7
+$LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
  8
+require "subduino/version"
28 9
 
29  
-# Spec::Rake::SpecTask.new(:rcov) do |spec|
30  
-#   spec.libs << 'lib' << 'spec'
31  
-#   spec.pattern = 'spec/**/*_spec.rb'
32  
-#   spec.rcov = true
33  
-# end
  10
+desc "Builds the gem"
  11
+task :gem => :build
  12
+task :build do
  13
+  system "gem build subduino.gemspec"
  14
+  Dir.mkdir("pkg") unless Dir.exists?("pkg")
  15
+  system "mv subduino-#{Subduino::VERSION}.gem pkg/"
  16
+end
34 17
 
35  
-# task :spec => :check_dependencies
  18
+task :install => :build do
  19
+  system "sudo gem install pkg/subduino-#{Subduino::VERSION}.gem"
  20
+end
36 21
 
37  
-# task :default => :spec
  22
+task :release => :build do
  23
+  system "git tag -a v#{Subduino::VERSION} -m 'Tagging #{Subduino::VERSION}'"
  24
+  system "git push --tags"
  25
+  system "gem push pkg/subduino-#{Subduino::VERSION}.gem"
  26
+end
38 27
 
39  
-require 'rake/rdoctask'
40  
-Rake::RDocTask.new do |rdoc|
41  
-  version = File.exist?('VERSION') ? File.read('VERSION') : ""
42 28
 
43  
-  rdoc.rdoc_dir = 'rdoc'
44  
-  rdoc.title = "subduino #{version}"
45  
-  rdoc.rdoc_files.include('README*')
46  
-  rdoc.rdoc_files.include('lib/**/*.rb')
  29
+RSpec::Core::RakeTask.new(:spec) do |spec|
  30
+  spec.pattern = "spec/**/*_spec.rb"
47 31
 end
48 32
 
  33
+task :default => [:spec]
  34
+
49 35
 desc "Download and install arduino libraries"
50 36
 task :clibs do |t|
51 37
   puts "Starting...."
1  VERSION
... ...
@@ -1 +0,0 @@
1  
-0.3.1
4  lib/subduino/version.rb
... ...
@@ -0,0 +1,4 @@
  1
+module Subduino
  2
+  VERSION = '0.5.0'
  3
+end
  4
+
87  subduino.gemspec
... ...
@@ -1,90 +1,29 @@
1  
-# Generated by jeweler
2  
-# DO NOT EDIT THIS FILE DIRECTLY
3  
-# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4 1
 # -*- encoding: utf-8 -*-
  2
+lib = File.expand_path('../lib/', __FILE__)
  3
+$:.unshift lib unless $:.include?(lib)
  4
+
  5
+require 'subduino/version'
5 6
 
6 7
 Gem::Specification.new do |s|
7 8
   s.name = %q{subduino}
8  
-  s.version = "0.3.1"
  9
+  s.version = Subduino::VERSION
9 10
 
10  
-  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11 11
   s.authors = ["Marcos Piccinini"]
12  
-  s.date = %q{2011-08-29}
13 12
   s.description = %q{Interface, compile, upload... Play with arduino on ruby!}
  13
+  s.summary = %q{Arduino Ruby Helpers}
14 14
   s.email = %q{x@nofxx.com}
15 15
   s.executables = ["subduino", "subduino-cli"]
16 16
   s.extensions = ["ext/subduino/extconf.rb"]
17  
-  s.files = [
18  
-    ".document",
19  
-    "Rakefile",
20  
-    "Readme.textile",
21  
-    "VERSION",
22  
-    "bin/subduino",
23  
-    "bin/subduino-cli",
24  
-    "duino/.gitignore",
25  
-    "duino/Makefile",
26  
-    "duino/duino.pde",
27  
-    "duino/duino.rb",
28  
-    "duino/methods.pde",
29  
-    "examples/duin",
30  
-    "ext/subduino/Makefile",
31  
-    "ext/subduino/cubduino.c",
32  
-    "ext/subduino/cubduino.h",
33  
-    "ext/subduino/cubduino.o",
34  
-    "ext/subduino/cubduino.so",
35  
-    "ext/subduino/extconf.rb",
36  
-    "lib/subduino.rb",
37  
-    "lib/subduino/ard_io.rb",
38  
-    "lib/subduino/ard_ps.rb",
39  
-    "lib/subduino/arduino.rb",
40  
-    "lib/subduino/os.rb",
41  
-    "lib/subduino/parse.rb",
42  
-    "lib/subduino/parse/bool.rb",
43  
-    "lib/subduino/parse/energy.rb",
44  
-    "lib/subduino/parse/flow.rb",
45  
-    "lib/subduino/parse/lux.rb",
46  
-    "lib/subduino/parse/presence.rb",
47  
-    "lib/subduino/parse/pressure.rb",
48  
-    "lib/subduino/parse/temp.rb",
49  
-    "lib/subduino/scaffold/Makefile",
50  
-    "lib/subduino/scaffold/Makefile2",
51  
-    "lib/subduino/scaffold/generator.rb",
52  
-    "lib/subduino/scaffold/scaffold.pde",
53  
-    "lib/subduino/scaffold/scaffold.rb",
54  
-    "lib/subduino/store.rb",
55  
-    "node/arduinode.js",
56  
-    "node/server.js",
57  
-    "node/vendor/faye.js",
58  
-    "spec/spec_helper.rb",
59  
-    "spec/subduino/ard_io_spec.rb",
60  
-    "spec/subduino/cubduino_spec.rb",
61  
-    "spec/subduino/parse_spec.rb",
62  
-    "spec/subduino/store_spec.rb",
63  
-    "spec/subduino_spec.rb",
64  
-    "subduino.gemspec"
65  
-  ]
  17
+
  18
+  s.files = Dir.glob("{lib,spec}/**/*") + %w(README.md Rakefile)
  19
+
66 20
   s.homepage = %q{http://github.com/nofxx/subduino}
67 21
   s.require_paths = ["lib"]
68 22
   s.rubygems_version = %q{1.3.7}
69  
-  s.summary = %q{Arduino Ruby Helpers}
70  
-
71  
-  if s.respond_to? :specification_version then
72  
-    current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
73  
-    s.specification_version = 3
74 23
 
75  
-    if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
76  
-      s.add_runtime_dependency(%q<redis>, [">= 0"])
77  
-      s.add_runtime_dependency(%q<eventmachine>, [">= 0"])
78  
-      s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
79  
-    else
80  
-      s.add_dependency(%q<redis>, [">= 0"])
81  
-      s.add_dependency(%q<eventmachine>, [">= 0"])
82  
-      s.add_dependency(%q<rspec>, [">= 1.2.9"])
83  
-    end
84  
-  else
85  
-    s.add_dependency(%q<redis>, [">= 0"])
86  
-    s.add_dependency(%q<eventmachine>, [">= 0"])
87  
-    s.add_dependency(%q<rspec>, [">= 1.2.9"])
88  
-  end
  24
+  s.add_runtime_dependency(%q<redis>, [">= 0"])
  25
+  s.add_runtime_dependency(%q<serialport>, [">= 0"])
  26
+  s.add_runtime_dependency(%q<eventmachine>, [">= 0"])
  27
+  s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
89 28
 end
90 29
 

0 notes on commit 42cf473

Please sign in to comment.
Something went wrong with that request. Please try again.