Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Calvin French-Owen
committed
Feb 11, 2013
1 parent
0aeeaa6
commit 737bb36
Showing
7 changed files
with
40 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
require 'multi_json' | ||
|
||
module AnalyticsRuby | ||
|
||
# JSON Wrapper module adapted from | ||
# https://github.com/stripe/stripe-ruby/blob/master/lib/stripe/json.rb | ||
# | ||
# .dump was added in MultiJson 1.3 | ||
module JSON | ||
if MultiJson.respond_to?(:dump) | ||
def self.dump(*args) | ||
MultiJson.dump(*args) | ||
end | ||
|
||
def self.load(*args) | ||
MultiJson.load(*args) | ||
end | ||
else | ||
def self.dump(*args) | ||
MultiJson.encode(*args) | ||
end | ||
|
||
def self.load(*args) | ||
MultiJson.decode(*args) | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module AnalyticsRuby | ||
VERSION = '0.1.0' | ||
VERSION = '0.1.1' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters