Skip to content

Commit

Permalink
optimism test (50%)
Browse files Browse the repository at this point in the history
  • Loading branch information
gutenye committed Aug 24, 2012
1 parent b788d3c commit 6f8ae97
Show file tree
Hide file tree
Showing 15 changed files with 1,120 additions and 874 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG
@@ -1,10 +1,13 @@
*Optimism (3.3.0)*

* add yaml support.

* change path. '_' is current path, '_r' is root path.
* remove 'Optimism.get', 'Optimsm.convert', 'Optimims.[]', 'Optimism#_get', 'Optimism#_child'
* remove 'hike' dependency
* add 'Optimism.require!', 'Optimism#_has_key2?'
* 'Optimism#initialize'
- add (hash/optimism, o)
- add (hash/optimism, o) argument.
- rename ':only_symbol_key' option to ':symbolize_key'
- add ':parser' option
* 'Optimism.require'
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
@@ -1,4 +1,4 @@
source :rubygems
source "https://rubygems.org"

gem "pd"

Expand Down
14 changes: 14 additions & 0 deletions benchmark/a.rb
@@ -0,0 +1,14 @@
#!/usr/bin/env ruby

dir = File.expand_path("../..", __FILE__)
$:.unshift File.join(dir, "lib")
ENV["BUNDLE_GEMFILE"] = File.join(dir, "Gemfile")

require "bundler/setup"
require "benchmark"

Benchmark.bm do |b|
b.report %[require "optimism"] do
require "optimism"
end
end

0 comments on commit 6f8ae97

Please sign in to comment.