mtk 0.0.3 → 0.0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/DEVELOPMENT_NOTES.md +1 -1
- data/README.md +3 -7
- data/Rakefile +0 -15
- data/ext/mkrf_conf.rb +25 -0
- metadata +4 -24
data/DEVELOPMENT_NOTES.md
CHANGED
@@ -81,7 +81,7 @@ You shouldn't need to worry about the dependencies too much. A Gemfile is provid
|
|
81
81
|
Documentation
|
82
82
|
-------------
|
83
83
|
|
84
|
-
Gem 0.0.
|
84
|
+
Gem 0.0.3.1: http://rdoc.info/gems/mtk/0.0.3.1/frames
|
85
85
|
|
86
86
|
Latest for source: http://rubydoc.info/github/adamjmurray/mtk/master/frames
|
87
87
|
|
data/README.md
CHANGED
@@ -35,15 +35,11 @@ MTK works with Ruby 1.9, Ruby 2.0, and JRuby
|
|
35
35
|
|
36
36
|
mtk --help
|
37
37
|
|
38
|
-
0. Learn the MTK syntax:
|
38
|
+
0. Learn the MTK syntax: TODO... documentation forthcoming. In the meantime, see the unit tests @ https://github.com/adamjmurray/mtk/blob/master/spec/mtk/lang/grammar_spec.rb
|
39
39
|
|
40
|
-
|
40
|
+
0. Check out examples: https://github.com/adamjmurray/mtk/tree/master/examples
|
41
41
|
|
42
|
-
0.
|
43
|
-
|
44
|
-
0. Read the [MTK Ruby library documentation](http://rubydoc.info/github/adamjmurray/mtk/master/frames) (TODO: update this 0.0.3 gem version when ready)
|
45
|
-
|
46
|
-
TODO: explain how to hear output on different platforms (maybe in the mtk command line help?)
|
42
|
+
0. Read the [MTK Ruby library documentation](http://rdoc.info/gems/mtk/0.0.3.1/frames)
|
47
43
|
|
48
44
|
|
49
45
|
About this project
|
data/Rakefile
CHANGED
@@ -1,8 +1,6 @@
|
|
1
1
|
require 'rspec/core/rake_task'
|
2
2
|
require 'rake/clean'
|
3
3
|
|
4
|
-
MTK_VERSION = '0.0.3'
|
5
|
-
|
6
4
|
SUPPORTED_RUBIES = %w[ 1.9.3 2.0 jruby-1.7.4 ]
|
7
5
|
ENV['JRUBY_OPTS'] = '--1.9'
|
8
6
|
|
@@ -27,19 +25,6 @@ namespace :gem do
|
|
27
25
|
task :install_dependencies do
|
28
26
|
fail unless system("rvm #{SUPPORTED_RUBIES.join ','} do bundle install")
|
29
27
|
end
|
30
|
-
|
31
|
-
desc "Build the gemspec for C-Ruby and JRuby"
|
32
|
-
task :build do
|
33
|
-
ENV['MTK_VERSION'] = MTK_VERSION
|
34
|
-
ENV['MTK_BUILD_FOR_JRUBY'] = 'true'
|
35
|
-
`gem build ./mtk.gemspec`
|
36
|
-
`mv mtk-#{MTK_VERSION}.gem mtk-#{MTK_VERSION}-jruby.gem`
|
37
|
-
puts "Built mtk-#{MTK_VERSION}-jruby.gem"
|
38
|
-
|
39
|
-
ENV['MTK_BUILD_FOR_JRUBY'] = nil
|
40
|
-
`gem build ./mtk.gemspec`
|
41
|
-
puts "Built mtk-#{MTK_VERSION}.gem"
|
42
|
-
end
|
43
28
|
end
|
44
29
|
|
45
30
|
|
data/ext/mkrf_conf.rb
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'rubygems/command.rb'
|
3
|
+
require 'rubygems/dependency_installer.rb'
|
4
|
+
begin
|
5
|
+
Gem::Command.build_args = ARGV
|
6
|
+
rescue NoMethodError
|
7
|
+
end
|
8
|
+
inst = Gem::DependencyInstaller.new
|
9
|
+
begin
|
10
|
+
if RUBY_PLATFORM == 'java'
|
11
|
+
puts "Installing jsound gem for MIDI I/O on JRuby"
|
12
|
+
inst.install 'jsound', '~> 0.1'
|
13
|
+
else
|
14
|
+
puts "Installing unimidi gem for MIDI I/O"
|
15
|
+
inst.install 'unimidi', '>= 0.3'
|
16
|
+
end
|
17
|
+
rescue
|
18
|
+
STERR.puts $!
|
19
|
+
exit(1)
|
20
|
+
end
|
21
|
+
|
22
|
+
# This is a hack, see http://www.programmersparadox.com/2012/05/21/gemspec-loading-dependent-gems-based-on-the-users-system/
|
23
|
+
f = File.open(File.join(File.dirname(__FILE__), "Rakefile"), "w") # create dummy rakefile to indicate success
|
24
|
+
f.write("task :default\n")
|
25
|
+
f.close
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mtk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.3
|
4
|
+
version: 0.0.3.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -59,28 +59,13 @@ dependencies:
|
|
59
59
|
- - ~>
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0.3'
|
62
|
-
- !ruby/object:Gem::Dependency
|
63
|
-
name: unimidi
|
64
|
-
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
|
-
requirements:
|
67
|
-
- - ! '>='
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
version: '0.3'
|
70
|
-
type: :runtime
|
71
|
-
prerelease: false
|
72
|
-
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
|
-
requirements:
|
75
|
-
- - ! '>='
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
version: '0.3'
|
78
62
|
description: A music library and domain-specific language for generating music via
|
79
63
|
MIDI.
|
80
64
|
email: adam@compusition.com
|
81
65
|
executables:
|
82
66
|
- mtk
|
83
|
-
extensions:
|
67
|
+
extensions:
|
68
|
+
- ext/mkrf_conf.rb
|
84
69
|
extra_rdoc_files: []
|
85
70
|
files:
|
86
71
|
- Rakefile
|
@@ -197,6 +182,7 @@ files:
|
|
197
182
|
- spec/spec_coverage.rb
|
198
183
|
- spec/spec_helper.rb
|
199
184
|
- spec/test.mid
|
185
|
+
- ext/mkrf_conf.rb
|
200
186
|
homepage: http://github.com/adamjmurray/mtk
|
201
187
|
licenses: []
|
202
188
|
post_install_message:
|
@@ -209,18 +195,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
209
195
|
- - ! '>='
|
210
196
|
- !ruby/object:Gem::Version
|
211
197
|
version: '0'
|
212
|
-
segments:
|
213
|
-
- 0
|
214
|
-
hash: 1581692375724578374
|
215
198
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
216
199
|
none: false
|
217
200
|
requirements:
|
218
201
|
- - ! '>='
|
219
202
|
- !ruby/object:Gem::Version
|
220
203
|
version: '0'
|
221
|
-
segments:
|
222
|
-
- 0
|
223
|
-
hash: 1581692375724578374
|
224
204
|
requirements: []
|
225
205
|
rubyforge_project:
|
226
206
|
rubygems_version: 1.8.25
|