Permalink
Browse files

* change gem generate tool from jeweler to Bundler.

  • Loading branch information...
1 parent a4a26ec commit b9618b8e30601d2f1a418a14e8be52b01dfcb8a1 @nagachika committed Mar 10, 2012
Showing with 53 additions and 113 deletions.
  1. +6 −6 .gitignore
  2. +4 −0 ChangeLog
  3. +1 −1 Gemfile
  4. +2 −46 Rakefile
  5. +36 −60 coreaudio.gemspec
  6. +1 −0 lib/coreaudio.rb
  7. +3 −0 lib/coreaudio/version.rb
View
@@ -1,23 +1,25 @@
ext/Makefile
ext/extconf.h
+*.gem
/Gemfile.lock
+tmp/
+pkg/
+
# rcov generated
coverage
# rdoc generated
rdoc
# yard generated
-doc
+doc/
.yardoc
# bundler
.bundle
-
-# jeweler generated
-pkg
+lib/bundler/man
# Have editor/IDE/OS specific files you need to ignore? Consider using a global gitignore:
#
@@ -49,5 +51,3 @@ pkg
# For redcar:
#.redcar
-# For rubinius:
-#*.rbc
View
@@ -1,3 +1,7 @@
+Sat Mar 10 19:16:03 2012 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
+
+ * change gem generate tool from jeweler to Bundler.
+
Tue Mar 6 12:39:59 2012 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
* coreaudio.gemspec: fix dependency. narray should runtime dependency.
View
@@ -1,3 +1,3 @@
-source "http://rubygems.org"
+source "https://rubygems.org"
gemspec
View
@@ -1,46 +1,2 @@
-# encoding: utf-8
-
-require 'rubygems'
-require 'bundler'
-begin
- Bundler.setup(:default, :development)
-rescue Bundler::BundlerError => e
- $stderr.puts e.message
- $stderr.puts "Run `bundle install` to install missing gems"
- exit e.status_code
-end
-require 'rake'
-
-require 'jeweler'
-Jeweler::Tasks.new do |gem|
- # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
- gem.name = "coreaudio"
- gem.homepage = "https://github.com/nagachika/ruby-coreaudio"
- gem.license = "BSDL"
- gem.summary = %Q{Mac OS X CoreAudio wrapper library}
- gem.description = %Q{Mac OS X CoreAudio wrapper library}
- gem.email = "nagachika00@gmail.com"
- gem.authors = ["CHIKANAGA Tomoyuki"]
- # dependencies defined in Gemfile
-end
-Jeweler::RubygemsDotOrgTasks.new
-
-require 'rake/testtask'
-Rake::TestTask.new(:test) do |test|
- test.libs << 'lib' << 'test'
- test.pattern = 'test/**/test_*.rb'
- test.verbose = true
-end
-
-task :default => :test
-
-require 'rdoc/task'
-Rake::RDocTask.new do |rdoc|
- version = File.exist?('VERSION') ? File.read('VERSION') : ""
-
- rdoc.rdoc_dir = 'rdoc'
- rdoc.title = "coreaudio #{version}"
- rdoc.rdoc_files.include('README*')
- rdoc.rdoc_files.include('lib/**/*.rb')
- rdoc.rdoc_files.include('ext/**/*.m')
-end
+#!/usr/bin/env rake
+require "bundler/gem_tasks"
View
@@ -1,76 +1,52 @@
-# Generated by jeweler
-# DO NOT EDIT THIS FILE DIRECTLY
-# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
# -*- encoding: utf-8 -*-
+require File.expand_path('../lib/coreaudio/version', __FILE__)
-Gem::Specification.new do |s|
- s.name = "coreaudio"
- s.version = "0.0.9"
+Gem::Specification.new do |gem|
+ gem.required_rubygems_version = Gem::Requirement.new(">= 0") if gem.respond_to? :required_rubygems_version=
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
- s.authors = ["CHIKANAGA Tomoyuki"]
- s.date = "2012-02-23"
- s.description = "Mac OS X CoreAudio wrapper library"
- s.email = "nagachika00@gmail.com"
- s.extensions = ["ext/extconf.rb"]
- s.extra_rdoc_files = [
+ gem.authors = ["CHIKANAGA Tomoyuki"]
+ gem.email = ["nagachika00@gmail.com"]
+ gem.description = "Mac OS X CoreAudio wrapper library"
+ gem.summary = "Mac OS X CoreAudio wrapper library"
+ gem.homepage = "https://github.com/nagachika/ruby-coreaudio"
+
+ gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
+ gem.files = `git ls-files`.split("\n")
+ gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
+ gem.name = "coreaudio"
+ gem.require_paths = ["lib"]
+ gem.version = CoreAudio::VERSION
+
+ gem.extensions = ["ext/extconf.rb"]
+ gem.extra_rdoc_files = [
"ChangeLog",
"LICENSE.txt",
"README.rdoc"
]
- s.files = [
- ".document",
- "ChangeLog",
- "Gemfile",
- "LICENSE.txt",
- "README.rdoc",
- "Rakefile",
- "VERSION",
- "coreaudio.gemspec",
- "examples/convert_wav_to_m4a.rb",
- "examples/fft_shift_pitch.rb",
- "examples/loopback_delay.rb",
- "examples/outbuffer_sine.rb",
- "examples/outloop_sine.rb",
- "examples/record_to_wave.rb",
- "examples/ring_modulator.rb",
- "ext/audiofile.m",
- "ext/coreaudio.h",
- "ext/coreaudio.m",
- "ext/coreaudio_missing.c",
- "ext/depend",
- "ext/extconf.rb",
- "lib/coreaudio.rb",
- "lib/coreaudio/audiofile.rb"
- ]
- s.homepage = "https://github.com/nagachika/ruby-coreaudio"
- s.licenses = ["BSDL"]
- s.require_paths = ["lib"]
- s.rubygems_version = "1.8.11"
- s.summary = "Mac OS X CoreAudio wrapper library"
+ gem.licenses = ["BSDL"]
- if s.respond_to? :specification_version then
- s.specification_version = 3
+ if gem.respond_to? :specification_version then
+ gem.specification_version = 3
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
- s.add_runtime_dependency(%q<narray>, ["~> 0.6.0.0"])
- s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
- s.add_development_dependency(%q<jeweler>, ["~> 1.8.0"])
- s.add_development_dependency(%q<rake>, ["~> 0.9.2"])
- s.add_development_dependency(%q<rdoc>, [">= 0"])
+ gem.add_runtime_dependency(%q<narray>, ["~> 0.6.0.0"])
+ gem.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
+ gem.add_development_dependency(%q<jeweler>, ["~> 1.8.0"])
+ gem.add_development_dependency(%q<rake>, ["~> 0.9.2"])
+ gem.add_development_dependency(%q<rdoc>, [">= 0"])
else
- s.add_dependency(%q<narray>, ["~> 0.6.0.0"])
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
- s.add_dependency(%q<jeweler>, ["~> 1.8.0"])
- s.add_dependency(%q<rake>, ["~> 0.9.2"])
- s.add_dependency(%q<rdoc>, [">= 0"])
+ gem.add_dependency(%q<narray>, ["~> 0.6.0.0"])
+ gem.add_dependency(%q<bundler>, ["~> 1.0.0"])
+ gem.add_dependency(%q<jeweler>, ["~> 1.8.0"])
+ gem.add_dependency(%q<rake>, ["~> 0.9.2"])
+ gem.add_dependency(%q<rdoc>, [">= 0"])
end
else
- s.add_dependency(%q<narray>, ["~> 0.6.0.0"])
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
- s.add_dependency(%q<jeweler>, ["~> 1.8.0"])
- s.add_dependency(%q<rake>, ["~> 0.9.2"])
- s.add_dependency(%q<rdoc>, [">= 0"])
+ gem.add_dependency(%q<narray>, ["~> 0.6.0.0"])
+ gem.add_dependency(%q<bundler>, ["~> 1.0.0"])
+ gem.add_dependency(%q<jeweler>, ["~> 1.8.0"])
+ gem.add_dependency(%q<rake>, ["~> 0.9.2"])
+ gem.add_dependency(%q<rdoc>, [">= 0"])
end
end
View
@@ -1,4 +1,5 @@
require "narray"
+require "coreaudio/version"
require "coreaudio/coreaudio_ext"
require "coreaudio/audiofile"
View
@@ -0,0 +1,3 @@
+module CoreAudio
+ VERSION = "0.0.10"
+end

0 comments on commit b9618b8

Please sign in to comment.