peastash 0.2.2 → 0.2.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (89) hide show
  1. checksums.yaml +5 -5
  2. data/.circleci/config.yml +43 -0
  3. data/.gitignore +1 -0
  4. data/README.md +7 -3
  5. data/gemfiles/Gemfile.rails-4.2.x +0 -1
  6. data/gemfiles/{Gemfile.rails-3.2.x → Gemfile.rails-5.2.x} +1 -1
  7. data/gemfiles/{Gemfile.rails-4.0.x → Gemfile.rails-6.0.x} +1 -2
  8. data/gemfiles/{Gemfile.rails-4.1.x → Gemfile.rails-6.1.x} +1 -2
  9. data/gemfiles/Gemfile.rails-head +1 -2
  10. data/lib/peastash/log_device.rb +5 -0
  11. data/lib/peastash/outputs/io.rb +12 -2
  12. data/lib/peastash/rails_ext/railtie.rb +2 -2
  13. data/lib/peastash/version.rb +1 -1
  14. data/spec/dummy/config/application.rb +0 -2
  15. data/spec/dummy/config/environments/test.rb +0 -5
  16. data/spec/dummy/config/environments/test_with_specific_position.rb +0 -5
  17. data/spec/dummy/config/environments/test_without_peastash.rb +0 -5
  18. data/spec/peastash/middleware_spec.rb +4 -4
  19. data/spec/peastash/rails_ext/railtie_spec.rb +4 -12
  20. data/spec/peastash_spec.rb +4 -4
  21. metadata +7 -142
  22. data/.travis.yml +0 -23
  23. data/spec/dummy-3.2/.gitignore +0 -15
  24. data/spec/dummy-3.2/Gemfile +0 -38
  25. data/spec/dummy-3.2/README.rdoc +0 -261
  26. data/spec/dummy-3.2/Rakefile +0 -7
  27. data/spec/dummy-3.2/app/assets/images/rails.png +0 -0
  28. data/spec/dummy-3.2/app/assets/javascripts/application.js +0 -15
  29. data/spec/dummy-3.2/app/assets/stylesheets/application.css +0 -13
  30. data/spec/dummy-3.2/app/controllers/application_controller.rb +0 -3
  31. data/spec/dummy-3.2/app/helpers/application_helper.rb +0 -2
  32. data/spec/dummy-3.2/app/mailers/.gitkeep +0 -0
  33. data/spec/dummy-3.2/app/models/.gitkeep +0 -0
  34. data/spec/dummy-3.2/app/views/layouts/application.html.erb +0 -14
  35. data/spec/dummy-3.2/config.ru +0 -4
  36. data/spec/dummy-3.2/config/application.rb +0 -62
  37. data/spec/dummy-3.2/config/boot.rb +0 -6
  38. data/spec/dummy-3.2/config/database.yml +0 -25
  39. data/spec/dummy-3.2/config/environment.rb +0 -5
  40. data/spec/dummy-3.2/config/environments/development.rb +0 -37
  41. data/spec/dummy-3.2/config/environments/production.rb +0 -67
  42. data/spec/dummy-3.2/config/environments/test.rb +0 -38
  43. data/spec/dummy-3.2/config/environments/test_with_specific_position.rb +0 -39
  44. data/spec/dummy-3.2/config/environments/test_without_peastash.rb +0 -38
  45. data/spec/dummy-3.2/config/initializers/backtrace_silencers.rb +0 -7
  46. data/spec/dummy-3.2/config/initializers/inflections.rb +0 -15
  47. data/spec/dummy-3.2/config/initializers/mime_types.rb +0 -5
  48. data/spec/dummy-3.2/config/initializers/secret_token.rb +0 -7
  49. data/spec/dummy-3.2/config/initializers/session_store.rb +0 -8
  50. data/spec/dummy-3.2/config/initializers/wrap_parameters.rb +0 -14
  51. data/spec/dummy-3.2/config/locales/en.yml +0 -5
  52. data/spec/dummy-3.2/config/routes.rb +0 -58
  53. data/spec/dummy-3.2/db/seeds.rb +0 -7
  54. data/spec/dummy-3.2/doc/README_FOR_APP +0 -2
  55. data/spec/dummy-3.2/lib/assets/.gitkeep +0 -0
  56. data/spec/dummy-3.2/lib/tasks/.gitkeep +0 -0
  57. data/spec/dummy-3.2/log/.gitkeep +0 -0
  58. data/spec/dummy-3.2/public/404.html +0 -26
  59. data/spec/dummy-3.2/public/422.html +0 -26
  60. data/spec/dummy-3.2/public/500.html +0 -25
  61. data/spec/dummy-3.2/public/favicon.ico +0 -0
  62. data/spec/dummy-3.2/public/index.html +0 -241
  63. data/spec/dummy-3.2/public/robots.txt +0 -5
  64. data/spec/dummy-3.2/script/rails +0 -6
  65. data/spec/dummy-3.2/test/fixtures/.gitkeep +0 -0
  66. data/spec/dummy-3.2/test/functional/.gitkeep +0 -0
  67. data/spec/dummy-3.2/test/integration/.gitkeep +0 -0
  68. data/spec/dummy-3.2/test/performance/browsing_test.rb +0 -12
  69. data/spec/dummy-3.2/test/test_helper.rb +0 -13
  70. data/spec/dummy-3.2/test/unit/.gitkeep +0 -0
  71. data/spec/dummy-3.2/vendor/assets/javascripts/.gitkeep +0 -0
  72. data/spec/dummy-3.2/vendor/assets/stylesheets/.gitkeep +0 -0
  73. data/spec/dummy-3.2/vendor/plugins/.gitkeep +0 -0
  74. data/spec/dummy/README.rdoc +0 -28
  75. data/spec/dummy/Rakefile +0 -6
  76. data/spec/dummy/app/assets/images/.keep +0 -0
  77. data/spec/dummy/app/assets/javascripts/application.js +0 -13
  78. data/spec/dummy/app/assets/stylesheets/application.css +0 -15
  79. data/spec/dummy/app/controllers/concerns/.keep +0 -0
  80. data/spec/dummy/app/helpers/application_helper.rb +0 -2
  81. data/spec/dummy/app/mailers/.keep +0 -0
  82. data/spec/dummy/app/models/.keep +0 -0
  83. data/spec/dummy/app/models/concerns/.keep +0 -0
  84. data/spec/dummy/bin/bundle +0 -3
  85. data/spec/dummy/bin/rails +0 -4
  86. data/spec/dummy/bin/rake +0 -4
  87. data/spec/dummy/config/environments/development.rb +0 -34
  88. data/spec/dummy/config/environments/production.rb +0 -80
  89. data/spec/dummy/lib/assets/.keep +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 7093d147f2f4f5d620fe1ab7663422ff56aea2d7
4
- data.tar.gz: 37fe31079bc47006adfa959ec658f47237373485
2
+ SHA256:
3
+ metadata.gz: cbfa3e611f1691cb0629b7ac2a4bba7c0da58ddd56b53d57ec566994a1a7c2d7
4
+ data.tar.gz: ccb1ab3d9bcfbe3cec8445dc69b3f42834c713129d943687870549c8a3e47fa3
5
5
  SHA512:
6
- metadata.gz: 99136f85637eb3a2dd3185b4be323a98b822d6a374958fee002d41e61dbf700b931dad7bbf48943627a3470d36c218a24e0fbe096e740dcdbad0754da6dd1e02
7
- data.tar.gz: ffe35c9ecc91458b034b52b1d8fd7a6acdac4fad0689441771e2f2d3840f2bf4fdef632399f584827da5fc38d19ee01478cda1b886c55eabefa876ee60cf359f
6
+ metadata.gz: 965853b27ddac7c9c98e58d9cb8f91dc0a219c4680421ae2989994c33c94107ce916328a7f4d6d0b7eacc72d56df8991bdfd6fd7c1fc134e08173e46a6e3bef2
7
+ data.tar.gz: 256de726672274c40be5ef58b44aba3d7f739c6849fbcaad8be2761a15f3ef13b8222c23822b97d13e0f15306c9ec041a924af7fae3fbf52677a1435f66cd0e4
@@ -0,0 +1,43 @@
1
+ version: 2.1
2
+ orbs:
3
+ ruby: circleci/ruby@1.1.2
4
+
5
+ jobs:
6
+ test:
7
+ parameters:
8
+ ruby:
9
+ type: string
10
+ rails:
11
+ type: string
12
+ docker:
13
+ - image: circleci/ruby:<< parameters.ruby >>-node-browsers
14
+ executor: ruby/default
15
+ environment:
16
+ BUNDLE_GEMFILE: gemfiles/Gemfile.rails-<< parameters.rails >>
17
+ steps:
18
+ - checkout
19
+ - run:
20
+ name: Which bundler?
21
+ command: bundle -v
22
+ - run: bundle install
23
+ - run: bundle exec rspec
24
+
25
+ workflows:
26
+ all-tests:
27
+ jobs:
28
+ - test:
29
+ name: "rails 4.2 / ruby 2.5"
30
+ ruby: "2.5"
31
+ rails: "4.2.x"
32
+ - test:
33
+ name: "rails 5.2 / ruby 2.6"
34
+ ruby: "2.6"
35
+ rails: "5.2.x"
36
+ - test:
37
+ name: "rails 6.0 / ruby 2.7"
38
+ ruby: "2.7"
39
+ rails: "6.0.x"
40
+ - test:
41
+ name: "rails 6.1 / ruby 3.0"
42
+ ruby: "3.0"
43
+ rails: "6.1.x"
data/.gitignore CHANGED
@@ -6,3 +6,4 @@ pkg
6
6
  Gemfile.lock
