erbac 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -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: