meerstats_rails 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +52 -0
  4. data/Rakefile +32 -0
  5. data/app/controllers/meerstats/api/health_check_controller.rb +7 -0
  6. data/app/controllers/meerstats/api/metrics_controller.rb +7 -0
  7. data/app/controllers/meerstats/api/statistics_controller.rb +7 -0
  8. data/app/controllers/meerstats/api_controller.rb +12 -0
  9. data/bin/meerstats +5 -0
  10. data/config/routes.rb +7 -0
  11. data/lib/meerstats/configuration.rb +5 -0
  12. data/lib/meerstats/engine.rb +18 -0
  13. data/lib/meerstats/installer.rb +24 -0
  14. data/lib/meerstats/lazy_metric.rb +27 -0
  15. data/lib/meerstats/runner.rb +12 -0
  16. data/lib/meerstats/version.rb +3 -0
  17. data/lib/meerstats.rb +45 -0
  18. data/spec/configuration_spec.rb +26 -0
  19. data/spec/dummy/Rakefile +6 -0
  20. data/spec/dummy/app/assets/javascripts/application.js +13 -0
  21. data/spec/dummy/app/assets/javascripts/cable.js +13 -0
  22. data/spec/dummy/app/assets/stylesheets/application.css +15 -0
  23. data/spec/dummy/app/channels/application_cable/channel.rb +4 -0
  24. data/spec/dummy/app/channels/application_cable/connection.rb +4 -0
  25. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  26. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  27. data/spec/dummy/app/jobs/application_job.rb +2 -0
  28. data/spec/dummy/app/mailers/application_mailer.rb +4 -0
  29. data/spec/dummy/app/models/application_record.rb +3 -0
  30. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  31. data/spec/dummy/app/views/layouts/mailer.html.erb +13 -0
  32. data/spec/dummy/app/views/layouts/mailer.text.erb +1 -0
  33. data/spec/dummy/bin/bundle +3 -0
  34. data/spec/dummy/bin/rails +3 -0
  35. data/spec/dummy/bin/rake +4 -0
  36. data/spec/dummy/bin/setup +38 -0
  37. data/spec/dummy/bin/update +29 -0
  38. data/spec/dummy/bin/yarn +11 -0
  39. data/spec/dummy/config/application.rb +18 -0
  40. data/spec/dummy/config/boot.rb +5 -0
  41. data/spec/dummy/config/cable.yml +10 -0
  42. data/spec/dummy/config/database.yml +25 -0
  43. data/spec/dummy/config/environment.rb +5 -0
  44. data/spec/dummy/config/environments/development.rb +54 -0
  45. data/spec/dummy/config/environments/production.rb +91 -0
  46. data/spec/dummy/config/environments/test.rb +42 -0
  47. data/spec/dummy/config/initializers/application_controller_renderer.rb +6 -0
  48. data/spec/dummy/config/initializers/assets.rb +14 -0
  49. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  50. data/spec/dummy/config/initializers/cookies_serializer.rb +5 -0
  51. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  52. data/spec/dummy/config/initializers/inflections.rb +16 -0
  53. data/spec/dummy/config/initializers/mime_types.rb +4 -0
  54. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  55. data/spec/dummy/config/locales/en.yml +33 -0
  56. data/spec/dummy/config/puma.rb +56 -0
  57. data/spec/dummy/config/routes.rb +2 -0
  58. data/spec/dummy/config/secrets.yml +32 -0
  59. data/spec/dummy/config/spring.rb +6 -0
  60. data/spec/dummy/config.ru +5 -0
  61. data/spec/dummy/db/development.sqlite3 +0 -0
  62. data/spec/dummy/db/schema.rb +15 -0
  63. data/spec/dummy/db/test.sqlite3 +0 -0
  64. data/spec/dummy/log/development.log +8 -0
  65. data/spec/dummy/log/test.log +2483 -0
  66. data/spec/dummy/package.json +5 -0
  67. data/spec/dummy/public/404.html +67 -0
  68. data/spec/dummy/public/422.html +67 -0
  69. data/spec/dummy/public/500.html +66 -0
  70. data/spec/dummy/public/apple-touch-icon-precomposed.png +0 -0
  71. data/spec/dummy/public/apple-touch-icon.png +0 -0
  72. data/spec/dummy/public/favicon.ico +0 -0
  73. data/spec/installer_spec.rb +19 -0
  74. data/spec/requests/api/health_check_spec.rb +27 -0
  75. data/spec/requests/api/metrics_spec.rb +39 -0
  76. data/spec/requests/api/statistics_spec.rb +52 -0
  77. data/spec/spec_helper.rb +23 -0
  78. data/spec/support/stub_access_token.rb +17 -0
  79. metadata +253 -0
