appsignal 0.8.4.beta.0 → 0.8.4.beta.1

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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MWUyMmRhZDY0NjU1MTNkNWUwZTg3NmZiOTA4YTE0NGY5NWRhMmU5Yw==
4
+ YmEwZTJlYTI3ZDg2MzMwYThlNGQ3NjNlYzM5NzkxOGY3NDZlOWUzMQ==
5
5
  data.tar.gz: !binary |-
6
- YjljNDc0MDVhYzNjNjYzZjk1ZjRhOTM5MGI0N2Y5YzEyYTBjNGIyZQ==
6
+ NmE1MjZhOTdhZjRiYzliZjhmOTViYzg0ZDFhM2NjOGZkZWZlNDk5Zg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- MTBkM2E1OWJkYmNhZjRmYTdmNTViMjAxNzFjZWI1ZmRkZGE5ZjNiNGFmYjdm
10
- ZjA3NGViMzRjZDU5YThmZmU1NjZjOWZhZTUxNzA0ZDBlYjRjOWI2MDc1NGM2
11
- NDEwMzM4ZDNhNDhiNmMwMzIxMDFiMDFiNzhmNDA3OWJjMmVlOTA=
9
+ ZWRiNGZmMjJlM2FjY2IwZTIwMDNiZTg1YTk0YzEwMzFmYWY5YmRjZGRhYzFi
10
+ MzE3NmFkM2E2ODM0MTUyMmRlZThjZTQzNGZlNjdkY2NkMmU0MjE0OTZlYmI0
11
+ ZWQ2ODkxZWFlYTFjMTg4NmU0OWZmNzQyZjY4Mzc1YTcyZmU1MTI=
12
12
  data.tar.gz: !binary |-
13
- N2U1MDE3NGI2MWNkNzc3YzUyOGEwY2Y0NjAyZjE3ODQyODk1MDExMTExOTQ5
14
- NjAwOGI5OTE2YzYxZGJlN2Q5NGEwOTRkOGIyNDA0NzUwZGY1NDkzNThiMGMz
15
- Mjg0YzA5MmMxYjk1YzZmYjM0Zjc0N2MzNTYxZWRmNzMzMGE4N2E=
13
+ OWM4MjgzN2I2ZjRlZmIyNDdjMmEzZTk2NDJkZjVmNWE4ZjQ5ZDMyMDNkN2Uw
14
+ MDMxMjc5ZjZmZWZiZDJkOThjNzZmNTMzMTYzNjk5MGM4MDczZDY0NGM3NWZk
15
+ MTRiZWUyYzY5NDYxMWExOGQxZWI1OTgwM2ZiNDg1MmJmZGNhYzI=
@@ -1,5 +1,6 @@
1
1
  # 0.8.4
2
2
  * Skip session sanitize if not a http request
3
+ * Use appsignal_config in Capistrano as initial config
3
4
 
4
5
  # 0.8.3
5
6
  * Restart thread when we've been forked
@@ -16,7 +16,7 @@ module Appsignal
16
16
  appsignal_config = Appsignal::Config.new(
17
17
  ENV['PWD'],
18
18
  env,
19
- {},
19
+ fetch(:appsignal_config, {}),
20
20
  logger
21
21
  )
22
22
 
@@ -1,3 +1,3 @@
1
1
  module Appsignal
2
- VERSION = '0.8.4.beta.0'
2
+ VERSION = '0.8.4.beta.1'
3
3
  end
@@ -16,6 +16,7 @@ describe Appsignal::Integrations::Capistrano do
16
16
 
17
17
  describe "appsignal:deploy task" do
18
18
  before do
19
+ @capistrano_config.set(:rails_env, 'production')
19
20
  @capistrano_config.set(:rails_env, 'production')
20
21
  @capistrano_config.set(:repository, 'master')
21
22
  @capistrano_config.set(:deploy_to, '/home/username/app')
@@ -27,7 +28,9 @@ describe Appsignal::Integrations::Capistrano do
27
28
  end
28
29
 
29
30
  context "config" do
30
- before { @capistrano_config.dry_run = true }
31
+ before do
32
+ @capistrano_config.dry_run = true
33
+ end
31
34
 
32
35
  it "should be instantiated with the right params" do
33
36
  Appsignal::Config.should_receive(:new).with(
@@ -38,20 +41,35 @@ describe Appsignal::Integrations::Capistrano do
38
41
  )
39
42
  end
40
43
 
41
- context "when rack_env is used instead of rails_env" do
44
+ context "when appsignal_config is available" do
42
45
  before do
43
- @capistrano_config.unset(:rails_env)
44
- @capistrano_config.set(:rack_env, 'rack_production')
46
+ @capistrano_config.set(:appsignal_config, :name => 'AppName')
45
47
  end
46
48
 
47
49
  it "should be instantiated with the right params" do
48
50
  Appsignal::Config.should_receive(:new).with(
49
51
  project_fixture_path,
50
- 'rack_production',
51
- {},
52
+ 'production',
53
+ {:name => 'AppName'},
52
54
  kind_of(Capistrano::Logger)
53
55
  )
54
56
  end
57
+
58
+ context "when rack_env is used instead of rails_env" do
59
+ before do
60
+ @capistrano_config.unset(:rails_env)
61
+ @capistrano_config.set(:rack_env, 'rack_production')
62
+ end
63
+
64
+ it "should be instantiated with the right params" do
65
+ Appsignal::Config.should_receive(:new).with(
66
+ project_fixture_path,
67
+ 'rack_production',
68
+ {:name => 'AppName'},
69
+ kind_of(Capistrano::Logger)
70
+ )
71
+ end
72
+ end
55
73
  end
56
74
 
57
75
  after { @capistrano_config.find_and_execute_task('appsignal:deploy') }
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: 0.8.4.beta.0
4
+ version: 0.8.4.beta.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Beekman
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2014-01-14 00:00:00.000000000 Z
15
+ date: 2014-01-15 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: activesupport