sax-machine 0.0.15 → 0.0.16

Sign up to get free protection for your applications and to get access to all the features.
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --require=./spec/spec_helper.rb
2
+ --color
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "http://rubygems.org"
2
+
3
+ gem 'nokogiri', '>= 1.4.4'
4
+ gem 'rspec', '>= 2.4.0'
@@ -0,0 +1,20 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ diff-lcs (1.1.2)
5
+ nokogiri (1.4.4)
6
+ rspec (2.4.0)
7
+ rspec-core (~> 2.4.0)
8
+ rspec-expectations (~> 2.4.0)
9
+ rspec-mocks (~> 2.4.0)
10
+ rspec-core (2.4.0)
11
+ rspec-expectations (2.4.0)
12
+ diff-lcs (~> 1.1.2)
13
+ rspec-mocks (2.4.0)
14
+
15
+ PLATFORMS
16
+ ruby
17
+
18
+ DEPENDENCIES
19
+ nokogiri (>= 1.4.4)
20
+ rspec (>= 2.4.0)
data/Rakefile CHANGED
@@ -1,14 +1,19 @@
1
- require "spec"
2
- require "spec/rake/spectask"
1
+ require "rspec/core/rake_task"
3
2
  require 'lib/sax-machine.rb'
4
3
 
5
- Spec::Rake::SpecTask.new do |t|
6
- t.spec_opts = ['--options', "\"#{File.dirname(__FILE__)}/spec/spec.opts\""]
7
- t.spec_files = FileList['spec/**/*_spec.rb']
4
+ desc "Run all specs"
5
+ RSpec::Core::RakeTask.new do |t|
6
+ t.rspec_opts = ['--options', "\"#{File.dirname(__FILE__)}/spec/spec.opts\""]
7
+ end
8
+
9
+ task :default => [:spec]
10
+
11
+ task :test do
12
+ sh 'rspec spec'
8
13
  end
9
14
 
10
15
  task :install do
11
16
  rm_rf "*.gem"
12
17
  puts `gem build sax-machine.gemspec`
13
18
  puts `sudo gem install sax-machine-#{SAXMachine::VERSION}.gem`
14
- end
19
+ end
@@ -7,5 +7,5 @@ require "sax-machine/sax_handler"
7
7
  require "sax-machine/sax_config"
8
8
 
9
9
  module SAXMachine
10
- VERSION = "0.0.15"
10
+ VERSION = "0.0.16"
11
11
  end
@@ -19,6 +19,7 @@ module SAXMachine
19
19
  end
20
20
 
21
21
  def start_element(name, attrs = [])
22
+ attrs.flatten!
22
23
  object, config, value = stack.last
23
24
  sax_config = object.class.respond_to?(:sax_config) ? object.class.sax_config : nil
24
25
 
@@ -1,5 +1,4 @@
1
- require "rubygems"
2
- require "spec"
1
+ require 'date'
3
2
 
4
3
  # gem install redgreen for colored test output
5
4
  begin require "redgreen" unless ENV['TM_CURRENT_LINE']; rescue LoadError; end
metadata CHANGED
@@ -1,7 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sax-machine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.15
4
+ hash: 63
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 16
10
+ version: 0.0.16
5
11
  platform: ruby
6
12
  authors:
7
13
  - Paul Dix
@@ -14,14 +20,20 @@ default_executable:
14
20
  dependencies:
15
21
  - !ruby/object:Gem::Dependency
16
22
  name: nokogiri
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
20
26
  requirements:
21
27
  - - ">"
22
28
  - !ruby/object:Gem::Version
29
+ hash: 31
30
+ segments:
31
+ - 0
32
+ - 0
33
+ - 0
23
34
  version: 0.0.0
24
- version:
35
+ type: :runtime
36
+ version_requirements: *id001
25
37
  description:
26
38
  email: paul@pauldix.net
27
39
  executables: []
@@ -39,7 +51,9 @@ files:
39
51
  - lib/sax-machine/sax_handler.rb
40
52
  - README.textile
41
53
  - Rakefile
42
- - spec/spec.opts
54
+ - .rspec
55
+ - Gemfile
56
+ - Gemfile.lock
43
57
  - spec/spec_helper.rb
44
58
  - spec/sax-machine/sax_document_spec.rb
45
59
  has_rdoc: true
@@ -52,21 +66,27 @@ rdoc_options: []
52
66
  require_paths:
53
67
  - lib
54
68
  required_ruby_version: !ruby/object:Gem::Requirement
69
+ none: false
55
70
  requirements:
56
71
  - - ">="
57
72
  - !ruby/object:Gem::Version
73
+ hash: 3
74
+ segments:
75
+ - 0
58
76
  version: "0"
59
- version:
60
77
  required_rubygems_version: !ruby/object:Gem::Requirement
78
+ none: false
61
79
  requirements:
62
80
  - - ">="
63
81
  - !ruby/object:Gem::Version
82
+ hash: 3
83
+ segments:
84
+ - 0
64
85
  version: "0"
65
- version:
66
86
  requirements: []
67
87
 
68
88
  rubyforge_project:
69
- rubygems_version: 1.3.5
89
+ rubygems_version: 1.3.7
70
90
  signing_key:
71
91
  specification_version: 2
72
92
  summary: Declarative SAX Parsing with Nokogiri
@@ -1,2 +0,0 @@
1
- --diff
2
- --color