cowtech-extensions 1.5.0 → 1.5.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -65,7 +65,11 @@ module Cowtech
65
65
  rv = ""
66
66
 
67
67
  begin
68
- rv = self.send("to_#{format}")
68
+ if format == :pretty_json then
69
+ rv = JSON.pretty_generate(self)
70
+ else
71
+ rv = self.send("to_#{format}")
72
+ end
69
73
  rescue
70
74
  rv = self.inspect
71
75
  end
@@ -11,7 +11,7 @@ module Cowtech
11
11
  module Version
12
12
  MAJOR = 1
13
13
  MINOR = 5
14
- PATCH = 0
14
+ PATCH = 1
15
15
 
16
16
  STRING = [MAJOR, MINOR, PATCH].compact.join(".")
17
17
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cowtech-extensions
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.5.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-04-23 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack
16
- requirement: &70336478175680 !ruby/object:Gem::Requirement
16
+ requirement: &70295072458720 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '3.0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70336478175680
24
+ version_requirements: *70295072458720
25
25
  description: A Rails blog engine plugin.
26
26
  email:
27
27
  - shogun_panda@me.com