7
7
  gemfiles/*.lock
8
8
  spec/dummy*/tmp
9
+ tmp/
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Peastash [![build status](https://travis-ci.org/elhu/peastash.png?branch=master)](https://travis-ci.org/elhu/peastash) [![Code Climate](https://codeclimate.com/github/elhu/peastash.png)](https://codeclimate.com/github/elhu/peastash)
1
+ # Peastash [![build status](https://circleci.com/gh/elhu/peastash.svg?style=svg)](https://circleci.com/gh/elhu/peastash) [![Code Climate](https://codeclimate.com/github/elhu/peastash.png)](https://codeclimate.com/github/elhu/peastash)
2
2
 
3
3
  ## Description
4
4
 
@@ -28,8 +28,8 @@ When the code inside the block is done running, a log entry will be created and
28
28
  The most basic usage would look like:
29
29
 
30
30
  ```ruby
31
- Peastash.with_instance.log do
32
- Peastash.with_instance.store[:foo] = 'bar'
31
+ Peastash.with_instance.log do |instance|
32
+ instance.store[:foo] = 'bar'
33
33
  end
34
34
  # This will produce a Logstash log entry looking like this:
35
35
  # {"@source":"peastash","@fields":{"foo":"bar"},"@tags":[],"@timestamp":"2014-05-27T15:18:29.824Z","@version":"1"}
@@ -69,6 +69,8 @@ If the argument is a path to a non-writeable file, Peastash will attempt to dele
69
69
  Peastash can easily be extended to output to any target.
70
70
  Simply configure Peastash's output with an object that responds to the ``#dump`` method. This method will be called at the end of the ``#log`` block, with 1 argument: a ``LogStash::Event`` object that you will probably need to serialize to json.
71
71
 
72
+ In case the directory doesn't exist, peastash won't crash, a tempfile will be created in /tmp (or $TMPDIR) and the data will be stored in this file. The full path of this tempfile will be printed to STDERR so it can easily be retrieved.
73
+
72
74
  ### What if I want to use it in my rack app?
73
75
 
74
76
  There's a middleware for that! Simply add the following somewhere:
@@ -101,6 +103,8 @@ config.peastash.enabled = true
101
103
  # You can also configure Peastash from here, for example:
102
104
  config.peastash.output = Peastash::Outputs::IO.new(File.join(Rails.root, 'log', "logstash_#{Rails.env}.log"))
103
105
  config.peastash.source = Rails.application.class.parent_name
106
+ config.peastash.before_block = ->(env, response) { Peastash.with_instance.store[:path] = Rack::Request.new(env).path }
107
+ config.peastash.after_block = ->(env, response) { Peastash.with_instance.store[:puma_wait] = env['puma.request_body_wait'] }
104
108
  ```
105
109
 
106
110
  By default, Peastash's Rails integration will log the same parameters as the Middleware version, plus the fields in the payload of the [``process_action.action_controller``](http://edgeguides.rubyonrails.org/active_support_instrumentation.html#process_action.action_controller) notification (except the params).
@@ -3,4 +3,3 @@ source 'https://rubygems.org'
3
3
  gemspec :path => '..'
4
4
 
5
5
  gem 'rails', '~> 4.2'
6
- gem 'mime-types', '~> 2.99.1'
@@ -2,4 +2,4 @@ source 'https://rubygems.org'
2
2
 
3
3
  gemspec :path => '..'
4
4
 
5
- gem 'rails', '~> 3.2'
5
+ gem 'rails', '~> 5.2'
@@ -2,5 +2,4 @@ source 'https://rubygems.org'
2
2
 
3
3
  gemspec :path => '..'
4
4
 
5
- gem 'rails', '~> 4.0'
6
- gem 'mime-types', '~> 2.99.1'
5
+ gem 'rails', '~> 6.0.3'
@@ -2,5 +2,4 @@ source 'https://rubygems.org'
2
2
 
3
3
  gemspec :path => '..'
4
4
 
5
- gem 'rails', '~> 4.0'
6
- gem 'mime-types', '~> 2.99.1'
5
+ gem 'rails', '~> 6.1.2'
@@ -2,5 +2,4 @@ source 'https://rubygems.org'
2
2
 
3
3
  gemspec :path => '..'
4
4
 
5
- gem 'rails', github: 'rails/rails'
6
- gem 'mime-types', '~> 2.99.1'
5
+ gem 'rails', github: 'rails/rails', branch: 'main'
@@ -10,6 +10,11 @@ class Peastash
10
10
  STDERR.puts "[#{Time.now}][#{Process.pid}] Could not open #{filename} for writing, recreating it. Info: #{stat_data.inspect}"
11
11
  FileUtils.rm(filename)
12
12
  create_logfile(filename)
13
+ rescue Errno::ENOENT => e
14
+ require 'tempfile'
15
+ temp_file = Tempfile.new([filename, '.log'])
16
+ STDERR.puts "[#{Time.now}][#{Process.pid}] Could not open #{filename} for writing: #{e.message}. Data will be writen in: #{temp_file.path}"
17
+ open_logfile(temp_file.path)
13
18
  end
14
19
  end
15
20
  end
@@ -9,8 +9,18 @@ class Peastash
9
9
  @@default_io
10
10
  end
11
11
 
12
- def initialize(file)
13
- @device = ::Peastash::LogDevice.new(file)
12
+ def initialize(file, *args)
13
+ if file.is_a?(String)
14
+ # Rewrite symlink path to realpath for instance
15
+ # /home/app/releases/20190528155050/log/logstash.log -> /home/app/shared/log/logstash.log
16
+ # if the symlinked folder gets deleted on further releases, the log rotation will fail with
17
+ # a long wait ending with : log rotation inter-process lock failed.
18
+ # realpath is called without the filename because it expects the full path to exists
19
+ dir = File.realpath(File.dirname(file))
20
+ name = File.basename(file)
21
+ file = "#{dir}/#{name}"
22
+ end
23
+ @device = ::Peastash::LogDevice.new(file, *args)
14
24
  end
15
25
 
16
26
  def dump(event)
@@ -10,7 +10,7 @@ class Peastash
10
10
  Peastash.with_instance.configure!(app.config.peastash)
11
11
  ActiveSupport::Notifications.subscribe('process_action.action_controller') do |name, started, finished, unique_id, data|
12
12
  # Handle parameters and sanitize if need be
13
- to_reject = [:db_runtime, :view_runtime, :exception]
13
+ to_reject = [:db_runtime, :view_runtime, :exception, :headers, :request, :response]
14
14
  payload = data.reject { |key, _| to_reject.include?(key) }
15
15
  payload.merge!(db: data[:db_runtime], view: data[:view_runtime])
16
16
  payload.merge!(exception: { class: data[:exception].first, message: data[:exception].last[0..200] }) if data.has_key?(:exception)
@@ -23,7 +23,7 @@ class Peastash
23
23
  Peastash.with_instance.store.merge!(payload) { |key, old_val, new_val| old_val }
24
24
  end
25
25
  before_middleware = app.config.peastash[:insert_before] || ActionDispatch::ShowExceptions
26
- app.config.middleware.insert_before before_middleware, Peastash::Middleware
26
+ app.config.middleware.insert_before before_middleware, Peastash::Middleware, app.config.peastash[:before_block], app.config.peastash[:after_block]
27
27
  end
28
28
  end
29
29
  end
@@ -1,3 +1,3 @@
1
1
  class Peastash
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.7"
3
3
  end
@@ -3,9 +3,7 @@ require File.expand_path('../boot', __FILE__)
3
3
  # Pick the frameworks you want:
4
4
  # require "active_record/railtie"
5
5
  require "action_controller/railtie"
6
- require "action_mailer/railtie"
7
6
  require "action_view/railtie"
8
- require "sprockets/railtie"
9
7
  # require "rails/test_unit/railtie"
10
8
 
11
9
  Bundler.require(*Rails.groups)
@@ -26,11 +26,6 @@ Rails.application.configure do
26
26
  # Disable request forgery protection in test environment.
27
27
  config.action_controller.allow_forgery_protection = false
28
28
 
29
- # Tell Action Mailer not to deliver emails to the real world.
30
- # The :test delivery method accumulates sent emails in the
31
- # ActionMailer::Base.deliveries array.
32
- config.action_mailer.delivery_method = :test
33
-
34
29
  # Print deprecation notices to the stderr.
35
30
  config.active_support.deprecation = :stderr
36
31
 
@@ -26,11 +26,6 @@ Rails.application.configure do
26
26
  # Disable request forgery protection in test environment.
27
27
  config.action_controller.allow_forgery_protection = false
28
28
 
29
- # Tell Action Mailer not to deliver emails to the real world.
30
- # The :test delivery method accumulates sent emails in the
31
- # ActionMailer::Base.deliveries array.
32
- config.action_mailer.delivery_method = :test
33
-
34
29
  # Print deprecation notices to the stderr.
35
30
  config.active_support.deprecation = :stderr
36
31
 
@@ -26,11 +26,6 @@ Rails.application.configure do
26
26
  # Disable request forgery protection in test environment.
27
27
  config.action_controller.allow_forgery_protection = false
28
28
 
29
- # Tell Action Mailer not to deliver emails to the real world.
30
- # The :test delivery method accumulates sent emails in the
31
- # ActionMailer::Base.deliveries array.
32
- config.action_mailer.delivery_method = :test
33
-
34
29
  # Print deprecation notices to the stderr.
35
30
  config.active_support.deprecation = :stderr
36
31
 
@@ -54,7 +54,7 @@ describe Peastash::Middleware do
54
54
  '@source' => Peastash::STORE_NAME,
55
55
  '@fields' => { path: '/', duration: 0, status: 200, ip: nil },
56
56
  '@tags' => [],
57
- '@pid' => an_instance_of(Fixnum),
57
+ '@pid' => a_kind_of(Numeric),
58
58
  })
