towsta 1.1.5 → 1.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,3 @@
1
1
  module Towsta
2
- VERSION = "1.1.5"
2
+ VERSION = "1.1.6"
3
3
  end
@@ -66,6 +66,7 @@ module Towsta
66
66
  end
67
67
 
68
68
  def save creator=$towsta_default_author
69
+ creator = author.email if author
69
70
  export = self.attributes
70
71
  export.delete :author
71
72
  export.delete :vertical
@@ -100,6 +101,10 @@ module Towsta
100
101
  horizontal[attr] = eval(attr.to_s).strftime('%m/%d/%Y %H:%M')
101
102
  elsif eval(attr.to_s).class == DateTime
102
103
  horizontal[attr] = eval(attr.to_s).strftime('%m/%d/%Y')
104
+ elsif eval(attr.to_s).class == TrueClass
105
+ horizontal[attr] = 1
106
+ elsif eval(attr.to_s).class == FalseClass
107
+ horizontal[attr] = 0
103
108
  else
104
109
  horizontal[attr] = eval(attr.to_s).to_s
105
110
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 1
8
- - 5
9
- version: 1.1.5
8
+ - 6
9
+ version: 1.1.6
10
10
  platform: ruby
11
11
  authors:
12
12
  - Mortaro