xmlhash 1.3.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/.travis.yml ADDED
@@ -0,0 +1,14 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.9.3
4
+ - 1.8.7
5
+ - 1.9.2
6
+ - 1.9.3
7
+ - rbx-18mode
8
+ - rbx-19mode
9
+ - ruby-head
10
+ - ree
11
+ before_script:
12
+ - sudo apt-get update
13
+ - sudo apt-get install libxml2-dev
14
+ - bundle install
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source 'http://rubygems.org'
2
+
3
+ gem 'hoe'
4
+ gem 'rake-compiler'
5
+ gem 'pkg-config'
6
+ gem 'json'
data/History.txt CHANGED
@@ -1,3 +1,8 @@
1
+ === 1.3.1 / 2012-10-08
2
+
3
+ * fix manifest
4
+ * add constructor to Xmlhash
5
+
1
6
  === 1.3.0 / 2012-10-01
2
7
 
3
8
  * parse will no longer return a plain ruby Hash, but a XMLHash,
data/Manifest.txt CHANGED
@@ -1,4 +1,6 @@
1
1
  .autotest
2
+ .travis.yml
3
+ Gemfile
2
4
  History.txt
3
5
  Manifest.txt
4
6
  README.txt
@@ -6,5 +8,4 @@ Rakefile
6
8
  ext/xmlhash/extconf.rb
7
9
  ext/xmlhash/xmlhash.c
8
10
  lib/xmlhash.rb
9
- lib/xmlhash/xmlhash.so
10
11
  test/test_xmlhash.rb
data/lib/xmlhash.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  require 'xmlhash/xmlhash'
2
2
 
3
3
  module Xmlhash
4
- VERSION = '1.3.0'
4
+ VERSION = '1.3.1'
5
5
 
6
6
  class XMLHash < Hash
7
7
 
@@ -53,6 +53,11 @@ module Xmlhash
53
53
  return sub
54
54
  end
55
55
 
56
+ # Initialize with a hash
57
+ def initialize(opts = nil)
58
+ self.replace(opts) if opts
59
+ end
60
+
56
61
  def inspect
57
62
  "X(#{super})"
58
63
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xmlhash
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-01 00:00:00.000000000 Z
12
+ date: 2012-10-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: pkg-config
@@ -89,6 +89,8 @@ extra_rdoc_files:
89
89
  - README.txt
90
90
  files:
91
91
  - .autotest
92
+ - .travis.yml
93
+ - Gemfile
92
94
  - History.txt
93
95
  - Manifest.txt
94
96
  - README.txt
@@ -96,7 +98,6 @@ files:
96
98
  - ext/xmlhash/extconf.rb
97
99
  - ext/xmlhash/xmlhash.c
98
100
  - lib/xmlhash.rb
99
- - lib/xmlhash/xmlhash.so
100
101
  - test/test_xmlhash.rb
101
102
  - .gemtest
102
103
  homepage: https://github.com/coolo/xmlhash
Binary file