spree_dash 0.40.4 → 0.50.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +12 -1
- data/app/controllers/admin/overview_controller.rb +1 -1
- metadata +13 -11
data/README.md
CHANGED
@@ -1,3 +1,14 @@
|
|
1
1
|
= Overview Dashboard
|
2
2
|
|
3
|
-
Core extension to display basic graphs and charts on store activity. Can be deleted if you don't require the dashboard.
|
3
|
+
Core extension to display basic graphs and charts on store activity. Can be deleted if you don't require the dashboard.
|
4
|
+
|
5
|
+
Running Tests
|
6
|
+
-------------
|
7
|
+
|
8
|
+
You need to do a quick one-time creation of a test application and then you can use it to run the tests.
|
9
|
+
|
10
|
+
rake test_app
|
11
|
+
|
12
|
+
Then run the tests
|
13
|
+
|
14
|
+
rake spec
|
@@ -30,7 +30,7 @@ class Admin::OverviewController < Admin::BaseController
|
|
30
30
|
when "7_days" then {:from => (Time.new().to_date - 1.week).to_s(:db)}
|
31
31
|
when "14_days" then {:from => (Time.new().to_date - 2.week).to_s(:db)}
|
32
32
|
when "this_month" then {:from => Date.new(Time.now.year, Time.now.month, 1).to_s(:db), :to => Date.new(Time.now.year, Time.now.month, -1).to_s(:db)}
|
33
|
-
when "last_month" then {:from => Date.new(Time.now.year, Time.now.month - 1
|
33
|
+
when "last_month" then {:from => (Date.new(Time.now.year, Time.now.month, 1) - 1.month).to_s(:db), :to => (Date.new(Time.now.year, Time.now.month, -1) - 1.month).to_s(:db)}
|
34
34
|
when "this_year" then {:from => Date.new(Time.now.year, 1, 1).to_s(:db)}
|
35
35
|
when "last_year" then {:from => Date.new(Time.now.year - 1, 1, 1).to_s(:db), :to => Date.new(Time.now.year - 1, 12, -1).to_s(:db)}
|
36
36
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spree_dash
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 215
|
5
|
+
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 0.
|
8
|
+
- 50
|
9
|
+
- 0
|
10
|
+
version: 0.50.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Brian Quinn
|
@@ -15,7 +15,8 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-03-23 00:00:00 -04:00
|
19
|
+
default_executable:
|
19
20
|
dependencies:
|
20
21
|
- !ruby/object:Gem::Dependency
|
21
22
|
name: spree_core
|
@@ -25,12 +26,12 @@ dependencies:
|
|
25
26
|
requirements:
|
26
27
|
- - "="
|
27
28
|
- !ruby/object:Gem::Version
|
28
|
-
hash:
|
29
|
+
hash: 215
|
29
30
|
segments:
|
30
31
|
- 0
|
31
|
-
-
|
32
|
-
-
|
33
|
-
version: 0.
|
32
|
+
- 50
|
33
|
+
- 0
|
34
|
+
version: 0.50.0
|
34
35
|
type: :runtime
|
35
36
|
version_requirements: *id001
|
36
37
|
description: Required dependancy for Spree
|
@@ -60,6 +61,7 @@ files:
|
|
60
61
|
- public/javascripts/jqPlot/plugins/jqplot.highlighter.min.js
|
61
62
|
- public/javascripts/jqPlot/plugins/jqplot.pieRenderer.min.js
|
62
63
|
- public/stylesheets/admin/dashboard.css
|
64
|
+
has_rdoc: true
|
63
65
|
homepage: http://spreecommerce.com
|
64
66
|
licenses: []
|
65
67
|
|
@@ -91,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
91
93
|
requirements:
|
92
94
|
- none
|
93
95
|
rubyforge_project: spree_dash
|
94
|
-
rubygems_version: 1.
|
96
|
+
rubygems_version: 1.3.7
|
95
97
|
signing_key:
|
96
98
|
specification_version: 3
|
97
99
|
summary: Overview dashboard for use with Spree.
|