File: idn.rb

package info (click to toggle)
ruby-httparty 0.21.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 908 kB
  • sloc: ruby: 6,782; xml: 425; sh: 35; makefile: 14
file content (10 lines) | stat: -rw-r--r-- 250 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
dir = File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib'))
require File.join(dir, 'httparty')
require 'pp'

class Idn
    include HTTParty
    uri_adapter Addressable::URI
end

pp Idn.get("https://i❤️.ws/emojidomain/💎?format=json")