appsignal 3.12.2-java → 3.12.4-java
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/CHANGELOG.md +17 -0
 - data/gemfiles/rails-7.1.gemfile +0 -1
 - data/lib/appsignal/config.rb +2 -0
 - data/lib/appsignal/event_formatter/view_component/render_formatter.rb +1 -1
 - data/lib/appsignal/version.rb +1 -1
 - data/lib/appsignal.rb +1 -1
 - data/spec/lib/appsignal/config_spec.rb +4 -0
 - data/spec/lib/appsignal/event_formatter/view_component/render_formatter_spec.rb +2 -4
 - data/spec/lib/appsignal_spec.rb +22 -0
 - data/spec/support/helpers/dependency_helper.rb +0 -4
 - metadata +3 -3
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 7904e582ac4fe65badc10c65b3841bf4fc9f9a041cf563ec33aaca3f7bcccee5
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: eca58188431742cd4d2b3e188c8fc4250cd794608d2b672f4f8d632d7643c4b1
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: d3d863d9b2f277a32dd70d2a99f05b7e25b2ab34a6359d3b58db5edbdb54feb60b8495d70ff7e45ac78931e8aec5851361ccd844a7b0c9f465f043ad35a56b22
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 24a5d159c09b937c227e23dbc5f2d1cdda6c3e1d3161d8bc5ccf36522eb78d43c999ab95def794dea3f7ea3183654dc770842b04d6b0de37153b5902f2c33454
         
     | 
    
        data/CHANGELOG.md
    CHANGED
    
    | 
         @@ -1,5 +1,22 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            # AppSignal for Ruby gem Changelog
         
     | 
| 
       2 
2 
     | 
    
         | 
| 
      
 3 
     | 
    
         
            +
            ## 3.12.4
         
     | 
| 
      
 4 
     | 
    
         
            +
             
     | 
| 
      
 5 
     | 
    
         
            +
            _Published on 2024-08-01._
         
     | 
| 
      
 6 
     | 
    
         
            +
             
     | 
| 
      
 7 
     | 
    
         
            +
            ### Fixed
         
     | 
| 
      
 8 
     | 
    
         
            +
             
     | 