59
59
  Timecop.freeze { @middleware.call env_for('/') }
60
60
  end
@@ -66,7 +66,7 @@ describe Peastash::Middleware do
66
66
  '@source' => Peastash::STORE_NAME,
67
67
  '@fields' => { duration: 0, status: 200, ip: nil, time_in_queue: 0.0 },
68
68
  '@tags' => [],
69
- '@pid' => an_instance_of(Fixnum),
69
+ '@pid' => a_kind_of(Numeric),
70
70
  })
71
71
  middleware = Peastash::Middleware.new(app)
72
72
  Timecop.freeze { middleware.call env_for('/', { 'HTTP_X_REQUEST_START' => Time.now.to_f }) }
@@ -93,7 +93,7 @@ describe Peastash::Middleware do
93
93
  '@source' => Peastash::STORE_NAME,
94
94
  '@fields' => { scheme: 'http', duration: 0, status: 200, ip: nil },
95
95
  '@tags' => [],
96
- '@pid' => an_instance_of(Fixnum),
96
+ '@pid' => a_kind_of(Numeric),
97
97
  })
98
98
  Timecop.freeze { @middleware.call env_for('/') }
99
99
  end
@@ -118,7 +118,7 @@ describe Peastash::Middleware do
118
118
  '@source' => Peastash::STORE_NAME,
