rails_admin_charts 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f444ae433553f3c47a6c02a37380650b9c5b29ad
4
- data.tar.gz: 1558ae1ec677ddd9736d5650d6c410b02ce2d1d5
3
+ metadata.gz: b28b8fbaf851df79c1604a3f40a24e4ffaf48d41
4
+ data.tar.gz: 255aa1901b9e512687cb6ffd64a52ea4fc6c6e14
5
5
  SHA512:
6
- metadata.gz: 05be359513ee792a1904f75d7595fa7519b0a424296703c89ca15b62d6355f546e7c98ba4bd5f8810f82bbe956ead4745cd748ac31b028d41f8d1bf585ec5b06
7
- data.tar.gz: b561e8ccb2f9a1146262edf4efe5238aa53d43fdf1271063fdf0c07afaf79213bfe146a508f9be7692b00aeca3df919888ce49249133691e390657e4f1d2ecea
6
+ metadata.gz: 95ac7d2558a29b62c0b266a88ddda3c63198886d9b9a426a7aab31bbac6f90b234c9a5da030ab6915ec52f4c62dc5800c9d29297172532ea6a7255703f2d858a
7
+ data.tar.gz: b724050ff76a749ef8d4ff49494dcf431c8f451232ced56849eab1e95485d254c6975b8a91673ad28c5a14ee50172d03e2cb8c04fcb48bb1db1bb1b7b905d6ee
data/README.md CHANGED
@@ -36,16 +36,16 @@ The data displayed in the chart can be altered by overriding the class method `g
36
36
  name: 'Admin Users',
37
37
  pointInterval: point_interval = 1.day * 1000,
38
38
  pointStart: start_point = since.to_i * 1000,
39
- data: self.where(user_type: 'Admin').delta_records_since(since)
39
+ data: self.where(type: 'Admin').delta_records_since(since)
40
40
  },
41
41
  {
42
42
  name: 'Standard Users',
43
43
  pointInterval: point_interval,
44
44
  pointStart: start_point,
45
- data: self.where(user_type: nil).delta_records_since(since)
45
+ data: self.where(type: nil).delta_records_since(since)
46
46
  }
47
47
  ]
48
48
  end
49
49
  ```
50
50
 
51
- This project uses MIT-LICENSE.
51
+ This project uses MIT-LICENSE.
@@ -20,7 +20,7 @@ module RailsAdminCharts
20
20
  def graph_data since=30.days.ago
21
21
  [
22
22
  {
23
- name: model_name.pluralize,
23
+ name: model_name.plural,
24
24
  pointInterval: 1.day * 1000,
25
25
  pointStart: since.to_i * 1000,
26
26
  data: self.total_records_since(since)
@@ -30,4 +30,4 @@ module RailsAdminCharts
30
30
  end
31
31
  end
32
32
 
33
- require 'rails_admin_charts/rails_admin/config/actions/charts'
33
+ require 'rails_admin_charts/rails_admin/config/actions/charts'
@@ -1,3 +1,3 @@
1
1
  module RailsAdminCharts
2
- VERSION = '0.0.6'
2
+ VERSION = '0.0.7'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_admin_charts
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Geraghty
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-28 00:00:00.000000000 Z
11
+ date: 2013-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -73,7 +73,8 @@ files:
73
73
  - Rakefile
74
74
  - README.md
75
75
  homepage: https://github.com/pgeraghty/rails_admin_charts
76
- licenses: []
76
+ licenses:
77
+ - MIT
77
78
  metadata: {}
78
79
  post_install_message:
79
80
  rdoc_options: []