pugin 1.4.1 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/pugin/javascript/_pingdom.haml +7 -0
- data/app/views/pugin/layouts/_layout.html.haml +1 -0
- data/lib/pugin/feature.rb +1 -0
- data/lib/pugin/feature/pingdom_feature.rb +6 -0
- data/lib/pugin/helpers/controller_helpers.rb +35 -27
- data/lib/pugin/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1afec83622eaef2339c3bd20a7c773570333adba
|
4
|
+
data.tar.gz: be0b7498afa95e175bc50f011a6ca6e5ef3ae21d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8130e5df3737f62a5a7e545bf9559a6855f8014f13818a654e8b9727358d1c99a01b4ac8a9407792078fece3c5c6209f59b953ead0b82d3519e48525cee80f07
|
7
|
+
data.tar.gz: debc730d9d5d1ce40ccb7f04fcf914a1929ba816a27275e8c7cc2e3e8abf8ffa1a1cfe4eee61581685b340254156f1e57ecfe67bcb89520119b1ff8cdc425481
|
@@ -0,0 +1,7 @@
|
|
1
|
+
<script>
|
2
|
+
var _prum = [['id', '598ad88fa83408af625039d6'],
|
3
|
+
['mark', 'firstbyte', (new Date()).getTime()]];
|
4
|
+
(function()
|
5
|
+
{ var s = document.getElementsByTagName('script')[0] , p = document.createElement('script'); p.async = 'async'; p.src = '//rum-static.pingdom.net/prum.min.js'; s.parentNode.insertBefore(p, s); }
|
6
|
+
)();
|
7
|
+
</script>
|
data/lib/pugin/feature.rb
CHANGED
@@ -1,33 +1,41 @@
|
|
1
1
|
module Pugin
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
2
|
+
module Helpers
|
3
|
+
# A set of controller methods that can be used to enable and disable Pugin features
|
4
|
+
#
|
5
|
+
# @since 0.7.0
|
6
|
+
module ControllerHelpers
|
7
|
+
def enable_status_banner
|
8
|
+
Pugin::Feature.enable('StatusBanner')
|
9
|
+
end
|
10
10
|
|
11
|
-
|
12
|
-
|
13
|
-
|
11
|
+
def disable_status_banner
|
12
|
+
Pugin::Feature.disable('StatusBanner')
|
13
|
+
end
|
14
14
|
|
15
|
-
|
16
|
-
|
17
|
-
|
15
|
+
def enable_top_navigation
|
16
|
+
Pugin::Feature.enable('TopNavigation')
|
17
|
+
end
|
18
18
|
|
19
|
-
|
20
|
-
|
21
|
-
|
19
|
+
def disable_top_navigation
|
20
|
+
Pugin::Feature.disable('TopNavigation')
|
21
|
+
end
|
22
22
|
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
23
|
+
def enable_pingdom
|
24
|
+
Pugin::Feature.enable('Pingdom')
|
25
|
+
end
|
26
|
+
|
27
|
+
def disable_pingdom
|
28
|
+
Pugin::Feature.disable('Pingdom')
|
29
|
+
end
|
30
|
+
|
31
|
+
# This will reset the built in Bandiera feature cache for Pugin.
|
32
|
+
#
|
33
|
+
# Use this when you want to get the latest flag values from Bandiera.
|
34
|
+
#
|
35
|
+
# If you don't reset the values will persist across page loads.
|
36
|
+
def reset_bandiera_features
|
37
|
+
Pugin::Feature::Bandiera.reset
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
33
41
|
end
|
data/lib/pugin/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pugin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Rayner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -206,6 +206,7 @@ files:
|
|
206
206
|
- app/views/pugin/javascript/_google_tag_manager.haml
|
207
207
|
- app/views/pugin/javascript/_google_tag_manager_noscript.haml
|
208
208
|
- app/views/pugin/javascript/_has_js.haml
|
209
|
+
- app/views/pugin/javascript/_pingdom.haml
|
209
210
|
- app/views/pugin/layouts/_layout.html.haml
|
210
211
|
- app/views/pugin/layouts/pugin-sinatra.haml
|
211
212
|
- app/views/pugin/layouts/pugin.html.erb
|
@@ -223,6 +224,7 @@ files:
|
|
223
224
|
- lib/pugin/engine.rb
|
224
225
|
- lib/pugin/feature.rb
|
225
226
|
- lib/pugin/feature/bandiera.rb
|
227
|
+
- lib/pugin/feature/pingdom_feature.rb
|
226
228
|
- lib/pugin/feature/simple_feature.rb
|
227
229
|
- lib/pugin/feature/status_banner.rb
|
228
230
|
- lib/pugin/feature/top_navigation.rb
|