sapience 1.0.11 → 1.0.12

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.
Files changed (121) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +5 -0
  3. data/lib/sapience/extensions/grape/middleware/logging.rb +4 -11
  4. data/lib/sapience/extensions/grape/notifications.rb +4 -1
  5. data/lib/sapience/extensions/grape/request_format_helper.rb +12 -0
  6. data/lib/sapience/version.rb +1 -1
  7. data/sapience.gemspec +1 -1
  8. metadata +3 -115
  9. data/test_apps/grape/.gitignore +0 -41
  10. data/test_apps/grape/.rspec +0 -1
  11. data/test_apps/grape/.simplecov +0 -25
  12. data/test_apps/grape/Appraisals +0 -9
  13. data/test_apps/grape/Gemfile +0 -31
  14. data/test_apps/grape/Rakefile +0 -8
  15. data/test_apps/grape/config.ru +0 -5
  16. data/test_apps/grape/gemfiles/grape_0.16.2.gemfile +0 -26
  17. data/test_apps/grape/gemfiles/grape_0.16.2.gemfile.lock +0 -140
  18. data/test_apps/grape/gemfiles/grape_0.17.0.gemfile +0 -25
  19. data/test_apps/grape/gemfiles/grape_0.17.0.gemfile.lock +0 -138
  20. data/test_apps/grape/lib/ping/api.rb +0 -21
  21. data/test_apps/grape/lib/ping.rb +0 -3
  22. data/test_apps/grape/spec/lib/ping/api_spec.rb +0 -81
  23. data/test_apps/grape/spec/spec_helper.rb +0 -26
  24. data/test_apps/rails/.gitignore +0 -37
  25. data/test_apps/rails/.rspec +0 -1
  26. data/test_apps/rails/.ruby-version +0 -1
  27. data/test_apps/rails/.simplecov +0 -25
  28. data/test_apps/rails/Gemfile +0 -48
  29. data/test_apps/rails/README.md +0 -24
  30. data/test_apps/rails/Rakefile +0 -12
  31. data/test_apps/rails/app/assets/config/manifest.js +0 -2
  32. data/test_apps/rails/app/assets/images/.keep +0 -0
  33. data/test_apps/rails/app/assets/javascripts/posts.js +0 -2
  34. data/test_apps/rails/app/assets/stylesheets/application.css +0 -15
  35. data/test_apps/rails/app/assets/stylesheets/posts.css +0 -4
  36. data/test_apps/rails/app/assets/stylesheets/scaffold.css +0 -84
  37. data/test_apps/rails/app/channels/application_cable/channel.rb +0 -4
  38. data/test_apps/rails/app/channels/application_cable/connection.rb +0 -4
  39. data/test_apps/rails/app/controllers/application_controller.rb +0 -3
  40. data/test_apps/rails/app/controllers/concerns/.keep +0 -0
  41. data/test_apps/rails/app/controllers/posts_controller.rb +0 -59
  42. data/test_apps/rails/app/helpers/application_helper.rb +0 -2
  43. data/test_apps/rails/app/helpers/posts_helper.rb +0 -2
  44. data/test_apps/rails/app/jobs/application_job.rb +0 -2
  45. data/test_apps/rails/app/jobs/test_job.rb +0 -12
  46. data/test_apps/rails/app/mailers/application_mailer.rb +0 -4
  47. data/test_apps/rails/app/models/application_record.rb +0 -3
  48. data/test_apps/rails/app/models/concerns/.keep +0 -0
  49. data/test_apps/rails/app/models/post.rb +0 -3
  50. data/test_apps/rails/app/models/user.rb +0 -3
  51. data/test_apps/rails/app/views/layouts/application.html.erb +0 -13
  52. data/test_apps/rails/app/views/layouts/mailer.html.erb +0 -13
  53. data/test_apps/rails/app/views/layouts/mailer.text.erb +0 -1
  54. data/test_apps/rails/app/views/posts/_form.html.slim +0 -18
  55. data/test_apps/rails/app/views/posts/edit.html.slim +0 -8
  56. data/test_apps/rails/app/views/posts/index.html.slim +0 -25
  57. data/test_apps/rails/app/views/posts/new.html.slim +0 -5
  58. data/test_apps/rails/app/views/posts/show.html.slim +0 -15
  59. data/test_apps/rails/app/workers/test_worker.rb +0 -17
  60. data/test_apps/rails/bin/bundle +0 -3
  61. data/test_apps/rails/bin/rails +0 -4
  62. data/test_apps/rails/bin/rake +0 -4
  63. data/test_apps/rails/bin/setup +0 -34
  64. data/test_apps/rails/bin/sneakers +0 -10
  65. data/test_apps/rails/bin/update +0 -29
  66. data/test_apps/rails/config/application.rb +0 -25
  67. data/test_apps/rails/config/boot.rb +0 -3
  68. data/test_apps/rails/config/cable.yml +0 -9
  69. data/test_apps/rails/config/database.yml +0 -24
  70. data/test_apps/rails/config/environment.rb +0 -5
  71. data/test_apps/rails/config/environments/development.rb +0 -49
  72. data/test_apps/rails/config/environments/production.rb +0 -78
  73. data/test_apps/rails/config/environments/test.rb +0 -42
  74. data/test_apps/rails/config/initializers/application_controller_renderer.rb +0 -6
  75. data/test_apps/rails/config/initializers/backtrace_silencers.rb +0 -7
  76. data/test_apps/rails/config/initializers/cookies_serializer.rb +0 -5
  77. data/test_apps/rails/config/initializers/filter_parameter_logging.rb +0 -4
  78. data/test_apps/rails/config/initializers/inflections.rb +0 -16
  79. data/test_apps/rails/config/initializers/mime_types.rb +0 -4
  80. data/test_apps/rails/config/initializers/new_framework_defaults.rb +0 -24
  81. data/test_apps/rails/config/initializers/session_store.rb +0 -3
  82. data/test_apps/rails/config/initializers/sneakers.rb +0 -14
  83. data/test_apps/rails/config/initializers/wrap_parameters.rb +0 -14
  84. data/test_apps/rails/config/locales/en.yml +0 -23
  85. data/test_apps/rails/config/puma.rb +0 -45
  86. data/test_apps/rails/config/routes.rb +0 -3
  87. data/test_apps/rails/config/sapience_example.yml +0 -24
  88. data/test_apps/rails/config/secrets.yml +0 -22
  89. data/test_apps/rails/config.ru +0 -5
  90. data/test_apps/rails/db/migrate/20160812092236_create_users.rb +0 -13
  91. data/test_apps/rails/db/migrate/20160902141445_create_posts.rb +0 -17
  92. data/test_apps/rails/db/schema.rb +0 -37
  93. data/test_apps/rails/db/seeds.rb +0 -7
  94. data/test_apps/rails/lib/assets/.keep +0 -0
  95. data/test_apps/rails/lib/external_sneaker.rb +0 -46
  96. data/test_apps/rails/lib/tasks/.keep +0 -0
  97. data/test_apps/rails/lib/tasks/sneakers.rake +0 -21
  98. data/test_apps/rails/public/404.html +0 -67
  99. data/test_apps/rails/public/422.html +0 -67
  100. data/test_apps/rails/public/500.html +0 -66
  101. data/test_apps/rails/public/apple-touch-icon-precomposed.png +0 -0
  102. data/test_apps/rails/public/apple-touch-icon.png +0 -0
  103. data/test_apps/rails/public/favicon.ico +0 -0
  104. data/test_apps/rails/public/robots.txt +0 -5
  105. data/test_apps/rails/spec/controllers/posts_controller_spec.rb +0 -7
  106. data/test_apps/rails/spec/factories/posts.rb +0 -7
  107. data/test_apps/rails/spec/factories/users.rb +0 -8
  108. data/test_apps/rails/spec/fixtures/sapience.yml +0 -15
  109. data/test_apps/rails/spec/integration/sapience_spec.rb +0 -14
  110. data/test_apps/rails/spec/jobs/test_job_spec.rb +0 -36
  111. data/test_apps/rails/spec/models/post_spec.rb +0 -14
  112. data/test_apps/rails/spec/rails_helper.rb +0 -45
  113. data/test_apps/rails/spec/requests/posts_spec.rb +0 -44
  114. data/test_apps/rails/spec/routing/posts_routing_spec.rb +0 -37
  115. data/test_apps/rails/spec/spec_helper.rb +0 -16
  116. data/test_apps/rails/spec/views/posts/edit.html.slim_spec.rb +0 -17
  117. data/test_apps/rails/spec/views/posts/index.html.slim_spec.rb +0 -17
  118. data/test_apps/rails/spec/views/posts/new.html.slim_spec.rb +0 -17
  119. data/test_apps/rails/spec/views/posts/show.html.slim_spec.rb +0 -14
  120. data/test_apps/rails/spec/workers/test_worker_spec.rb +0 -41
  121. 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: 3000f95011dbbb20f73e3cb9ba95f7df3270b84a
