Sha256: 4415c8390ba68eb96163319f0721092bdf6895d6d90ec7a5f47c36d1c478eded

Contents?: true

Size: 1.47 KB

Versions: 17

Compression:

Stored size: 1.47 KB

Contents

# SharingTags.configure do
#
#   # Activate default social network. Others available are:
#   #  :vkontakte,
#   #networks :twitter, :facebook, :google
#
#   share_url_params(utm_source: "some_source", utm_campaign: "some_campaign")
#
#   title "Sharing title for all networks"
#   description "Change me at /path"
#   image { image_url("social/default.jpg") }
#
#   facebook do
#     title "Facebook title"
#   end
#
#   google do
#     description "Google description"
#   end
#
#   #twitter do
#   #  share_url { "prepared_url" }
#   #  title       "twitter title"
#   #  description { "some description" }
#   #  image { image_url("social/twitter.jpg") }
#   #end
#   #
#   #
#   ## for switching context call: sharing_tags(:photo, @photo, @date)
#   #context :photo do
#   #  title { |photo, date| "Photo: #{photo.title}, #{date}" }
#   #
#   #  google do
#   #    share_url { |photo, _| photo_url(photo.id)}
#   #    image_url { |photo, _| photo.image.share.url }
#   #  end
#   #end
#   #
#   ## for switching context call: sharing_tags(:static)
#   #context :static do
#   #  title "Static page"
#   #  image "http://some/image.jpg"
#   #end
#
#   # sharing_tags.
#   #   .title
#   #   .image
#   #   .twitter
#   #     .title
#   #   .facebook
#   #     .desciption
#   #  sharing_tags.image
#   #
#   #  sharing_tags.to_a
#   #  sharing_tags.render_meta or sharing_tags.to_s
#
#   #sharing_tags.facebook_data
#   #sharing_tags.google_data
#   #sharing_tags.link_data.facebook
#   #
#
# end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
sharing_tags-0.0.18 spec/dummy/config/initializers/sharing_tags.rb
sharing_tags-0.0.17 spec/dummy/config/initializers/sharing_tags.rb
sharing_tags-0.0.16 spec/dummy/config/initializers/sharing_tags.rb
sharing_tags-0.0.15 spec/dummy/config/initializers/sharing_tags.rb
sharing_tags-0.0.14 spec/dummy/config/initializers/sharing_tags.rb
sharing_tags-0.0.13 spec/dummy/config/initializers/sharing_tags.rb
sharing_tags-0.0.12 spec/dummy/config/initializers/sharing_tags.rb
sharing_tags-0.0.11 spec/dummy/config/initializers/sharing_tags.rb
sharing_tags-0.0.10 spec/dummy/config/initializers/sharing_tags.rb
sharing_tags-0.0.9 spec/dummy/config/initializers/sharing_tags.rb
sharing_tags-0.0.8 spec/dummy/config/initializers/sharing_tags.rb
sharing_tags-0.0.7 spec/dummy/config/initializers/sharing_tags.rb
sharing_tags-0.0.6 spec/dummy/config/initializers/sharing_tags.rb
sharing_tags-0.0.5 spec/dummy/config/initializers/sharing_tags.rb
sharing_tags-0.0.4 spec/dummy/config/initializers/sharing_tags.rb
sharing_tags-0.0.3 spec/dummy/config/initializers/sharing_tags.rb
sharing_tags-0.0.2 spec/dummy/config/initializers/sharing_tags.rb