tmx 0.1.2 → 0.1.3

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/README.md CHANGED
@@ -4,7 +4,7 @@ A library for parsing the **[Tiled Map Editor](http://www.mapeditor.org/)** file
4
4
 
5
5
  ## Support
6
6
 
7
- * JSON format
7
+ * JSON format (using multi_json)
8
8
  * TMX file (XML)
9
9
  * TMX file (Base64)
10
10
  * TMX file (Base64 zlib compressed)
@@ -29,4 +29,4 @@ Or install it yourself as:
29
29
 
30
30
  ```bash
31
31
  $ gem install tmx
32
- ```
32
+ ```
@@ -1,4 +1,4 @@
1
- require 'oj'
1
+ require 'multi_json'
2
2
 
3
3
  module Tmx
4
4
  module Parser
@@ -14,7 +14,7 @@ module Tmx
14
14
  end
15
15
 
16
16
  def parse(contents)
17
- parsed_contents = Oj.load(contents)
17
+ parsed_contents = MultiJson.load(contents)
18
18
 
19
19
  object_layers = parsed_contents["layers"].find_all do |layer|
20
20
  layer["type"] == "objectgroup"
@@ -69,4 +69,4 @@ module Tmx
69
69
  end
70
70
 
71
71
  Parsers.register :json, Parser::Json
72
- end
72
+ end
@@ -1,3 +1,3 @@
1
1
  module Tmx
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
@@ -13,7 +13,7 @@ Gem::Specification.new do |gem|
13
13
  gem.homepage = "https://github.com/shawn42/tmx"
14
14
  gem.license = "MIT"
15
15
 
16
- gem.add_dependency "oj", "~> 2.0"
16
+ gem.add_dependency "multi_json", "~> 1.0"
17
17
  gem.add_dependency "nokogiri", "~> 1.5"
18
18
 
19
19
  gem.files = `git ls-files`.split($/)
metadata CHANGED
@@ -1,7 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tmx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Shawn Anderson
@@ -9,25 +10,28 @@ authors:
9
10
  autorequire:
10
11
  bindir: bin
11
12
  cert_chain: []
12
- date: 2013-04-24 00:00:00.000000000 Z
13
+ date: 2013-11-22 00:00:00.000000000 Z
13
14
  dependencies:
14
15
  - !ruby/object:Gem::Dependency
15
- name: oj
16
+ name: multi_json
16
17
  requirement: !ruby/object:Gem::Requirement
18
+ none: false
17
19
  requirements:
18
20
  - - ~>
19
21
  - !ruby/object:Gem::Version
20
- version: '2.0'
22
+ version: '1.0'
21
23
  type: :runtime
22
24
  prerelease: false
23
25
  version_requirements: !ruby/object:Gem::Requirement
26
+ none: false
24
27
  requirements:
25
28
  - - ~>
26
29
  - !ruby/object:Gem::Version
27
- version: '2.0'
30
+ version: '1.0'
28
31
  - !ruby/object:Gem::Dependency
29
32
  name: nokogiri
30
33
  requirement: !ruby/object:Gem::Requirement
34
+ none: false
31
35
  requirements:
32
36
  - - ~>
33
37
  - !ruby/object:Gem::Version
@@ -35,6 +39,7 @@ dependencies:
35
39
  type: :runtime
36
40
  prerelease: false
37
41
  version_requirements: !ruby/object:Gem::Requirement
42
+ none: false
38
43
  requirements:
39
44
  - - ~>
40
45
  - !ruby/object:Gem::Version
@@ -90,26 +95,27 @@ files:
90
95
  homepage: https://github.com/shawn42/tmx
91
96
  licenses:
92
97
  - MIT
93
- metadata: {}
94
98
  post_install_message:
95
99
  rdoc_options: []
96
100
  require_paths:
97
101
  - lib
98
102
  required_ruby_version: !ruby/object:Gem::Requirement
103
+ none: false
99
104
  requirements:
100
105
  - - ! '>='
101
106
  - !ruby/object:Gem::Version
102
107
  version: '0'
103
108
  required_rubygems_version: !ruby/object:Gem::Requirement
109
+ none: false
104
110
  requirements:
105
111
  - - ! '>='
106
112
  - !ruby/object:Gem::Version
107
113
  version: '0'
108
114
  requirements: []
109
115
  rubyforge_project:
110
- rubygems_version: 2.0.3
116
+ rubygems_version: 1.8.25
111
117
  signing_key:
112
- specification_version: 4
118
+ specification_version: 3
113
119
  summary: A library for parsing the Tiled Map Editor file format.
114
120
  test_files:
115
121
  - spec/features/json_format_spec.rb
@@ -132,3 +138,4 @@ test_files:
132
138
  - spec/fixtures/map_zlib.tmx
133
139
  - spec/fixtures/tiles.png
134
140
  - spec/spec_helper.rb
141
+ has_rdoc:
checksums.yaml DELETED
@@ -1,15 +0,0 @@
1
- ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- YThiOGI5YTQzMzlkZjY3Yjc4MGNkMTRkMTgwZDQxZjU3N2I2MDgzMw==
5
- data.tar.gz: !binary |-
6
- OTIyYWQ0ZmViM2Q3MjkyYTY3Nzk0ZGM4MjJhNDc5MGM4YTkyNThhYQ==
7
- !binary "U0hBNTEy":
8
- metadata.gz: !binary |-
9
- Mjk5MWIzMjI3ODY5ODA2OTY5NGIzYjQyNzJkOGY5ZWQ5ZGE0Y2VlYzBmZTFi
10
- MjcwZTZlMGZmYjY3YTI2ZDIxZmE4ODRkOTE3Y2U2NGUyNTJkMTUxMWY2ZmFk
11
- ZjMzNDkyMjA4MThiMjliZWM4M2Q4OTc4ODk3YTYwNDQzM2Y3Mjg=
12
- data.tar.gz: !binary |-
13
- M2VmNzhmNDNmZjI3YTA3MzU2OWY4OTNjZjliM2QzMjUwYjNkNGM3MjNmOWRl
14
- YjE5ZGY3ODFhNDhiMjFlZTZjYzEzZWJlY2I2Zjc2MmVjMzdjZWI3ZTE3NGMw
15
- YmRiYmY0MDlhM2NjODYxNDkwNmZmMTMxNzM0NWZhYWE4NmE3Y2M=