Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
scryfall_rb is an open source Ruby client library for Scryfall's API
.next()
for lists with a none-null has-next
value."oracle:draw oracle:a oracle:card" => "oracle%3Adraw%20oracle%3Aa%20oracle%3Acard"
. That process can be further simplified.All class/method names follow Scryfall's own naming convention, so their API documenation is the base place to look if you have any questions.
All card
fields returned by Scryfall are packed into the Scryfall::Card
object (including all image URI's for download).
card = Scryfall::Card.random
card.class
=> Scryfall::Card
card.inspect
=> "#<Scryfall::Card:0x00005624429b77f8 @attributes=#<OpenStruct object=\"card\", id=\"442b8c31-f346-4984-9159-2dce6a7485ac\", oracle_id=\"d0f06250-25a5-4003-8f3a-6d85ef32ea10\", name=\"Keening Stone\", lang=\"en\", released_at=\"2016-11-11\", mana_cost=\"{6}\", cmc=6.0, type_line=\"Artifact\", oracle_text=\"{5}, {T}: Target player puts the top X cards of their library...
Full text queries are done in plain text -- no need to properly encoding the query strings. For large query results, pagination is supported. Users are left to request 'next_page' values as needed.
cards = Scryfall::Card.search("type:sorcery color:U")
cards.class
=> Scryfall::List
cards.total_cards
=> 422
cards.next_page
=> "https://api.scryfall.com/cards/search?format=json&include_extras=false&include_multilingual=false&order=name&page=2&q=type%3Asorcery+color%3Au&unique=cards"
The scryfall_rb client is available under the terms of the MIT License.
As per Scryfall's own documentation, Scryfall provides their card data and image database free of charge for the primary purpose of creating additional Magic software, performing research, or creating community content (such as videos, set reviews, etc) about Magic and related products as part of the Wizards of the Coast Fan Content Policy,.
When using Scryfall data, you must adhere to the following guidelines:
This software is not produced, endorsed, or supported by Wizards of the Coast or Scryfall.
FAQs
Unknown package
We found that scryfall_rb 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.