ffi-portaudio 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: a66c3f1bdecab4c18eb41f9ff7f1b69094d35d3724cacc609cdd1777a2d284b5
4
+ data.tar.gz: 2db2a4087ddadbf14ba93bcc2ef7cd3014cb4403ea2151ca94d747e13adf174a
5
+ SHA512:
6
+ metadata.gz: 3b4f2c78727fc59d991bb39569e91a1aa615a4d41290ef2fadbcec0ec9d784eef52600478e23a1eed2de9c255f9ce6eecd61a6b8b915d627c802affc52ad0c9e
7
+ data.tar.gz: bd1e9b43423f3386f9394f27bf8ca30dcef021c8303630048998f598fa8070d154585b276c3597a7a7ae2a802e5520b50f33e991279f1406b2141dabd6ae65c1
data/Gemfile CHANGED
@@ -1,15 +1,5 @@
1
1
  source "http://rubygems.org"
2
- # Add dependencies required to use your gem here.
3
- # Example:
4
- # gem "activesupport", ">= 2.3.5"
5
2
 
6
- # Add dependencies to develop your gem here.
7
- # Include everything needed to run rake, tests, features, etc.
8
- gem "ffi"
3
+ gemspec
9
4
 
10
- group :development do
11
- gem "shoulda", ">= 0"
12
- gem "bundler", "~> 1.0.0"
13
- gem "jeweler", "~> 1.6.4"
14
- gem "rcov", ">= 0"
15
- end
5
+ gem "rake", "~> 12.0", group: :development
data/Rakefile CHANGED
@@ -1,53 +1,12 @@
1
1
  # encoding: utf-8
2
2
 
3
- require 'rubygems'
4
- require 'bundler'
5
- begin
6
- Bundler.setup(:default, :development)
7
- rescue Bundler::BundlerError => e
8
- $stderr.puts e.message
9
- $stderr.puts "Run `bundle install` to install missing gems"
10
- exit e.status_code
11
- end
12
- require 'rake'
13
-
14
- require 'jeweler'
15
- Jeweler::Tasks.new do |gem|
16
- # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
17
- gem.name = "ffi-portaudio"
18
- gem.homepage = "http://github.com/nanki/ffi-portaudio"
19
- gem.license = "MIT"
20
- gem.summary = %Q{Ruby bindings for PortAudio.}
21
- gem.description = %Q{Ruby bindings for PortAudio.}
22
- gem.email = "nanki@dotswitch.net"
23
- gem.authors = ["nanki"]
24
- # dependencies defined in Gemfile
25
- end
26
- Jeweler::RubygemsDotOrgTasks.new
27
-
3
+ require "bundler/gem_tasks"
28
4
  require 'rake/testtask'
5
+
29
6
  Rake::TestTask.new(:test) do |test|
30
7
  test.libs << 'lib' << 'test'
31
8
  test.pattern = 'test/**/test_*.rb'
32
9
  test.verbose = true
33
10
  end
34
11
 
35
- require 'rcov/rcovtask'
36
- Rcov::RcovTask.new do |test|
37
- test.libs << 'test'
38
- test.pattern = 'test/**/test_*.rb'
39
- test.verbose = true
40
- test.rcov_opts << '--exclude "gems/*"'
41
- end
42
-
43
12
  task :default => :test
44
-
45
- require 'rake/rdoctask'
46
- Rake::RDocTask.new do |rdoc|
47
- version = File.exist?('VERSION') ? File.read('VERSION') : ""
48
-
49
- rdoc.rdoc_dir = 'rdoc'
50
- rdoc.title = "ffi-portaudio #{version}"
51
- rdoc.rdoc_files.include('README*')
52
- rdoc.rdoc_files.include('lib/**/*.rb')
53
- end
@@ -1,15 +1,10 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
- # -*- encoding: utf-8 -*-
5
-
1
+ require './lib/ffi-portaudio/version'
6
2
  Gem::Specification.new do |s|
7
3
  s.name = "ffi-portaudio"
8
- s.version = "0.1.2"
4
+ s.version = FFI::PortAudio::VERSION
9
5
 
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
6
  s.authors = ["nanki"]
12
- s.date = "2012-05-08"
7
+ s.summary = "Ruby bindings for PortAudio."
13
8
  s.description = "Ruby bindings for PortAudio."
14
9
  s.email = "nanki@dotswitch.net"
