meerstats_rails 1.0.0 → 1.0.1

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: 5f4cf94d377f9cbe7f57b695851b18a108478138
4
- data.tar.gz: fd38dc89c9e1304ecef20837908bdf5685e13044
3
+ metadata.gz: a3b46e6e564721494d407065c3e87d6e733f4506
4
+ data.tar.gz: d7e6b9ce38b2c64aa6c80eca264ed82bdd67a26f
5
5
  SHA512:
6
- metadata.gz: cbc2d599c7321955d46449b8a46c45221dc5de32af2510a3c135a6ba1fa6944fa46e8bc6b753b1010fcff824352e138b069990e35c1f1246bbc4d5d40acd683f
7
- data.tar.gz: fbfc5feb0980bafca7435b7479fbb1855c4cd49ef3719c45f083c08e696bbfdfed717ea70bba430cfaf3ba7caea8d494371ae0cc5d711916f5e34a6dd15d4cbd
6
+ metadata.gz: 3b75256ae2904eb2117fc4f0b91adddfe15a634833af8fd47c8371e62bbdf831513d174c5ec6c641c7edcb74d1eeca59287df7c5b4bd1119d0b6e5d869e7a8f6
7
+ data.tar.gz: 935dc016ef1bfe90a80059bd61feef247b2fb22680197e2fa99aaeaa4d0d8a4c2694e0edcc83540ce2ddada2a452d43ea388f0da0d92b1ea505bb329843f6cd8
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # meerstats for Rails
2
2
 
