vdf4r 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/vdf4r/version.rb +1 -1
  2. data/lib/vdf4r.rb +3 -0
  3. metadata +3 -22
data/lib/vdf4r/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module VDF4R
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
data/lib/vdf4r.rb ADDED
@@ -0,0 +1,3 @@
1
+ pwd = File.dirname(__FILE__)
2
+
3
+ Dir[File.join(pwd, 'vdf4r', '*.rb')].each {|file| require file }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vdf4r
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -43,27 +43,7 @@ dependencies:
43
43
  - - ! '>='
44
44
  - !ruby/object:Gem::Version
45
45
  version: 2.14.1
46
- description: ! "# VDF4R\n\nParse Valve Data Format files easily and quickly.\n\n\n##
47
- Context\n\nValve has its own data format for storing game information. This library
48
- lets\nyou parse these files into a plain-old Ruby hash easily and quickly.\n\nAfter
49
- that, you can do with the data what you will.\n\n\n## Installation\n\nAs normal:\n\n
50
- \ gem install vdf4r\n\nOr in your Gemfile:\n\n gem 'vdf4r', '~>0.1.0'\n\n\n##
51
- Usage\n\n require 'vdf4r'\n require 'pp'\n\n File.open('vdf_file.txt')
52
- do |file|\n parser = VDF4R::Parser.new(file)\n pp parser.parse # pretty-printed\n
53
- \ end\n\n\n## Caveats\n\nThis library has only really been used on a few Dota
54
- 2 VDF files. It's not\nbattle-tested yet, and there are probably some minor issues.\n\nIf
55
- you find something you'd like to discuss, you can find me on #dota2replay\non quakenet
56
- IRC.\n\nAt least one of Dota 2's own VDF files have grammar mistakes.\n(i.e. npc_abilities.txt)
57
- If you get an \"ungrammatical content\" error while\nparsing, you will need to fix
58
- the error. It will give you the offending line:\n\n (RuntimeError)parser.rb:30:in
59
- `block in parse': ungrammatical content: ' / Damage.\n '\n\nIndeed, in
60
- the VDF file, there are \"comment\" lines lacking the proper '//'\nprefix. When
61
- I changed the file to contain '// Damage.' it parsed correctly.\n\nI'll think of
62
- a way to make the parser more permissive as time allows.\n\n\n## Hacking\n\nJust
63
- clone the source from here. If issuing a pull request, make sure your\nchange is
64
- on a topic branch accompanied by new tests; all behaviors must pass.\n\n\n## License\n\nVDF4R
65
- is offered under the MIT license. See [LICENSE](https://github.com/skadistats/vdf4r/blob/master/README.md)\nfor
66
- the license itself.\n"
46
+ description: See README at https://github.com/skadistats/vdf4r
67
47
  email: onethirtyfive@skadistats.com
68
48
  executables: []
69
49
  extensions: []
@@ -73,6 +53,7 @@ files:
73
53
  - lib/vdf4r/parser.rb
74
54
  - lib/vdf4r/store.rb
75
55
  - lib/vdf4r/version.rb
56
+ - lib/vdf4r.rb
76
57
  - spec/fixtures/bad/excessive_exit.txt
77
58
  - spec/fixtures/bad/insufficient_exit.txt
78
59
  - spec/fixtures/bad/no_preceding_key.txt