Skip to content

Commit

Permalink
Require activesupport. Not active_support, not active-support. Only r…
Browse files Browse the repository at this point in the history
…equire the JSON bits we need.
  • Loading branch information
Sam Goldman committed Oct 6, 2011
1 parent cbdf1f7 commit 9339b81
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion Gemfile
@@ -1,9 +1,11 @@
source "http://rubygems.org"

gemspec

group(:development) do
gem 'rspec', '~> 2.3'
gem 'log_buddy', '~> 0.5.0'
gem 'timecop', '~> 0.3.5'
gem 'i18n', '0.5.0'
gem 'active-support', '~> 3', :require => 'active_support'
gem 'activesupport', '~> 3', :require => "active_support"
end
1 change: 1 addition & 0 deletions Gemfile.lock
Expand Up @@ -4,6 +4,7 @@ PATH
adapter (0.5.2)

GEM
remote: http://rubygems.org/
specs:
activesupport (3.0.3)
diff-lcs (1.1.2)
Expand Down
4 changes: 2 additions & 2 deletions examples/overriding_serialization.rb
@@ -1,5 +1,5 @@
require 'rubygems'
require 'active_support'
require 'active_support/json'
require 'pathname'

root_path = Pathname(__FILE__).dirname.join('..').expand_path
Expand Down Expand Up @@ -38,4 +38,4 @@ def decode(value)

adapter.client['foo'] = ActiveSupport::JSON.encode('chunky' => 'bacon')
# Decoded from adapter using json instead of being un-marshal'd
puts adapter.read('foo').inspect # {"chunky"=>"bacon"}
puts adapter.read('foo').inspect # {"chunky"=>"bacon"}

0 comments on commit 9339b81

Please sign in to comment.