test/fixtures/test_template.json.erb in dropcaster-0.0.4 vs test/fixtures/test_template.json.erb in dropcaster-0.0.5.rc1
- old
+ new
@@ -1,40 +1,40 @@
-{
- "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(',') %>
- ]
- }
-}
+{
+ "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(',') %>
+ ]
+ }
+}