infopark_rails_connector 6.9.0.3.197272233 → 6.9.1.3.22208381

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21,6 +21,7 @@ module RailsConnector
21
21
  include RailsConnector::CmsAssetHelper
22
22
  include RailsConnector::TableOfContentsHelper
23
23
  include RatingsHelper
24
+ include RailsConnector::EditingHelper
24
25
  include RailsConnector::LayoutHelper
25
26
  include RailsConnector::CmsTagHelper
26
27
  end
@@ -1,7 +1,7 @@
1
1
  ##
2
- ## /Network/Servers/xs2.infopark/Users/develop/dcc/tmp/Rails_Connector__Kris__dev__93/repos/rails_connector/config/ca-bundle.crt -- Bundle of CA Root Certificates
2
+ ## /Network/Servers/xs2.infopark/Users/develop/dcc/tmp/Rails_Connector_95/repos/rails_connector/config/ca-bundle.crt -- Bundle of CA Root Certificates
3
3
  ##
4
- ## Converted at: Fri Apr 5 10:07:19 2013 UTC
4
+ ## Converted at: Fri Apr 26 15:26:29 2013 UTC
5
5
  ##
6
6
  ## This is a bundle of X.509 certificates of public Certificate Authorities
7
7
  ## (CA). These were automatically extracted from Mozilla's root certificates
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: infopark_rails_connector
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.9.0.3.197272233
4
+ version: 6.9.1.3.22208381
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-05 00:00:00.000000000 Z
12
+ date: 2013-04-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -231,7 +231,6 @@ files:
231
231
  - app/helpers/cms_helper.rb
232
232
  - app/helpers/cms_routing_helper.rb
233
233
  - app/helpers/crm_form_helper.rb
234
- - app/helpers/rails_connector/cms_asset_helper.rb
235
234
  - app/helpers/rails_connector/default_cms_helper.rb
236
235
  - app/helpers/rails_connector/default_cms_routing_helper.rb
237
236
  - app/helpers/rails_connector/default_crm_form_helper.rb
@@ -362,7 +361,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
362
361
  version: '0'
363
362
  segments:
364
363
  - 0
365
- hash: 75344545
364
+ hash: -690164499
366
365
  required_rubygems_version: !ruby/object:Gem::Requirement
367
366
  none: false
368
367
  requirements:
@@ -371,7 +370,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
371
370
  version: 1.3.5
372
371
  requirements: []
373
372
  rubyforge_project:
374
- rubygems_version: 1.8.23
373
+ rubygems_version: 1.8.25
375
374
  signing_key:
376
375
  specification_version: 3
377
376
  summary: Infopark Rails Connector
@@ -1,54 +0,0 @@
1
- module RailsConnector
2
-
3
- # This module contains helpers that can be used to reference images and other assets stored in the CMS.
4
- #
5
- # Use this helper to take advantage of rails' asset host mechanism.
6
- # (See http://api.rubyonrails.com/classes/ActionView/Helpers/AssetTagHelper.html for details about asset hosts.)
7
- # If your application does not use any asset hosts, the helper will generate regular (=non asset host) pathes.
8
- # @api public
9
- module CmsAssetHelper
10
-
11
- # Returns an html image tag for an image stored in the CMS.
12
- #
13
- # +target+ is the image from the cms to be referenced in the image tag.
14
- # +target+ can be an +Obj+ or a +Link+ or a +LinkList+.
15
- # +options+ can be used to specify additional html attributes for the tag.
16
- # If you do not specify an html alt attribute, the helper method will use
17
- # +target+'s +display_title+ as the html alt attribute.
18
- # If your application is configured to use asset hosts, the images tag will reference
19
- # the image using one of your asset hosts.
20
- # @api public
21
- def cms_image_tag(target, options = {})
22
- options.symbolize_keys!
23
-
24
- options[:src] = cms_asset_path(target)
25
- options[:alt] ||= display_title(target)
26
-
27
- tag("img", options)
28
- end
29
-
30
- # Calculate the path to an asset stored in the CMS.
31
- #
32
- # The path can be used to reference a cms object inside an html page.
33
- # +target+ can be an +Obj+ or a +Link+ or a +LinkList+.
34
- # If your application is configured to use asset hosts, the path will reference
35
- # the object using one of your asset hosts.
36
- # @api public
37
- def cms_asset_path(target)
38
- regular_path = cms_path(target)
39
- return regular_path if regular_path.first == "#"
40
- asset_paths.compute_public_path(regular_path, nil)
41
- end
42
-
43
- private
44
-
45
- def display_title(target)
46
- if target.respond_to?(:display_title)
47
- return target.display_title
48
- elsif target.respond_to?(:first) && target.first.respond_to?(:display_title)
49
- return target.first.display_title
50
- end
51
- end
52
-
53
- end
54
- end