Sha256: 9f29efc87e39aa664ee66b90cd74bde8096b76e8266038ca7b7343edfc76362d

Contents?: true

Size: 1.17 KB

Versions: 2

Compression:

Stored size: 1.17 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 %>",
        "author" : "<%= item.tag.artist %>",
        "summary" : "<%= item.tag2.TT3 || item.tag2.TIT3 %>",
        "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

2 entries across 2 versions & 1 rubygems

Version Path
dropcaster-1.2.0 test/fixtures/test_template.json.erb
dropcaster-1.1.0 test/fixtures/test_template.json.erb