inventory-rake 1.4.0 → 1.5.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: 427df0935a6abb01a0c8d70412f8944533fa4371
4
- data.tar.gz: 3baaf45912f54c59b4192ae5c2d79d8b58da9889
3
+ metadata.gz: dfbd22f0fd3490b412d9ff247150a29e3baf7584
4
+ data.tar.gz: 60e30a8bb98d71222ad91937e133551eda742bc2
5
5
  SHA512:
6
- metadata.gz: df48e44bec0ee151e62278e5027359d686dc860725755125704a031dfa446da90621566d2ab86d7179f1d052757dcd6a5e64883ec794f333b4e6d60ddf6e502c
7
- data.tar.gz: 641d02cd7e50060226b28d54a9c8c6d4a190a399cca87f7272b75372a7da82e2c3a2447f6bd7ff8a16390044d00014d877bbb2f433876bd4e43246d3fb505880
6
+ metadata.gz: a9f35dbc04e8e6808af725bce9b8fe4c7b1b2f6cdf506d3d4faca4d14fa77e81bd0003f9a5a9b938b1b3e2e4b9d376ddbd68ac8ee06081aaebbbbc87c4db9ef8
7
+ data.tar.gz: ae3c5e75915219d8e1dc981cbdc5b7745e94e60b2fd71416f5fa9907190bdad975330c937bb6999d41a5c89aca7c004e085e25c1da811aeaf234ae3d74ba5ffa
data/README CHANGED
@@ -74,7 +74,9 @@
74
74
  = ext/name/so. = Dynamic library of extension /name/; depends on
75
75
  ext/name/Makefile and the source files of the extension.
76
76
  = ext/name/Makefile. = Makefile for extension /name/; depends on inventory
77
- path, ext/name/extconf.rb file, and ext/name/depend file.
77
+ path, ext/name/extconf.rb file, and ext/name/depend file. Will be
78
+ created by extconf.rb, which may take options from environment variable
79
+ name#upcase_EXTCONF_OPTIONS or ‹EXTCONF_OPTIONS› if defined.
78
80
  = clean:name. = Clean files built for extension /name/; depended upon by
79
81
  clean.
80
82
  = spec. = Create specifications; depends on gem:spec.
@@ -42,7 +42,11 @@ class Inventory::Rake::Tasks::Compile
42
42
  #
43
43
  # <dt>ext/<em>name</em>/Makefile</dt>
44
44
  # <dd>Makefile for extension <em>name</em>; depends on inventory path,
45
- # ext/<em>name</em>/extconf.rb file, and ext/<em>name</em>/depend file.</dd>
45
+ # ext/<em>name</em>/extconf.rb file, and ext/<em>name</em>/depend file.
46
+ # Will be created by extconf.rb, which may take options from environment
47
+ # variable <em>name#upcase</em><code>_EXTCONF_OPTIONS</code> or
48
+ # <code>EXTCONF_OPTIONS</code> if defined.</dd>
49
+ #
46
50
  #
47
51
  # <dt>clean:<em>name</em></dt>
48
52
  # <dd>Clean files built for extension <em>name</em>; depended upon by
@@ -76,8 +80,16 @@ class Inventory::Rake::Tasks::Compile
76
80
 
77
81
  file makefile => [@inventory.path, extension.extconf, extension.depend] do
78
82
  Dir.chdir extension.directory do
79
- ENV['CFLAGS'] = '-Werror' unless ENV['CFLAGS']
80
- ruby File.basename(extension.extconf)
83
+ options = ENV['%s_EXTCONF_OPTIONS' % extension.to_s.upcase] || ENV['EXTCONF_OPTIONS']
84
+ file = '%s.options' % File.basename(extension.extconf)
85
+ write = options
86
+ options = begin
87
+ File.open(file, 'rb', &:read)
88
+ rescue Errno::ENOENT
89
+ nil
90
+ end unless options
91
+ ruby '%s %s' % [File.basename(extension.extconf), options]
92
+ File.open(file, 'wb'){ |f| f.write(options) } if write
81
93
  end
82
94
  end
83
95
 
@@ -3,9 +3,10 @@
3
3
  require 'inventory-1.0'
4
4
 
5
5
  module Inventory::Rake
6
- Version = Inventory.new(1, 4, 0){
6
+ Version = Inventory.new(1, 5, 0){
7
7
  def dependencies
8
8
  super + Inventory::Dependencies.new{
9
+ development 'inventory-rake-tasks-yard', 1, 3, 0
9
10
  development 'lookout', 3, 0, 0
10
11
  development 'lookout-rake', 3, 0, 0
11
12
  development 'yard', 0, 8, 0
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inventory-rake
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nikolai Weibull
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-04-30 00:00:00.000000000 Z
11
+ date: 2013-05-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: inventory
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - ~>
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.4'
27
+ - !ruby/object:Gem::Dependency
28
+ name: inventory-rake-tasks-yard
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: '1.3'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: '1.3'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: lookout
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -171,7 +185,9 @@ description: |2
171
185
  = ext/name/so. = Dynamic library of extension /name/; depends on
172
186
  ext/name/Makefile and the source files of the extension.
173
187
  = ext/name/Makefile. = Makefile for extension /name/; depends on inventory
174
- path, ext/name/extconf.rb file, and ext/name/depend file.
188
+ path, ext/name/extconf.rb file, and ext/name/depend file. Will be
189
+ created by extconf.rb, which may take options from environment variable
190
+ name#upcase_EXTCONF_OPTIONS or ‹EXTCONF_OPTIONS› if defined.
175
191
  = clean:name. = Clean files built for extension /name/; depended upon by
176
192
  clean.
177
193
  = spec. = Create specifications; depends on gem:spec.