Sha256: ed577c35c517fb1a37f3739a012d60e1b938d7b3b608a24f8787309c1f762fda

Contents?: true

Size: 1.24 KB

Versions: 1

Compression:

Stored size: 1.24 KB

Contents

{  
  "generator" : {
    "name" : "Dropcaster",
    "version" : "<%= Dropcaster::VERSION%>"
  },
  "channel" : {
    "title" : "<%= title %>",
    "link" : "<%= url %>",
    "description" : "<%= description %>",
    "language" : "<%= language %>",
    "copyright" : "<%= copyright %>",
    "subtitle" : "<%= subtitle %>",
    "author" : "<%= author %>",
    "owner" : {
      "name" : "<%= owner[:name] %>",
      "email" : "<%= owner[:email] %>"
    },
    "image" : "<%= image_url %>",
    "categories": ["<% categories.join('\",\"') %>"],
    "explicit" : "<%= explicit %>",
    "items" : [<% items.collect{|item| %>{
        "title" : "<%= item.tag.title || item.tag2.TIT2 %>",
        "author" : "<%= item.tag2.TP1 || item.tag2.TPE1 %>",
        "subtitle" : "<%= item.tag2.SUBTITLE %>",
        "summary" : "<%= item.tag2.TT3 %>",
        "image" : "<%= item.image_url %>",
        "enclosure" : {
          "url" : "<%= item.url %>",
          "length" : "<%= item.file_size %>",
          "type" : "audio/mp3"
        },
        "guid" : "<%= item.uuid %>",
        "pubDate" : "<%= item.pub_date.to_formatted_s(:rfc822) %>",
        "duration" : "<%= item.duration.to_i %>",
        "keywords" : "<%= item.keywords %>"
     }
<% }.join(',') %>
    ]
  }
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dropcaster-0.0.5.rc1 test/fixtures/test_template.json.erb