prissy 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -81,7 +81,7 @@ class Prissy
81
81
  end
82
82
 
83
83
  def print_key(key)
84
- @txt << %{"#{key.to_s}"}
84
+ @txt << MultiJson.encode(key)
85
85
  end
86
86
 
87
87
  def print_value(value, starting_column = 0)
@@ -98,11 +98,11 @@ class Prissy
98
98
 
99
99
  # Make all these explicit, so its easier to override them in subclasses
100
100
  def print_string(string, starting_column = 0)
101
- @txt << %{"#{string}"}
101
+ @txt << MultiJson.encode(string)
102
102
  end
103
103
 
104
104
  def print_number(number)
105
- @txt << number.to_s
105
+ @txt << MultiJson.encode(number)
106
106
  end
107
107
 
108
108
  def print_true
@@ -1,3 +1,3 @@
1
1
  class Prissy
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prissy
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-17 00:00:00.000000000 Z
12
+ date: 2012-07-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec