sudo_rails 0.2.1 → 0.3.0

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,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b068a949cf40f7c80340a50eb88c884b46b97ce172f06501f74905df4cdf41b6
4
- data.tar.gz: e8acc824d2c985f6e1c02ea9398a3a1d3e9a1ccb3ceb53e6cc9fc6bfc59247fe
3
+ metadata.gz: 1b2a206413480a731bf2285e75f5b185930db711f140b4392330c2cf7f8c3c44
4
+ data.tar.gz: 42deffb7bf182734fd0cef63faefc972ad1bb396727920342c4a09c1aa67b83d
5
5
  SHA512:
6
- metadata.gz: 9be87bdf8590b2b8018291a972f3cc9604457469d665ad42a7ef83108c3976fca62fda3c83ac4ccda374e0f4da65e3c67f3c8d2362314274f9451af4ad74a3f6
7
- data.tar.gz: 367955d60d36a62227314aa6a65b04bb1841de39fe40062e919e92e260f7f5be7a238fd79548dc2e741fe72cc2d0cecfa646a406e6e17d4636297c798b41f400
6
+ metadata.gz: 77ac6e2b6ce5b8081b56584bd5cab20d914efed66dec81baad9e636eb645a1997daf53b132de642c8e8e562b10d8eb7cfad9d2a87901c033d17203af6b6b803b
7
+ data.tar.gz: 4c614f2e0972ae6510959a01bd382b3e3581abfda87a005f1dda8092a202ff713557aa4e8d1aa9bd6ed0876dbd4e0507e2a38e3e7bfbce458373afbb60c3d12d
data/README.md CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  [![Gem](https://img.shields.io/gem/v/sudo_rails.svg?style=flat-square)](https://rubygems.org/gems/sudo_rails)
4
4
  [![Build Status](https://travis-ci.org/markets/sudo_rails.svg)](https://travis-ci.org/markets/sudo_rails)
5
+ [![Maintainability](https://api.codeclimate.com/v1/badges/322350adc7ab052beccb/maintainability)](https://codeclimate.com/github/markets/sudo_rails/maintainability)
5
6
 
6
7
  > Sudo mode for your Rails controllers
7
8
 
@@ -43,10 +44,10 @@ SudoRails.setup do |config|
43
44
  # On/off engine
44
45
  config.enabled = true
45
46
 
46
- # Sudo mode sessions duration, default is 1 hour
47
- config.sudo_session_duration = 20.minutes
47
+ # Sudo mode sessions duration, default is 30 minutes
48
+ config.sudo_session_duration = 10.minutes
48
49
 
49
- # Default confirmation page styles
50
+ # Confirmation page styling
50
51
  config.custom_logo = 'logos/medium_dark.png'
51
52
  config.primary_color = '#1A7191'
52
53
  config.layout = 'admin'
@@ -5,6 +5,10 @@ body {
5
5
  transform: translateY(20%);
6
6
  }
7
7
 
8
+ a {
9
+ color: #000;
10
+ }
11
+
8
12
  .sudo-header {
9
13
  margin: 40px auto;
10
14
 
@@ -1,8 +1,8 @@
1
1
  <style type="text/css">
2
+ a {
3
+ color: <%= SudoRails.primary_color %>;
4
+ }
2
5
  .sudo-form input[type="submit"] {
3
6
  background-color: <%= SudoRails.primary_color %>;
4
7
  }
5
- .sudo-form a {
6
- color: <%= SudoRails.primary_color %>;
7
- }
8
8
  </style>
@@ -1,3 +1,3 @@
1
1
  module SudoRails
2
- VERSION = "0.2.1"
2
+ VERSION = "0.3.0"
3
3
  end
data/lib/sudo_rails.rb CHANGED
@@ -39,7 +39,7 @@ module SudoRails
39
39
  end
40
40
 
41
41
  self.enabled = true
42
- self.sudo_session_duration = 1.hour
42
+ self.sudo_session_duration = 30.minutes
43
43
  end
44
44
 
45
45
  require 'sudo_rails/integrations/devise' if defined?(Devise)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sudo_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - markets
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-02 00:00:00.000000000 Z
11
+ date: 2019-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -93,8 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
93
93
  - !ruby/object:Gem::Version
94
94
  version: '0'
95
95
  requirements: []
96
- rubyforge_project:
97
- rubygems_version: 2.7.6
96
+ rubygems_version: 3.0.3
98
97
  signing_key:
99
98
  specification_version: 4
100
99
  summary: Sudo mode for Rails