119
119
  '@fields' => { duration: 0, status: 200, foo: 'foo', ip: nil },
120
120
  '@tags' => [],
121
- '@pid' => an_instance_of(Fixnum),
121
+ '@pid' => a_kind_of(Numeric),
122
122
  })
123
123
  Timecop.freeze { @middleware.call env_for('/') }
124
124
  end
@@ -34,7 +34,7 @@ describe Peastash::Railtie do
34
34
  context 'with regular conf' do
35
35
  before :all do
36
36
  ENV['RAILS_ENV'] = 'test'
37
- require testing_rails_32? ? 'dummy-3.2/config/environment' : 'dummy/config/environment'
37
+ require 'dummy/config/environment'
38
38
  end
39
39
 
40
40
  before(:each) { Peastash.with_instance.store.clear }
@@ -82,7 +82,7 @@ end
82
82
  def perform_request(path)
83
83
  (Rails.application.call env_for(path)).tap do |res|
84
84
  # Rack-Lock doesn't release the mutex if body is not closed
85
- res[2].close unless testing_rails_32?
85
+ res[2].close
86
86
  end
87
87
  end
88
88
 
@@ -92,15 +92,7 @@ def run_with_env(env = 'test')
92
92
  fork do
93
93
  SimpleCov.running = false
94
94
  ENV['RAILS_ENV'] = env
95
- if testing_rails_32?
96
- require 'dummy-3.2/config/environment'
97
- else
98
- require 'dummy/config/environment'
99
- end
95
+ require 'dummy/config/environment'
100
96
  yield
101
97
  end
102
- end
103
-
104
- def testing_rails_32?
105
- Rails.version.start_with?('3.')
106
- end
98
+ end
@@ -37,7 +37,7 @@ describe Peastash do
37
37
  '@source' => Peastash::STORE_NAME,
38
38
  '@fields' => an_instance_of(Hash),
39
39
  '@tags' => tags,
40
- '@pid' => an_instance_of(Fixnum),
40
+ '@pid' => a_kind_of(Numeric),
41
41
  })
42
42
  Peastash.with_instance.log {}
43
43
  end
@@ -48,7 +48,7 @@ describe Peastash do
48
48
  '@source' => 'foo',
49
49
  '@fields' => an_instance_of(Hash),
50
50
  '@tags' => [],
51
- '@pid' => an_instance_of(Fixnum),
51
+ '@pid' => a_kind_of(Numeric),
52
52
  })
53
53
  Peastash.with_instance.log {}
54
54
  end
@@ -122,7 +122,7 @@ describe Peastash do
122
122
  '@source' => Peastash::STORE_NAME,
123
123
  '@fields' => an_instance_of(Hash),
124
124
  '@tags' => base_tags + tags,
125
- '@pid' => an_instance_of(Fixnum),
125
+ '@pid' => a_kind_of(Numeric),
126
126
  })
127
127
  Peastash.with_instance.log(tags) {}
128
128
  end
@@ -192,7 +192,7 @@ describe Peastash do
192
192
  '@source' => Peastash::STORE_NAME,
193
193
  '@fields' => an_instance_of(Hash),
194
194
  '@tags' => base_tags + tags + additional_tags,
195
- '@pid' => an_instance_of(Fixnum),
195
+ '@pid' => a_kind_of(Numeric),
196
196
  })
197
197
  Peastash.with_instance.log(tags) { Peastash.with_instance.tags.concat(additional_tags) }
198
198
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: peastash
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vincent Boisard
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-06 00:00:00.000000000 Z
11
+ date: 2021-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: logstash-event
@@ -157,15 +157,15 @@ executables: []
157
157
  extensions: []
158
158
  extra_rdoc_files: []
159
159
  files:
160
+ - ".circleci/config.yml"
160
161
  - ".gitignore"
161
- - ".travis.yml"
162
162
  - Gemfile
163
163
  - README.md
164
164
  - Rakefile
165
- - gemfiles/Gemfile.rails-3.2.x
166
- - gemfiles/Gemfile.rails-4.0.x
167
- - gemfiles/Gemfile.rails-4.1.x
168
165
  - gemfiles/Gemfile.rails-4.2.x
166
+ - gemfiles/Gemfile.rails-5.2.x
167
+ - gemfiles/Gemfile.rails-6.0.x
168
+ - gemfiles/Gemfile.rails-6.1.x
169
169
  - gemfiles/Gemfile.rails-head
170
170
  - lib/peastash.rb
171
171
  - lib/peastash/log_device.rb
@@ -176,79 +176,13 @@ files:
176
176
  - lib/peastash/rails_ext/watch.rb
177
177
  - lib/peastash/version.rb
178
178
  - peastash.gemspec