4
- data.tar.gz: c079d45e7bd0aecb28c38e98fc656b8a38167ebe
3
+ metadata.gz: ae04b1f22f074540165f61ec01984bc3c4deae70
4
+ data.tar.gz: c9690199caa95c88d73f204eec77ef251e3b70d4
5
5
  SHA512:
6
- metadata.gz: 1cb03d2e5cdfecbb017f61d9e93557dd5d53fbe1c7687a60758da8b0cbc14dc149ed3daa3ebd38040747316840f1622b1e8432eced86196bccf6e081b129276b
7
- data.tar.gz: f5156e824985e613c78deb80b9f32ce14c83c4907cd81294cf86fbc428f19f7473b3d46b80fac296f9d7032727ad7da8ef3b30e8ad32882470b48a9c687a1eb8
6
+ metadata.gz: 05c062963ae6bcbb52518431c7b92e5af8360cc51f155efe332f5d8a066168e3f3b85f572469d5ef5dd4b342d3b70b4bd4d07f0367826c73546de04f9a0c3eef
7
+ data.tar.gz: c5f46eb79fba5d3efb89c34962967fa046e51e1128e2626e70dd18b8cca7d7bbbc95456a3bf6f8d7068250138962721af7c7b286e1109a0b9f82b5dbd57163ef
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## v1.0.12
2
+
3
+ - Fix NoMethodError in Grape::Notification
4
+ - Exclude test apps from Gem
5
+
1
6
  ## v1.0.11
