happyfunjuice 0.1.1.beta.1 → 0.1.2.beta.1
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.
@@ -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
|
data/lib/happyfunjuice/config.rb
CHANGED
@@ -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
|
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.
|
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-
|
13
|
+
date: 2013-09-23 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: haml
|