179
- - spec/dummy-3.2/.gitignore
180
- - spec/dummy-3.2/Gemfile
181
- - spec/dummy-3.2/README.rdoc
182
- - spec/dummy-3.2/Rakefile
183
- - spec/dummy-3.2/app/assets/images/rails.png
184
- - spec/dummy-3.2/app/assets/javascripts/application.js
185
- - spec/dummy-3.2/app/assets/stylesheets/application.css
186
- - spec/dummy-3.2/app/controllers/application_controller.rb
187
- - spec/dummy-3.2/app/helpers/application_helper.rb
188
- - spec/dummy-3.2/app/mailers/.gitkeep
189
- - spec/dummy-3.2/app/models/.gitkeep
190
- - spec/dummy-3.2/app/views/layouts/application.html.erb
191
- - spec/dummy-3.2/config.ru
192
- - spec/dummy-3.2/config/application.rb
193
- - spec/dummy-3.2/config/boot.rb
194
- - spec/dummy-3.2/config/database.yml
195
- - spec/dummy-3.2/config/environment.rb
196
- - spec/dummy-3.2/config/environments/development.rb
197
- - spec/dummy-3.2/config/environments/production.rb
198
- - spec/dummy-3.2/config/environments/test.rb
199
- - spec/dummy-3.2/config/environments/test_with_specific_position.rb
200
- - spec/dummy-3.2/config/environments/test_without_peastash.rb
201
- - spec/dummy-3.2/config/initializers/backtrace_silencers.rb
202
- - spec/dummy-3.2/config/initializers/inflections.rb
203
- - spec/dummy-3.2/config/initializers/mime_types.rb
204
- - spec/dummy-3.2/config/initializers/secret_token.rb
205
- - spec/dummy-3.2/config/initializers/session_store.rb
206
- - spec/dummy-3.2/config/initializers/wrap_parameters.rb
207
- - spec/dummy-3.2/config/locales/en.yml
208
- - spec/dummy-3.2/config/routes.rb
209
- - spec/dummy-3.2/db/seeds.rb
210
- - spec/dummy-3.2/doc/README_FOR_APP
211
- - spec/dummy-3.2/lib/assets/.gitkeep
212
- - spec/dummy-3.2/lib/tasks/.gitkeep
213
- - spec/dummy-3.2/log/.gitkeep
214
- - spec/dummy-3.2/public/404.html
215
- - spec/dummy-3.2/public/422.html
216
- - spec/dummy-3.2/public/500.html
217
- - spec/dummy-3.2/public/favicon.ico
218
- - spec/dummy-3.2/public/index.html
219
- - spec/dummy-3.2/public/robots.txt
220
- - spec/dummy-3.2/script/rails
221
- - spec/dummy-3.2/test/fixtures/.gitkeep
222
- - spec/dummy-3.2/test/functional/.gitkeep
223
- - spec/dummy-3.2/test/integration/.gitkeep
224
- - spec/dummy-3.2/test/performance/browsing_test.rb
225
- - spec/dummy-3.2/test/test_helper.rb
226
- - spec/dummy-3.2/test/unit/.gitkeep
227
- - spec/dummy-3.2/vendor/assets/javascripts/.gitkeep
228
- - spec/dummy-3.2/vendor/assets/stylesheets/.gitkeep
229
- - spec/dummy-3.2/vendor/plugins/.gitkeep
230
- - spec/dummy/README.rdoc
231
- - spec/dummy/Rakefile
232
- - spec/dummy/app/assets/images/.keep
233
- - spec/dummy/app/assets/javascripts/application.js
234
- - spec/dummy/app/assets/stylesheets/application.css
235
179
  - spec/dummy/app/controllers/application_controller.rb
236
- - spec/dummy/app/controllers/concerns/.keep
237
180
  - spec/dummy/app/controllers/welcome_controller.rb
238
- - spec/dummy/app/helpers/application_helper.rb
239
- - spec/dummy/app/mailers/.keep
240
- - spec/dummy/app/models/.keep
241
- - spec/dummy/app/models/concerns/.keep
242
181
  - spec/dummy/app/views/layouts/application.html.erb
243
- - spec/dummy/bin/bundle
244
- - spec/dummy/bin/rails
245
- - spec/dummy/bin/rake
246
182
  - spec/dummy/config.ru
247
183
  - spec/dummy/config/application.rb
248
184
  - spec/dummy/config/boot.rb
249
185
  - spec/dummy/config/environment.rb
250
- - spec/dummy/config/environments/development.rb
251
- - spec/dummy/config/environments/production.rb
252
186
  - spec/dummy/config/environments/test.rb
253
187
  - spec/dummy/config/environments/test_with_specific_position.rb
254
188
  - spec/dummy/config/environments/test_without_peastash.rb
@@ -262,7 +196,6 @@ files:
262
196
  - spec/dummy/config/locales/en.yml
263
197
  - spec/dummy/config/routes.rb
264
198
  - spec/dummy/config/secrets.yml
265
- - spec/dummy/lib/assets/.keep
266
199
  - spec/dummy/log/.keep
267
200
  - spec/dummy/public/404.html
268
201
  - spec/dummy/public/422.html
@@ -292,85 +225,18 @@ required_rubygems_version: !ruby/object:Gem::Requirement
292
225
  - !ruby/object:Gem::Version
293
226
  version: '0'
294
227
  requirements: []
295
- rubyforge_project:
296
- rubygems_version: 2.4.5
228
+ rubygems_version: 3.0.6
297
229
  signing_key:
298
230
  specification_version: 4
299
231
  summary: Peastash allows you to instrument your code with the ELK stack easily.
300
232
  test_files:
301
- - spec/dummy-3.2/.gitignore
302
- - spec/dummy-3.2/Gemfile
303
- - spec/dummy-3.2/README.rdoc
304
- - spec/dummy-3.2/Rakefile
305
- - spec/dummy-3.2/app/assets/images/rails.png
306
- - spec/dummy-3.2/app/assets/javascripts/application.js
307
- - spec/dummy-3.2/app/assets/stylesheets/application.css
308
- - spec/dummy-3.2/app/controllers/application_controller.rb
309
- - spec/dummy-3.2/app/helpers/application_helper.rb
310
- - spec/dummy-3.2/app/mailers/.gitkeep
311
- - spec/dummy-3.2/app/models/.gitkeep
312
- - spec/dummy-3.2/app/views/layouts/application.html.erb
313
- - spec/dummy-3.2/config.ru
314
- - spec/dummy-3.2/config/application.rb
315
- - spec/dummy-3.2/config/boot.rb
316
- - spec/dummy-3.2/config/database.yml
317
- - spec/dummy-3.2/config/environment.rb
318
- - spec/dummy-3.2/config/environments/development.rb
319
- - spec/dummy-3.2/config/environments/production.rb
320
- - spec/dummy-3.2/config/environments/test.rb
321
- - spec/dummy-3.2/config/environments/test_with_specific_position.rb
322
- - spec/dummy-3.2/config/environments/test_without_peastash.rb
323
- - spec/dummy-3.2/config/initializers/backtrace_silencers.rb
324
- - spec/dummy-3.2/config/initializers/inflections.rb
325
- - spec/dummy-3.2/config/initializers/mime_types.rb
326
- - spec/dummy-3.2/config/initializers/secret_token.rb
327
- - spec/dummy-3.2/config/initializers/session_store.rb
328
- - spec/dummy-3.2/config/initializers/wrap_parameters.rb
329
- - spec/dummy-3.2/config/locales/en.yml
330
- - spec/dummy-3.2/config/routes.rb
331
- - spec/dummy-3.2/db/seeds.rb
332
- - spec/dummy-3.2/doc/README_FOR_APP
333
- - spec/dummy-3.2/lib/assets/.gitkeep
334
- - spec/dummy-3.2/lib/tasks/.gitkeep
335
- - spec/dummy-3.2/log/.gitkeep
336
- - spec/dummy-3.2/public/404.html
337
- - spec/dummy-3.2/public/422.html
338
- - spec/dummy-3.2/public/500.html
339
- - spec/dummy-3.2/public/favicon.ico
340
- - spec/dummy-3.2/public/index.html
341
- - spec/dummy-3.2/public/robots.txt
342
- - spec/dummy-3.2/script/rails
343
- - spec/dummy-3.2/test/fixtures/.gitkeep
344
- - spec/dummy-3.2/test/functional/.gitkeep
345
- - spec/dummy-3.2/test/integration/.gitkeep
346
- - spec/dummy-3.2/test/performance/browsing_test.rb
347
- - spec/dummy-3.2/test/test_helper.rb
348
- - spec/dummy-3.2/test/unit/.gitkeep
349
- - spec/dummy-3.2/vendor/assets/javascripts/.gitkeep
350
- - spec/dummy-3.2/vendor/assets/stylesheets/.gitkeep
351
- - spec/dummy-3.2/vendor/plugins/.gitkeep
352
- - spec/dummy/README.rdoc
353
- - spec/dummy/Rakefile
354
- - spec/dummy/app/assets/images/.keep
355
- - spec/dummy/app/assets/javascripts/application.js
356
- - spec/dummy/app/assets/stylesheets/application.css
357
233
  - spec/dummy/app/controllers/application_controller.rb
358
- - spec/dummy/app/controllers/concerns/.keep
359
234
  - spec/dummy/app/controllers/welcome_controller.rb
360
- - spec/dummy/app/helpers/application_helper.rb
361
- - spec/dummy/app/mailers/.keep
362
- - spec/dummy/app/models/.keep
363
- - spec/dummy/app/models/concerns/.keep
364
235
  - spec/dummy/app/views/layouts/application.html.erb
365
- - spec/dummy/bin/bundle
366
- - spec/dummy/bin/rails
367
- - spec/dummy/bin/rake
368
236
  - spec/dummy/config.ru
369
237
  - spec/dummy/config/application.rb
370
238
  - spec/dummy/config/boot.rb
371
239
  - spec/dummy/config/environment.rb
372
- - spec/dummy/config/environments/development.rb
373
- - spec/dummy/config/environments/production.rb
374
240
  - spec/dummy/config/environments/test.rb
375
241
  - spec/dummy/config/environments/test_with_specific_position.rb
376
242
  - spec/dummy/config/environments/test_without_peastash.rb
@@ -384,7 +250,6 @@ test_files:
384
250
  - spec/dummy/config/locales/en.yml
385
251
  - spec/dummy/config/routes.rb
386
252
  - spec/dummy/config/secrets.yml
387
- - spec/dummy/lib/assets/.keep
388
253
  - spec/dummy/log/.keep
389
254
  - spec/dummy/public/404.html
390
255
  - spec/dummy/public/422.html