3
- [meerstats](https://www.meerstats.io) helps you stop bugs in their tracks. We provide an easy way to gain insight into your data and notify you if we see problems.
3
+ [meerstats](https://www.meerstats.com) helps you stop bugs in their tracks. We provide an easy way to gain insight into your data and notify you if we see problems.
4
4
 
5
5
  This gem allows your Rails application to freely provide pre-configured daily data to meerstats. It does this by mounting a set of protected API endpoints in your app. Only meerstats can access these endpoints.
6
6
 
data/lib/meerstats.rb CHANGED
@@ -39,7 +39,5 @@ module Meerstats
39
39
  def self.statistics_for(name, days_ago: 1)
40
40
  metric = metrics.find { |m| m.name == name.to_sym }
41
41
  metric.compute(days_ago: days_ago)
42
- rescue
43
- nil
44
42
  end
45
43
  end
@@ -22,6 +22,8 @@ module Meerstats
22
22
  end
23
23
 
24
24
  computed_scope.count
25
+ rescue
26
+ 0
25
27
  end
26
28
  end
27
29
  end
@@ -1,3 +1,3 @@
1
1
  module Meerstats
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.1'
3
3
  end
@@ -2481,3 +2481,117 @@ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2481
2481
   (0.0ms) rollback transaction
2482
2482
   (0.0ms) begin transaction
2483
2483
   (0.0ms) rollback transaction
2484
+  (0.0ms) begin transaction
2485
+ Started GET "/meerstats/api/health_check?access_token=1234" for 127.0.0.1 at 2017-12-01 12:11:20 -0500
2486
+ Processing by Meerstats::Api::HealthCheckController#index as HTML
2487
+ Parameters: {"access_token"=>"1234"}
2488
+ Filter chain halted as :verify_access_token rendered or redirected
2489
+ Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
2490
+  (0.1ms) rollback transaction
2491
+  (0.0ms) begin transaction
2492
+ Started GET "/meerstats/api/health_check?access_token=1234" for 127.0.0.1 at 2017-12-01 12:11:20 -0500
2493
+ Processing by Meerstats::Api::HealthCheckController#index as HTML
2494
+ Parameters: {"access_token"=>"1234"}
2495
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2496
+  (0.0ms) rollback transaction
2497
+  (0.0ms) begin transaction
2498
+ Started GET "/meerstats/api/metrics?access_token=1234" for 127.0.0.1 at 2017-12-01 12:11:20 -0500
2499
+ Processing by Meerstats::Api::MetricsController#index as HTML
2500
+ Parameters: {"access_token"=>"1234"}
2501
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2502
+  (0.0ms) rollback transaction
2503
+  (0.0ms) begin transaction
2504
+ Started GET "/meerstats/api/metrics?access_token=1234" for 127.0.0.1 at 2017-12-01 12:11:20 -0500
2505
+ Processing by Meerstats::Api::MetricsController#index as HTML
2506
+ Parameters: {"access_token"=>"1234"}
2507
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2508
+  (0.1ms) rollback transaction
2509
+  (0.0ms) begin transaction
2510
+ Started GET "/meerstats/api/metrics?access_token=1234" for 127.0.0.1 at 2017-12-01 12:11:20 -0500
2511
+ Processing by Meerstats::Api::MetricsController#index as HTML
2512
+ Parameters: {"access_token"=>"1234"}
2513
+ Filter chain halted as :verify_access_token rendered or redirected
2514
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2515
+  (0.0ms) rollback transaction
2516
+  (0.0ms) begin transaction
2517
+ Started GET "/meerstats/api/statistics/orders?access_token=1234" for 127.0.0.1 at 2017-12-01 12:11:20 -0500
2518
+ Processing by Meerstats::Api::StatisticsController#show as HTML
2519
+ Parameters: {"access_token"=>"1234", "id"=>"orders"}
2520
+ Filter chain halted as :verify_access_token rendered or redirected
2521
+ Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
2522
+  (0.0ms) rollback transaction
2523
+  (0.0ms) begin transaction
2524
+ Started GET "/meerstats/api/statistics/orders?access_token=1234" for 127.0.0.1 at 2017-12-01 12:11:20 -0500
2525
+ Processing by Meerstats::Api::StatisticsController#show as HTML
2526
+ Parameters: {"access_token"=>"1234", "id"=>"orders"}
2527
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
2528
+  (0.1ms) rollback transaction
2529
+  (0.0ms) begin transaction
2530
+ Started GET "/meerstats/api/statistics/orders?access_token=1234" for 127.0.0.1 at 2017-12-01 12:11:20 -0500
2531
+ Processing by Meerstats::Api::StatisticsController#show as HTML
2532
+ Parameters: {"access_token"=>"1234", "id"=>"orders"}
2533
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2534
+  (0.0ms) rollback transaction
2535
+  (0.0ms) begin transaction
2536
+  (0.0ms) rollback transaction
2537
+  (0.0ms) begin transaction
2538
+  (0.0ms) rollback transaction
2539
+  (0.0ms) begin transaction
2540
+  (0.0ms) rollback transaction
2541
+  (0.0ms) begin transaction
2542
+ Started GET "/meerstats/api/health_check?access_token=1234" for 127.0.0.1 at 2017-12-01 12:12:16 -0500
2543
+ Processing by Meerstats::Api::HealthCheckController#index as HTML
2544
+ Parameters: {"access_token"=>"1234"}
2545
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
2546
+  (0.1ms) rollback transaction
2547
+  (0.0ms) begin transaction
2548
+ Started GET "/meerstats/api/health_check?access_token=1234" for 127.0.0.1 at 2017-12-01 12:12:16 -0500
2549
+ Processing by Meerstats::Api::HealthCheckController#index as HTML
2550
+ Parameters: {"access_token"=>"1234"}
2551
+ Filter chain halted as :verify_access_token rendered or redirected
2552
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2553
+  (0.0ms) rollback transaction
2554
+  (0.0ms) begin transaction
2555
+ Started GET "/meerstats/api/statistics/orders?access_token=1234" for 127.0.0.1 at 2017-12-01 12:12:16 -0500
2556
+ Processing by Meerstats::Api::StatisticsController#show as HTML
2557
+ Parameters: {"access_token"=>"1234", "id"=>"orders"}
2558
+ Filter chain halted as :verify_access_token rendered or redirected
2559
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2560
+  (0.1ms) rollback transaction
2561
+  (0.0ms) begin transaction
2562
+ Started GET "/meerstats/api/statistics/orders?access_token=1234" for 127.0.0.1 at 2017-12-01 12:12:16 -0500
2563
+ Processing by Meerstats::Api::StatisticsController#show as HTML
2564
+ Parameters: {"access_token"=>"1234", "id"=>"orders"}
2565
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2566
+  (0.0ms) rollback transaction
2567
+  (0.0ms) begin transaction
2568
+ Started GET "/meerstats/api/statistics/orders?access_token=1234" for 127.0.0.1 at 2017-12-01 12:12:16 -0500
2569
+ Processing by Meerstats::Api::StatisticsController#show as HTML
2570
+ Parameters: {"access_token"=>"1234", "id"=>"orders"}
2571
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2572
+  (0.0ms) rollback transaction
2573
+  (0.1ms) begin transaction
2574
+  (0.0ms) rollback transaction
2575
+  (0.0ms) begin transaction
2576
+ Started GET "/meerstats/api/metrics?access_token=1234" for 127.0.0.1 at 2017-12-01 12:12:16 -0500
2577
+ Processing by Meerstats::Api::MetricsController#index as HTML
2578
+ Parameters: {"access_token"=>"1234"}
2579
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
2580
+  (0.0ms) rollback transaction
2581
+  (0.0ms) begin transaction
2582
+ Started GET "/meerstats/api/metrics?access_token=1234" for 127.0.0.1 at 2017-12-01 12:12:16 -0500
2583
+ Processing by Meerstats::Api::MetricsController#index as HTML
2584
+ Parameters: {"access_token"=>"1234"}
2585
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2586
+  (0.0ms) rollback transaction
2587
+  (0.0ms) begin transaction
2588
+ Started GET "/meerstats/api/metrics?access_token=1234" for 127.0.0.1 at 2017-12-01 12:12:16 -0500
2589
+ Processing by Meerstats::Api::MetricsController#index as HTML
2590
+ Parameters: {"access_token"=>"1234"}
2591
+ Filter chain halted as :verify_access_token rendered or redirected
2592
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2593
+  (0.0ms) rollback transaction
2594
+  (0.0ms) begin transaction
2595
+  (0.0ms) rollback transaction
2596
+  (0.0ms) begin transaction
2597
+  (0.0ms) rollback transaction
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: meerstats_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - meerstats
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-22 00:00:00.000000000 Z
11
+ date: 2017-12-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails