spree_dash 1.3.2 → 2.0.0.rc1
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.
- checksums.yaml +15 -0
- data/app/assets/images/analytics_dashboard_preview.jpg +0 -0
- data/app/controllers/spree/admin/analytics_controller.rb +3 -3
- data/app/controllers/spree/admin/overview_controller.rb +4 -0
- data/app/overrides/configuration_menu_link.rb +1 -1
- data/app/views/spree/admin/analytics/edit.html.erb +37 -21
- data/app/views/spree/admin/analytics/sign_up.html.erb +6 -6
- data/app/views/spree/admin/overview/index.html.erb +10 -10
- data/config/routes.rb +1 -1
- data/lib/spree/dash.rb +1 -1
- metadata +27 -23
- data/config/locales/en.yml +0 -24
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
YTBhMWQyZWU2YWU5Zjg2YTY3N2ZhNDI2OWM4NTA2ZGM2YTNiYzdjNQ==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
ZWY4MGI2YzEzNGE3NzIxMGMzMmYzN2Y5YjkxZjM3ODhjNmFkMzY2OQ==
|
7
|
+
!binary "U0hBNTEy":
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
ZjVmNzE1YThhMDQxYmY2NWZjMjFkNTNkYmNhNGYxMWUzMThjNWFkMTAwZjIy
|
10
|
+
MmJkYjExYTRmM2E3MDk2OGY4NThlZTdkNjU4YjNmMDQ4NzMwM2ZhNWM3NDFm
|
11
|
+
YmQ1MmRmYmZjMzIwNTU0ZmNhOWFjNWQzNjgyODJhY2M4NzZkMWY=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
MjhmMTZkZWZjYmVjYTRmZjRlZWNjMjA2NjZlZGIyZjZmMzhiN2Y2NTkyNjdj
|
14
|
+
N2MxOTQ2MDg5MmQ5Y2EyNzkwZDg4NjFhOWJmMmMwMTQyMGI1YTEzYmU0MjQx
|
15
|
+
YTY3MWUwNTc0ZDUwY2M0ODc0M2YyMGQzZjFkNmNlMzgzOWMxN2U=
|
Binary file
|
@@ -22,7 +22,7 @@ module Spree
|
|
22
22
|
begin
|
23
23
|
store = Spree::Dash::Jirafe.synchronize_resources(store_hash)
|
24
24
|
rescue SocketError
|
25
|
-
flash[:error] = t(:could_not_connect_to_jirafe)
|
25
|
+
flash[:error] = Spree.t(:could_not_connect_to_jirafe)
|
26
26
|
rescue Spree::Dash::JirafeException => e
|
27
27
|
flash[:error] = e.message
|
28
28
|
ensure
|
@@ -35,7 +35,7 @@ module Spree
|
|
35
35
|
Spree::Dash::Config.app_token = params[:app_token]
|
36
36
|
Spree::Dash::Config.site_id = params[:site_id]
|
37
37
|
Spree::Dash::Config.token = params[:token]
|
38
|
-
flash[:success] = t(:jirafe_settings_updated, :scope => "
|
38
|
+
flash[:success] = Spree.t(:jirafe_settings_updated, :scope => "dash")
|
39
39
|
redirect_to admin_analytics_path
|
40
40
|
end
|
41
41
|
|
@@ -43,7 +43,7 @@ module Spree
|
|
43
43
|
|
44
44
|
def redirect_if_registered
|
45
45
|
if Spree::Dash::Config.configured?
|
46
|
-
flash[:success] = t(:already_signed_up_for_analytics)
|
46
|
+
flash[:success] = Spree.t(:already_signed_up_for_analytics)
|
47
47
|
redirect_to admin_path and return true
|
48
48
|
end
|
49
49
|
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
Deface::Override.new(:virtual_path => "spree/admin/shared/_configuration_menu",
|
2
2
|
:name => "add_dashboard_sidebar_link",
|
3
3
|
:insert_bottom => ".sidebar",
|
4
|
-
:text => "<%= configurations_sidebar_menu_item t(:jirafe), admin_analytics_path %>",
|
4
|
+
:text => "<%= configurations_sidebar_menu_item Spree.t(:jirafe), admin_analytics_path %>",
|
5
5
|
:original => 'a74f177275dc303c9cd5994b2e24e027434c3cbb')
|
@@ -1,26 +1,42 @@
|
|
1
|
-
|
1
|
+
<%= render :partial => 'spree/admin/shared/configuration_menu' %>
|
2
2
|
|
3
|
-
|
3
|
+
<% content_for :page_title do %>
|
4
|
+
<%= Spree.t(:header, :scope => "dash.jirafe") %>
|
5
|
+
<% end %>
|
4
6
|
|
5
7
|
<%= form_tag admin_analytics_path, :method => :put do %>
|
6
|
-
<
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
8
|
+
<fieldset>
|
9
|
+
<legend><%= Spree.t(:settings)%></legend>
|
10
|
+
|
11
|
+
<p><%= Spree.t(:explanation, :scope => "dash.jirafe") %></p>
|
12
|
+
<div class="alpha five columns">
|
13
|
+
<div class="field">
|
14
|
+
<%= label_tag 'app_id', Spree.t(:app_id, :scope => "dash.jirafe") %><br>
|
15
|
+
<%= text_field_tag 'app_id', Spree::Dash::Config.app_id %>
|
16
|
+
</div>
|
17
|
+
<div class="field">
|
18
|
+
<%= label_tag 'site_id', Spree.t(:site_id, :scope => "dash.jirafe") %><br>
|
19
|
+
<%= text_field_tag 'site_id', Spree::Dash::Config.site_id %>
|
20
|
+
</div>
|
21
|
+
</div>
|
22
|
+
|
23
|
+
<div class="omega seven columns">
|
24
|
+
<div class="field">
|
25
|
+
<%= label_tag 'app_token', Spree.t(:app_token, :scope => "dash.jirafe") %><br>
|
26
|
+
<%= text_field_tag 'app_token', Spree::Dash::Config.app_token, :size => 40 %>
|
27
|
+
</div>
|
28
|
+
|
29
|
+
<div class="field">
|
30
|
+
<%= label_tag 'token', Spree.t(:token, :scope => "dash.jirafe") %><br>
|
31
|
+
<%= text_field_tag 'token', Spree::Dash::Config.token, :size => 40 %>
|
32
|
+
</div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div class="clear"></div>
|
36
|
+
|
37
|
+
<div class="form-buttons filter-actions actions" data-hook="buttons">
|
38
|
+
<%= button Spree.t(:update), 'icon-refresh' %>
|
39
|
+
</div>
|
40
|
+
</fieldset>
|
25
41
|
<% end %>
|
26
42
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<% content_for :page_title do %>
|
2
|
-
<%= t(:analytics_sign_up) %>
|
2
|
+
<%= Spree.t(:analytics_sign_up) %>
|
3
3
|
<% end %>
|
4
4
|
|
5
5
|
<% content_for :page_title_classes do %>
|
@@ -45,17 +45,17 @@
|
|
45
45
|
|
46
46
|
<div class="field">
|
47
47
|
<%= check_box_tag 'store[terms_of_service]', @store[:terms_of_service], @store.has_key?(:terms_of_service), :size => 50 %>
|
48
|
-
<%= label_tag 'store[terms_of_service]', t(:agree_to_terms_of_service) %> (<a href="http://jirafe.com/about/terms" target="_new"><%= t(:review) %></a>)
|
48
|
+
<%= label_tag 'store[terms_of_service]', Spree.t(:agree_to_terms_of_service) %> (<a href="http://jirafe.com/about/terms" target="_new"><%= Spree.t(:review) %></a>)
|
49
49
|
</div>
|
50
50
|
|
51
51
|
<div class="field">
|
52
52
|
<%= check_box_tag 'store[privacy_policy]', @store[:privacy_policy], @store.has_key?(:privacy_policy), :size => 50 %>
|
53
|
-
<%= label_tag 'store[privacy_policy]', t(:agree_to_privacy_policy) %> (<a href="http://jirafe.com/about/privacy" target="_new"><%= t(:review) %></a>)
|
53
|
+
<%= label_tag 'store[privacy_policy]', Spree.t(:agree_to_privacy_policy) %> (<a href="http://jirafe.com/about/privacy" target="_new"><%= Spree.t(:review) %></a>)
|
54
54
|
</div>
|
55
55
|
</div>
|
56
56
|
<div class="form-buttons" data-hook="buttons">
|
57
|
-
<%= button t(:activate), 'icon-ok' %>
|
58
|
-
<%= t(:or) %>
|
59
|
-
<%= link_to_with_icon 'icon-remove', t(:cancel), admin_path, :class => 'button' %>
|
57
|
+
<%= button Spree.t(:activate), 'icon-ok' %>
|
58
|
+
<%= Spree.t(:or) %>
|
59
|
+
<%= link_to_with_icon 'icon-remove', Spree.t(:cancel), admin_path, :class => 'button' %>
|
60
60
|
</div>
|
61
61
|
<% end %>
|
@@ -7,7 +7,7 @@
|
|
7
7
|
|
8
8
|
<% content_for :page_actions do %>
|
9
9
|
<li id="jirafe_locales">
|
10
|
-
<i class="icon-globe"></i> <%= t(:choose_dashboard_locale) %>: <%= raw jirafe_locale_links.join(' ') %>
|
10
|
+
<i class="icon-globe"></i> <%= Spree.t(:choose_dashboard_locale) %>: <%= raw jirafe_locale_links.join(' ') %>
|
11
11
|
</li>
|
12
12
|
<% end %>
|
13
13
|
|
@@ -29,21 +29,21 @@
|
|
29
29
|
<div class="no-border-top analytics-description">
|
30
30
|
<div class="description-text">
|
31
31
|
<hgroup>
|
32
|
-
<h1><%= t(:analytics_desc_header_1)%></h1>
|
33
|
-
<h6><%= t(:analytics_desc_header_2)%></h6>
|
32
|
+
<h1><%= Spree.t(:analytics_desc_header_1)%></h1>
|
33
|
+
<h6><%= Spree.t(:analytics_desc_header_2)%></h6>
|
34
34
|
</hgroup>
|
35
35
|
|
36
36
|
<ul>
|
37
|
-
<li><%= t(:analytics_desc_list_1)%></li>
|
38
|
-
<li><%= t(:analytics_desc_list_2)%></li>
|
39
|
-
<li><%= t(:analytics_desc_list_3)%></li>
|
40
|
-
<li><%= t(:analytics_desc_list_4)%></li>
|
37
|
+
<li><%= Spree.t(:analytics_desc_list_1)%></li>
|
38
|
+
<li><%= Spree.t(:analytics_desc_list_2)%></li>
|
39
|
+
<li><%= Spree.t(:analytics_desc_list_3)%></li>
|
40
|
+
<li><%= Spree.t(:analytics_desc_list_4)%></li>
|
41
41
|
</ul>
|
42
42
|
</div>
|
43
43
|
<div class="preview-buttons filter-actions actions">
|
44
|
-
<%= link_to_with_icon 'icon-ok', t(:activate), admin_analytics_sign_up_path, :class => 'button' %>
|
45
|
-
<span class="or"> <%= t(:or) %> </span>
|
46
|
-
<%= link_to_with_icon 'icon-info-sign', t(:learn_more), "http://spreecommerce.com/blog/2012/01/31/introducing-spree-analytics/", :class => 'button', :target => '_blank' %>
|
44
|
+
<%= link_to_with_icon 'icon-ok', Spree.t(:activate), admin_analytics_sign_up_path, :class => 'button' %>
|
45
|
+
<span class="or"> <%= Spree.t(:or) %> </span>
|
46
|
+
<%= link_to_with_icon 'icon-info-sign', Spree.t(:learn_more), "http://spreecommerce.com/blog/2012/01/31/introducing-spree-analytics/", :class => 'button', :target => '_blank' %>
|
47
47
|
</div>
|
48
48
|
</div>
|
49
49
|
|
data/config/routes.rb
CHANGED
data/lib/spree/dash.rb
CHANGED
metadata
CHANGED
@@ -1,48 +1,57 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spree_dash
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
5
|
-
prerelease:
|
4
|
+
version: 2.0.0.rc1
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Brian Quinn
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-
|
11
|
+
date: 2013-05-13 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
|
-
name:
|
14
|
+
name: spree_backend
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
17
|
- - '='
|
20
18
|
- !ruby/object:Gem::Version
|
21
|
-
version:
|
19
|
+
version: 2.0.0.rc1
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
24
|
- - '='
|
28
25
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
26
|
+
version: 2.0.0.rc1
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: spree_frontend
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 2.0.0.rc1
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 2.0.0.rc1
|
30
41
|
- !ruby/object:Gem::Dependency
|
31
42
|
name: httparty
|
32
43
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
44
|
requirements:
|
35
45
|
- - ~>
|
36
46
|
- !ruby/object:Gem::Version
|
37
|
-
version: 0.
|
47
|
+
version: 0.11.0
|
38
48
|
type: :runtime
|
39
49
|
prerelease: false
|
40
50
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
51
|
requirements:
|
43
52
|
- - ~>
|
44
53
|
- !ruby/object:Gem::Version
|
45
|
-
version: 0.
|
54
|
+
version: 0.11.0
|
46
55
|
description: Required dependency for Spree
|
47
56
|
email: brian@spreecommerce.com
|
48
57
|
executables: []
|
@@ -63,7 +72,6 @@ files:
|
|
63
72
|
- app/views/spree/admin/analytics/sign_up.html.erb
|
64
73
|
- app/views/spree/admin/overview/index.html.erb
|
65
74
|
- app/views/spree/analytics/_header.html.erb
|
66
|
-
- config/locales/en.yml
|
67
75
|
- config/routes.rb
|
68
76
|
- lib/spree/dash/engine.rb
|
69
77
|
- lib/spree/dash/jirafe.rb
|
@@ -72,30 +80,26 @@ files:
|
|
72
80
|
homepage: http://spreecommerce.com
|
73
81
|
licenses:
|
74
82
|
- BSD-3
|
83
|
+
metadata: {}
|
75
84
|
post_install_message:
|
76
85
|
rdoc_options: []
|
77
86
|
require_paths:
|
78
87
|
- lib
|
79
88
|
required_ruby_version: !ruby/object:Gem::Requirement
|
80
|
-
none: false
|
81
89
|
requirements:
|
82
90
|
- - ! '>='
|
83
91
|
- !ruby/object:Gem::Version
|
84
|
-
version: 1.
|
92
|
+
version: 1.9.3
|
85
93
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
86
|
-
none: false
|
87
94
|
requirements:
|
88
|
-
- - ! '
|
95
|
+
- - ! '>'
|
89
96
|
- !ruby/object:Gem::Version
|
90
|
-
version:
|
91
|
-
segments:
|
92
|
-
- 0
|
93
|
-
hash: 3356854868244981941
|
97
|
+
version: 1.3.1
|
94
98
|
requirements:
|
95
99
|
- none
|
96
100
|
rubyforge_project:
|
97
|
-
rubygems_version:
|
101
|
+
rubygems_version: 2.0.3
|
98
102
|
signing_key:
|
99
|
-
specification_version:
|
103
|
+
specification_version: 4
|
100
104
|
summary: Overview dashboard for use with Spree.
|
101
105
|
test_files: []
|
data/config/locales/en.yml
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
en:
|
2
|
-
agree_to_terms_of_service: Agree to Terms of Service
|
3
|
-
agree_to_privacy_policy: Agree to Privacy Policy
|
4
|
-
already_signed_up_for_analytics: You have already signed up for Spree Analytics
|
5
|
-
successfully_signed_up_for_analytics: Successfully signed up for Spree Analytics
|
6
|
-
analytics_desc_header_1: Spree Analytics
|
7
|
-
analytics_desc_header_2: Live analytics integrated into your Spree dashboard
|
8
|
-
analytics_desc_list_1: Get live sales information as it happens
|
9
|
-
analytics_desc_list_2: Requires only a free Spree account to activate
|
10
|
-
analytics_desc_list_3: Absolutely no code to install
|
11
|
-
analytics_desc_list_4: It's completely free!
|
12
|
-
|
13
|
-
could_not_connect_to_jirafe: Could not connect to Jirafe to sync data. This will be automatically retried later.
|
14
|
-
|
15
|
-
spree:
|
16
|
-
dash:
|
17
|
-
jirafe:
|
18
|
-
header: Jirafe Analytics Settings
|
19
|
-
app_id: App ID
|
20
|
-
app_token: App Token
|
21
|
-
site_id: Site ID
|
22
|
-
token: Token
|
23
|
-
explanation: The fields below may already be populated if you chose to register with Jirafe from the admin dashboard.
|
24
|
-
jirafe_settings_updated: Jirafe Settings have been updated.
|