daedalus-core 0.3.0 → 0.4.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: a6062bb9e0d98bf16f54127b8e21d9294f4e56c1
4
- data.tar.gz: f67aef0682be44b26cccb52a7d8901f0fb467fec
3
+ metadata.gz: a9fb9aedfd46997dffea225f86e7d01a57a80d14
4
+ data.tar.gz: cf5164dc1ec954d9ac2606730e8cc4bcff027e51
5
5
  SHA512:
6
- metadata.gz: 5b6f4187ce6469758bdbd332c4de348155a0af8212652dad278ddf4703332a96f63a4f181e631f842e5db493d97820ad393697708b689e135238699ecaf25518
7
- data.tar.gz: 15830e804c19c89e8df2b38dba98fba60fbe3eea04ff9f4a586021edd00fd19d5632f48aa4d0e94aef23ac41cc1a77baddbd693f655a254c7118f385cb3cbd08
6
+ metadata.gz: 58c034b22f6ddd91e56b2af56ed804807fe5c2f6b892de09660fd33a61abecc7aaea412abdff7d529e4ded1d1a1988f3432912a60f904d65d2a84450b5a48c67
7
+ data.tar.gz: 521380e15f3bdbb28a54f6e2ca453d08a32cde03d7597a6348f61507241f2f75600ce8fdff1fddbcd5352bad643a4fe8740f705391b3221118794b4cb68dc422
@@ -292,6 +292,7 @@ class DependencyGrapher
292
292
  class Define < Node
293
293
  def initialize(macro, parser)
294
294
  super parser
295
+
295
296
  macro.strip!
296
297
  if index = macro.index(" ")
297
298
  @name = macro[0..index-1]
@@ -428,22 +429,23 @@ class DependencyGrapher
428
429
  def parse(lines)
429
430
  @line = 0
430
431
 
431
- inlined_line = ""
432
- unless lines.empty?
433
- while (line = lines.shift.chomp(''))
434
- @line += 1
435
- line.rstrip!
436
- if line.end_with?('\\')
437
- # continue reading if line ends in \
438
- inlined_line += line.chop
439
- else
440
- # stop reading
441
- inlined_line += line
442
- break
443
- end
432
+ re = /^\s*#(include|ifdef|ifndef|endif|else|define|undef|if|elif)(.*)$/o
433
+ full_line = ""
434
+
435
+ lines.each do |line|
436
+ @line += 1
437
+
438
+ full_line.chomp!
439
+
440
+ if line[-2] == ?\\
441
+ full_line += line.chomp("\\\n") + "\n"
442
+ next
443
+ else
444
+ full_line += line
444
445
  end
445
446
 
446
- m = inlined_line.match(/^\s*#(include|ifdef|ifndef|endif|else|define|undef|if|elif)(.*)$/)
447
+ m = full_line.match re
448
+ full_line = ""
447
449
 
448
450
  send :"process_#{m[1]}", m[2] if m
449
451
  end
@@ -1,3 +1,3 @@
1
1
  module Daedalus
2
- VERSION = "0.3.0"
2
+ VERSION = "0.4.0"
3
3
  end
metadata CHANGED
@@ -1,43 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: daedalus-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Shirai
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-03 00:00:00.000000000 Z
11
+ date: 2015-05-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- type: :development
15
- name: rake
16
14
  version_requirements: !ruby/object:Gem::Requirement
17
15
  requirements:
18
16
  - - "~>"
19
17
  - !ruby/object:Gem::Version
20
18
  version: '0.9'
19
+ name: rake
21
20
  prerelease: false
22
21
  requirement: !ruby/object:Gem::Requirement
23
22
  requirements:
24
23
  - - "~>"
25
24
  - !ruby/object:Gem::Version
26
25
  version: '0.9'
27
- - !ruby/object:Gem::Dependency
28
26
  type: :development
29
- name: rspec
27
+ - !ruby/object:Gem::Dependency
30
28
  version_requirements: !ruby/object:Gem::Requirement
31
29
  requirements:
32
30
  - - "~>"
33
31
  - !ruby/object:Gem::Version
34
32
  version: '2.8'
33
+ name: rspec
35
34
  prerelease: false
36
35
  requirement: !ruby/object:Gem::Requirement
37
36
  requirements:
38
37
  - - "~>"
39
38
  - !ruby/object:Gem::Version
40
39
  version: '2.8'
40
+ type: :development
41
41
  description: |
42
42
  Daedalus is a build system based on years of attempting to build Rubinus with a collection of Rake tasks. Rubinius is a complex system. It has dependencies on external C libraries (some of which are vendored), internal C/C++ libraries, Ruby C-extensions, and compiled Ruby code. The Rubinius bytecode compiler is written in Ruby, so we have to bootstrap compiling it.
43
43
 
@@ -82,10 +82,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
82
82
  version: '0'
83
83
  requirements: []
84
84
  rubyforge_project:
85
- rubygems_version: 2.4.5
85
+ rubygems_version: 2.4.6
86
86
  signing_key:
87
87
  specification_version: 4
88
88
  summary: Daedalus is a build system extracted from Rubinius. Almost no functionality
89
89
  has been implemented. This is very alpha.
90
90
  test_files: []
91
- has_rdoc: true