| 
      
 9 
     | 
    
         
            +
            - Fix an issue where, depending on the relative order of the `appsignal` and `view_component` dependencies in the Gemfile, the ViewComponent instrumentation would not load. (patch [0f37fa30](https://github.com/appsignal/appsignal-ruby/commit/0f37fa30dec66cccb68755d332e835487e8fd039))
         
     | 
| 
      
 10 
     | 
    
         
            +
             
     | 
| 
      
 11 
     | 
    
         
            +
            ## 3.12.3
         
     | 
| 
      
 12 
     | 
    
         
            +
             
     | 
| 
      
 13 
     | 
    
         
            +
            _Published on 2024-07-30._
         
     | 
| 
      
 14 
     | 
    
         
            +
             
     | 
| 
      
 15 
     | 
    
         
            +
            ### Fixed
         
     | 
| 
      
 16 
     | 
    
         
            +
             
     | 
| 
      
 17 
     | 
    
         
            +
            - Fix the application environment being reported as "[]" when no valid environment could be found. (patch [cf081253](https://github.com/appsignal/appsignal-ruby/commit/cf0812536e0651ee5b62427847a4244d4640e22b))
         
     | 
| 
      
 18 
     | 
    
         
            +
            - Fix `Appsignal.configure` call without `env` argument not reusing the previously configured configuration. (patch [65d5428c](https://github.com/appsignal/appsignal-ruby/commit/65d5428c4d41f683a796b67b0ae339a0d213c802))
         
     | 
| 
      
 19 
     | 
    
         
            +
             
     | 
| 
       3 
20 
     | 
    
         
             
            ## 3.12.2
         
     | 
| 
       4 
21 
     | 
    
         | 
| 
       5 
22 
     | 
    
         
             
            _Published on 2024-07-25._
         
     | 
    
        data/gemfiles/rails-7.1.gemfile
    CHANGED
    
    
    
        data/lib/appsignal/config.rb
    CHANGED
    
    
    
        data/lib/appsignal/version.rb
    CHANGED
    
    
    
        data/lib/appsignal.rb
    CHANGED
    
    
| 
         @@ -1,9 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            describe Appsignal::EventFormatter::ViewComponent::RenderFormatter do
         
     | 
| 
       2 
2 
     | 
    
         
             
              let(:klass) { Appsignal::EventFormatter::ViewComponent::RenderFormatter }
         
     | 
| 
       3 
3 
     | 
    
         | 
| 
       4 
     | 
    
         
            -
              if DependencyHelper.rails_present? 
     | 
| 
       5 
     | 
    
         
            -
                require "view_component"
         
     | 
| 
       6 
     | 
    
         
            -
             
     | 
| 
      
 4 
     | 
    
         
            +
              if DependencyHelper.rails_present?
         
     | 
| 
       7 
5 
     | 
    
         
             
                context "when in a Rails app" do
         
     | 
| 
       8 
6 
     | 
    
         
             
                  let(:formatter) { klass.new }
         
     | 
| 
       9 
7 
     | 
    
         
             
                  before { allow(Rails.root).to receive(:to_s).and_return("/var/www/app/20130101") }
         
     | 
| 
         @@ -31,7 +29,7 @@ describe Appsignal::EventFormatter::ViewComponent::RenderFormatter do 
     | 
|
| 
       31 
29 
     | 
    
         
             
                  end
         
     | 
| 
       32 
30 
     | 
    
         
             
                end
         
     | 
| 
       33 
31 
     | 
    
         
             
              else
         
     | 
| 
       34 
     | 
    
         
            -
                context "when not in a Rails app 
     | 
| 
      
 32 
     | 
    
         
            +
                context "when not in a Rails app" do
         
     | 
| 
       35 
33 
     | 
    
         
             
                  it "does not register the event formatter" do
         
     | 
| 
       36 
34 
     | 
    
         
             
                    expect(Appsignal::EventFormatter.registered?("render.view_component",
         
     | 
| 
       37 
35 
     | 
    
         
             
                      klass)).to be_falsy
         
     | 
    
        data/spec/lib/appsignal_spec.rb
    CHANGED
    
    | 
         @@ -61,6 +61,28 @@ describe Appsignal do 
     | 
|
| 
       61 
61 
     | 
    
         
             
                end
         
     | 
| 
       62 
62 
     | 
    
         | 
| 
       63 
63 
     | 
    
         
             
                context "with config but not started" do
         
     | 
| 
      
 64 
     | 
    
         
            +
                  it "reuses the already loaded config if no env arg is given" do
         
     | 
| 
      
 65 
     | 
    
         
            +
                    Appsignal._config = Appsignal::Config.new(
         
     | 
| 
      
 66 
     | 
    
         
            +
                      project_fixture_path,
         
     | 
| 
      
 67 
     | 
    
         
            +
                      :my_env,
         
     | 
| 
      
 68 
     | 
    
         
            +
                      :ignore_actions => ["My action"]
         
     | 
| 
      
 69 
     | 
    
         
            +
                    )
         
     | 
| 
      
 70 
     | 
    
         
            +
             
     | 
| 
      
 71 
     | 
    
         
            +
                    Appsignal.configure do |config|
         
     | 
| 
      
 72 
     | 
    
         
            +
                      expect(config.env).to eq("my_env")
         
     | 
| 
      
 73 
     | 
    
         
            +
                      expect(config.ignore_actions).to eq(["My action"])
         
     | 
| 
      
 74 
     | 
    
         
            +
             
     | 
| 
      
 75 
     | 
    
         
            +
                      config.active = true
         
     | 
| 
      
 76 
     | 
    
         
            +
                      config.name = "My app"
         
     | 
| 
      
 77 
     | 
    
         
            +
                      config.push_api_key = "key"
         
     | 
| 
      
 78 
     | 
    
         
            +
                    end
         
     | 
| 
      
 79 
     | 
    
         
            +
                    expect(Appsignal.config.valid?).to be(true)
         
     | 
| 
      
 80 
     | 
    
         
            +
                    expect(Appsignal.config.env).to eq("my_env")
         
     | 
| 
      
 81 
     | 
    
         
            +
                    expect(Appsignal.config[:name]).to eq("My app")
         
     | 
| 
      
 82 
     | 
    
         
            +
                    expect(Appsignal.config[:push_api_key]).to eq("key")
         
     | 
| 
      
 83 
     | 
    
         
            +
                    expect(Appsignal.config[:ignore_actions]).to eq(["My action"])
         
     | 
| 
      
 84 
     | 
    
         
            +
                  end
         
     | 
| 
      
 85 
     | 
    
         
            +
             
     | 
| 
       64 
86 
     | 
    
         
             
                  it "reuses the already loaded config if the env is the same" do
         
     | 
| 
       65 
87 
     | 
    
         
             
                    Appsignal._config = Appsignal::Config.new(
         
     | 
| 
       66 
88 
     | 
    
         
             
                      project_fixture_path,
         
     | 
| 
         @@ -136,10 +136,6 @@ module DependencyHelper 
     | 
|
| 
       136 
136 
     | 
    
         
             
                hanami_present? && Gem.loaded_specs["hanami"].version >= Gem::Version.new("2.0")
         
     | 
| 
       137 
137 
     | 
    
         
             
              end
         
     | 
| 
       138 
138 
     | 
    
         | 
| 
       139 
     | 
    
         
            -
              def view_component_present?
         
     | 
| 
       140 
     | 
    
         
            -
                dependency_present? "view_component"
         
     | 
| 
       141 
     | 
    
         
            -
              end
         
     | 
| 
       142 
     | 
    
         
            -
             
     | 
| 
       143 
139 
     | 
    
         
             
              def dependency_present?(dependency_file)
         
     | 
| 
       144 
140 
     | 
    
         
             
                Gem.loaded_specs.key? dependency_file
         
     | 
| 
       145 
141 
     | 
    
         
             
              end
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: appsignal
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 3.12. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 3.12.4
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: java
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Robert Beekman
         
     | 
| 
         @@ -10,7 +10,7 @@ authors: 
     | 
|
| 
       10 
10 
     | 
    
         
             
            autorequire:
         
     | 
| 
       11 
11 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       12 
12 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       13 
     | 
    
         
            -
            date: 2024- 
     | 
| 
      
 13 
     | 
    
         
            +
            date: 2024-08-01 00:00:00.000000000 Z
         
     | 
| 
       14 
14 
     | 
    
         
             
            dependencies:
         
     | 
| 
       15 
15 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       16 
16 
     | 
    
         
             
              name: rack
         
     | 
| 
         @@ -502,7 +502,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       502 
502 
     | 
    
         
             
                - !ruby/object:Gem::Version
         
     | 
| 
       503 
503 
     | 
    
         
             
                  version: '0'
         
     | 
| 
       504 
504 
     | 
    
         
             
            requirements: []
         
     | 
| 
       505 
     | 
    
         
            -
            rubygems_version: 3. 
     | 
| 
      
 505 
     | 
    
         
            +
            rubygems_version: 3.3.7
         
     | 
| 
       506 
506 
     | 
    
         
             
            signing_key:
         
     | 
| 
       507 
507 
     | 
    
         
             
            specification_version: 4
         
     | 
| 
       508 
508 
     | 
    
         
             
            summary: Logs performance and exception data from your app to appsignal.com
         
     |