ecm_pictures2 2.1.2 → 2.1.3

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: af204c0977456bebc0e452d4eedb22229c8819f0
4
- data.tar.gz: 80e31d30783b625693afbafd8cb516ad0fb2cc6c
3
+ metadata.gz: fff4595aa9c0cc54463c23fef0049beaa28d394c
4
+ data.tar.gz: 10c3f0bced0012ac8663159f61dc6341584e7910
5
5
  SHA512:
6
- metadata.gz: a00e76f0cb9ad23279f92224741dac5ba160033a246ed0b691a1b4ba624de6e3d7d5bdc0ab31955bea7028809900169c40e2f4e79fb652c635ee8f641ecd3256
7
- data.tar.gz: a3601fc0dfb3280bfa6e5e572dfc3f769d5c2b44cf2cb4bcd25ba2eb20c829bcfaa03ddebd3a2707b9ab51c2e4541333339bc8f232fe51913fc1fb3524e038cf
6
+ metadata.gz: 3c94c2249e7e58e647458c678c6cbaa8c0b2580b68aac2b7c7bcfaa87c30ba5b6a24be4fa8aa587b625e983a81c84a74e7c0b00f15abc76b0e4422d69faa4f5b
7
+ data.tar.gz: 464f16e3086fd0d04f5517d217e9b591450ca1bde38454fbc7ed62c0f4b1ec361d5b5563cd6d8c8717611091ad33ce4337f2aafff91927b1798cba77560af937
@@ -42,6 +42,14 @@ class Ecm::Pictures::Picture < ActiveRecord::Base
42
42
  inclusion: Ecm::Pictures::Configuration.markup_languages
43
43
  validates :name, presence: true
44
44
 
45
+ def display_code_for_erb
46
+ display_code(:erb)
47
+ end
48
+
49
+ def display_code_for_textile
50
+ display_code(:textile)
51
+ end
52
+
45
53
  def display_code(style)
46
54
  case style
47
55
  when :erb
@@ -38,7 +38,7 @@ class Ecm::Pictures::PictureGallery < ActiveRecord::Base
38
38
  validates :name, presence: true,
39
39
  uniqueness: true
40
40
 
41
- def display_code
41
+ def display_code_for_erb
42
42
  "<%= render_picture_gallery '#{name}' %>"
43
43
  end
44
44
 
@@ -9,6 +9,8 @@ de:
9
9
  created_at: Erstellt am
10
10
  description: Beschreibung
11
11
  display_code: Anzeigecode
12
+ display_code_for_erb: Anzeigecode (erb)
13
+ display_code_for_textile: Anzeigecode (textile)
12
14
  image: Datei
13
15
  image_file: Datei
14
16
  image_file_name: Dateiname
@@ -9,7 +9,8 @@ en:
9
9
  created_at: created at
10
10
  description: description
11
11
  display_code: display code
12
- image: image
12
+ display_code_for_erb: display code (erb)
13
+ display_code_for_textile: display code (textile)
13
14
  image_file: image
14
15
  image_file_name: image filename
15
16
  image_file_size: image size
@@ -8,7 +8,7 @@ de:
8
8
  ecm/pictures/picture_gallery:
9
9
  created_at: Erstellt am
10
10
  description: Beschreibung
11
- display_code: Anzeigecode
11
+ display_code_for_erb: Anzeigecode (erb)
12
12
  link_images: Bilder verlinken
13
13
  markup_language: Markup Sprache
14
14
  name: Name
@@ -8,7 +8,7 @@ en:
8
8
  ecm/pictures/picture_gallery:
9
9
  created_at: created at
10
10
  description: description
11
- display_code: display code
11
+ display_code_for_erb: display code (erb)
12
12
  link_images: link images
13
13
  markup_language: markup language
14
14
  name: name
@@ -1,5 +1,5 @@
1
1
  module Ecm
2
2
  module Pictures
3
- VERSION = '2.1.2'
3
+ VERSION = '2.1.3'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecm_pictures2
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.2
4
+ version: 2.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roberto Vasquez Angel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-27 00:00:00.000000000 Z
11
+ date: 2016-04-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails