active_path 0.1.1 → 0.1.2

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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +29 -14
  3. data/Rakefile +2 -13
  4. data/lib/active_path/version.rb +1 -1
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9cac8daaba341bdec5ea70c94bc7fc83e32ab345
4
- data.tar.gz: 6b1a1b5150fc9d032064d9a580ced62fb9e4a617
3
+ metadata.gz: 92b0755da3b37f5f2a0eaa64abc21a263a475a86
4
+ data.tar.gz: 0b620b098339700a93e41138bcd7eef8d19375a4
5
5
  SHA512:
6
- metadata.gz: 0b2598c5b9585ba83fd2431e145665958463b4a0e68ebe99e3c71ab14be0edcf9b9cdd102384fc6ab9e6a6953eba3f2dbdcbaa2c49d274630cbc36f9714aa503
7
- data.tar.gz: 1353732391b9051a0756c601d31e81c2f626c5812375ab7781b222d7c674a294f7050250f1828235455daf8a59045b9eb0f80649416c62bdc445088e67572318
6
+ metadata.gz: c1f933ad7bd029eb17775ce6ede749f24261472e18a253d761045a0e148be3347e0548be0a200aab8ca049acf43007ff386c60ca4bcf9c3524c7b6e5116bc9c7
7
+ data.tar.gz: cb4461315988cdd6b229e5b6483ac0ae363b589896210aaee373e3716c1ad5c373687fc077b27d1277ab60f5537e05106362b63c0135d5edcc996b1baad8ec68
data/README.md CHANGED
@@ -1,7 +1,24 @@
1
- # ActivePath:
1
+ # ActivePath
2
2
  ActivePath provides an interface for rendering your partials.
3
3
 
4
- ## Installation
4
+
5
+ ## View Injection:
6
+
7
+ https://github.com/active-path/view-injection
8
+
9
+
10
+ ## Path Hints:
11
+
12
+ https://github.com/active-path/path-hints
13
+
14
+
15
+ ## Product Roadmap (TODO)
16
+
17
+ * User docs
18
+ * Specs and CI build
19
+
20
+
21
+ ## Custom Installation
5
22
 
6
23
  Add to your Gemfile:
7
24
 
@@ -21,20 +38,18 @@ end
21
38
 
22
39
  ```
23
40
 
24
- ## Product Roadmap (TODO)
25
-
26
- * User docs
27
- * Specs and CI build
28
-
41
+ Now create a subscriber where you will have access to `context`, `buffer`, `options`, `locals` and subscribe to the `render_partial` event:
29
42
 
30
- ## View Injection
31
-
32
- https://github.com/active-path/view-injection
33
-
34
-
35
- ## Path Hints:
43
+ ```ruby
44
+ require 'active_path/subscribers/subscriber'
45
+ class Subscriber < ActivePath::Subscribers::Subscriber
46
+ def perform
47
+ ...
48
+ end
49
+ end
50
+ ActiveSupport::Notifications.subscribe(:render_partial, Subscriber.new)
51
+ ```
36
52
 
37
- https://github.com/active-path/path-hints
38
53
 
39
54
  --
40
55
 
data/Rakefile CHANGED
@@ -1,15 +1,4 @@
1
1
  #!/usr/bin/env rake
2
+ require "bundler/gem_tasks"
2
3
 
3
- $LOAD_PATH.unshift File.expand_path('../lib', __FILE__)
4
- require 'active_path/version'
5
-
6
- desc "Release version #{ActivePath::VERSION} of the gem"
7
- task :release do
8
-
9
- system "git tag -a v#{ActivePath::VERSION} -m 'Tagging #{ActivePath::VERSION}'"
10
- system 'git push --tags'
11
-
12
- system "gem build active_path.gemspec"
13
- system "gem push active_path-#{ActivePath::VERSION}.gem"
14
- system "rm active_path-#{ActivePath::VERSION}.gem"
15
- end
4
+ task :default => :spec
@@ -1,3 +1,3 @@
1
1
  module ActivePath
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
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.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Tulino