rake-c 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rake/c.rb +3 -2
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 36faf8d410a848f7d1cdd45540e482ed4f64908a51fd2ca84d8d5e8ce4489ea7
4
- data.tar.gz: 2c5d6c5b1dc630c52cbe5c9904a48160fb777398b030f3cb712a05f529ca4e52
3
+ metadata.gz: bc0cc57eb2535bd830262841908807b5f3f9ef063e04ed05bd40ab3d4155c4b6
4
+ data.tar.gz: 844ad50c9cc2e503913b22dff5c37d8d6fea3c7e4bca704b41866b885d207236
5
5
  SHA512:
6
- metadata.gz: 650087fc4fd58a06e45602bf353a241ffe4ea0f84aa5e4cf2bfdddb300b1213e93e0d68b62b5123e649bc5b9a5977168e835581efcff851127bd9a810e8b26a4
7
- data.tar.gz: bf73bf4bb91fbd6531bbd593b21c9f3d573ff3d19a1aa266d0e8d609360599ce649bf7ecbbfb15adf21c1e8e13618680faac6618c82e70fc3367e43c1865d6a4
6
+ metadata.gz: f048f78d88f563c4443cee8a9d5d49c9fcdbcf1d59afcd640f970e9151a973fcbb9463a32bc3f125b0bdfcc3afcf484db8a657b5f37ffccecfff46576f075d82
7
+ data.tar.gz: cb144f0852f065961724acd11839e53139543e172f76ffe6c222c090d8007875dc394b51efd91ac790970ee0430a19359f912b5289806feda693a255963d79d5
@@ -1,4 +1,5 @@
1
1
  require 'rake'
2
+ require 'fileutils'
2
3
 
3
4
  class C
4
5
  @@cflags = '-Wall'
@@ -67,7 +68,7 @@ class C
67
68
  objects.push theobject
68
69
  Rake::FileTask.define_task theobject => [thesource] do
69
70
  puts "[CC] #{theobject}"
70
- run "mkdir -p \"#{@@builddir}/objects/#{name}\""
71
+ FileUtils.mkdir_p "#{@@builddir}/objects/#{name}"
71
72
  xxx = run "#{@@compiler} #{cflags}#{@@libs} -M \"#{thesource}\""
72
73
  xx = []
73
74
  File.open(thedeps, 'w') do |f|
@@ -106,7 +107,7 @@ class C
106
107
  objects.push theobject
107
108
  Rake::FileTask.define_task theobject => [thesource] do
108
109
  puts "[CC] #{theobject}"
109
- run "mkdir -p \"#{@@builddir}/objects\""
110
+ FileUtils.mkdir_p "#{@@builddir}/objects"
110
111
  xxx = run "#{@@compiler} #{cflags}#{@@libs} -M \"#{thesource}\""
111
112
  xx = []
112
113
  File.open(thedeps, 'w') do |f|
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rake-c
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lukas Joeressen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-09 00:00:00.000000000 Z
11
+ date: 2020-07-07 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: This Gem can build small C programs.
14
14
  email: lukas@joeressen.net
@@ -19,7 +19,7 @@ files:
19
19
  - lib/rake/c.rb
20
20
  homepage: https://github.com/kext/rake-c
21
21
  licenses:
22
- - CC0
22
+ - CC0-1.0
23
23
  metadata: {}
24
24
  post_install_message:
25
25
  rdoc_options: []