erbac 0.0.4 → 0.0.5

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.
@@ -177,7 +177,7 @@ module Erbac
177
177
  # make it transparent with the user
178
178
  define_method :marshal_around_save do |*args, &block|
179
179
  data = self.data
180
- self.data = Marshal.dump data
180
+ self.data = Marshal.dump(data).force_encoding("UTF-8")
181
181
  block.call # it is a trick, search it!
182
182
  self.data = data
183
183
  end
@@ -214,7 +214,7 @@ module Erbac
214
214
  # make it transparent with the user
215
215
  define_method :marshal_around_save do |*args, &block|
216
216
  data = self.data
217
- self.data = Marshal.dump data
217
+ self.data = Marshal.dump(data).force_encoding("UTF-8")
218
218
  block.call # it is a trick, search it!
219
219
  self.data = data
220
220
  end
@@ -1,3 +1,3 @@
1
1
  module Erbac
2
- VERSION = "0.0.4".freeze
2
+ VERSION = "0.0.5".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: erbac
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: