snapstats 0.0.9 → 0.0.10

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cadf96e9d412ebab79f9543269216ab4b51e06b0
4
- data.tar.gz: 4b0502cf74bdd9a87ca7636c77c3d1f6fb16a289
3
+ metadata.gz: c97b023730b677411870842445c8ff7506d0fd8f
4
+ data.tar.gz: ca1186c43f3e6aa929ac3d7d9ce793cc62f7bff9
5
5
  SHA512:
6
- metadata.gz: bd53d25f8516fa174181568cfb667da568153e0bd2acaa2362c61c6b86d9886aa2cba264fb58c43eecb6b10d14be4cc3b3edf271515b1ba1fbb9e3732b47b418
7
- data.tar.gz: 6a332538ac8b45b71864b034c5bc58c0dcdcb1d94c54d1c13492ee9778b981e8a967f412a9b288480b2646b35f83d66ed53c956447059ca1cba7bc67ad1d0770
6
+ metadata.gz: 8ce1bd83b3435c9b6d079b88eb059552dd3bcaeeed66ed7000f40d1520179be7d0ee629b51eb754240b4658787d61f4d73c29948478d5bf054964e07fef06e91
7
+ data.tar.gz: 09e16b22d6f0e19e5cd32e01cb142ec91d6acbbc9c834bdf90cda496c8e6be601605b0eca14df85cb5d84cc0a1ece3f9d9441a54425e7edba02aa9fec8df3139
@@ -61,9 +61,12 @@ $(document).ready(function () {
61
61
  x_extended_ticks: true,
62
62
  x_accessor: "date",
63
63
  y_accessor: "value",
64
- // y_scale_type:'log',
64
+ y_scale_type:'log',
65
65
  interpolate: "linear"
66
66
  });
67
+
68
+ $('.loader').hide();
69
+ $('.chart-performance').addClass('animated fadeIn');
67
70
  });
68
71
 
69
72
  },
@@ -13,6 +13,7 @@
13
13
  <div class="panel-body">
14
14
  <div class="chart-performance"></div>
15
15
  <div class="legend pull-right">&nbsp;</div>
16
+ <div class="loader center-block animated rotateIn">loading</div>
16
17
  </div>
17
18
 
18
19
  </div>
@@ -93,12 +93,12 @@ module Snapstats
93
93
 
94
94
  def self.fetch_platforms
95
95
  data = Snapstats.redis.hgetall(Snapstats.mday("platforms")).values.group_by{ |platform| platform }.map{ |name, platforms|{name => platforms.count} }
96
- data.map{|i| self.new(name: i.keys.try(:first), total: i.values.try(:first)) }
96
+ data.map{|i| self.new(name: (i.keys.try(:first).present? ? i.keys.try(:first) : 'Other'), total: i.values.try(:first)) }
97
97
  end
98
98
 
99
99
  def self.fetch_browsers
100
100
  data = Snapstats.redis.hgetall(Snapstats.mday("browsers")).values.group_by{ |browser| browser }.map{ |name, browsers|{ name => browsers.count} }
101
- data.map{|i| self.new(name: i.keys.try(:first), total: (i.values.try(:first).present? ? i.values.try(:first) : 'Other') ) }
101
+ data.map{|i| self.new(name: i.keys.try(:first), total: i.values.try(:first) ) }
102
102
  end
103
103
  end
104
104
 
@@ -1,3 +1,3 @@
1
1
  module Snapstats
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snapstats
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - s3k
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-19 00:00:00.000000000 Z
11
+ date: 2015-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails