sapience 0.2.7 → 0.2.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.simplecov +15 -19
- data/.travis.yml +13 -2
- data/Rakefile +1 -0
- data/docker-compose.yml +21 -6
- data/lib/sapience/appender/stream.rb +1 -1
- data/lib/sapience/extensions/action_cable/tagged_logger_proxy.rb +6 -8
- data/lib/sapience/extensions/active_model_serializers/logging.rb +11 -13
- data/lib/sapience/extensions/grape/middleware/logging.rb +14 -16
- data/lib/sapience/rails.rb +3 -3
- data/lib/sapience/version.rb +1 -1
- data/lib/sapience.rb +0 -1
- data/lib/tasks/coverage.rake +68 -0
- data/{test_app → test_apps/grape}/.gitignore +0 -0
- data/test_apps/grape/.simplecov +25 -0
- data/test_apps/grape/Gemfile +30 -0
- data/test_apps/grape/Rakefile.rb +8 -0
- data/test_apps/grape/config.ru +5 -0
- data/test_apps/grape/lib/ping/api.rb +16 -0
- data/test_apps/grape/lib/ping.rb +3 -0
- data/test_apps/grape/spec/lib/ping/api_spec.rb +41 -0
- data/test_apps/grape/spec/spec_helper.rb +25 -0
- data/test_apps/rails/.gitignore +38 -0
- data/{test_app → test_apps/rails}/.ruby-version +0 -0
- data/test_apps/rails/.simplecov +25 -0
- data/{test_app → test_apps/rails}/Gemfile +5 -5
- data/{test_app → test_apps/rails}/README.md +0 -0
- data/{test_app → test_apps/rails}/Rakefile +0 -0
- data/{test_app → test_apps/rails}/app/assets/config/manifest.js +0 -0
- data/{test_app → test_apps/rails}/app/assets/images/.keep +0 -0
- data/{test_app → test_apps/rails}/app/assets/javascripts/posts.js +0 -0
- data/{test_app → test_apps/rails}/app/assets/stylesheets/application.css +0 -0
- data/{test_app → test_apps/rails}/app/assets/stylesheets/posts.css +0 -0
- data/{test_app → test_apps/rails}/app/assets/stylesheets/scaffold.css +0 -0
- data/{test_app → test_apps/rails}/app/channels/application_cable/channel.rb +0 -0
- data/{test_app → test_apps/rails}/app/channels/application_cable/connection.rb +0 -0
- data/{test_app → test_apps/rails}/app/controllers/application_controller.rb +0 -0
- data/{test_app → test_apps/rails}/app/controllers/concerns/.keep +0 -0
- data/{test_app → test_apps/rails}/app/controllers/posts_controller.rb +0 -0
- data/{test_app → test_apps/rails}/app/helpers/application_helper.rb +0 -0
- data/{test_app → test_apps/rails}/app/helpers/posts_helper.rb +0 -0
- data/{test_app → test_apps/rails}/app/jobs/application_job.rb +0 -0
- data/{test_app → test_apps/rails}/app/mailers/application_mailer.rb +0 -0
- data/{test_app → test_apps/rails}/app/models/application_record.rb +0 -0
- data/{test_app → test_apps/rails}/app/models/concerns/.keep +0 -0
- data/{test_app → test_apps/rails}/app/models/post.rb +0 -0
- data/{test_app → test_apps/rails}/app/models/user.rb +0 -0
- data/{test_app → test_apps/rails}/app/views/layouts/application.html.erb +0 -0
- data/{test_app → test_apps/rails}/app/views/layouts/mailer.html.erb +0 -0
- data/{test_app → test_apps/rails}/app/views/layouts/mailer.text.erb +0 -0
- data/{test_app → test_apps/rails}/app/views/posts/_form.html.slim +0 -0
- data/{test_app → test_apps/rails}/app/views/posts/edit.html.slim +0 -0
- data/{test_app → test_apps/rails}/app/views/posts/index.html.slim +0 -0
- data/{test_app → test_apps/rails}/app/views/posts/new.html.slim +0 -0
- data/{test_app → test_apps/rails}/app/views/posts/show.html.slim +0 -0
- data/{test_app → test_apps/rails}/app/workers/test_worker.rb +1 -1
- data/{test_app → test_apps/rails}/bin/bundle +0 -0
- data/{test_app → test_apps/rails}/bin/rails +0 -0
- data/{test_app → test_apps/rails}/bin/rake +0 -0
- data/{test_app → test_apps/rails}/bin/setup +0 -0
- data/{test_app → test_apps/rails}/bin/sneakers +0 -0
- data/{test_app → test_apps/rails}/bin/update +0 -0
- data/{test_app → test_apps/rails}/config/application.rb +0 -0
- data/{test_app → test_apps/rails}/config/boot.rb +0 -0
- data/{test_app → test_apps/rails}/config/cable.yml +0 -0
- data/{test_app → test_apps/rails}/config/database.yml +0 -0
- data/{test_app → test_apps/rails}/config/environment.rb +0 -0
- data/{test_app → test_apps/rails}/config/environments/development.rb +0 -0
- data/{test_app → test_apps/rails}/config/environments/production.rb +0 -0
- data/{test_app → test_apps/rails}/config/environments/test.rb +0 -0
- data/{test_app → test_apps/rails}/config/initializers/application_controller_renderer.rb +0 -0
- data/{test_app → test_apps/rails}/config/initializers/backtrace_silencers.rb +0 -0
- data/{test_app → test_apps/rails}/config/initializers/cookies_serializer.rb +0 -0
- data/{test_app → test_apps/rails}/config/initializers/filter_parameter_logging.rb +0 -0
- data/{test_app → test_apps/rails}/config/initializers/inflections.rb +0 -0
- data/{test_app → test_apps/rails}/config/initializers/mime_types.rb +0 -0
- data/{test_app → test_apps/rails}/config/initializers/new_framework_defaults.rb +0 -0
- data/{test_app → test_apps/rails}/config/initializers/session_store.rb +0 -0
- data/{test_app → test_apps/rails}/config/initializers/sneakers.rb +0 -0
- data/{test_app → test_apps/rails}/config/initializers/wrap_parameters.rb +0 -0
- data/{test_app → test_apps/rails}/config/locales/en.yml +0 -0
- data/{test_app → test_apps/rails}/config/puma.rb +0 -0
- data/{test_app → test_apps/rails}/config/routes.rb +0 -0
- data/{test_app → test_apps/rails}/config/sapience_example.yml +0 -0
- data/{test_app → test_apps/rails}/config/secrets.yml +0 -0
- data/{test_app → test_apps/rails}/config.ru +0 -0
- data/{test_app → test_apps/rails}/db/migrate/20160812092236_create_users.rb +0 -0
- data/{test_app → test_apps/rails}/db/migrate/20160902141445_create_posts.rb +0 -0
- data/{test_app → test_apps/rails}/db/schema.rb +0 -0
- data/{test_app → test_apps/rails}/db/seeds.rb +0 -0
- data/{test_app → test_apps/rails}/lib/assets/.keep +0 -0
- data/{test_app → test_apps/rails}/lib/external_sneaker.rb +0 -0
- data/{test_app → test_apps/rails}/lib/tasks/.keep +0 -0
- data/{test_app → test_apps/rails}/public/404.html +0 -0
- data/{test_app → test_apps/rails}/public/422.html +0 -0
- data/{test_app → test_apps/rails}/public/500.html +0 -0
- data/{test_app → test_apps/rails}/public/apple-touch-icon-precomposed.png +0 -0
- data/{test_app → test_apps/rails}/public/apple-touch-icon.png +0 -0
- data/{test_app → test_apps/rails}/public/favicon.ico +0 -0
- data/{test_app → test_apps/rails}/public/robots.txt +0 -0
- data/{test_app → test_apps/rails}/spec/controllers/posts_controller_spec.rb +0 -0
- data/{test_app → test_apps/rails}/spec/factories/posts.rb +0 -0
- data/{test_app → test_apps/rails}/spec/factories/users.rb +0 -0
- data/{test_app → test_apps/rails}/spec/fixtures/sapience.yml +0 -0
- data/{test_app → test_apps/rails}/spec/helpers/posts_helper_spec.rb +0 -0
- data/{test_app → test_apps/rails}/spec/integration/sapience_spec.rb +0 -0
- data/{test_app → test_apps/rails}/spec/models/post_spec.rb +0 -0
- data/{test_app → test_apps/rails}/spec/models/user_spec.rb +0 -0
- data/{test_app → test_apps/rails}/spec/rails_helper.rb +4 -2
- data/{test_app → test_apps/rails}/spec/requests/posts_spec.rb +0 -0
- data/{test_app → test_apps/rails}/spec/routing/posts_routing_spec.rb +0 -0
- data/{test_app → test_apps/rails}/spec/spec_helper.rb +0 -0
- data/{test_app → test_apps/rails}/spec/views/posts/edit.html.slim_spec.rb +0 -0
- data/{test_app → test_apps/rails}/spec/views/posts/index.html.slim_spec.rb +0 -0
- data/{test_app → test_apps/rails}/spec/views/posts/new.html.slim_spec.rb +0 -0
- data/{test_app → test_apps/rails}/spec/views/posts/show.html.slim_spec.rb +0 -0
- data/{test_app → test_apps/rails}/spec/workers/test_worker_spec.rb +0 -0
- data/{test_app/log → test_apps/rails/vendor/assets/stylesheets}/.keep +0 -0
- metadata +108 -102
- data/lib/sapience/configuration/grape.rb +0 -9
- data/test_app/.rspec +0 -2
- data/test_app/tmp/.keep +0 -0
- data/test_app/vendor/assets/stylesheets/.keep +0 -0
- data/test_app.simplecov +0 -19
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -1,13 +1,15 @@
|
|
1
|
+
require "simplecov"
|
2
|
+
|
1
3
|
# This file is copied to spec/ when you run 'rails generate rspec:install'
|
2
4
|
ENV["RAILS_ENV"] ||= "test"
|
3
5
|
require File.expand_path("../../config/environment", __FILE__)
|
4
6
|
# Prevent database truncation if the environment is production
|
5
7
|
abort("The Rails environment is running in production mode!") if Rails.env.production?
|
6
8
|
require "spec_helper"
|
9
|
+
require "sapience/rails"
|
7
10
|
require "rspec/rails"
|
8
11
|
require "rspec/its"
|
9
|
-
|
10
|
-
require_relative "../../spec/support/file_helper"
|
12
|
+
require_relative "../../../spec/support/file_helper"
|
11
13
|
|
12
14
|
Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f }
|
13
15
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
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: 0.2.
|
4
|
+
version: 0.2.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mikael Henriksson
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-09-
|
12
|
+
date: 2016-09-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: concurrent-ruby
|
@@ -286,7 +286,6 @@ files:
|
|
286
286
|
- lib/sapience/concerns/compatibility.rb
|
287
287
|
- lib/sapience/config_loader.rb
|
288
288
|
- lib/sapience/configuration.rb
|
289
|
-
- lib/sapience/configuration/grape.rb
|
290
289
|
- lib/sapience/core_ext/hash.rb
|
291
290
|
- lib/sapience/core_ext/symbol.rb
|
292
291
|
- lib/sapience/core_ext/thread.rb
|
@@ -318,106 +317,113 @@ files:
|
|
318
317
|
- lib/sapience/sneakers.rb
|
319
318
|
- lib/sapience/subscriber.rb
|
320
319
|
- lib/sapience/version.rb
|
320
|
+
- lib/tasks/coverage.rake
|
321
321
|
- sapience.gemspec
|
322
|
-
-
|
323
|
-
-
|
324
|
-
-
|
325
|
-
-
|
326
|
-
-
|
327
|
-
-
|
328
|
-
-
|
329
|
-
-
|
330
|
-
-
|
331
|
-
-
|
332
|
-
-
|
333
|
-
-
|
334
|
-
-
|
335
|
-
-
|
336
|
-
-
|
337
|
-
-
|
338
|
-
-
|
339
|
-
-
|
340
|
-
-
|
341
|
-
-
|
342
|
-
-
|
343
|
-
-
|
344
|
-
-
|
345
|
-
-
|
346
|
-
-
|
347
|
-
-
|
348
|
-
-
|
349
|
-
-
|
350
|
-
-
|
351
|
-
-
|
352
|
-
-
|
353
|
-
-
|
354
|
-
-
|
355
|
-
-
|
356
|
-
-
|
357
|
-
-
|
358
|
-
-
|
359
|
-
-
|
360
|
-
-
|
361
|
-
-
|
362
|
-
-
|
363
|
-
-
|
364
|
-
-
|
365
|
-
-
|
366
|
-
-
|
367
|
-
-
|
368
|
-
-
|
369
|
-
-
|
370
|
-
-
|
371
|
-
-
|
372
|
-
-
|
373
|
-
-
|
374
|
-
-
|
375
|
-
-
|
376
|
-
-
|
377
|
-
-
|
378
|
-
-
|
379
|
-
-
|
380
|
-
-
|
381
|
-
-
|
382
|
-
-
|
383
|
-
-
|
384
|
-
-
|
385
|
-
-
|
386
|
-
-
|
387
|
-
-
|
388
|
-
-
|
389
|
-
-
|
390
|
-
-
|
391
|
-
-
|
392
|
-
-
|
393
|
-
-
|
394
|
-
-
|
395
|
-
-
|
396
|
-
-
|
397
|
-
-
|
398
|
-
-
|
399
|
-
-
|
400
|
-
-
|
401
|
-
-
|
402
|
-
-
|
403
|
-
-
|
404
|
-
-
|
405
|
-
-
|
406
|
-
-
|
407
|
-
-
|
408
|
-
-
|
409
|
-
-
|
410
|
-
-
|
411
|
-
-
|
412
|
-
-
|
413
|
-
-
|
414
|
-
-
|
415
|
-
-
|
416
|
-
-
|
417
|
-
-
|
418
|
-
-
|
419
|
-
-
|
420
|
-
-
|
322
|
+
- test_apps/grape/.gitignore
|
323
|
+
- test_apps/grape/.simplecov
|
324
|
+
- test_apps/grape/Gemfile
|
325
|
+
- test_apps/grape/Rakefile.rb
|
326
|
+
- test_apps/grape/config.ru
|
327
|
+
- test_apps/grape/lib/ping.rb
|
328
|
+
- test_apps/grape/lib/ping/api.rb
|
329
|
+
- test_apps/grape/spec/lib/ping/api_spec.rb
|
330
|
+
- test_apps/grape/spec/spec_helper.rb
|
331
|
+
- test_apps/rails/.gitignore
|
332
|
+
- test_apps/rails/.ruby-version
|
333
|
+
- test_apps/rails/.simplecov
|
334
|
+
- test_apps/rails/Gemfile
|
335
|
+
- test_apps/rails/README.md
|
336
|
+
- test_apps/rails/Rakefile
|
337
|
+
- test_apps/rails/app/assets/config/manifest.js
|
338
|
+
- test_apps/rails/app/assets/images/.keep
|
339
|
+
- test_apps/rails/app/assets/javascripts/posts.js
|
340
|
+
- test_apps/rails/app/assets/stylesheets/application.css
|
341
|
+
- test_apps/rails/app/assets/stylesheets/posts.css
|
342
|
+
- test_apps/rails/app/assets/stylesheets/scaffold.css
|
343
|
+
- test_apps/rails/app/channels/application_cable/channel.rb
|
344
|
+
- test_apps/rails/app/channels/application_cable/connection.rb
|
345
|
+
- test_apps/rails/app/controllers/application_controller.rb
|
346
|
+
- test_apps/rails/app/controllers/concerns/.keep
|
347
|
+
- test_apps/rails/app/controllers/posts_controller.rb
|
348
|
+
- test_apps/rails/app/helpers/application_helper.rb
|
349
|
+
- test_apps/rails/app/helpers/posts_helper.rb
|
350
|
+
- test_apps/rails/app/jobs/application_job.rb
|
351
|
+
- test_apps/rails/app/mailers/application_mailer.rb
|
352
|
+
- test_apps/rails/app/models/application_record.rb
|
353
|
+
- test_apps/rails/app/models/concerns/.keep
|
354
|
+
- test_apps/rails/app/models/post.rb
|
355
|
+
- test_apps/rails/app/models/user.rb
|
356
|
+
- test_apps/rails/app/views/layouts/application.html.erb
|
357
|
+
- test_apps/rails/app/views/layouts/mailer.html.erb
|
358
|
+
- test_apps/rails/app/views/layouts/mailer.text.erb
|
359
|
+
- test_apps/rails/app/views/posts/_form.html.slim
|
360
|
+
- test_apps/rails/app/views/posts/edit.html.slim
|
361
|
+
- test_apps/rails/app/views/posts/index.html.slim
|
362
|
+
- test_apps/rails/app/views/posts/new.html.slim
|
363
|
+
- test_apps/rails/app/views/posts/show.html.slim
|
364
|
+
- test_apps/rails/app/workers/test_worker.rb
|
365
|
+
- test_apps/rails/bin/bundle
|
366
|
+
- test_apps/rails/bin/rails
|
367
|
+
- test_apps/rails/bin/rake
|
368
|
+
- test_apps/rails/bin/setup
|
369
|
+
- test_apps/rails/bin/sneakers
|
370
|
+
- test_apps/rails/bin/update
|
371
|
+
- test_apps/rails/config.ru
|
372
|
+
- test_apps/rails/config/application.rb
|
373
|
+
- test_apps/rails/config/boot.rb
|
374
|
+
- test_apps/rails/config/cable.yml
|
375
|
+
- test_apps/rails/config/database.yml
|
376
|
+
- test_apps/rails/config/environment.rb
|
377
|
+
- test_apps/rails/config/environments/development.rb
|
378
|
+
- test_apps/rails/config/environments/production.rb
|
379
|
+
- test_apps/rails/config/environments/test.rb
|
380
|
+
- test_apps/rails/config/initializers/application_controller_renderer.rb
|
381
|
+
- test_apps/rails/config/initializers/backtrace_silencers.rb
|
382
|
+
- test_apps/rails/config/initializers/cookies_serializer.rb
|
383
|
+
- test_apps/rails/config/initializers/filter_parameter_logging.rb
|
384
|
+
- test_apps/rails/config/initializers/inflections.rb
|
385
|
+
- test_apps/rails/config/initializers/mime_types.rb
|
386
|
+
- test_apps/rails/config/initializers/new_framework_defaults.rb
|
387
|
+
- test_apps/rails/config/initializers/session_store.rb
|
388
|
+
- test_apps/rails/config/initializers/sneakers.rb
|
389
|
+
- test_apps/rails/config/initializers/wrap_parameters.rb
|
390
|
+
- test_apps/rails/config/locales/en.yml
|
391
|
+
- test_apps/rails/config/puma.rb
|
392
|
+
- test_apps/rails/config/routes.rb
|
393
|
+
- test_apps/rails/config/sapience_example.yml
|
394
|
+
- test_apps/rails/config/secrets.yml
|
395
|
+
- test_apps/rails/db/migrate/20160812092236_create_users.rb
|
396
|
+
- test_apps/rails/db/migrate/20160902141445_create_posts.rb
|
397
|
+
- test_apps/rails/db/schema.rb
|
398
|
+
- test_apps/rails/db/seeds.rb
|
399
|
+
- test_apps/rails/lib/assets/.keep
|
400
|
+
- test_apps/rails/lib/external_sneaker.rb
|
401
|
+
- test_apps/rails/lib/tasks/.keep
|
402
|
+
- test_apps/rails/public/404.html
|
403
|
+
- test_apps/rails/public/422.html
|
404
|
+
- test_apps/rails/public/500.html
|
405
|
+
- test_apps/rails/public/apple-touch-icon-precomposed.png
|
406
|
+
- test_apps/rails/public/apple-touch-icon.png
|
407
|
+
- test_apps/rails/public/favicon.ico
|
408
|
+
- test_apps/rails/public/robots.txt
|
409
|
+
- test_apps/rails/spec/controllers/posts_controller_spec.rb
|
410
|
+
- test_apps/rails/spec/factories/posts.rb
|
411
|
+
- test_apps/rails/spec/factories/users.rb
|
412
|
+
- test_apps/rails/spec/fixtures/sapience.yml
|
413
|
+
- test_apps/rails/spec/helpers/posts_helper_spec.rb
|
414
|
+
- test_apps/rails/spec/integration/sapience_spec.rb
|
415
|
+
- test_apps/rails/spec/models/post_spec.rb
|
416
|
+
- test_apps/rails/spec/models/user_spec.rb
|
417
|
+
- test_apps/rails/spec/rails_helper.rb
|
418
|
+
- test_apps/rails/spec/requests/posts_spec.rb
|
419
|
+
- test_apps/rails/spec/routing/posts_routing_spec.rb
|
420
|
+
- test_apps/rails/spec/spec_helper.rb
|
421
|
+
- test_apps/rails/spec/views/posts/edit.html.slim_spec.rb
|
422
|
+
- test_apps/rails/spec/views/posts/index.html.slim_spec.rb
|
423
|
+
- test_apps/rails/spec/views/posts/new.html.slim_spec.rb
|
424
|
+
- test_apps/rails/spec/views/posts/show.html.slim_spec.rb
|
425
|
+
- test_apps/rails/spec/workers/test_worker_spec.rb
|
426
|
+
- test_apps/rails/vendor/assets/stylesheets/.keep
|
421
427
|
homepage: https://github.com/reevoo/sapience
|
422
428
|
licenses:
|
423
429
|
- MIT
|
data/test_app/.rspec
DELETED
data/test_app/tmp/.keep
DELETED
File without changes
|
File without changes
|
data/test_app.simplecov
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
require "simplecov-json"
|
2
|
-
require "codeclimate-test-reporter"
|
3
|
-
require "coveralls"
|
4
|
-
|
5
|
-
CodeClimate::TestReporter.start
|
6
|
-
SimpleCov.maximum_coverage_drop 1
|
7
|
-
|
8
|
-
SimpleCov.formatters = [
|
9
|
-
SimpleCov::Formatter::HTMLFormatter,
|
10
|
-
SimpleCov::Formatter::JSONFormatter,
|
11
|
-
CodeClimate::TestReporter::Formatter,
|
12
|
-
Coveralls::SimpleCov::Formatter,
|
13
|
-
]
|
14
|
-
|
15
|
-
SimpleCov.start do
|
16
|
-
add_filter "/spec/"
|
17
|
-
add_filter "/bin/"
|
18
|
-
add_filter "/gemfiles/"
|
19
|
-
end
|