sapience 1.0.11 → 1.0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/sapience/extensions/grape/middleware/logging.rb +4 -11
- data/lib/sapience/extensions/grape/notifications.rb +4 -1
- data/lib/sapience/extensions/grape/request_format_helper.rb +12 -0
- data/lib/sapience/version.rb +1 -1
- data/sapience.gemspec +1 -1
- metadata +3 -115
- data/test_apps/grape/.gitignore +0 -41
- data/test_apps/grape/.rspec +0 -1
- data/test_apps/grape/.simplecov +0 -25
- data/test_apps/grape/Appraisals +0 -9
- data/test_apps/grape/Gemfile +0 -31
- data/test_apps/grape/Rakefile +0 -8
- data/test_apps/grape/config.ru +0 -5
- data/test_apps/grape/gemfiles/grape_0.16.2.gemfile +0 -26
- data/test_apps/grape/gemfiles/grape_0.16.2.gemfile.lock +0 -140
- data/test_apps/grape/gemfiles/grape_0.17.0.gemfile +0 -25
- data/test_apps/grape/gemfiles/grape_0.17.0.gemfile.lock +0 -138
- data/test_apps/grape/lib/ping/api.rb +0 -21
- data/test_apps/grape/lib/ping.rb +0 -3
- data/test_apps/grape/spec/lib/ping/api_spec.rb +0 -81
- data/test_apps/grape/spec/spec_helper.rb +0 -26
- data/test_apps/rails/.gitignore +0 -37
- data/test_apps/rails/.rspec +0 -1
- data/test_apps/rails/.ruby-version +0 -1
- data/test_apps/rails/.simplecov +0 -25
- data/test_apps/rails/Gemfile +0 -48
- data/test_apps/rails/README.md +0 -24
- data/test_apps/rails/Rakefile +0 -12
- data/test_apps/rails/app/assets/config/manifest.js +0 -2
- data/test_apps/rails/app/assets/images/.keep +0 -0
- data/test_apps/rails/app/assets/javascripts/posts.js +0 -2
- data/test_apps/rails/app/assets/stylesheets/application.css +0 -15
- data/test_apps/rails/app/assets/stylesheets/posts.css +0 -4
- data/test_apps/rails/app/assets/stylesheets/scaffold.css +0 -84
- data/test_apps/rails/app/channels/application_cable/channel.rb +0 -4
- data/test_apps/rails/app/channels/application_cable/connection.rb +0 -4
- data/test_apps/rails/app/controllers/application_controller.rb +0 -3
- data/test_apps/rails/app/controllers/concerns/.keep +0 -0
- data/test_apps/rails/app/controllers/posts_controller.rb +0 -59
- data/test_apps/rails/app/helpers/application_helper.rb +0 -2
- data/test_apps/rails/app/helpers/posts_helper.rb +0 -2
- data/test_apps/rails/app/jobs/application_job.rb +0 -2
- data/test_apps/rails/app/jobs/test_job.rb +0 -12
- data/test_apps/rails/app/mailers/application_mailer.rb +0 -4
- data/test_apps/rails/app/models/application_record.rb +0 -3
- data/test_apps/rails/app/models/concerns/.keep +0 -0
- data/test_apps/rails/app/models/post.rb +0 -3
- data/test_apps/rails/app/models/user.rb +0 -3
- data/test_apps/rails/app/views/layouts/application.html.erb +0 -13
- data/test_apps/rails/app/views/layouts/mailer.html.erb +0 -13
- data/test_apps/rails/app/views/layouts/mailer.text.erb +0 -1
- data/test_apps/rails/app/views/posts/_form.html.slim +0 -18
- data/test_apps/rails/app/views/posts/edit.html.slim +0 -8
- data/test_apps/rails/app/views/posts/index.html.slim +0 -25
- data/test_apps/rails/app/views/posts/new.html.slim +0 -5
- data/test_apps/rails/app/views/posts/show.html.slim +0 -15
- data/test_apps/rails/app/workers/test_worker.rb +0 -17
- data/test_apps/rails/bin/bundle +0 -3
- data/test_apps/rails/bin/rails +0 -4
- data/test_apps/rails/bin/rake +0 -4
- data/test_apps/rails/bin/setup +0 -34
- data/test_apps/rails/bin/sneakers +0 -10
- data/test_apps/rails/bin/update +0 -29
- data/test_apps/rails/config/application.rb +0 -25
- data/test_apps/rails/config/boot.rb +0 -3
- data/test_apps/rails/config/cable.yml +0 -9
- data/test_apps/rails/config/database.yml +0 -24
- data/test_apps/rails/config/environment.rb +0 -5
- data/test_apps/rails/config/environments/development.rb +0 -49
- data/test_apps/rails/config/environments/production.rb +0 -78
- data/test_apps/rails/config/environments/test.rb +0 -42
- data/test_apps/rails/config/initializers/application_controller_renderer.rb +0 -6
- data/test_apps/rails/config/initializers/backtrace_silencers.rb +0 -7
- data/test_apps/rails/config/initializers/cookies_serializer.rb +0 -5
- data/test_apps/rails/config/initializers/filter_parameter_logging.rb +0 -4
- data/test_apps/rails/config/initializers/inflections.rb +0 -16
- data/test_apps/rails/config/initializers/mime_types.rb +0 -4
- data/test_apps/rails/config/initializers/new_framework_defaults.rb +0 -24
- data/test_apps/rails/config/initializers/session_store.rb +0 -3
- data/test_apps/rails/config/initializers/sneakers.rb +0 -14
- data/test_apps/rails/config/initializers/wrap_parameters.rb +0 -14
- data/test_apps/rails/config/locales/en.yml +0 -23
- data/test_apps/rails/config/puma.rb +0 -45
- data/test_apps/rails/config/routes.rb +0 -3
- data/test_apps/rails/config/sapience_example.yml +0 -24
- data/test_apps/rails/config/secrets.yml +0 -22
- data/test_apps/rails/config.ru +0 -5
- data/test_apps/rails/db/migrate/20160812092236_create_users.rb +0 -13
- data/test_apps/rails/db/migrate/20160902141445_create_posts.rb +0 -17
- data/test_apps/rails/db/schema.rb +0 -37
- data/test_apps/rails/db/seeds.rb +0 -7
- data/test_apps/rails/lib/assets/.keep +0 -0
- data/test_apps/rails/lib/external_sneaker.rb +0 -46
- data/test_apps/rails/lib/tasks/.keep +0 -0
- data/test_apps/rails/lib/tasks/sneakers.rake +0 -21
- data/test_apps/rails/public/404.html +0 -67
- data/test_apps/rails/public/422.html +0 -67
- data/test_apps/rails/public/500.html +0 -66
- data/test_apps/rails/public/apple-touch-icon-precomposed.png +0 -0
- data/test_apps/rails/public/apple-touch-icon.png +0 -0
- data/test_apps/rails/public/favicon.ico +0 -0
- data/test_apps/rails/public/robots.txt +0 -5
- data/test_apps/rails/spec/controllers/posts_controller_spec.rb +0 -7
- data/test_apps/rails/spec/factories/posts.rb +0 -7
- data/test_apps/rails/spec/factories/users.rb +0 -8
- data/test_apps/rails/spec/fixtures/sapience.yml +0 -15
- data/test_apps/rails/spec/integration/sapience_spec.rb +0 -14
- data/test_apps/rails/spec/jobs/test_job_spec.rb +0 -36
- data/test_apps/rails/spec/models/post_spec.rb +0 -14
- data/test_apps/rails/spec/rails_helper.rb +0 -45
- data/test_apps/rails/spec/requests/posts_spec.rb +0 -44
- data/test_apps/rails/spec/routing/posts_routing_spec.rb +0 -37
- data/test_apps/rails/spec/spec_helper.rb +0 -16
- data/test_apps/rails/spec/views/posts/edit.html.slim_spec.rb +0 -17
- data/test_apps/rails/spec/views/posts/index.html.slim_spec.rb +0 -17
- data/test_apps/rails/spec/views/posts/new.html.slim_spec.rb +0 -17
- data/test_apps/rails/spec/views/posts/show.html.slim_spec.rb +0 -14
- data/test_apps/rails/spec/workers/test_worker_spec.rb +0 -41
- data/test_apps/rails/vendor/assets/stylesheets/.keep +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ae04b1f22f074540165f61ec01984bc3c4deae70
|
4
|
+
data.tar.gz: c9690199caa95c88d73f204eec77ef251e3b70d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 05c062963ae6bcbb52518431c7b92e5af8360cc51f155efe332f5d8a066168e3f3b85f572469d5ef5dd4b342d3b70b4bd4d07f0367826c73546de04f9a0c3eef
|
7
|
+
data.tar.gz: c5f46eb79fba5d3efb89c34962967fa046e51e1128e2626e70dd18b8cca7d7bbbc95456a3bf6f8d7068250138962721af7c7b286e1109a0b9f82b5dbd57163ef
|
data/CHANGELOG.md
CHANGED
@@ -1,10 +1,13 @@
|
|
1
1
|
require "grape/middleware/base"
|
2
|
+
require_relative "../request_format_helper"
|
2
3
|
|
3
4
|
module Sapience
|
4
5
|
module Extensions
|
5
6
|
module Grape
|
6
7
|
module Middleware
|
7
8
|
class Logging < ::Grape::Middleware::Base
|
9
|
+
include RequestFormatHelper
|
10
|
+
|
8
11
|
ActiveSupport::Notifications.subscribe("sql.active_record") do |*args|
|
9
12
|
event = ActiveSupport::Notifications::Event.new(*args)
|
10
13
|
Grape::Timings.append_db_runtime(event)
|
@@ -39,7 +42,7 @@ module Sapience
|
|
39
42
|
{
|
40
43
|
method: request.request_method,
|
41
44
|
request_path: request.path,
|
42
|
-
format:
|
45
|
+
format: request_format(request.env),
|
43
46
|
status: response.try(:status) || 404,
|
44
47
|
class_name: env["api.endpoint"].options[:for].to_s,
|
45
48
|
action: "index",
|
@@ -60,16 +63,6 @@ module Sapience
|
|
60
63
|
|
61
64
|
private
|
62
65
|
|
63
|
-
def content_type
|
64
|
-
request.env.fetch("CONTENT_TYPE") do
|
65
|
-
request.env["CONTENT-TYPE"]
|
66
|
-
end
|
67
|
-
end
|
68
|
-
|
69
|
-
def response_format
|
70
|
-
content_type.to_s.split("/").last
|
71
|
-
end
|
72
|
-
|
73
66
|
def request
|
74
67
|
@request ||= ::Rack::Request.new(env)
|
75
68
|
end
|
@@ -1,7 +1,10 @@
|
|
1
|
+
require_relative "request_format_helper"
|
2
|
+
|
1
3
|
module Sapience
|
2
4
|
module Extensions
|
3
5
|
module Grape
|
4
6
|
class Notifications < ::Sapience::Extensions::Notifications
|
7
|
+
include RequestFormatHelper
|
5
8
|
# Options:
|
6
9
|
#
|
7
10
|
# *<tt>:metric_name</tt> - the metric name, defaults to "grape.request"
|
@@ -25,7 +28,7 @@ module Sapience
|
|
25
28
|
route = endpoint.route
|
26
29
|
version = route.version
|
27
30
|
method = route.request_method.downcase
|
28
|
-
format =
|
31
|
+
format = request_format(endpoint.env)
|
29
32
|
path = route.pattern.path.dup
|
30
33
|
|
31
34
|
path.sub!(/\(\.#{format}\)$/, "")
|
data/lib/sapience/version.rb
CHANGED
data/sapience.gemspec
CHANGED
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
|
|
22
22
|
fail "RubyGems 2.0 or newer is required to protect against public gem pushes."
|
23
23
|
end
|
24
24
|
|
25
|
-
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(/^(test|spec|features|bin)\//) }
|
25
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(/^(test|test_apps|spec|features|bin)\//) }
|
26
26
|
spec.require_paths = ["lib"]
|
27
27
|
|
28
28
|
spec.add_dependency "concurrent-ruby", "~> 1.0"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sapience
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mikael Henriksson
|
@@ -300,6 +300,7 @@ files:
|
|
300
300
|
- lib/sapience/extensions/active_record/notifications.rb
|
301
301
|
- lib/sapience/extensions/grape/middleware/logging.rb
|
302
302
|
- lib/sapience/extensions/grape/notifications.rb
|
303
|
+
- lib/sapience/extensions/grape/request_format_helper.rb
|
303
304
|
- lib/sapience/extensions/grape/timings.rb
|
304
305
|
- lib/sapience/extensions/notifications.rb
|
305
306
|
- lib/sapience/extensions/rails/rack/logger.rb
|
@@ -322,119 +323,6 @@ files:
|
|
322
323
|
- lib/sapience/version.rb
|
323
324
|
- lib/tasks/coverage.rake
|
324
325
|
- sapience.gemspec
|
325
|
-
- test_apps/grape/.gitignore
|
326
|
-
- test_apps/grape/.rspec
|
327
|
-
- test_apps/grape/.simplecov
|
328
|
-
- test_apps/grape/Appraisals
|
329
|
-
- test_apps/grape/Gemfile
|
330
|
-
- test_apps/grape/Rakefile
|
331
|
-
- test_apps/grape/config.ru
|
332
|
-
- test_apps/grape/gemfiles/grape_0.16.2.gemfile
|
333
|
-
- test_apps/grape/gemfiles/grape_0.16.2.gemfile.lock
|
334
|
-
- test_apps/grape/gemfiles/grape_0.17.0.gemfile
|
335
|
-
- test_apps/grape/gemfiles/grape_0.17.0.gemfile.lock
|
336
|
-
- test_apps/grape/lib/ping.rb
|
337
|
-
- test_apps/grape/lib/ping/api.rb
|
338
|
-
- test_apps/grape/spec/lib/ping/api_spec.rb
|
339
|
-
- test_apps/grape/spec/spec_helper.rb
|
340
|
-
- test_apps/rails/.gitignore
|
341
|
-
- test_apps/rails/.rspec
|
342
|
-
- test_apps/rails/.ruby-version
|
343
|
-
- test_apps/rails/.simplecov
|
344
|
-
- test_apps/rails/Gemfile
|
345
|
-
- test_apps/rails/README.md
|
346
|
-
- test_apps/rails/Rakefile
|
347
|
-
- test_apps/rails/app/assets/config/manifest.js
|
348
|
-
- test_apps/rails/app/assets/images/.keep
|
349
|
-
- test_apps/rails/app/assets/javascripts/posts.js
|
350
|
-
- test_apps/rails/app/assets/stylesheets/application.css
|
351
|
-
- test_apps/rails/app/assets/stylesheets/posts.css
|
352
|
-
- test_apps/rails/app/assets/stylesheets/scaffold.css
|
353
|
-
- test_apps/rails/app/channels/application_cable/channel.rb
|
354
|
-
- test_apps/rails/app/channels/application_cable/connection.rb
|
355
|
-
- test_apps/rails/app/controllers/application_controller.rb
|
356
|
-
- test_apps/rails/app/controllers/concerns/.keep
|
357
|
-
- test_apps/rails/app/controllers/posts_controller.rb
|
358
|
-
- test_apps/rails/app/helpers/application_helper.rb
|
359
|
-
- test_apps/rails/app/helpers/posts_helper.rb
|
360
|
-
- test_apps/rails/app/jobs/application_job.rb
|
361
|
-
- test_apps/rails/app/jobs/test_job.rb
|
362
|
-
- test_apps/rails/app/mailers/application_mailer.rb
|
363
|
-
- test_apps/rails/app/models/application_record.rb
|
364
|
-
- test_apps/rails/app/models/concerns/.keep
|
365
|
-
- test_apps/rails/app/models/post.rb
|
366
|
-
- test_apps/rails/app/models/user.rb
|
367
|
-
- test_apps/rails/app/views/layouts/application.html.erb
|
368
|
-
- test_apps/rails/app/views/layouts/mailer.html.erb
|
369
|
-
- test_apps/rails/app/views/layouts/mailer.text.erb
|
370
|
-
- test_apps/rails/app/views/posts/_form.html.slim
|
371
|
-
- test_apps/rails/app/views/posts/edit.html.slim
|
372
|
-
- test_apps/rails/app/views/posts/index.html.slim
|
373
|
-
- test_apps/rails/app/views/posts/new.html.slim
|
374
|
-
- test_apps/rails/app/views/posts/show.html.slim
|
375
|
-
- test_apps/rails/app/workers/test_worker.rb
|
376
|
-
- test_apps/rails/bin/bundle
|
377
|
-
- test_apps/rails/bin/rails
|
378
|
-
- test_apps/rails/bin/rake
|
379
|
-
- test_apps/rails/bin/setup
|
380
|
-
- test_apps/rails/bin/sneakers
|
381
|
-
- test_apps/rails/bin/update
|
382
|
-
- test_apps/rails/config.ru
|
383
|
-
- test_apps/rails/config/application.rb
|
384
|
-
- test_apps/rails/config/boot.rb
|
385
|
-
- test_apps/rails/config/cable.yml
|
386
|
-
- test_apps/rails/config/database.yml
|
387
|
-
- test_apps/rails/config/environment.rb
|
388
|
-
- test_apps/rails/config/environments/development.rb
|
389
|
-
- test_apps/rails/config/environments/production.rb
|
390
|
-
- test_apps/rails/config/environments/test.rb
|
391
|
-
- test_apps/rails/config/initializers/application_controller_renderer.rb
|
392
|
-
- test_apps/rails/config/initializers/backtrace_silencers.rb
|
393
|
-
- test_apps/rails/config/initializers/cookies_serializer.rb
|
394
|
-
- test_apps/rails/config/initializers/filter_parameter_logging.rb
|
395
|
-
- test_apps/rails/config/initializers/inflections.rb
|
396
|
-
- test_apps/rails/config/initializers/mime_types.rb
|
397
|
-
- test_apps/rails/config/initializers/new_framework_defaults.rb
|
398
|
-
- test_apps/rails/config/initializers/session_store.rb
|
399
|
-
- test_apps/rails/config/initializers/sneakers.rb
|
400
|
-
- test_apps/rails/config/initializers/wrap_parameters.rb
|
401
|
-
- test_apps/rails/config/locales/en.yml
|
402
|
-
- test_apps/rails/config/puma.rb
|
403
|
-
- test_apps/rails/config/routes.rb
|
404
|
-
- test_apps/rails/config/sapience_example.yml
|
405
|
-
- test_apps/rails/config/secrets.yml
|
406
|
-
- test_apps/rails/db/migrate/20160812092236_create_users.rb
|
407
|
-
- test_apps/rails/db/migrate/20160902141445_create_posts.rb
|
408
|
-
- test_apps/rails/db/schema.rb
|
409
|
-
- test_apps/rails/db/seeds.rb
|
410
|
-
- test_apps/rails/lib/assets/.keep
|
411
|
-
- test_apps/rails/lib/external_sneaker.rb
|
412
|
-
- test_apps/rails/lib/tasks/.keep
|
413
|
-
- test_apps/rails/lib/tasks/sneakers.rake
|
414
|
-
- test_apps/rails/public/404.html
|
415
|
-
- test_apps/rails/public/422.html
|
416
|
-
- test_apps/rails/public/500.html
|
417
|
-
- test_apps/rails/public/apple-touch-icon-precomposed.png
|
418
|
-
- test_apps/rails/public/apple-touch-icon.png
|
419
|
-
- test_apps/rails/public/favicon.ico
|
420
|
-
- test_apps/rails/public/robots.txt
|
421
|
-
- test_apps/rails/spec/controllers/posts_controller_spec.rb
|
422
|
-
- test_apps/rails/spec/factories/posts.rb
|
423
|
-
- test_apps/rails/spec/factories/users.rb
|
424
|
-
- test_apps/rails/spec/fixtures/sapience.yml
|
425
|
-
- test_apps/rails/spec/integration/sapience_spec.rb
|
426
|
-
- test_apps/rails/spec/jobs/test_job_spec.rb
|
427
|
-
- test_apps/rails/spec/models/post_spec.rb
|
428
|
-
- test_apps/rails/spec/rails_helper.rb
|
429
|
-
- test_apps/rails/spec/requests/posts_spec.rb
|
430
|
-
- test_apps/rails/spec/routing/posts_routing_spec.rb
|
431
|
-
- test_apps/rails/spec/spec_helper.rb
|
432
|
-
- test_apps/rails/spec/views/posts/edit.html.slim_spec.rb
|
433
|
-
- test_apps/rails/spec/views/posts/index.html.slim_spec.rb
|
434
|
-
- test_apps/rails/spec/views/posts/new.html.slim_spec.rb
|
435
|
-
- test_apps/rails/spec/views/posts/show.html.slim_spec.rb
|
436
|
-
- test_apps/rails/spec/workers/test_worker_spec.rb
|
437
|
-
- test_apps/rails/vendor/assets/stylesheets/.keep
|
438
326
|
homepage: https://github.com/reevoo/sapience
|
439
327
|
licenses:
|
440
328
|
- MIT
|
@@ -456,7 +344,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
456
344
|
version: '0'
|
457
345
|
requirements: []
|
458
346
|
rubyforge_project:
|
459
|
-
rubygems_version: 2.
|
347
|
+
rubygems_version: 2.5.1
|
460
348
|
signing_key:
|
461
349
|
specification_version: 4
|
462
350
|
summary: Hasslefree autoconfiguration for logging, metrics and exception collection.
|
data/test_apps/grape/.gitignore
DELETED
@@ -1,41 +0,0 @@
|
|
1
|
-
*.rbc
|
2
|
-
capybara-*.html
|
3
|
-
/log
|
4
|
-
/tmp
|
5
|
-
/db/*.sqlite3
|
6
|
-
/db/*.sqlite3-journal
|
7
|
-
/public/system
|
8
|
-
/coverage/
|
9
|
-
/spec/tmp
|
10
|
-
**.orig
|
11
|
-
rerun.txt
|
12
|
-
pickle-email-*.html
|
13
|
-
|
14
|
-
# TODO Comment out these rules if you are OK with secrets being uploaded to the repo
|
15
|
-
config/initializers/secret_token.rb
|
16
|
-
config/secrets.yml
|
17
|
-
|
18
|
-
# dotenv
|
19
|
-
# TODO Comment out this rule if environment variables can be committed
|
20
|
-
.env
|
21
|
-
|
22
|
-
## Environment normalization:
|
23
|
-
/.bundle
|
24
|
-
/vendor/bundle
|
25
|
-
|
26
|
-
# these should all be checked in to normalize the environment:
|
27
|
-
# Gemfile.lock, .ruby-version, .ruby-gemset
|
28
|
-
|
29
|
-
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
30
|
-
.rvmrc
|
31
|
-
|
32
|
-
# if using bower-rails ignore default bower_components path bower.json files
|
33
|
-
/vendor/assets/bower_components
|
34
|
-
*.bowerrc
|
35
|
-
bower.json
|
36
|
-
|
37
|
-
# Ignore pow environment settings
|
38
|
-
.powenv
|
39
|
-
|
40
|
-
# Ignore Byebug command history file.
|
41
|
-
.byebug_history
|
data/test_apps/grape/.rspec
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
test_apps/grape/../../.rspec
|
data/test_apps/grape/.simplecov
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
require "simplecov-json"
|
2
|
-
|
3
|
-
coverage_dir = '../../coverage/grape'
|
4
|
-
FileUtils.rm_rf coverage_dir
|
5
|
-
|
6
|
-
SimpleCov.coverage_dir coverage_dir
|
7
|
-
SimpleCov.command_name "grape"
|
8
|
-
SimpleCov.maximum_coverage_drop 1
|
9
|
-
SimpleCov.formatters = [
|
10
|
-
SimpleCov::Formatter::HTMLFormatter,
|
11
|
-
SimpleCov::Formatter::JSONFormatter,
|
12
|
-
]
|
13
|
-
SimpleCov.start do
|
14
|
-
profiles.delete(:root_filter)
|
15
|
-
filters.clear
|
16
|
-
add_filter do |src|
|
17
|
-
if src.filename =~ %r{sapience\-rb|\/usr\/src\/app/}
|
18
|
-
src.filename.include?("test_apps/grape")
|
19
|
-
else
|
20
|
-
true
|
21
|
-
end
|
22
|
-
end
|
23
|
-
|
24
|
-
add_group "Sapience", "../"
|
25
|
-
end
|
data/test_apps/grape/Appraisals
DELETED
data/test_apps/grape/Gemfile
DELETED
@@ -1,31 +0,0 @@
|
|
1
|
-
source "https://rubygems.org"
|
2
|
-
|
3
|
-
|
4
|
-
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
|
5
|
-
gem "grape"
|
6
|
-
# Use Puma as the app server
|
7
|
-
gem "puma", "~> 3.0"
|
8
|
-
|
9
|
-
# Use Capistrano for deployment
|
10
|
-
# gem 'capistrano-rails', group: :development
|
11
|
-
gem "sapience", path: "../.."
|
12
|
-
gem "sentry-raven"
|
13
|
-
gem "dogstatsd-ruby"
|
14
|
-
gem "activesupport"
|
15
|
-
|
16
|
-
group :development, :test do
|
17
|
-
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
|
18
|
-
gem "byebug", platform: :mri
|
19
|
-
# gem "pry-nav", platform: :mri
|
20
|
-
gem "pry-byebug", platform: :mri
|
21
|
-
gem "rspec"
|
22
|
-
gem "racksh"
|
23
|
-
gem "appraisal"
|
24
|
-
end
|
25
|
-
|
26
|
-
group :test do
|
27
|
-
gem "rspec-its"
|
28
|
-
gem "simplecov"
|
29
|
-
gem "simplecov-json"
|
30
|
-
gem "fuubar"
|
31
|
-
end
|
data/test_apps/grape/Rakefile
DELETED
@@ -1,8 +0,0 @@
|
|
1
|
-
# Add your own tasks in files placed in lib/tasks ending in .rake,
|
2
|
-
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
|
3
|
-
require_relative "lib/ping"
|
4
|
-
|
5
|
-
require "rspec/core/rake_task"
|
6
|
-
RSpec::Core::RakeTask.new(:spec)
|
7
|
-
|
8
|
-
task default: [:spec]
|
data/test_apps/grape/config.ru
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
# This file was generated by Appraisal
|
2
|
-
|
3
|
-
source "https://rubygems.org"
|
4
|
-
|
5
|
-
gem "grape", "0.16.2"
|
6
|
-
gem "puma", "~> 3.0"
|
7
|
-
gem "sapience", :path => "../../.."
|
8
|
-
gem "sentry-raven"
|
9
|
-
gem "dogstatsd-ruby"
|
10
|
-
gem "activesupport", "4.2.6"
|
11
|
-
gem "rack", "1.6.4"
|
12
|
-
|
13
|
-
group :development, :test do
|
14
|
-
gem "byebug", :platform => :mri
|
15
|
-
gem "pry-byebug", :platform => :mri
|
16
|
-
gem "rspec"
|
17
|
-
gem "racksh"
|
18
|
-
gem "appraisal"
|
19
|
-
end
|
20
|
-
|
21
|
-
group :test do
|
22
|
-
gem "rspec-its"
|
23
|
-
gem "simplecov"
|
24
|
-
gem "simplecov-json"
|
25
|
-
gem "fuubar"
|
26
|
-
end
|
@@ -1,140 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: ../../..
|
3
|
-
specs:
|
4
|
-
sapience (1.0.10)
|
5
|
-
concurrent-ruby (~> 1.0)
|
6
|
-
|
7
|
-
GEM
|
8
|
-
remote: https://rubygems.org/
|
9
|
-
specs:
|
10
|
-
activesupport (4.2.6)
|
11
|
-
i18n (~> 0.7)
|
12
|
-
json (~> 1.7, >= 1.7.7)
|
13
|
-
minitest (~> 5.1)
|
14
|
-
thread_safe (~> 0.3, >= 0.3.4)
|
15
|
-
tzinfo (~> 1.1)
|
16
|
-
appraisal (2.1.0)
|
17
|
-
bundler
|
18
|
-
rake
|
19
|
-
thor (>= 0.14.0)
|
20
|
-
axiom-types (0.1.1)
|
21
|
-
descendants_tracker (~> 0.0.4)
|
22
|
-
ice_nine (~> 0.11.0)
|
23
|
-
thread_safe (~> 0.3, >= 0.3.1)
|
24
|
-
builder (3.2.2)
|
25
|
-
byebug (9.0.6)
|
26
|
-
coderay (1.1.1)
|
27
|
-
coercible (1.0.0)
|
28
|
-
descendants_tracker (~> 0.0.1)
|
29
|
-
concurrent-ruby (1.0.2)
|
30
|
-
descendants_tracker (0.0.4)
|
31
|
-
thread_safe (~> 0.3, >= 0.3.1)
|
32
|
-
diff-lcs (1.2.5)
|
33
|
-
docile (1.1.5)
|
34
|
-
dogstatsd-ruby (2.0.0)
|
35
|
-
enumerable-lazy (0.0.2)
|
36
|
-
equalizer (0.0.11)
|
37
|
-
faraday (0.9.2)
|
38
|
-
multipart-post (>= 1.2, < 3)
|
39
|
-
fuubar (2.2.0)
|
40
|
-
rspec-core (~> 3.0)
|
41
|
-
ruby-progressbar (~> 1.4)
|
42
|
-
grape (0.16.2)
|
43
|
-
activesupport
|
44
|
-
builder
|
45
|
-
hashie (>= 2.1.0)
|
46
|
-
multi_json (>= 1.3.2)
|
47
|
-
multi_xml (>= 0.5.2)
|
48
|
-
mustermann19 (~> 0.4.3)
|
49
|
-
rack (>= 1.3.0)
|
50
|
-
rack-accept
|
51
|
-
virtus (>= 1.0.0)
|
52
|
-
hashie (3.4.6)
|
53
|
-
i18n (0.7.0)
|
54
|
-
ice_nine (0.11.2)
|
55
|
-
json (1.8.3)
|
56
|
-
method_source (0.8.2)
|
57
|
-
minitest (5.9.1)
|
58
|
-
multi_json (1.12.1)
|
59
|
-
multi_xml (0.5.5)
|
60
|
-
multipart-post (2.0.0)
|
61
|
-
mustermann19 (0.4.4)
|
62
|
-
enumerable-lazy
|
63
|
-
pry (0.10.4)
|
64
|
-
coderay (~> 1.1.0)
|
65
|
-
method_source (~> 0.8.1)
|
66
|
-
slop (~> 3.4)
|
67
|
-
pry-byebug (3.4.0)
|
68
|
-
byebug (~> 9.0)
|
69
|
-
pry (~> 0.10)
|
70
|
-
puma (3.6.0)
|
71
|
-
rack (1.6.4)
|
72
|
-
rack-accept (0.4.5)
|
73
|
-
rack (>= 0.4)
|
74
|
-
rack-test (0.6.3)
|
75
|
-
rack (>= 1.0)
|
76
|
-
racksh (1.0.0)
|
77
|
-
rack (>= 1.0)
|
78
|
-
rack-test (>= 0.5)
|
79
|
-
rake (11.3.0)
|
80
|
-
rspec (3.5.0)
|
81
|
-
rspec-core (~> 3.5.0)
|
82
|
-
rspec-expectations (~> 3.5.0)
|
83
|
-
rspec-mocks (~> 3.5.0)
|
84
|
-
rspec-core (3.5.4)
|
85
|
-
rspec-support (~> 3.5.0)
|
86
|
-
rspec-expectations (3.5.0)
|
87
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
88
|
-
rspec-support (~> 3.5.0)
|
89
|
-
rspec-its (1.2.0)
|
90
|
-
rspec-core (>= 3.0.0)
|
91
|
-
rspec-expectations (>= 3.0.0)
|
92
|
-
rspec-mocks (3.5.0)
|
93
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
94
|
-
rspec-support (~> 3.5.0)
|
95
|
-
rspec-support (3.5.0)
|
96
|
-
ruby-progressbar (1.8.1)
|
97
|
-
sentry-raven (2.0.2)
|
98
|
-
faraday (>= 0.7.6, < 0.10.x)
|
99
|
-
simplecov (0.12.0)
|
100
|
-
docile (~> 1.1.0)
|
101
|
-
json (>= 1.8, < 3)
|
102
|
-
simplecov-html (~> 0.10.0)
|
103
|
-
simplecov-html (0.10.0)
|
104
|
-
simplecov-json (0.2)
|
105
|
-
json
|
106
|
-
simplecov
|
107
|
-
slop (3.6.0)
|
108
|
-
thor (0.19.1)
|
109
|
-
thread_safe (0.3.5)
|
110
|
-
tzinfo (1.2.2)
|
111
|
-
thread_safe (~> 0.1)
|
112
|
-
virtus (1.0.5)
|
113
|
-
axiom-types (~> 0.1)
|
114
|
-
coercible (~> 1.0)
|
115
|
-
descendants_tracker (~> 0.0, >= 0.0.3)
|
116
|
-
equalizer (~> 0.0, >= 0.0.9)
|
117
|
-
|
118
|
-
PLATFORMS
|
119
|
-
ruby
|
120
|
-
|
121
|
-
DEPENDENCIES
|
122
|
-
activesupport (= 4.2.6)
|
123
|
-
appraisal
|
124
|
-
byebug
|
125
|
-
dogstatsd-ruby
|
126
|
-
fuubar
|
127
|
-
grape (= 0.16.2)
|
128
|
-
pry-byebug
|
129
|
-
puma (~> 3.0)
|
130
|
-
rack (= 1.6.4)
|
131
|
-
racksh
|
132
|
-
rspec
|
133
|
-
rspec-its
|
134
|
-
sapience!
|
135
|
-
sentry-raven
|
136
|
-
simplecov
|
137
|
-
simplecov-json
|
138
|
-
|
139
|
-
BUNDLED WITH
|
140
|
-
1.13.2
|
@@ -1,25 +0,0 @@
|
|
1
|
-
# This file was generated by Appraisal
|
2
|
-
|
3
|
-
source "https://rubygems.org"
|
4
|
-
|
5
|
-
gem "grape", "0.17.0"
|
6
|
-
gem "puma", "~> 3.0"
|
7
|
-
gem "sapience", :path => "../../.."
|
8
|
-
gem "sentry-raven"
|
9
|
-
gem "dogstatsd-ruby"
|
10
|
-
gem "activesupport"
|
11
|
-
|
12
|
-
group :development, :test do
|
13
|
-
gem "byebug", :platform => :mri
|
14
|
-
gem "pry-byebug", :platform => :mri
|
15
|
-
gem "rspec"
|
16
|
-
gem "racksh"
|
17
|
-
gem "appraisal"
|
18
|
-
end
|
19
|
-
|
20
|
-
group :test do
|
21
|
-
gem "rspec-its"
|
22
|
-
gem "simplecov"
|
23
|
-
gem "simplecov-json"
|
24
|
-
gem "fuubar"
|
25
|
-
end
|