@@ -0,0 +1,5 @@
1
+ {
2
+ "name": "dummy",
3
+ "private": true,
4
+ "dependencies": {}
5
+ }
@@ -0,0 +1,67 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ .rails-default-error-page {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ .rails-default-error-page div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ .rails-default-error-page div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ .rails-default-error-page h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ .rails-default-error-page div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body class="rails-default-error-page">
58
+ <!-- This file lives in public/404.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>The page you were looking for doesn't exist.</h1>
62
+ <p>You may have mistyped the address or the page may have moved.</p>
63
+ </div>
64
+ <p>If you are the application owner check the logs for more information.</p>
65
+ </div>
66
+ </body>
67
+ </html>
@@ -0,0 +1,67 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ .rails-default-error-page {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ .rails-default-error-page div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ .rails-default-error-page div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ .rails-default-error-page h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ .rails-default-error-page div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body class="rails-default-error-page">
58
+ <!-- This file lives in public/422.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>The change you wanted was rejected.</h1>
62
+ <p>Maybe you tried to change something you didn't have access to.</p>
63
+ </div>
64
+ <p>If you are the application owner check the logs for more information.</p>
65
+ </div>
66
+ </body>
67
+ </html>
@@ -0,0 +1,66 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ .rails-default-error-page {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ .rails-default-error-page div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ .rails-default-error-page div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ .rails-default-error-page h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ .rails-default-error-page div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body class="rails-default-error-page">
58
+ <!-- This file lives in public/500.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>We're sorry, but something went wrong.</h1>
62
+ </div>
63
+ <p>If you are the application owner check the logs for more information.</p>
64
+ </div>
65
+ </body>
66
+ </html>
File without changes
File without changes
@@ -0,0 +1,19 @@
1
+ require "spec_helper"
2
+
3
+ module Meerstats
4
+ describe Installer do
5
+ subject { described_class.perform }
6
+
7
+ let(:file_path) { Rails.root.join('config', 'initializers', 'meerstats.rb') }
8
+
9
+ after do
10
+ File.delete(file_path)
11
+ end
12
+
13
+ it "creates config file" do
14
+ expect(File.exists?(file_path)).to eq(false)
15
+ subject
16
+ expect(File.exists?(file_path)).to eq(true)
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,27 @@
1
+ require "spec_helper"
2
+
3
+ RSpec.describe "Health check", type: :request do
4
+ subject do
5
+ get '/meerstats/api/health_check', params: { access_token: token }
6
+ end
7
+
8
+ let(:token) { '1234' }
9
+
10
+ context 'when API token is correct' do
11
+ stub_access_token!('1234')
12
+
13
+ it 'returns success' do
14
+ subject
15
+ expect(response).to have_http_status(200)
16
+ end
17
+ end
18
+
19
+ context 'when API token is missing or incorrect' do
20
+ stub_access_token!('4321')
21
+
22
+ it 'returns failure' do
23
+ subject
24
+ expect(response).to have_http_status(401)
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,39 @@
1
+ require "spec_helper"
2
+
3
+ RSpec.describe "Metrics", type: :request do
4
+ subject do
5
+ get '/meerstats/api/metrics', params: { access_token: token }
6
+ end
7
+
8
+ before do
9
+ Meerstats.add_daily :users, scope: -> { User }
10
+ Meerstats.add_daily :yesterdays_orders, scope: -> { Order.for_yesterday }
11
+ end
12
+
13
+ let(:token) { '1234' }
14
+
15
+ context 'when API token is correct' do
16
+ stub_access_token!('1234')
17
+
18
+ let(:body) { JSON.parse(response.body) }
19
+
20
+ it 'returns success' do
21
+ subject
22
+ expect(response).to have_http_status(200)
23
+ end
24
+
25
+ it 'includes array of metrics' do
26
+ subject
27
+ expect(body["metrics"]).to eq([['users', 'daily'], ['yesterdays_orders', 'daily']])
28
+ end
29
+ end
30
+
31
+ context 'when API token is missing or incorrect' do
32
+ stub_access_token!('4321')
33
+
34
+ it 'returns failure' do
35
+ subject
36
+ expect(response).to have_http_status(401)
37
+ end
38
+ end
39
+ end
@@ -0,0 +1,52 @@
1
+ require "spec_helper"
2
+
3
+ RSpec.describe "Statistics", type: :request do
4
+ class User; end
5
+ class Order; end
6
+
7
+ subject do
8
+ get "/meerstats/api/statistics/#{stat_name}", params: { access_token: token }
9
+ end
10
+
11
+ let(:stat_name) { "orders" }
12
+
13
+ before do
14
+ Meerstats.add :daily_users, scope: -> { User }
15
+ Meerstats.add :orders, scope: -> { Order }
16
+ Meerstats.add :total_users, scope: -> { User }, type: 'cumulative'
17
+
18
+ allow(User).to receive(:where).
19
+ and_return double("Relation", count: 10)
20
+ allow(Order).to receive(:where).
21
+ and_return double("Relation", count: 15)
22
+ end
23
+
24
+ let(:token) { '1234' }
25
+
26
+ context 'when API token is correct' do
27
+ stub_access_token!('1234')
28
+
29
+ let(:body) { JSON.parse(response.body) }
30
+
31
+ let(:stat_name) { "orders" }
32
+
33
+ it 'returns success' do
34
+ subject
35
+ expect(response).to have_http_status(200)
36
+ end
37
+
38
+ it 'returns value' do
39
+ subject
40
+ expect(body["count"]).to eq(15)
41
+ end
42
+ end
43
+
44
+ context 'when API token is missing or incorrect' do
45
+ stub_access_token!('4321')
46
+
47
+ it 'returns failure' do
48
+ subject
49
+ expect(response).to have_http_status(401)
50
+ end
51
+ end
52
+ end
@@ -0,0 +1,23 @@
1
+ ENV['RAILS_ENV'] ||= 'test'
2
+
3
+ require File.expand_path("../dummy/config/environment.rb", __FILE__)
4
+ require 'rspec/rails'
5
+ require 'pry'
6
+
7
+ Rails.backtrace_cleaner.remove_silencers!
8
+
9
+ # Load support files
10
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
11
+
12
+ RSpec.configure do |config|
13
+ config.include Meerstats::StubAccessToken
14
+
15
+ config.mock_with :rspec
16
+ config.use_transactional_fixtures = true
17
+ config.infer_base_class_for_anonymous_controllers = false
18
+ config.order = "random"
19
+
20
+ config.before(:each) do
21
+ Meerstats.metrics.clear
22
+ end
23
+ end
@@ -0,0 +1,17 @@
1
+ module Meerstats
2
+ module StubAccessToken
3
+ module ClassMethods
4
+ def stub_access_token!(token)
5
+ before do
6
+ Meerstats.configure do |config|
7
+ config.access_token = token
8
+ end
9
+ end
10
+ end
11
+ end
12
+
13
+ def self.included(receiver)
14
+ receiver.extend ClassMethods
15
+ end
16
+ end
17
+ end
metadata ADDED
@@ -0,0 +1,253 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: meerstats_rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - meerstats
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-11-22 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: sqlite3
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec-rails
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: capybara
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: pry
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ description: Mountable engine for Rails to provide application data to meerstats.
84
+ email:
85
+ - chuck@meerstats.com
86
+ executables:
87
+ - meerstats
88
+ extensions: []
89
+ extra_rdoc_files: []
90
+ files:
91
+ - MIT-LICENSE
92
+ - README.md
93
+ - Rakefile
94
+ - app/controllers/meerstats/api/health_check_controller.rb
95
+ - app/controllers/meerstats/api/metrics_controller.rb
96
+ - app/controllers/meerstats/api/statistics_controller.rb
97
+ - app/controllers/meerstats/api_controller.rb
98
+ - bin/meerstats
99
+ - config/routes.rb
100
+ - lib/meerstats.rb
101
+ - lib/meerstats/configuration.rb
102
+ - lib/meerstats/engine.rb
103
+ - lib/meerstats/installer.rb
104
+ - lib/meerstats/lazy_metric.rb
105
+ - lib/meerstats/runner.rb
106
+ - lib/meerstats/version.rb
107
+ - spec/configuration_spec.rb
108
+ - spec/dummy/Rakefile
109
+ - spec/dummy/app/assets/javascripts/application.js
110
+ - spec/dummy/app/assets/javascripts/cable.js
111
+ - spec/dummy/app/assets/stylesheets/application.css
112
+ - spec/dummy/app/channels/application_cable/channel.rb
113
+ - spec/dummy/app/channels/application_cable/connection.rb
114
+ - spec/dummy/app/controllers/application_controller.rb
115
+ - spec/dummy/app/helpers/application_helper.rb
116
+ - spec/dummy/app/jobs/application_job.rb
117
+ - spec/dummy/app/mailers/application_mailer.rb
118
+ - spec/dummy/app/models/application_record.rb
119
+ - spec/dummy/app/views/layouts/application.html.erb
120
+ - spec/dummy/app/views/layouts/mailer.html.erb
121
+ - spec/dummy/app/views/layouts/mailer.text.erb
122
+ - spec/dummy/bin/bundle
123
+ - spec/dummy/bin/rails
124
+ - spec/dummy/bin/rake
125
+ - spec/dummy/bin/setup
126
+ - spec/dummy/bin/update
127
+ - spec/dummy/bin/yarn
128
+ - spec/dummy/config.ru
129
+ - spec/dummy/config/application.rb
130
+ - spec/dummy/config/boot.rb
131
+ - spec/dummy/config/cable.yml
132
+ - spec/dummy/config/database.yml
133
+ - spec/dummy/config/environment.rb
134
+ - spec/dummy/config/environments/development.rb
135
+ - spec/dummy/config/environments/production.rb
136
+ - spec/dummy/config/environments/test.rb
137
+ - spec/dummy/config/initializers/application_controller_renderer.rb
138
+ - spec/dummy/config/initializers/assets.rb
139
+ - spec/dummy/config/initializers/backtrace_silencers.rb
140
+ - spec/dummy/config/initializers/cookies_serializer.rb
141
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
142
+ - spec/dummy/config/initializers/inflections.rb
143
+ - spec/dummy/config/initializers/mime_types.rb
144
+ - spec/dummy/config/initializers/wrap_parameters.rb
145
+ - spec/dummy/config/locales/en.yml
146
+ - spec/dummy/config/puma.rb
147
+ - spec/dummy/config/routes.rb
148
+ - spec/dummy/config/secrets.yml
149
+ - spec/dummy/config/spring.rb
150
+ - spec/dummy/db/development.sqlite3
151
+ - spec/dummy/db/schema.rb
152
+ - spec/dummy/db/test.sqlite3
153
+ - spec/dummy/log/development.log
154
+ - spec/dummy/log/test.log
155
+ - spec/dummy/package.json
156
+ - spec/dummy/public/404.html
157
+ - spec/dummy/public/422.html
158
+ - spec/dummy/public/500.html
159
+ - spec/dummy/public/apple-touch-icon-precomposed.png
160
+ - spec/dummy/public/apple-touch-icon.png
161
+ - spec/dummy/public/favicon.ico
162
+ - spec/installer_spec.rb
163
+ - spec/requests/api/health_check_spec.rb
164
+ - spec/requests/api/metrics_spec.rb
165
+ - spec/requests/api/statistics_spec.rb
166
+ - spec/spec_helper.rb
167
+ - spec/support/stub_access_token.rb
168
+ homepage: https://github.com/meerstats/meerstats_rails
169
+ licenses:
170
+ - MIT
171
+ metadata: {}
172
+ post_install_message:
173
+ rdoc_options: []
174
+ require_paths:
175
+ - lib
176
+ required_ruby_version: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
181
+ required_rubygems_version: !ruby/object:Gem::Requirement
182
+ requirements:
183
+ - - ">="
184
+ - !ruby/object:Gem::Version
185
+ version: '0'
186
+ requirements: []
187
+ rubyforge_project:
188
+ rubygems_version: 2.6.12
189
+ signing_key:
190
+ specification_version: 4
191
+ summary: Mountable engine for Rails to provide application data to meerstats.
192
+ test_files:
193
+ - spec/configuration_spec.rb
194
+ - spec/dummy/app/assets/javascripts/application.js
195
+ - spec/dummy/app/assets/javascripts/cable.js
196
+ - spec/dummy/app/assets/stylesheets/application.css
197
+ - spec/dummy/app/channels/application_cable/channel.rb
198
+ - spec/dummy/app/channels/application_cable/connection.rb
199
+ - spec/dummy/app/controllers/application_controller.rb
200
+ - spec/dummy/app/helpers/application_helper.rb
201
+ - spec/dummy/app/jobs/application_job.rb
202
+ - spec/dummy/app/mailers/application_mailer.rb
203
+ - spec/dummy/app/models/application_record.rb
204
+ - spec/dummy/app/views/layouts/application.html.erb
205
+ - spec/dummy/app/views/layouts/mailer.html.erb
206
+ - spec/dummy/app/views/layouts/mailer.text.erb
207
+ - spec/dummy/bin/bundle
208
+ - spec/dummy/bin/rails
209
+ - spec/dummy/bin/rake
210
+ - spec/dummy/bin/setup
211
+ - spec/dummy/bin/update
212
+ - spec/dummy/bin/yarn
213
+ - spec/dummy/config/application.rb
214
+ - spec/dummy/config/boot.rb
215
+ - spec/dummy/config/cable.yml
216
+ - spec/dummy/config/database.yml
217
+ - spec/dummy/config/environment.rb
218
+ - spec/dummy/config/environments/development.rb
219
+ - spec/dummy/config/environments/production.rb
220
+ - spec/dummy/config/environments/test.rb
221
+ - spec/dummy/config/initializers/application_controller_renderer.rb
222
+ - spec/dummy/config/initializers/assets.rb
223
+ - spec/dummy/config/initializers/backtrace_silencers.rb
224
+ - spec/dummy/config/initializers/cookies_serializer.rb
225
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
226
+ - spec/dummy/config/initializers/inflections.rb
227
+ - spec/dummy/config/initializers/mime_types.rb
228
+ - spec/dummy/config/initializers/wrap_parameters.rb
229
+ - spec/dummy/config/locales/en.yml
230
+ - spec/dummy/config/puma.rb
231
+ - spec/dummy/config/routes.rb
232
+ - spec/dummy/config/secrets.yml
233
+ - spec/dummy/config/spring.rb
234
+ - spec/dummy/config.ru
235
+ - spec/dummy/db/development.sqlite3
236
+ - spec/dummy/db/schema.rb
237
+ - spec/dummy/db/test.sqlite3
238
+ - spec/dummy/log/development.log
239
+ - spec/dummy/log/test.log
240
+ - spec/dummy/package.json
241
+ - spec/dummy/public/404.html
242
+ - spec/dummy/public/422.html
243
+ - spec/dummy/public/500.html
244
+ - spec/dummy/public/apple-touch-icon-precomposed.png
245
+ - spec/dummy/public/apple-touch-icon.png
246
+ - spec/dummy/public/favicon.ico
247
+ - spec/dummy/Rakefile
248
+ - spec/installer_spec.rb
249
+ - spec/requests/api/health_check_spec.rb
250
+ - spec/requests/api/metrics_spec.rb
251
+ - spec/requests/api/statistics_spec.rb
252
+ - spec/spec_helper.rb
253
+ - spec/support/stub_access_token.rb