rake-compile 0.2.2 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ec42b86f3676de968db2c3e74bcd3492e56297b2
4
- data.tar.gz: 22d84781446771e787b5c0eba35e0da66155b710
3
+ metadata.gz: ff310ddb10db9ab5335fbe67f062fcb1a7bd9459
4
+ data.tar.gz: 567cd21bdd391dde922d1f690c7220938c322ae3
5
5
  SHA512:
6
- metadata.gz: 1d751bca7ca6443f233175716c5d3eb02eecf8b74c9064495f77877857293b9b97b9a3dda5a6ad0106626b53b85f72fc2952a03d4e85208d588fe811cbe0e7a5
7
- data.tar.gz: 1db5e99c47c25c8bea69b6ad5843ec30baaf5614d56c55d7821123f085481bbcd7cbf5bb7385169ec9434d418a70222f9ab025fb0e5875faa8a401552a98824c
6
+ metadata.gz: 9dfa87a87d83885523a8513cc66b4acccee9e392ed31fb5cd19518aea63846e1b2f0bcef417807c2ccb5fcc6e40924c37c58c83a54eef9b27fc000a7dd8a1aae
7
+ data.tar.gz: 0b5c08aa5c4b408308f858f4c865861989b189f8aa39d985b67e997341978ef10ca6e39f4d8b0c94c960cc02dd987080e4a0b0d482ddb98cefbdeb94ea1d6d13
data/lib/rake-compile.rb CHANGED
@@ -1,9 +1,7 @@
1
1
  require 'colorize'
2
+ require 'rake-multifile'
2
3
 
3
- $:.unshift File.dirname(__FILE__)
4
-
5
- require File.join('rake-compile', 'logging')
6
- require File.join('rake-compile', 'install')
7
- require File.join('rake-compile', 'compiler')
8
- require File.join('rake-compile', 'multi_file_task')
9
- require File.join('rake-compile', 'dsl_definition')
4
+ require 'rake-compile/logging'
5
+ require 'rake-compile/install'
6
+ require 'rake-compile/compiler'
7
+ require 'rake-compile/dsl_definition'
@@ -42,10 +42,6 @@ module RakeCompile
42
42
  RakeCompile::Application.app.pch = name
43
43
  end
44
44
 
45
- def multifile(*args, &block)
46
- RakeCompile::MultiFileTask.define_task(*args, &block)
47
- end
48
-
49
45
  def static_library(name)
50
46
  Target.define_static_library_task(name) do |t|
51
47
  yield t
@@ -1,9 +1,12 @@
1
+ require 'rake-multifile'
2
+
1
3
  require File.join(File.dirname(__FILE__), 'application')
2
4
  require File.join(File.dirname(__FILE__), 'dsl_definition')
3
5
 
4
6
  module RakeCompile
5
7
  class Target
6
8
  include Rake::DSL
9
+ include RakeMultifile::DSL
7
10
 
8
11
  attr_reader :objects
9
12
  attr_reader :name
@@ -78,7 +81,7 @@ module RakeCompile
78
81
 
79
82
  prereqs = [dir, self.objects, self.libraries].flatten
80
83
 
81
- RakeCompile::MultiFileTask.define_task(self.name => prereqs) do
84
+ multifile self.name => prereqs do
82
85
  yield self
83
86
  end
84
87
  end
@@ -1,3 +1,3 @@
1
1
  module RakeCompile
2
- VERSION = "0.2.2"
2
+ VERSION = "0.3.0"
3
3
  end
data/rake-compile.gemspec CHANGED
@@ -26,9 +26,10 @@ Gem::Specification.new do |spec|
26
26
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
27
27
  spec.require_paths = ['lib']
28
28
 
29
- spec.add_dependency 'rake', "~> 10.0"
29
+ spec.add_dependency 'rake', '~> 10.0'
30
+ spec.add_dependency 'rake-multifile'
30
31
  spec.add_runtime_dependency 'colorize'
31
32
 
32
- spec.add_development_dependency "bundler", "~> 1.10"
33
- spec.add_development_dependency "minitest"
33
+ spec.add_development_dependency 'bundler', '~> 1.10'
34
+ spec.add_development_dependency 'minitest'
34
35
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rake-compile
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Massicotte
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '10.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake-multifile
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: colorize
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -85,7 +99,6 @@ files:
85
99
  - lib/rake-compile/dsl_definition.rb
86
100
  - lib/rake-compile/install.rb
87
101
  - lib/rake-compile/logging.rb
88
- - lib/rake-compile/multi_file_task.rb
89
102
  - lib/rake-compile/target.rb
90
103
  - lib/rake-compile/version.rb
91
104
  - rake-compile.gemspec
@@ -1,8 +0,0 @@
1
- module RakeCompile
2
- class MultiFileTask < Rake::FileTask
3
- private
4
- def invoke_prerequisites(task_args, invocation_chain)
5
- invoke_prerequisites_concurrently(task_args, invocation_chain)
6
- end
7
- end
8
- end