Sha256: ba441cee335d4f946bc06f6fe72b6a4b585e3474840a0e6924c6ccc155142e31

Contents?: true

Size: 410 Bytes

Versions: 22

Compression:

Stored size: 410 Bytes

Contents

require "cabin/namespace"

# ALL CAPS MEANS SERIOUS BUSINESS
module Cabin::Mixins::CAPSLOCK
  def self.extended(instance)
    self.included(instance.class)
  end
  def self.included(klass)
    klass.filter do |event|
      # CAPITALIZE ALL THE STRINGS
      event.each do |key, value|
        event[key] = value.upcase if value.respond_to?(:upcase)
      end
    end
  end
end # MODULE CABIN::MIXINS::CAPSLOCK

Version data entries

22 entries across 20 versions & 6 rubygems

Version Path
logstash-filter-zabbix-0.1.2 vendor/bundle/jruby/1.9/gems/cabin-0.8.1/lib/cabin/mixins/CAPSLOCK.rb
logstash-filter-zabbix-0.1.1 vendor/bundle/jruby/1.9/gems/cabin-0.8.1/lib/cabin/mixins/CAPSLOCK.rb
ivanvc-logstash-input-s3-3.1.1.4 vendor/local/gems/cabin-0.8.1/lib/cabin/mixins/CAPSLOCK.rb
ivanvc-logstash-input-s3-3.1.1.3 vendor/local/gems/cabin-0.8.1/lib/cabin/mixins/CAPSLOCK.rb
ivanvc-logstash-input-s3-3.1.1.2 vendor/local/gems/cabin-0.8.1/lib/cabin/mixins/CAPSLOCK.rb
cabin-0.9.0 lib/cabin/mixins/CAPSLOCK.rb
able-neo4j-1.0.0 vendor/bundle/jruby/1.9/gems/cabin-0.7.1/lib/cabin/mixins/CAPSLOCK.rb
cabin-0.8.1 lib/cabin/mixins/CAPSLOCK.rb
cabin-0.8.0 lib/cabin/mixins/CAPSLOCK.rb
logstash-input-beats-2.0.2 vendor/jruby/1.9/gems/cabin-0.7.2/lib/cabin/mixins/CAPSLOCK.rb
logstash-input-beats-2.0.2 vendor/jruby/1.9/gems/logstash-codec-json-2.0.3/vendor/gems/cabin-0.7.2/lib/cabin/mixins/CAPSLOCK.rb
logstash-input-beats-2.0.2 vendor/jruby/1.9/gems/cabin-0.7.1/lib/cabin/mixins/CAPSLOCK.rb
logstash-codec-json-2.0.3 vendor/gems/cabin-0.7.2/lib/cabin/mixins/CAPSLOCK.rb
cabin-0.7.2 lib/cabin/mixins/CAPSLOCK.rb
logstash-input-beats-0.9.2 vendor/jruby/1.9/gems/cabin-0.7.1/lib/cabin/mixins/CAPSLOCK.rb
logstash-input-beats-0.9.1 vendor/jruby/1.9/gems/cabin-0.7.1/lib/cabin/mixins/CAPSLOCK.rb
cabin-0.7.1 lib/cabin/mixins/CAPSLOCK.rb
cabin-0.6.1 lib/cabin/mixins/CAPSLOCK.rb
cabin-0.6.0 lib/cabin/mixins/CAPSLOCK.rb
cabin-0.5.0 lib/cabin/mixins/CAPSLOCK.rb