Permalink
Browse files

Migrating from Bones to Bundler.

  • Loading branch information...
oruen committed Feb 28, 2011
1 parent 8ae02d9 commit 2f37deb43bae7c9a59339b18efde5f8a9a5d1fa3
Showing with 39 additions and 48 deletions.
  1. +4 −0 .gitignore
  2. +5 −0 Gemfile
  3. +5 −18 Rakefile
  4. +20 −28 em-zeromq.gemspec
  5. +1 −1 lib/em-zeromq.rb
  6. +4 −0 lib/em-zeromq/version.rb
  7. +0 −1 version.txt
View
@@ -7,4 +7,8 @@
pkg
+*.gem
+.bundle
+Gemfile.lock
+pkg/*
.rvmrc
View
@@ -0,0 +1,5 @@
+source "http://rubygems.org"
+
+# Specify your gem's dependencies in em-zeromq.gemspec
+gemspec
+
View
@@ -1,20 +1,7 @@
+require 'bundler'
+Bundler::GemHelper.install_tasks
-begin
- require 'bones'
-rescue LoadError
- abort '### Please install the "bones" gem ###'
+require 'rspec/core/rake_task'
+RSpec::Core::RakeTask.new(:spec) do |t|
end
-
-#task :default => 'test:run'
-task 'gem:release' => 'test:run'
-
-#depend_on 'ffi-rzmq', '0.7.0'
-#depend_on 'eventmachine'
-
-Bones {
- name 'em-zeromq'
- authors 'Andrew Cholakian'
- email 'andrew@andrewvc.com'
- url 'https://github.com/andrewvc/em-zeromq'
-}
-
+task :default => :spec
View
@@ -1,36 +1,28 @@
# -*- encoding: utf-8 -*-
+$:.push File.expand_path("../lib", __FILE__)
+require "em-zeromq/version"
Gem::Specification.new do |s|
- s.name = %q{em-zeromq}
- s.version = "0.0.1"
-
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
- s.authors = ["Andrew Cholakian"]
- s.date = %q{2011-02-01}
- s.default_executable = %q{em-zeromq}
+puts Gem::Platform::RUBY.to_s
+ s.name = "em-zeromq"
+ s.version = EmZeromq::VERSION
+ s.platform = Gem::Platform::RUBY
+ s.authors = ["Andrew Cholakian"]
+ s.email = ["andrew@andrewvc.com"]
+ s.homepage = "https://github.com/andrewvc/em-zeromq"
+ s.summary = %q{Low level event machine support for ZeroMQ}
s.description = %q{Low level event machine support for ZeroMQ}
- s.email = %q{andrew@andrewvc.com}
- s.executables = ["em-zeromq"]
- s.extra_rdoc_files = ["History.txt", "bin/em-zeromq", "lib/em-zeromq/.connection.rb.swp", "version.txt"]
- s.files = [".Rakefile.swo", ".bnsignore", "History.txt", "README.md", "Rakefile", "bin/em-zeromq", "example/simple.rb", "lib/em-zeromq.rb", "lib/em-zeromq/.connection.rb.swp", "lib/em-zeromq/connection.rb", "lib/em-zeromq/zeromq.rb", "spec/.pub_sub_spec.rb.swp", "spec/pub_sub_spec.rb", "spec/push_pull_spec.rb", "spec/spec_helper.rb", "test/test_em-zeromq.rb", "version.txt"]
- s.homepage = %q{https://github.com/andrewvc/em-zeromq}
s.rdoc_options = ["--main", "README.md"]
- s.require_paths = ["lib"]
- s.rubyforge_project = %q{em-zeromq}
- s.rubygems_version = %q{1.3.7}
- s.summary = %q{Low level event machine support for ZeroMQ}
- s.test_files = ["test/test_em-zeromq.rb"]
- if s.respond_to? :specification_version then
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
- s.specification_version = 3
+ s.rubyforge_project = "em-zeromq"
+
+ s.add_dependency 'eventmachine', '> 0'
+ s.add_dependency 'ffi-rzmq', '>= 0.7.0'
+ s.add_development_dependency 'rspec', '>= 2.5.0'
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
- s.add_development_dependency(%q<bones>, [">= 3.5.4"])
- else
- s.add_dependency(%q<bones>, [">= 3.5.4"])
- end
- else
- s.add_dependency(%q<bones>, [">= 3.5.4"])
- end
+ s.files = `git ls-files`.split("\n")
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
+ s.require_paths = ["lib"]
end
+
View
@@ -11,7 +11,7 @@ module EmZeromq
# Returns the version string for the library.
#
def self.version
- @version ||= File.read(path('version.txt')).strip
+ @version ||= VERSION
end
# Returns the library path for the module. If any arguments are given,
View
@@ -0,0 +1,4 @@
+# encoding: utf-8
+module EmZeromq
+ VERSION = "0.1.2"
+end
View
@@ -1 +0,0 @@
-0.1.2

0 comments on commit 2f37deb

Please sign in to comment.