
Security News
Researcher Exposes Zero-Day Clickjacking Vulnerabilities in Major Password Managers
Hacker Demonstrates How Easy It Is To Steal Data From Popular Password Managers
= midna
Ruby interface to the Midna API. See the [Rdoc]http://rdoc.info/projects/tilsammans/midna on how to use it.
This gem chats with the Midna API so you don't have to. It will give you objects in the Midna namespace, which you can query like Active Record:
Midna::Broadcaster.find('avro')
Midna::Broadcaster.series('avro')
Midna::Channel.all
Midna::Channel.find(code)
Midna::Series.find(id)
Midna::Series.search(query)
Midna::Episode.find(id)
Midna::Episode.series(id)
Midna::Episode.series_window(id, start, end)
Midna::Episode.series_until(id, start) Midna::Episode.series_until(id, start, :page => 2)
Midna::Episode.series_since(id, start) Midna::Episode.series_since(id, start, :page => 2)
Midna::Broadcast.channel(code)
Midna::Broadcast.channel_window(id, start, end)
All of these methods will return hashes or arrays of hashes.
Also, Midna is Zelda's goth sister.
== Installation in Rails
Install this plugin as a gem.
For Rails 2, in config/environment.rb
config.gem 'midna'
For Rails 3, in Gemfile
gem 'midna'
Then run rake gems:install.
== Usage in plain Ruby
First install the gem on your machine like usual:
$ gem install midna
Use sudo if your setup requires it. After this you can require it in your code and work with Midna from there.
require 'rubygems' require 'midna'
puts Midna::Channel.all
== Configuration
If you are using rails, create a file called config/initializers/midna.rb with the following configuration. If you are using the gem, execute these lines before you first call any Midna objects.
The gem connects to midna.omroep.nl by default. You can override this by setting the +base_uri+:
Midna.base_uri = 'http://some.other.host'
== Prerequisites
The HTTparty[http://github.com/jnunemaker/httparty] gem.
gem install httparty
== Copyright
Copyright (c) 2010 Joost Baaij. See LICENSE for details.
FAQs
Unknown package
We found that Midna demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Hacker Demonstrates How Easy It Is To Steal Data From Popular Password Managers
Security News
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.