2
7
 
3
8
  - Fix a NoMethodError with logging the response format in grape
@@ -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: response_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 = payload[:endpoint].instance_variable_get(:@app).instance_variable_get(:@app).options[:format]
31
+ format = request_format(endpoint.env)
29
32
  path = route.pattern.path.dup
30
33
 
31
34
  path.sub!(/\(\.#{format}\)$/, "")
@@ -0,0 +1,12 @@
1
+ module Sapience
2
+ module Extensions
3
+ module Grape
4
+ module RequestFormatHelper
5
+ def request_format(env)
6
+ content_type = env["CONTENT_TYPE"] || env["CONTENT-TYPE"]
7
+ content_type.to_s.split("/").last
8
+ end
9
+ end
10
+ end
11
+ end
12
+ end
@@ -1,3 +1,3 @@
1
1
  module Sapience
2
- VERSION = "1.0.11"
2
+ VERSION = "1.0.12"
3
3
  end
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.11
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.6.7
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.
@@ -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
@@ -1 +0,0 @@
1
- test_apps/grape/../../.rspec
@@ -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
@@ -1,9 +0,0 @@
1
- appraise "grape-0.17.0" do
2
- gem "grape", "0.17.0"
3
- end
4
-
5
- appraise "grape-0.16.2" do
6
- gem "grape", "0.16.2"
7
- gem "activesupport", "4.2.6"
8
- gem "rack", "1.6.4"
9
- end
@@ -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
@@ -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]
@@ -1,5 +0,0 @@
1
- # This file is used by Rack-based servers to start the application.
2
-
3
- require_relative 'lib/ping/api'
4
-
5
- run Ping::API
@@ -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