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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5f49d4a8905a2f8b4431653dbc6f07bcd3030750
4
- data.tar.gz: 24a473361019177a0fd541f12f75daa8f9203f47
3
+ metadata.gz: 1afec83622eaef2339c3bd20a7c773570333adba
4
+ data.tar.gz: be0b7498afa95e175bc50f011a6ca6e5ef3ae21d
5
5
  SHA512:
6
- metadata.gz: b0065b5cea6bd712842b7250eb0570ccd26361bce220a4b257f2e64f58c3e7a6208088ca84d1b80c4a91188a95a78da779c1f331de7b9b1113c678e27915355f
7
- data.tar.gz: c384809e2fef9b646e55c4d2b9e73badf5ff7155beea220e6da30df82b6f56c16e16a9cc9de1de60cb8b747a6635c4b3105a497103c93b2a4d5ff90205f086bf
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>
@@ -28,3 +28,4 @@
28
28
  = yield
29
29
  = render 'pugin/components/footer'
30
30
  %script{src: "#{Pugin::ASSET_LOCATION_URL}/#{Pugin::ASSET_VERSION}/javascripts/main.js"}
31
+ = render partial: 'pugin/javascript/pingdom' if Pugin::Feature::Pingdom.enabled?
data/lib/pugin/feature.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  require 'pugin/feature/simple_feature'
2
2
  require 'pugin/feature/status_banner'
3
3
  require 'pugin/feature/top_navigation'
4
+ require 'pugin/feature/pingdom_feature'
4
5
  require 'pugin/feature/bandiera'
5
6
 
6
7
  module Pugin
@@ -0,0 +1,6 @@
1
+ module Pugin
2
+ module Feature
3
+ class Pingdom < Pugin::Feature::SimpleFeature
4
+ end
5
+ end
6
+ end
@@ -1,33 +1,41 @@
1
1
  module Pugin
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
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
- def disable_status_banner
12
- Pugin::Feature.disable('StatusBanner')
13
- end
11
+ def disable_status_banner
12
+ Pugin::Feature.disable('StatusBanner')
13
+ end
14
14
 
15
- def enable_top_navigation
16
- Pugin::Feature.enable('TopNavigation')
17
- end
15
+ def enable_top_navigation
16
+ Pugin::Feature.enable('TopNavigation')
17
+ end
18
18
 
19
- def disable_top_navigation
20
- Pugin::Feature.disable('TopNavigation')
21
- end
19
+ def disable_top_navigation
20
+ Pugin::Feature.disable('TopNavigation')
21
+ end
22
22
 
23
- # This will reset the built in Bandiera feature cache for Pugin.
24
- #
25
- # Use this when you want to get the latest flag values from Bandiera.
26
- #
27
- # If you don't reset the values will persist across page loads.
28
- def reset_bandiera_features
29
- Pugin::Feature::Bandiera.reset
30
- end
31
- end
32
- end
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
@@ -1,3 +1,3 @@
1
1
  module Pugin
2
- VERSION = '1.4.1'.freeze
2
+ VERSION = '1.5.0'.freeze
3
3
  end
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.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-10-19 00:00:00.000000000 Z
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