nwn-lib 0.4.10 → 0.4.10.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.
Files changed (4) hide show
  1. data/CHANGELOG +9 -0
  2. data/Rakefile +1 -3
  3. data/lib/nwn/all.rb +6 -1
  4. metadata +3 -12
data/CHANGELOG CHANGED
@@ -293,9 +293,18 @@ Bernhard Stoeckner <elven@swordcoast.net> (23):
293
293
  documentation updates
294
294
  bin/nwn-erf: do not set description str_ref to 0x0
295
295
  NWN::Gff: refactor API to properly partition different file format handlers
296
+ 0.4.10-rel
296
297
 
297
298
  A swath of bugfixes, JSON read/write, and finally .key and .bif reading support.
298
299
  Also, Resources::Manager got some documentation and a few touches here and there,
299
300
  as did bin/nwn-erf, which supports partial extraction now.
300
301
  For our non-ASCII users, there is a ENV variable that can be used to specify the
301
302
  encoding in which local GFF data is supposed to be in.
303
+
304
+ === 0.4.10.1
305
+ Bernhard Stoeckner <elven@swordcoast.net> (2):
306
+ JSON support: remove hard dep from Rakefile, load if available
307
+ Rakefile release target: use new rubyforge binary version API
308
+ 0.4.10.1-rel
309
+
310
+ Late night Rakefile fun.
data/Rakefile CHANGED
@@ -9,7 +9,7 @@ include FileUtils
9
9
  # Configuration
10
10
  ##############################################################################
11
11
  NAME = "nwn-lib"
12
- VERS = "0.4.10"
12
+ VERS = "0.4.10.1"
13
13
  CLEAN.include ["**/.*.sw?", "pkg", ".config", "rdoc", "coverage"]
14
14
  RDOC_OPTS = ["--quiet", "--line-numbers", "--inline-source", '--title', \
15
15
  'nwn-lib: a ruby library for accessing NWN resource files', \
@@ -44,7 +44,6 @@ spec = Gem::Specification.new do |s|
44
44
  s.files = %w(COPYING CHANGELOG README Rakefile) + Dir.glob("{bin,doc,spec,lib,tools,scripts,data}/**/*")
45
45
  s.require_path = "lib"
46
46
  s.bindir = "bin"
47
- s.add_dependency('json', '>= 1.1.9')
48
47
  end
49
48
 
50
49
  Rake::GemPackageTask.new(spec) do |p|
@@ -71,7 +70,6 @@ end
71
70
 
72
71
  desc "Upload nwn-lib gem to rubyforge"
73
72
  task :release => [:package] do
74
- #sh %{rubyforge login}
75
73
  sh %{rubyforge add_release nwn-lib #{NAME} #{VERS} pkg/#{NAME}-#{VERS}.tgz}
76
74
  sh %{rubyforge add_file nwn-lib #{NAME} #{VERS} pkg/#{NAME}-#{VERS}.gem}
77
75
  end
data/lib/nwn/all.rb CHANGED
@@ -8,6 +8,11 @@ require 'nwn/tlk'
8
8
  require 'nwn/key'
9
9
  require 'nwn/erf'
10
10
  require 'nwn/yaml_support'
11
- require 'nwn/json_support'
11
+ begin
12
+ require 'json'
13
+ require 'nwn/json_support'
14
+ rescue LoadError => e
15
+ NWN.log_debug "json support not available, install json or json_pure to enable"
16
+ end
12
17
  require 'nwn/kivinen_support'
13
18
  require 'nwn/scripting'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nwn-lib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.10
4
+ version: 0.4.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bernhard Stoeckner
@@ -11,17 +11,8 @@ cert_chain: []
11
11
 
12
12
  date: 2009-11-15 00:00:00 +01:00
13
13
  default_executable:
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
16
- name: json
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
20
- requirements:
21
- - - ">="
22
- - !ruby/object:Gem::Version
23
- version: 1.1.9
24
- version:
14
+ dependencies: []
15
+
25
16
  description: a ruby library for accessing Neverwinter Nights resource files
26
17
  email: elven@swordcoast.net
27
18
  executables: