runtimeerror_notifier 0.0.19 → 0.0.20
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.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/runtimeerror_notifier/sidekiq.rb +22 -0
- data/lib/runtimeerror_notifier.rb +1 -0
- metadata +27 -26
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 25ceee5bf17b849b43be9a56735a3c9c073e3b67
         | 
| 4 | 
            +
              data.tar.gz: cbec7b5426aef506d2c86cc0baaab2e9ef09bbe7
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 0a574b8eb15f6e473ae7c7c6d6aff1a7cb94ded7a1ab7540429bfa5382376bf43d46f26d3aad5a2d9cee3638182a8ce6c2c5db27b42fc9e30370dc408d939595
         | 
| 7 | 
            +
              data.tar.gz: 6927e270a411dfe79324f4c444218f582c9bbea61fba01fbc30d033614c6bcd8ccb9b31b309807d31dc6a9a8b90170694c5c0231177e3974ae88eda662df3725
         | 
    
        data/README.md
    CHANGED
    
    | @@ -7,7 +7,7 @@ This gem acts as the agent for [RuntimeError.net](http://runtimeerror.net). Inst | |
| 7 7 | 
             
            **Step 1.** Add it as a gem in your __Gemfile__
         | 
| 8 8 |  | 
| 9 9 | 
             
            ``` ruby
         | 
| 10 | 
            -
            gem 'runtimeerror_notifier' | 
| 10 | 
            +
            gem 'runtimeerror_notifier'
         | 
| 11 11 | 
             
            ```
         | 
| 12 12 |  | 
| 13 13 | 
             
            **Step 2.** Execute the following command to generate __config/initializers/runtimeerror_notifier.rb__
         | 
| @@ -0,0 +1,22 @@ | |
| 1 | 
            +
            # encoding: utf-8
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            if Sidekiq::VERSION < '3'
         | 
| 4 | 
            +
              module RuntimeerrorNotifier
         | 
| 5 | 
            +
                class Sidekiq
         | 
| 6 | 
            +
                  def call(worker, msg, queue)
         | 
| 7 | 
            +
                    begin
         | 
| 8 | 
            +
                      yield
         | 
| 9 | 
            +
                    rescue Exception => e
         | 
| 10 | 
            +
                      ::RuntimeerrorNotifier::Notifier.notification(msg, e)
         | 
| 11 | 
            +
                      raise
         | 
| 12 | 
            +
                    end
         | 
| 13 | 
            +
                  end
         | 
| 14 | 
            +
                end
         | 
| 15 | 
            +
              end
         | 
| 16 | 
            +
            else
         | 
| 17 | 
            +
              Sidekiq.configure_server do |config|
         | 
| 18 | 
            +
                config.error_handlers << Proc.new do |e, context|
         | 
| 19 | 
            +
                  ::RuntimeerrorNotifier::Notifier.notification(context, e)
         | 
| 20 | 
            +
                end
         | 
| 21 | 
            +
              end
         | 
| 22 | 
            +
            end
         | 
| @@ -1,6 +1,7 @@ | |
| 1 1 | 
             
            require 'runtimeerror_notifier/notifier'
         | 
| 2 2 | 
             
            require 'runtimeerror_notifier/tracker'
         | 
| 3 3 | 
             
            require 'runtimeerror_notifier/railtie' if defined?(Rails::Railtie)
         | 
| 4 | 
            +
            require 'runtimeerror_notifier/sidekiq' if defined?(Sidekiq)
         | 
| 4 5 |  | 
| 5 6 | 
             
            module RuntimeerrorNotifier
         | 
| 6 7 | 
             
              def self.for(*emails)
         | 
    
        metadata
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: runtimeerror_notifier
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0.0. | 
| 4 | 
            +
              version: 0.0.20
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Wong Liang Zan
         | 
| @@ -9,118 +9,118 @@ authors: | |
| 9 9 | 
             
            autorequire: 
         | 
| 10 10 | 
             
            bindir: bin
         | 
| 11 11 | 
             
            cert_chain: []
         | 
| 12 | 
            -
            date: 2014- | 
| 12 | 
            +
            date: 2014-10-28 00:00:00.000000000 Z
         | 
| 13 13 | 
             
            dependencies:
         | 
| 14 14 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 15 15 | 
             
              name: httparty
         | 
| 16 16 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 17 17 | 
             
                requirements:
         | 
| 18 | 
            -
                - -  | 
| 18 | 
            +
                - - ">="
         | 
| 19 19 | 
             
                  - !ruby/object:Gem::Version
         | 
| 20 20 | 
             
                    version: 0.10.0
         | 
| 21 21 | 
             
              type: :runtime
         | 
| 22 22 | 
             
              prerelease: false
         | 
| 23 23 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 24 24 | 
             
                requirements:
         | 
| 25 | 
            -
                - -  | 
| 25 | 
            +
                - - ">="
         | 
| 26 26 | 
             
                  - !ruby/object:Gem::Version
         | 
| 27 27 | 
             
                    version: 0.10.0
         | 
| 28 28 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 29 29 | 
             
              name: activesupport
         | 
| 30 30 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 31 31 | 
             
                requirements:
         | 
| 32 | 
            -
                - -  | 
| 32 | 
            +
                - - ">="
         | 
| 33 33 | 
             
                  - !ruby/object:Gem::Version
         | 
| 34 34 | 
             
                    version: '0'
         | 
| 35 35 | 
             
              type: :runtime
         | 
| 36 36 | 
             
              prerelease: false
         | 
| 37 37 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 38 38 | 
             
                requirements:
         | 
| 39 | 
            -
                - -  | 
| 39 | 
            +
                - - ">="
         | 
| 40 40 | 
             
                  - !ruby/object:Gem::Version
         | 
| 41 41 | 
             
                    version: '0'
         | 
| 42 42 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 43 43 | 
             
              name: actionpack
         | 
| 44 44 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 45 45 | 
             
                requirements:
         | 
| 46 | 
            -
                - -  | 
| 46 | 
            +
                - - ">="
         | 
| 47 47 | 
             
                  - !ruby/object:Gem::Version
         | 
| 48 48 | 
             
                    version: '0'
         | 
| 49 49 | 
             
              type: :runtime
         | 
| 50 50 | 
             
              prerelease: false
         | 
| 51 51 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 52 52 | 
             
                requirements:
         | 
| 53 | 
            -
                - -  | 
| 53 | 
            +
                - - ">="
         | 
| 54 54 | 
             
                  - !ruby/object:Gem::Version
         | 
| 55 55 | 
             
                    version: '0'
         | 
| 56 56 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 57 57 | 
             
              name: actionmailer
         | 
| 58 58 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 59 59 | 
             
                requirements:
         | 
| 60 | 
            -
                - -  | 
| 60 | 
            +
                - - ">="
         | 
| 61 61 | 
             
                  - !ruby/object:Gem::Version
         | 
| 62 62 | 
             
                    version: '0'
         | 
| 63 63 | 
             
              type: :runtime
         | 
| 64 64 | 
             
              prerelease: false
         | 
| 65 65 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 66 66 | 
             
                requirements:
         | 
| 67 | 
            -
                - -  | 
| 67 | 
            +
                - - ">="
         | 
| 68 68 | 
             
                  - !ruby/object:Gem::Version
         | 
| 69 69 | 
             
                    version: '0'
         | 
| 70 70 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 71 71 | 
             
              name: rake
         | 
| 72 72 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 73 73 | 
             
                requirements:
         | 
| 74 | 
            -
                - -  | 
| 74 | 
            +
                - - ">="
         | 
| 75 75 | 
             
                  - !ruby/object:Gem::Version
         | 
| 76 76 | 
             
                    version: '0'
         | 
| 77 77 | 
             
              type: :runtime
         | 
| 78 78 | 
             
              prerelease: false
         | 
| 79 79 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 80 80 | 
             
                requirements:
         | 
| 81 | 
            -
                - -  | 
| 81 | 
            +
                - - ">="
         | 
| 82 82 | 
             
                  - !ruby/object:Gem::Version
         | 
| 83 83 | 
             
                    version: '0'
         | 
| 84 84 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 85 85 | 
             
              name: rspec
         | 
| 86 86 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 87 87 | 
             
                requirements:
         | 
| 88 | 
            -
                - - ~>
         | 
| 88 | 
            +
                - - "~>"
         | 
| 89 89 | 
             
                  - !ruby/object:Gem::Version
         | 
| 90 90 | 
             
                    version: 2.11.0
         | 
| 91 91 | 
             
              type: :development
         | 
| 92 92 | 
             
              prerelease: false
         | 
| 93 93 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 94 94 | 
             
                requirements:
         | 
| 95 | 
            -
                - - ~>
         | 
| 95 | 
            +
                - - "~>"
         | 
| 96 96 | 
             
                  - !ruby/object:Gem::Version
         | 
| 97 97 | 
             
                    version: 2.11.0
         | 
| 98 98 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 99 99 | 
             
              name: shoulda
         | 
| 100 100 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 101 101 | 
             
                requirements:
         | 
| 102 | 
            -
                - - ~>
         | 
| 102 | 
            +
                - - "~>"
         | 
| 103 103 | 
             
                  - !ruby/object:Gem::Version
         | 
| 104 104 | 
             
                    version: 3.3.2
         | 
| 105 105 | 
             
              type: :development
         | 
| 106 106 | 
             
              prerelease: false
         | 
| 107 107 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 108 108 | 
             
                requirements:
         | 
| 109 | 
            -
                - - ~>
         | 
| 109 | 
            +
                - - "~>"
         | 
| 110 110 | 
             
                  - !ruby/object:Gem::Version
         | 
| 111 111 | 
             
                    version: 3.3.2
         | 
| 112 112 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 113 113 | 
             
              name: faker
         | 
| 114 114 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 115 115 | 
             
                requirements:
         | 
| 116 | 
            -
                - -  | 
| 116 | 
            +
                - - ">="
         | 
| 117 117 | 
             
                  - !ruby/object:Gem::Version
         | 
| 118 118 | 
             
                    version: '0'
         | 
| 119 119 | 
             
              type: :development
         | 
| 120 120 | 
             
              prerelease: false
         | 
| 121 121 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 122 122 | 
             
                requirements:
         | 
| 123 | 
            -
                - -  | 
| 123 | 
            +
                - - ">="
         | 
| 124 124 | 
             
                  - !ruby/object:Gem::Version
         | 
| 125 125 | 
             
                    version: '0'
         | 
| 126 126 | 
             
            description: This gem installs the agent of RuntimeError.net to your application.
         | 
| @@ -133,24 +133,25 @@ executables: [] | |
| 133 133 | 
             
            extensions: []
         | 
| 134 134 | 
             
            extra_rdoc_files: []
         | 
| 135 135 | 
             
            files:
         | 
| 136 | 
            +
            - CHANGELOG.md
         | 
| 137 | 
            +
            - LICENSE
         | 
| 138 | 
            +
            - README.md
         | 
| 136 139 | 
             
            - lib/generators/runtimeerror_notifier/install_generator.rb
         | 
| 137 140 | 
             
            - lib/generators/runtimeerror_notifier/templates/initializer.rb
         | 
| 141 | 
            +
            - lib/runtimeerror_notifier.rb
         | 
| 138 142 | 
             
            - lib/runtimeerror_notifier/missing_controller.rb
         | 
| 139 143 | 
             
            - lib/runtimeerror_notifier/notifier.rb
         | 
| 140 144 | 
             
            - lib/runtimeerror_notifier/railtie.rb
         | 
| 141 145 | 
             
            - lib/runtimeerror_notifier/rake_handler.rb
         | 
| 146 | 
            +
            - lib/runtimeerror_notifier/sidekiq.rb
         | 
| 142 147 | 
             
            - lib/runtimeerror_notifier/tracker.rb
         | 
| 143 | 
            -
            - lib/runtimeerror_notifier.rb
         | 
| 144 148 | 
             
            - templates/runtimeerror_notifier/_backtrace.html.erb
         | 
| 145 149 | 
             
            - templates/runtimeerror_notifier/_environment.html.erb
         | 
| 146 150 | 
             
            - templates/runtimeerror_notifier/_request.html.erb
         | 
| 147 151 | 
             
            - templates/runtimeerror_notifier/_session.html.erb
         | 
| 148 152 | 
             
            - templates/runtimeerror_notifier/_title.html.erb
         | 
| 149 153 | 
             
            - templates/runtimeerror_notifier/notification.html.erb
         | 
| 150 | 
            -
             | 
| 151 | 
            -
            - README.md
         | 
| 152 | 
            -
            - CHANGELOG.md
         | 
| 153 | 
            -
            homepage: https://github.com/develsadvocates/runtimeerror_notification
         | 
| 154 | 
            +
            homepage: https://github.com/develsadvocates/runtimeerror_notifier
         | 
| 154 155 | 
             
            licenses: []
         | 
| 155 156 | 
             
            metadata: {}
         | 
| 156 157 | 
             
            post_install_message: 
         | 
| @@ -159,17 +160,17 @@ require_paths: | |
| 159 160 | 
             
            - lib
         | 
| 160 161 | 
             
            required_ruby_version: !ruby/object:Gem::Requirement
         | 
| 161 162 | 
             
              requirements:
         | 
| 162 | 
            -
              - -  | 
| 163 | 
            +
              - - ">="
         | 
| 163 164 | 
             
                - !ruby/object:Gem::Version
         | 
| 164 165 | 
             
                  version: '0'
         | 
| 165 166 | 
             
            required_rubygems_version: !ruby/object:Gem::Requirement
         | 
| 166 167 | 
             
              requirements:
         | 
| 167 | 
            -
              - -  | 
| 168 | 
            +
              - - ">="
         | 
| 168 169 | 
             
                - !ruby/object:Gem::Version
         | 
| 169 170 | 
             
                  version: 1.3.6
         | 
| 170 171 | 
             
            requirements: []
         | 
| 171 172 | 
             
            rubyforge_project: 
         | 
| 172 | 
            -
            rubygems_version: 2. | 
| 173 | 
            +
            rubygems_version: 2.2.2
         | 
| 173 174 | 
             
            signing_key: 
         | 
| 174 175 | 
             
            specification_version: 4
         | 
| 175 176 | 
             
            summary: Handles uncaught exceptions from your application and integrates tightly
         |