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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b539e3b2820fdd3abf5cfd608410caa3f238a14a
4
- data.tar.gz: 5ba1ebaf038990dad544bc99f70044f100ddd30f
3
+ metadata.gz: ce4999951b3453f1625a0418d2e0a43654a45d39
4
+ data.tar.gz: 9f9205a27307badacc9d3c70e1e0eb5ff833953e
5
5
  SHA512:
6
- metadata.gz: f2ccb2c0933144d1f95ade458a810fd6ec0b813058f390fa91150cbe74d4db218252c5b5cab8e5a7d1537ee1f850c54cc3ed57c19ca79c60097d11798e1ce4a5
7
- data.tar.gz: e6ac081f493dbde550cf32d61e9af5d9d12ef3b7b9cdec983341ccc63ff8da0c3314f457b83b2587a50c75e8284f9c02ededa5053f318204477b3a2f56e90cce
6
+ metadata.gz: b51eb9b22350a51db6fa52f0c538a8fefb52a9b1f8534dda3eda4a8a470d9c1ec3f74ee00cd328df118674f6504ec1d51b67dee3b946daa3d9a3e2ef268e07d4
7
+ data.tar.gz: 773702355995e3d4c3b984981dc260ca028a128eab8ecc25af0a5a9952d4102360338b9699edca6497e3c26775e9133772612d8ad4d7002242d18c8a4d338cc2
data/README.md CHANGED
@@ -36,6 +36,16 @@ render with @comments = []
36
36
  </script>
37
37
  ```
38
38
 
39
+ ### Use image_tag
40
+
41
+ ```erb
42
+ <%= image_tag sample %>
43
+ ```
44
+
45
+ ```html
46
+ <img src="{{ sample.src }}" alt="{{ sample.alt }}">
47
+ ```
48
+
39
49
  ## Emboss EJS Template
40
50
 
41
51
  ```erb
@@ -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'
@@ -1,12 +1,13 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "silverdot"
3
- s.version = "0.1.3"
3
+ s.version = "0.1.4"
4
4
  s.platform = Gem::Platform::RUBY
5
- s.summary = ""
6
- s.description = "Build JST from Rails view"
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.3
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: Build JST from Rails view
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
@@ -1,6 +0,0 @@
1
- module Silverdot
2
- class Hooks
3
- def self.init
4
- end
5
- end
6
- end
@@ -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