rbgccxml 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -8,7 +8,7 @@ module RbGCCXML
8
8
 
9
9
  def initialize(config = {})
10
10
  if config[:pregenerated]
11
- @xml_file = config.delete[:pregenerated]
11
+ @xml_file = config.delete(:pregenerated)
12
12
  else
13
13
  require 'gccxml'
14
14
  @gccxml = GCCXML.new
data/spec/parser_test.rb CHANGED
@@ -2,6 +2,12 @@ require "test_helper"
2
2
 
3
3
  describe "Default parsing configuration" do
4
4
 
5
+ specify "can be given a raw XML file" do
6
+ lambda do
7
+ RbGCCXML.parse_xml(full_dir("parsed/Adder.xml"))
8
+ end.should_not raise_error
9
+ end
10
+
5
11
  specify "can parse a single header file" do
6
12
  lambda do
7
13
  RbGCCXML.parse(full_dir("headers/Adder.h"))
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbgccxml
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-12-06 00:00:00.000000000Z
12
+ date: 2011-12-16 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri
16
- requirement: &6465030 !ruby/object:Gem::Requirement
16
+ requirement: &9648030 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 1.4.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *6465030
24
+ version_requirements: *9648030
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: gccxml_gem
27
- requirement: &6464790 !ruby/object:Gem::Requirement
27
+ requirement: &9647790 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '0.9'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *6464790
35
+ version_requirements: *9647790
36
36
  description: ! 'Rbgccxml is a library that parses out GCCXML (http://www.gccxml.org)
37
37
  output
38
38