active_path 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +29 -14
- data/Rakefile +2 -13
- data/lib/active_path/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 92b0755da3b37f5f2a0eaa64abc21a263a475a86
|
4
|
+
data.tar.gz: 0b620b098339700a93e41138bcd7eef8d19375a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
|
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
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
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
|
-
|
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
|
data/lib/active_path/version.rb
CHANGED