Module: SocialStream::Documents

Defined in:
lib/social_stream-documents.rb,
lib/social_stream/documents/engine.rb,
lib/social_stream/documents/version.rb,
lib/social_stream/documents/models/activity_object.rb

Defined Under Namespace

Modules: Models Classes: Engine, InstallGenerator

Constant Summary collapse

VERSION =
"2.2.1".freeze
@@picture_styles =
{
  :"170x127#" => ["170x127#"],
  # this one preserves A4 proportion: 210x297
  :"80x113#" => ["80x113#"],
  :"500" => ["500>"]
}
@@audio_styles =
{
  webma: {
    format: 'webm',
    processors: [ :ffmpeg ]
  }
}
@@video_styles =
{
  :webm => { :format => 'webm' },
  :flv  => { :format => 'flv' },
  :mp4  => { :format => 'mp4' },
  :"170x127#" => { :geometry => "170x127#", :format => 'png', :time => 5 }
}
@@icon_mime_types =
{
  default: :default,
  types: [
    :text, :image, :audio, :video
  ],
  subtypes: [
    :txt, :ps, :pdf, :sla, 
    :odt, :odp, :ods, :doc, :ppt, :xls, :rtf,
    :rar, :zip,
    :jpeg, :gif, :png, :bmp, :xcf,
    :wav, :ogg, :webma, :mp3,
    :flv, :webm, :mp4
  ]
}
@@subtype_classes_mime_types =
{
  picture: [ :jpeg, :gif, :png, :bmp, :xcf ],
  audio:   [ :wav, :ogg, :webma, :mp3 ],
  video:   [ :flv, :webm, :mp4, :mpeg ]
}

Class Method Summary collapse

Class Method Details

.setup {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



76
77
78
# File 'lib/social_stream-documents.rb', line 76

def setup
  yield self
end

.subtypesObject

The symbols for the STI classes of Document: [ :picture, :audio, :video ]



81
82
83
# File 'lib/social_stream-documents.rb', line 81

def subtypes
  subtype_classes_mime_types.keys
end