constructor-pages 0.2.11 → 0.2.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -11,5 +11,10 @@ module ConstructorPages
11
11
  def templates
12
12
  Template.all.map{|t| ["#{'--'*t.level} #{t.name}", t.id]}
13
13
  end
14
+
15
+ def image_tag_with_at2x(name_at_1x, options={})
16
+ name_at_2x = name_at_1x.gsub(%r{\.\w+$}, '@2x\0')
17
+ image_tag(name_at_1x, options.merge("data-at2x" => asset_path(name_at_2x)))
18
+ end
14
19
  end
15
20
  end
@@ -3,7 +3,7 @@
3
3
  Gem::Specification.new do |s|
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.name = %q{constructor-pages}
6
- s.version = '0.2.11'
6
+ s.version = '0.2.12'
7
7
  s.summary = %q{Pages for ConstructorCms}
8
8
  s.authors = ['Ivan Zotov']
9
9
  s.require_paths = %w(lib)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: constructor-pages
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.11
4
+ version: 0.2.12
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: