silverdot 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -0
- data/lib/silverdot.rb +0 -3
- data/silverdot.gemspec +4 -3
- metadata +5 -6
- data/lib/silverdot/hooks.rb +0 -6
- data/lib/silverdot/renderer.rb +0 -26
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce4999951b3453f1625a0418d2e0a43654a45d39
|
4
|
+
data.tar.gz: 9f9205a27307badacc9d3c70e1e0eb5ff833953e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b51eb9b22350a51db6fa52f0c538a8fefb52a9b1f8534dda3eda4a8a470d9c1ec3f74ee00cd328df118674f6504ec1d51b67dee3b946daa3d9a3e2ef268e07d4
|
7
|
+
data.tar.gz: 773702355995e3d4c3b984981dc260ca028a128eab8ecc25af0a5a9952d4102360338b9699edca6497e3c26775e9133772612d8ad4d7002242d18c8a4d338cc2
|
data/README.md
CHANGED
data/lib/silverdot.rb
CHANGED
@@ -9,7 +9,6 @@ end
|
|
9
9
|
|
10
10
|
module Silverdot
|
11
11
|
autoload :Alternative, 'silverdot/alternative'
|
12
|
-
autoload :Renderer, 'silverdot/renderer'
|
13
12
|
autoload :ActionViewExtension, 'silverdot/helpers/action_view_extension'
|
14
13
|
autoload :UrlHelper, 'silverdot/helpers/url_helper'
|
15
14
|
autoload :LocalizeHelper, 'silverdot/helpers/localize_helper'
|
@@ -22,8 +21,6 @@ module Silverdot
|
|
22
21
|
end
|
23
22
|
end
|
24
23
|
|
25
|
-
require 'silverdot/hooks'
|
26
|
-
|
27
24
|
if defined? Rails
|
28
25
|
require 'silverdot/railtie'
|
29
26
|
require 'silverdot/engine'
|
data/silverdot.gemspec
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "silverdot"
|
3
|
-
s.version = "0.1.
|
3
|
+
s.version = "0.1.4"
|
4
4
|
s.platform = Gem::Platform::RUBY
|
5
|
-
s.summary = ""
|
6
|
-
s.description = "
|
5
|
+
s.summary = "JST Builder from ERB View"
|
6
|
+
s.description = "Emboss JST on your ERB Template built from simple ERB View for shareing between clientside javascript and serverside rails"
|
7
7
|
s.authors = ["niaeashes"]
|
8
8
|
s.email = "nia.eashes@gmail.com"
|
9
9
|
s.files = ["lib/silverdot.rb"]
|
10
|
+
s.homepage = "http://github.com/niaeashes/silverdot"
|
10
11
|
s.license = "MIT"
|
11
12
|
|
12
13
|
s.files = `git ls-files`.split("\n")
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: silverdot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- niaeashes
|
@@ -136,7 +136,8 @@ dependencies:
|
|
136
136
|
- - '>='
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: '0'
|
139
|
-
description:
|
139
|
+
description: Emboss JST on your ERB Template built from simple ERB View for shareing
|
140
|
+
between clientside javascript and serverside rails
|
140
141
|
email: nia.eashes@gmail.com
|
141
142
|
executables: []
|
142
143
|
extensions: []
|
@@ -156,9 +157,7 @@ files:
|
|
156
157
|
- lib/silverdot/helpers/image_helper.rb
|
157
158
|
- lib/silverdot/helpers/localize_helper.rb
|
158
159
|
- lib/silverdot/helpers/url_helper.rb
|
159
|
-
- lib/silverdot/hooks.rb
|
160
160
|
- lib/silverdot/railtie.rb
|
161
|
-
- lib/silverdot/renderer.rb
|
162
161
|
- silverdot.gemspec
|
163
162
|
- spec/fake_app/rails_app.rb
|
164
163
|
- spec/fake_app/views/_image.html.erb
|
@@ -169,7 +168,7 @@ files:
|
|
169
168
|
- spec/helpers/action_view_extension_spec.rb
|
170
169
|
- spec/render_spec.rb
|
171
170
|
- spec/spec_helper.rb
|
172
|
-
homepage:
|
171
|
+
homepage: http://github.com/niaeashes/silverdot
|
173
172
|
licenses:
|
174
173
|
- MIT
|
175
174
|
metadata: {}
|
@@ -192,7 +191,7 @@ rubyforge_project:
|
|
192
191
|
rubygems_version: 2.0.3
|
193
192
|
signing_key:
|
194
193
|
specification_version: 4
|
195
|
-
summary:
|
194
|
+
summary: JST Builder from ERB View
|
196
195
|
test_files:
|
197
196
|
- spec/fake_app/rails_app.rb
|
198
197
|
- spec/fake_app/views/_image.html.erb
|
data/lib/silverdot/hooks.rb
DELETED
data/lib/silverdot/renderer.rb
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
module Silverdot
|
2
|
-
class Renderer
|
3
|
-
attr_reader :lookup_context
|
4
|
-
|
5
|
-
def initialize(helper, template)
|
6
|
-
@lookup_context = helper.lookup_context
|
7
|
-
@template = template
|
8
|
-
@alternatives = {}
|
9
|
-
end
|
10
|
-
|
11
|
-
def method_missing(m, *args, &block)
|
12
|
-
if @with.include? m.to_sym
|
13
|
-
@alternatives[m.to_sym] ||= Alternative.new(m.to_sym)
|
14
|
-
else
|
15
|
-
super(m, *args, &block)
|
16
|
-
end
|
17
|
-
end
|
18
|
-
|
19
|
-
def render(options = {})
|
20
|
-
@with = options[:with]
|
21
|
-
@with = [@with] unless @with.is_a?(Enumerable)
|
22
|
-
|
23
|
-
@template.render(self, {})
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|