omniture_rails3 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -33,13 +33,12 @@ module OmnitureRails3
33
33
  end
34
34
 
35
35
  def sprops_json
36
- sprops = Higml.
37
- values_for(omniture_input, OmnitureRails3::TREES[controller_name.to_sym], self, omniture_priority_map || {}).
38
- delete_if{|k,v| !v}
39
-
36
+ sprops = Higml.values_for(omniture_input, OmnitureRails3::TREES[controller_name.to_sym], self, omniture_priority_map || {})
37
+
40
38
  transform_sprops(sprops)
41
39
 
42
- sprops.inject({}){|return_value, value| return_value[value[0]] = h(value[1]); return_value }. #html escape
40
+ sprops.delete_if{|k,v| !v}.
41
+ inject({}){|return_value, value| return_value[value[0]] = h(value[1]); return_value }. #html escape
43
42
  to_json.
44
43
  gsub(/,\s*"/,",\n\"") #put each variable on a separate line
45
44
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniture_rails3
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 23
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 3
10
- version: 0.0.3
9
+ - 4
10
+ version: 0.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Daniel Higginbotham