brianmario-yajl-ruby 0.5.5 → 0.5.6

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -1,4 +1,5 @@
1
1
  Makefile
2
+ benchmark/subjects/contacts.*
2
3
  *.o
3
4
  *.dylib
4
5
  *.bundle
data/CHANGELOG.md CHANGED
@@ -1,7 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.5.6 (June 19th, 2009)
4
+ * Added JSON.default_options hash to the JSON gem compatibility API
5
+ * Split out the JSON gem compatibility API's parsing and encoding methods into individually includable files
6
+ ** the use case here is if you *only* want parsing, or *only* want encoding
7
+ ** also, if you don't include encoding it won't include the #to_json overrides which tend to cause problems in some environments.
8
+ * Removed some large benchmark test files to reduce the size of the packaged gem by 1.5MB!
9
+
3
10
  ## 0.5.5 (June 17th, 2009)
4
- * Introduction of the JSON gem API compatibility layer
11
+ * Introduction of the JSON gem compatibility API
5
12
  ** NOTE: this isn't a 1:1 compatibility API, the goal was to be compatible with as many of the projects using the JSON gem as possible - not the JSON gem API itself
6
13
  ** the compatibility API must be explicitly enabled by requiring 'yajl/json_gem' in your project
7
14
  ** JSON.parse, JSON.generate, and the #to_json instance method extension to ruby's primitive classes are all included
data/Rakefile CHANGED
@@ -12,7 +12,7 @@ begin
12
12
  gem.files = `git ls-files`.split("\n")
13
13
  gem.extensions = ["ext/extconf.rb"]
14
14
  gem.files.include %w(lib/jeweler/templates/.document lib/jeweler/templates/.gitignore)
15
- # gem.rubyforge_project = "yajl-ruby"
15
+ gem.rubyforge_project = "yajl-ruby"
16
16
  end
17
17
  rescue LoadError
18
18
  puts "Jeweler, or one of its dependencies, is not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 5
4
- :patch: 5
4
+ :patch: 6
data/benchmark/encode.rb CHANGED
@@ -7,7 +7,7 @@ require 'json'
7
7
  # Can't use ActiveSuport::JSON.encode with the JSON gem loaded
8
8
  # require 'activesupport'
9
9
 
10
- filename = ARGV[0] || 'benchmark/subjects/contacts.json'
10
+ filename = ARGV[0] || 'benchmark/subjects/ohai.json'
11
11
  json = File.new(filename, 'r')
12
12
  hash = Yajl::Parser.new.parse(json)
13
13
  json.close
@@ -6,7 +6,7 @@ require 'stringio'
6
6
  require 'json'
7
7
 
8
8
  times = ARGV[0] ? ARGV[0].to_i : 1
9
- filename = 'benchmark/subjects/contacts.json'
9
+ filename = 'benchmark/subjects/ohai.json'
10
10
  json = File.new(filename, 'r')
11
11
  hash = Yajl::Parser.new.parse(json)
12
12
  json.close
@@ -6,7 +6,7 @@ require 'json'
6
6
  require 'yaml'
7
7
 
8
8
  # JSON Section
9
- filename = 'benchmark/subjects/contacts.json'
9
+ filename = 'benchmark/subjects/ohai.json'
10
10
  json = File.new(filename, 'r')
11
11
  hash = Yajl::Parser.new.parse(json)
12
12
  json.close
data/benchmark/parse.rb CHANGED
@@ -5,7 +5,7 @@ require 'yajl_ext'
5
5
  require 'json'
6
6
  require 'activesupport'
7
7
 
8
- filename = ARGV[0] || 'benchmark/subjects/contacts.json'
8
+ filename = ARGV[0] || 'benchmark/subjects/ohai.json'
9
9
  json = File.new(filename, 'r')
10
10
 
11
11
  # warm up the filesystem
@@ -5,8 +5,8 @@ require 'yajl_ext'
5
5
  require 'json'
6
6
 
7
7
  # JSON section
8
- filename = 'benchmark/subjects/contacts.json'
9
- marshal_filename = 'benchmark/subjects/contacts.marshal_dump'
8
+ filename = 'benchmark/subjects/ohai.json'
9
+ marshal_filename = 'benchmark/subjects/ohai.marshal_dump'
10
10
  json = File.new(filename, 'r')
11
11
  marshal_file = File.new(marshal_filename, 'r')
12
12
 
@@ -6,7 +6,7 @@ require 'json'
6
6
  require 'yaml'
7
7
 
8
8
  # JSON section
9
- filename = 'benchmark/subjects/contacts.json'
9
+ filename = 'benchmark/subjects/ohai.json'
10
10
  json = File.new(filename, 'r')
11
11
 
12
12
  # warm up the filesystem