15
10
  s.extra_rdoc_files = [
@@ -17,12 +12,10 @@ Gem::Specification.new do |s|
17
12
  "README.rdoc"
18
13
  ]
19
14
  s.files = [
20
- ".document",
21
15
  "Gemfile",
22
16
  "LICENSE.txt",
23
17
  "README.rdoc",
24
18
  "Rakefile",
25
- "VERSION",
26
19
  "examples/spectrum.rb",
27
20
  "ffi-portaudio.gemspec",
28
21
  "lib/ffi-portaudio.rb",
@@ -31,37 +24,11 @@ Gem::Specification.new do |s|
31
24
  "lib/ffi-portaudio/enum.rb",
32
25
  "lib/ffi-portaudio/stream.rb",
33
26
  "lib/ffi-portaudio/struct.rb",
34
- "test/helper.rb",
35
- "test/test_ffi-portaudio.rb"
27
+ "lib/ffi-portaudio/version.rb",
36
28
  ]
37
29
  s.homepage = "http://github.com/nanki/ffi-portaudio"
38
- s.licenses = ["MIT"]
30
+ s.license = "MIT"
39
31
  s.require_paths = ["lib"]
40
- s.rubygems_version = "1.8.11"
41
- s.summary = "Ruby bindings for PortAudio."
42
-
43
- if s.respond_to? :specification_version then
44
- s.specification_version = 3
45
-
46
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
47
- s.add_runtime_dependency(%q<ffi>, [">= 0"])
48
- s.add_development_dependency(%q<shoulda>, [">= 0"])
49
- s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
50
- s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
51
- s.add_development_dependency(%q<rcov>, [">= 0"])
52
- else
53
- s.add_dependency(%q<ffi>, [">= 0"])
54
- s.add_dependency(%q<shoulda>, [">= 0"])
55
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
56
- s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
57
- s.add_dependency(%q<rcov>, [">= 0"])
58
- end
59
- else
60
- s.add_dependency(%q<ffi>, [">= 0"])
61
- s.add_dependency(%q<shoulda>, [">= 0"])
62
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
63
- s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
64
- s.add_dependency(%q<rcov>, [">= 0"])
65
- end
32
+ s.add_dependency "ffi"
66
33
  end
67
34
 
@@ -1,7 +1,7 @@
1
1
  module FFI::PortAudio::API
2
2
  extend FFI::Library
3
3
 
4
- ffi_lib 'portaudio'
4
+ ffi_lib ['portaudio', 'libportaudio.so.2']
5
5
 
6
6
  callback :PaStreamCallback, [:pointer, :pointer, :ulong, PaStreamCallbackTimeInfo.in, :ulong, :pointer], :PaStreamCallbackResult
7
7
  callback :PaStreamFinishedCallback, [:pointer], :void
@@ -0,0 +1,5 @@
1
+ module FFI
2
+ module PortAudio
3
+ VERSION = "0.1.3"
4
+ end
5
+ end
data/lib/ffi-portaudio.rb CHANGED
@@ -1,8 +1,7 @@
1
1
  require 'ffi'
2
2
 
3
3
  module FFI::PortAudio
4
- VERSION ||= File.read(File.join(File.dirname(__FILE__), '../VERSION')).strip
5
-
4
+ require 'ffi-portaudio/version'
6
5
  require 'ffi-portaudio/enum'
7
6
  require 'ffi-portaudio/struct'
8
7
  require 'ffi-portaudio/const'
metadata CHANGED
@@ -1,71 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ffi-portaudio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
5
- prerelease:
4
+ version: 0.1.3
6
5
  platform: ruby
7
6
  authors:
8
7
  - nanki
9
- autorequire:
8
+ autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-05-08 00:00:00.000000000Z
11
+ date: 2021-10-16 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: ffi
16
- requirement: &70308984029560 !ruby/object:Gem::Requirement
17
- none: false
15
+ requirement: !ruby/object:Gem::Requirement
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :runtime
23
21
  prerelease: false
24
- version_requirements: *70308984029560
25
- - !ruby/object:Gem::Dependency
26
- name: shoulda
27
- requirement: &70308984028440 !ruby/object:Gem::Requirement
28
- none: false
22
+ version_requirements: !ruby/object:Gem::Requirement
29
23
  requirements:
30
- - - ! '>='
24
+ - - ">="
31
25
  - !ruby/object:Gem::Version
32
26
  version: '0'
33
- type: :development
34
- prerelease: false
35
- version_requirements: *70308984028440
36
- - !ruby/object:Gem::Dependency
37
- name: bundler
38
- requirement: &70308984027680 !ruby/object:Gem::Requirement
39
- none: false
40
- requirements:
41
- - - ~>
42
- - !ruby/object:Gem::Version
43
- version: 1.0.0
44
- type: :development
45
- prerelease: false
46
- version_requirements: *70308984027680
47
- - !ruby/object:Gem::Dependency
48
- name: jeweler
49
- requirement: &70308984026700 !ruby/object:Gem::Requirement
50
- none: false
51
- requirements:
52
- - - ~>
53
- - !ruby/object:Gem::Version
54
- version: 1.6.4
55
- type: :development
56
- prerelease: false
57
- version_requirements: *70308984026700
58
- - !ruby/object:Gem::Dependency
59
- name: rcov
60
- requirement: &70308984026000 !ruby/object:Gem::Requirement
61
- none: false
62
- requirements:
63
- - - ! '>='
64
- - !ruby/object:Gem::Version
65
- version: '0'
66
- type: :development
67
- prerelease: false
68
- version_requirements: *70308984026000
69
27
  description: Ruby bindings for PortAudio.
70
28
  email: nanki@dotswitch.net
71
29
  executables: []
@@ -74,12 +32,10 @@ extra_rdoc_files:
74
32
  - LICENSE.txt
75
33
  - README.rdoc
76
34
  files:
77
- - .document
78
35
  - Gemfile
79
36
  - LICENSE.txt
80
37
  - README.rdoc
81
38
  - Rakefile
82
- - VERSION
83
39
  - examples/spectrum.rb
84
40
  - ffi-portaudio.gemspec
85
41
  - lib/ffi-portaudio.rb
@@ -88,34 +44,28 @@ files:
88
44
  - lib/ffi-portaudio/enum.rb
89
45
  - lib/ffi-portaudio/stream.rb
90
46
  - lib/ffi-portaudio/struct.rb
91
- - test/helper.rb
92
- - test/test_ffi-portaudio.rb
47
+ - lib/ffi-portaudio/version.rb
93
48
  homepage: http://github.com/nanki/ffi-portaudio
94
49
  licenses:
95
50
  - MIT
96
- post_install_message:
51
+ metadata: {}
52
+ post_install_message:
97
53
  rdoc_options: []
98
54
  require_paths:
99
55
  - lib
100
56
  required_ruby_version: !ruby/object:Gem::Requirement
101
- none: false
102
57
  requirements:
103
- - - ! '>='
58
+ - - ">="
104
59
  - !ruby/object:Gem::Version
105
60
  version: '0'
106
- segments:
107
- - 0
108
- hash: -2817144500671326736
109
61
  required_rubygems_version: !ruby/object:Gem::Requirement
110
- none: false
111
62
  requirements:
112
- - - ! '>='
63
+ - - ">="
113
64
  - !ruby/object:Gem::Version
114
65
  version: '0'
115
66
  requirements: []
116
- rubyforge_project:
117
- rubygems_version: 1.8.11
118
- signing_key:
119
- specification_version: 3
67
+ rubygems_version: 3.1.6
68
+ signing_key:
69
+ specification_version: 4
120
70
  summary: Ruby bindings for PortAudio.
121
71
  test_files: []
data/.document DELETED
@@ -1,5 +0,0 @@
1
- lib/**/*.rb
2
- bin/*
3
- -
4
- features/**/*.feature
5
- LICENSE.txt
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 0.1.2
data/test/helper.rb DELETED
@@ -1,18 +0,0 @@
1
- require 'rubygems'
2
- require 'bundler'
3
- begin
4
- Bundler.setup(:default, :development)
5
- rescue Bundler::BundlerError => e
6
- $stderr.puts e.message
7
- $stderr.puts "Run `bundle install` to install missing gems"
8
- exit e.status_code
9
- end
10
- require 'test/unit'
11
- require 'shoulda'
12
-
13
- $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
14
- $LOAD_PATH.unshift(File.dirname(__FILE__))
15
- require 'ffi-portaudio'
16
-
17
- class Test::Unit::TestCase
18
- end
@@ -1,7 +0,0 @@
1
- require 'helper'
2
-
3
- class TestFfiPortaudio < Test::Unit::TestCase
4
- should "probably rename this file and start testing for real" do
5
- flunk "hey buddy, you should probably rename this file and start testing for real"
6
- end
7
- end