aptible-rails 0.4.10 → 0.4.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fb7735be8de2d51dec59dff474ba14a797078dcd
4
- data.tar.gz: ff6ed6379626b885f565495fe543a225b09f2553
3
+ metadata.gz: 35be1dc385803dad441f142b272018c07e5d530b
4
+ data.tar.gz: 7d1fd4dff716ea18fdc0e4903f254d5187bee7d1
5
5
  SHA512:
6
- metadata.gz: cc2a8e111b3e56240f1d31d13b764ebb5af6159cf592216718670d85e108db56de687f857d4cd48d36ef22e16f59dc121d684aa897d747f1917f972f140165ff
7
- data.tar.gz: 934f6a2e28be3b56f40d0bcdcc5c20dd2164001fcfa61b384ac2fafe23c3637195c1e42b3de856b9222dd13f916e25d5e86b149a4426e4d3883df3e5469ea4f8
6
+ metadata.gz: 9a5cc08fe81f23303bb87445bb5ee46c89d3dded0fbbcdef9cb5c82a4db2e010828b087b84779883b96ca7dd4a0730ca14f7d3388009ef444f7627d5b5d5c5d8
7
+ data.tar.gz: 443f0202afed082ef15e6082512e75f1d7ccae449833a8fd2cbc485fd6eb2752f14cd20073df23c3b3eeb0738bd08c58da76fec1f03c5f0da598170b2b431042
@@ -1,5 +1,5 @@
1
1
  module Aptible
2
2
  module Rails
3
- VERSION = '0.4.10'
3
+ VERSION = '0.4.11'
4
4
  end
5
5
  end
@@ -28,16 +28,15 @@ module Aptible
28
28
  end
29
29
 
30
30
  def return_to_context_url(local_assigns)
31
- href = if controller?('apps')
32
- apps_url
33
- elsif controller?('databases')
34
- databases_url
35
- elsif local_assigns[:compliance_page]
36
- compliance_url
37
- else
38
- dashboard_url
39
- end
40
- URI href
31
+ URI(if controller?('apps')
32
+ apps_url
33
+ elsif controller?('databases')
34
+ databases_url
35
+ elsif local_assigns[:compliance_page] || controller?('compliance')
36
+ compliance_url
37
+ else
38
+ dashboard_url
39
+ end)
41
40
  end
42
41
  end
43
42
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aptible-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.10
4
+ version: 0.4.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Frank Macreery