active_path 0.1.0 → 0.1.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,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9cac8daaba341bdec5ea70c94bc7fc83e32ab345
|
|
4
|
+
data.tar.gz: 6b1a1b5150fc9d032064d9a580ced62fb9e4a617
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0b2598c5b9585ba83fd2431e145665958463b4a0e68ebe99e3c71ab14be0edcf9b9cdd102384fc6ab9e6a6953eba3f2dbdcbaa2c49d274630cbc36f9714aa503
|
|
7
|
+
data.tar.gz: 1353732391b9051a0756c601d31e81c2f626c5812375ab7781b222d7c674a294f7050250f1828235455daf8a59045b9eb0f80649416c62bdc445088e67572318
|
data/active_path.gemspec
CHANGED
|
@@ -6,7 +6,7 @@ Gem::Specification.new do |s|
|
|
|
6
6
|
s.version = ActivePath::VERSION
|
|
7
7
|
s.date = '2018-04-28'
|
|
8
8
|
s.summary = "ActivePath"
|
|
9
|
-
s.description = "
|
|
9
|
+
s.description = "ActivePath makes your frontend more extensible and easier to debug"
|
|
10
10
|
s.authors = ["Ryan Tulino"]
|
|
11
11
|
s.email = 'rtulino@gmail.com'
|
|
12
12
|
s.files = `git ls-files`.split("\n")
|
|
@@ -2,15 +2,11 @@ module ActivePath
|
|
|
2
2
|
module Configuration
|
|
3
3
|
class << self
|
|
4
4
|
def setup_defaults
|
|
5
|
-
configuration.active_path = ActiveSupport::Configurable::Configuration.new
|
|
5
|
+
Rails.configuration.active_path = ActiveSupport::Configurable::Configuration.new
|
|
6
6
|
end
|
|
7
7
|
|
|
8
8
|
def config
|
|
9
|
-
configuration.active_path
|
|
10
|
-
end
|
|
11
|
-
|
|
12
|
-
def configuration
|
|
13
|
-
Rails.configuration
|
|
9
|
+
Rails.configuration.active_path
|
|
14
10
|
end
|
|
15
11
|
end
|
|
16
12
|
end
|
|
@@ -5,7 +5,7 @@ module ActivePath
|
|
|
5
5
|
# Notify subscribers that a partial has rendered
|
|
6
6
|
def render(options = {}, locals = {}, &block)
|
|
7
7
|
buffer = super
|
|
8
|
-
opts = {
|
|
8
|
+
opts = { context: self, buffer: buffer, options: options, locals: locals }
|
|
9
9
|
ActiveSupport::Notifications.instrument(:render_partial, opts)
|
|
10
10
|
buffer
|
|
11
11
|
end
|
|
@@ -1,14 +1,21 @@
|
|
|
1
1
|
module ActivePath
|
|
2
2
|
module Subscribers
|
|
3
3
|
class Subscriber
|
|
4
|
-
attr_reader :
|
|
4
|
+
attr_reader :context,
|
|
5
|
+
:buffer,
|
|
6
|
+
:options,
|
|
7
|
+
:locals
|
|
5
8
|
|
|
6
9
|
def call(name, started, finished, unique_id, payload)
|
|
7
|
-
@buffer = payload[:buffer]
|
|
8
10
|
@context = payload[:context]
|
|
11
|
+
@buffer = payload[:buffer]
|
|
9
12
|
@options = payload[:options]
|
|
13
|
+
@locals = payload[:locals]
|
|
10
14
|
perform and begin
|
|
11
|
-
@
|
|
15
|
+
@context =
|
|
16
|
+
@buffer =
|
|
17
|
+
@options =
|
|
18
|
+
@locals = nil
|
|
12
19
|
end
|
|
13
20
|
end
|
|
14
21
|
|
data/lib/active_path/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: active_path
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ryan Tulino
|
|
@@ -24,7 +24,7 @@ dependencies:
|
|
|
24
24
|
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
26
|
version: '5'
|
|
27
|
-
description:
|
|
27
|
+
description: ActivePath makes your frontend more extensible and easier to debug
|
|
28
28
|
email: rtulino@gmail.com
|
|
29
29
|
executables: []
|
|
30
30
|
extensions: []
|