firephruby 0.2.1 → 0.2.2

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.
Files changed (3) hide show
  1. data/Changelog +3 -0
  2. data/lib/firephruby.rb +1 -1
  3. metadata +1 -1
data/Changelog CHANGED
@@ -3,3 +3,6 @@ for Rails, added version check, added 'DUMP'
3
3
 
4
4
  0.2.1 -- added type masking with support for arrays, hashes and other types as
5
5
  hash keys and options for renderer scripts
6
+
7
+ 0.2.2 -- fixed a serious bug with the :mask_ruby_types-option (it modified the
8
+ data)
data/lib/firephruby.rb CHANGED
@@ -30,7 +30,7 @@ module FirePHRuby
30
30
  msg_meta = { 'Type' => kind, 'File' => file, 'Line' => line }
31
31
  msg_meta['Label'] = label if label
32
32
  @fire_msg_index = 0 unless instance_variables.member? '@fire_msg_index'
33
- msg = _firephruby_mask_ruby_types msg if ( @firephruby_options.has_key? :mask_ruby_types && :mask_ruby_types )
33
+ msg = _firephruby_mask_ruby_types( Marshal.load(Marshal.dump(msg)) ) if ( @firephruby_options.has_key? :mask_ruby_types && :mask_ruby_types )
34
34
  msg = kind == 'DUMP' ? "{#{label.to_json}:#{msg.to_json}}" : "[#{msg_meta.to_json},#{msg.to_json}]"
35
35
  #puts msg.to_json
36
36
  (msg.gsub /.{#{MAX_LENGTH}}/ do |m| "#{m}\n" end).split( "\n" ).each_with_index do |msg_part,ind|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: firephruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors: []
7
7