active_path 0.1.0 → 0.1.1

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: 124267c58ac6278a25fc0853a51167798b436159
4
- data.tar.gz: 266eff44ed2a63433dd38a6899c80f94a7143bbe
3
+ metadata.gz: 9cac8daaba341bdec5ea70c94bc7fc83e32ab345
4
+ data.tar.gz: 6b1a1b5150fc9d032064d9a580ced62fb9e4a617
5
5
  SHA512:
6
- metadata.gz: d53d65cf58285a8d789bdd58e18d53ec38bb785dd160762a5272a6ad73fa0fea0d1fc8134ad2bcb8850c1592f35d28c0733de810b45f2c2fa1dfaa91beac7377
7
- data.tar.gz: ca00811278457c196942dc910786aaf95d72eb6d1a2f24f415566a148bf20b637bf6f6c7d2a12f869ba2661fd08b71a6c626538d7d1e7f1bfa1cdcd84b21ae4a
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 = "Path hints and layout injection"
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 = { buffer: buffer, context: self, options: options }
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 :buffer, :context, :options
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
- @buffer = @context = @options = nil
15
+ @context =
16
+ @buffer =
17
+ @options =
18
+ @locals = nil
12
19
  end
13
20
  end
14
21
 
@@ -1,3 +1,3 @@
1
1
  module ActivePath
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
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.0
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: Path hints and layout injection
27
+ description: ActivePath makes your frontend more extensible and easier to debug
28
28
  email: rtulino@gmail.com
29
29
  executables: []
30
30
  extensions: []