happyfunjuice 0.1.1.beta.1 → 0.1.2.beta.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,7 @@
1
1
  class Happyfunjuice::HappyfunjuiceController < ApplicationController
2
-
2
+
3
+ self.allow_forgery_protection = false
4
+
3
5
  before_filter :verify_key
4
6
 
5
7
  before_filter :select_handled_exceptions
@@ -117,7 +117,7 @@ module Happyfunjuice
117
117
 
118
118
  {
119
119
  #key: @key, # There shouldn't be any need to specify this since the value of this key is this hash
120
- name: @options[:name] || @key.to_s.humanize,
120
+ name: @options[:label] || @options[:name] || @key.to_s.humanize.downcase,
121
121
  fields: field_meta
122
122
  }
123
123
  end
@@ -40,6 +40,22 @@ module Happyfunjuice
40
40
  Happyfunjuice.push_activity( key, scope, opts, &block )
41
41
  end
42
42
 
43
+ def customer( scope, opts={}, &block )
44
+ Happyfunjuice.push_activity( :customer, scope, opts, &block )
45
+ end
46
+
47
+ def purchase( scope, opts={}, &block )
48
+ Happyfunjuice.push_activity( :purchase, scope, opts, &block )
49
+ end
50
+
51
+ def order( scope, opts={}, &block )
52
+ Happyfunjuice.push_activity( :order, scope, opts, &block )
53
+ end
54
+
55
+ def product( scope, opts={}, &block )
56
+ Happyfunjuice.push_activity( :product, scope, opts, &block )
57
+ end
58
+
43
59
  def meta( key, field, opts={} )
44
60
  Happyfunjuice.set_field_meta( key, field, opts )
45
61
  end
@@ -1,5 +1,5 @@
1
1
  module Happyfunjuice
2
- VERSION = "0.1.1.beta.1"
2
+ VERSION = "0.1.2.beta.1"
3
3
 
4
4
  class << self
5
5
  def version
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: happyfunjuice
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1.beta.1
4
+ version: 0.1.2.beta.1
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-05-29 00:00:00.000000000 Z
13
+ date: 2013-09-23 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: haml