spree_dash 1.0.0.rc2 → 1.0.0.rc3
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
|
|
1
1
|
<% if Spree::Dash::Config.configured? %>
|
2
|
-
<script type='text/javascript'>
|
2
|
+
<script type='text/javascript' id='analytics'>
|
3
3
|
var jirafe= <%= raw analytics_tags.to_json %>;
|
4
4
|
(function(){
|
5
5
|
var d=document,g=d.createElement('script'),s=d.getElementsByTagName('script')[0];
|
data/lib/spree/dash.rb
CHANGED
@@ -7,3 +7,14 @@ module Spree
|
|
7
7
|
end
|
8
8
|
|
9
9
|
require 'spree/dash/engine'
|
10
|
+
|
11
|
+
# add helper to all the base controllers
|
12
|
+
# Spree::BaseController includes Spree::Core::ControllerHelpers
|
13
|
+
require 'spree/core/controller_helpers'
|
14
|
+
class << Spree::Core::ControllerHelpers
|
15
|
+
def included_with_analytics(receiver)
|
16
|
+
included_without_analytics(receiver)
|
17
|
+
receiver.send :helper, 'spree/analytics'
|
18
|
+
end
|
19
|
+
alias_method_chain :included, :analytics
|
20
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spree_dash
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.rc3
|
5
5
|
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,19 +9,19 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-01-
|
12
|
+
date: 2012-01-31 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: spree_core
|
16
|
-
requirement: &
|
16
|
+
requirement: &70193021130140 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - =
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 1.0.0.
|
21
|
+
version: 1.0.0.rc3
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70193021130140
|
25
25
|
description: Required dependency for Spree
|
26
26
|
email: brian@spreecommerce.com
|
27
27
|
executables: []
|
@@ -32,7 +32,6 @@ files:
|
|
32
32
|
- README.md
|
33
33
|
- app/assets/images/analytics_dashboard_preview.png
|
34
34
|
- app/controllers/spree/admin/overview_controller.rb
|
35
|
-
- app/controllers/spree/base_controller_decorator.rb
|
36
35
|
- app/helpers/spree/analytics_helper.rb
|
37
36
|
- app/models/spree/dash_configuration.rb
|
38
37
|
- app/overrides/analytics_header.rb
|