graph_decorator 0.1.6 → 0.1.7

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: 48ecbd0a108113c2994f8859456260b7334a8227
4
- data.tar.gz: 799d902862950c8fb6e61644818ab98efb9461ae
3
+ metadata.gz: c94e2dad70fdf02c5dd17c53f52ca43f00cd99f0
4
+ data.tar.gz: c6da0262d5994d234c7b4ddb5769c074ba17f1c0
5
5
  SHA512:
6
- metadata.gz: 24c1cc32e363c3b7d2fce7bb6ce3128413d6332304da4265ebb4b879d3d21209dd9db8adf24dd0386eb2396dba2d3f45976b37b4b6c1a6a6b31efe9ad5551ff6
7
- data.tar.gz: 2690a7f4c35c2c853b34e38f46831d5b25f3ddf64ba841beb0d35dd94bbe5c102ae5f29ba84f78e2d572d4cb63b4e55ba8e7787936e3b003c587a521a8225b65
6
+ metadata.gz: 0ec4f69e722e84789a74108798032ef7f1d5410cb0700e8758c8878799089c9237a92d3a3f2e5a3be47ad7cefbc7eda4b6cd1ebbe8039a3e693f0a39bb4b7ef5
7
+ data.tar.gz: 84a4e02369d17be1a0325264b8e0737138b86fef037de5ede4a630abf9bee49b0e670f0084557ca2911b0c60afe30ad479b8024fc5fb506ce2c741464bf2e881
@@ -224,18 +224,18 @@ class ReturningCustomers < GraphDecoration
224
224
  @y_name_1 = "New Cusomtomers"
225
225
  @y_name_2 = "Frequent Customers"
226
226
  @y_name_3 = "Total no of sign in count in this website"
227
- @sum_new = 0
228
- @sum_old = 0
227
+ @cust_new = 0
228
+ @customer_return = 0
229
229
  @new_customer_count = Member.select("sign_in_count").group_by{|o| o.sign_in_count}.keys
230
230
  @new_customer_count.each do |cust|
231
231
  if cust > 3
232
- @sum_old+=1
232
+ @customer_return += 1
233
233
  else
234
- @sum_new+=1
234
+ @cust_new += 1
235
235
  end
236
236
  end
237
- @y_data_1 = @sum_new
238
- @y_data_2 = @sum_old
237
+ @y_data_1 = @cust_new
238
+ @y_data_2 = @customer_return
239
239
  @x_name = ['new customer', 'old customer']
240
240
  @y_data_3 = Member.sum("sign_in_count")
241
241
 
@@ -1,3 +1,3 @@
1
1
  module GraphDecorator
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graph_decorator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kishore Kumar
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-04-17 00:00:00.000000000 Z
11
+ date: 2017-04-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler