Permalink
Browse files

gemfile/rakefile and more

  • Loading branch information...
nofxx committed Jan 16, 2012
1 parent ad55dbf commit 42cf473c782d11f3a7938103fcaa1266aaa5b34b
Showing with 76 additions and 114 deletions.
  1. +4 −0 Gemfile
  2. +30 −0 Gemfile.lock
  3. 0 Readme.textile → README.md
  4. +25 −39 Rakefile
  5. +0 −1 VERSION
  6. +4 −0 lib/subduino/version.rb
  7. +13 −74 subduino.gemspec
View
@@ -0,0 +1,4 @@
+source :rubygems
+
+gemspec
+
View
@@ -0,0 +1,30 @@
+PATH
+ remote: .
+ specs:
+ subduino (0.5.0)
+ eventmachine
+ redis
+ serialport
+
+GEM
+ remote: http://rubygems.org/
+ specs:
+ diff-lcs (1.1.3)
+ eventmachine (0.12.10)
+ redis (2.2.2)
+ rspec (2.8.0)
+ rspec-core (~> 2.8.0)
+ rspec-expectations (~> 2.8.0)
+ rspec-mocks (~> 2.8.0)
+ rspec-core (2.8.0)
+ rspec-expectations (2.8.0)
+ diff-lcs (~> 1.1.2)
+ rspec-mocks (2.8.0)
+ serialport (1.0.4)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ rspec (>= 1.2.9)
+ subduino!
File renamed without changes.
View
@@ -1,51 +1,37 @@
-require 'rubygems'
-require 'rake'
+require 'bundler'
+Bundler.setup
-begin
- require 'jeweler'
- Jeweler::Tasks.new do |gem|
- gem.name = "subduino"
- gem.summary = "Arduino Ruby Helpers"
- gem.description = "Interface, compile, upload... Play with arduino on ruby!"
- gem.email = "x@nofxx.com"
- gem.homepage = "http://github.com/nofxx/subduino"
- gem.authors = ["Marcos Piccinini"]
- gem.add_dependency "redis"
- gem.add_dependency "eventmachine"
- gem.add_development_dependency "rspec", ">= 1.2.9"
- # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
- end
- Jeweler::GemcutterTasks.new
-rescue LoadError
- puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
-end
+require "rspec"
+require "rspec/core/rake_task"
-# require 'spec/rake/spectask'
-# Spec::Rake::SpecTask.new(:spec) do |spec|
-# spec.libs << 'lib' << 'spec'
-# spec.spec_files = FileList['spec/**/*_spec.rb']
-# end
+$LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
+require "subduino/version"
-# Spec::Rake::SpecTask.new(:rcov) do |spec|
-# spec.libs << 'lib' << 'spec'
-# spec.pattern = 'spec/**/*_spec.rb'
-# spec.rcov = true
-# end
+desc "Builds the gem"
+task :gem => :build
+task :build do
+ system "gem build subduino.gemspec"
+ Dir.mkdir("pkg") unless Dir.exists?("pkg")
+ system "mv subduino-#{Subduino::VERSION}.gem pkg/"
+end
-# task :spec => :check_dependencies
+task :install => :build do
+ system "sudo gem install pkg/subduino-#{Subduino::VERSION}.gem"
+end
-# task :default => :spec
+task :release => :build do
+ system "git tag -a v#{Subduino::VERSION} -m 'Tagging #{Subduino::VERSION}'"
+ system "git push --tags"
+ system "gem push pkg/subduino-#{Subduino::VERSION}.gem"
+end
-require 'rake/rdoctask'
-Rake::RDocTask.new do |rdoc|
- version = File.exist?('VERSION') ? File.read('VERSION') : ""
- rdoc.rdoc_dir = 'rdoc'
- rdoc.title = "subduino #{version}"
- rdoc.rdoc_files.include('README*')
- rdoc.rdoc_files.include('lib/**/*.rb')
+RSpec::Core::RakeTask.new(:spec) do |spec|
+ spec.pattern = "spec/**/*_spec.rb"
end
+task :default => [:spec]
+
desc "Download and install arduino libraries"
task :clibs do |t|
puts "Starting...."
View
@@ -1 +0,0 @@
-0.3.1
View
@@ -0,0 +1,4 @@
+module Subduino
+ VERSION = '0.5.0'
+end
+
View
@@ -1,90 +1,29 @@
-# Generated by jeweler
-# DO NOT EDIT THIS FILE DIRECTLY
-# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
# -*- encoding: utf-8 -*-
+lib = File.expand_path('../lib/', __FILE__)
+$:.unshift lib unless $:.include?(lib)
+
+require 'subduino/version'
Gem::Specification.new do |s|
s.name = %q{subduino}
- s.version = "0.3.1"
+ s.version = Subduino::VERSION
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Marcos Piccinini"]
- s.date = %q{2011-08-29}
s.description = %q{Interface, compile, upload... Play with arduino on ruby!}
+ s.summary = %q{Arduino Ruby Helpers}
s.email = %q{x@nofxx.com}
s.executables = ["subduino", "subduino-cli"]
s.extensions = ["ext/subduino/extconf.rb"]
- s.files = [
- ".document",
- "Rakefile",
- "Readme.textile",
- "VERSION",
- "bin/subduino",
- "bin/subduino-cli",
- "duino/.gitignore",
- "duino/Makefile",
- "duino/duino.pde",
- "duino/duino.rb",
- "duino/methods.pde",
- "examples/duin",
- "ext/subduino/Makefile",
- "ext/subduino/cubduino.c",
- "ext/subduino/cubduino.h",
- "ext/subduino/cubduino.o",
- "ext/subduino/cubduino.so",
- "ext/subduino/extconf.rb",
- "lib/subduino.rb",
- "lib/subduino/ard_io.rb",
- "lib/subduino/ard_ps.rb",
- "lib/subduino/arduino.rb",
- "lib/subduino/os.rb",
- "lib/subduino/parse.rb",
- "lib/subduino/parse/bool.rb",
- "lib/subduino/parse/energy.rb",
- "lib/subduino/parse/flow.rb",
- "lib/subduino/parse/lux.rb",
- "lib/subduino/parse/presence.rb",
- "lib/subduino/parse/pressure.rb",
- "lib/subduino/parse/temp.rb",
- "lib/subduino/scaffold/Makefile",
- "lib/subduino/scaffold/Makefile2",
- "lib/subduino/scaffold/generator.rb",
- "lib/subduino/scaffold/scaffold.pde",
- "lib/subduino/scaffold/scaffold.rb",
- "lib/subduino/store.rb",
- "node/arduinode.js",
- "node/server.js",
- "node/vendor/faye.js",
- "spec/spec_helper.rb",
- "spec/subduino/ard_io_spec.rb",
- "spec/subduino/cubduino_spec.rb",
- "spec/subduino/parse_spec.rb",
- "spec/subduino/store_spec.rb",
- "spec/subduino_spec.rb",
- "subduino.gemspec"
- ]
+
+ s.files = Dir.glob("{lib,spec}/**/*") + %w(README.md Rakefile)
+
s.homepage = %q{http://github.com/nofxx/subduino}
s.require_paths = ["lib"]
s.rubygems_version = %q{1.3.7}
- s.summary = %q{Arduino Ruby Helpers}
-
- if s.respond_to? :specification_version then
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
- s.specification_version = 3
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
- s.add_runtime_dependency(%q<redis>, [">= 0"])
- s.add_runtime_dependency(%q<eventmachine>, [">= 0"])
- s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
- else
- s.add_dependency(%q<redis>, [">= 0"])
- s.add_dependency(%q<eventmachine>, [">= 0"])
- s.add_dependency(%q<rspec>, [">= 1.2.9"])
- end
- else
- s.add_dependency(%q<redis>, [">= 0"])
- s.add_dependency(%q<eventmachine>, [">= 0"])
- s.add_dependency(%q<rspec>, [">= 1.2.9"])
- end
+ s.add_runtime_dependency(%q<redis>, [">= 0"])
+ s.add_runtime_dependency(%q<serialport>, [">= 0"])
+ s.add_runtime_dependency(%q<eventmachine>, [">= 0"])
+ s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
end

0 comments on commit 42cf473

Please sign in to comment.