Coder Social home page Coder Social logo

devmehq / devme-sdk-ruby Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 119 KB

DEV.ME SDK for Ruby

Home Page: https://dev.me

License: MIT License

Ruby 100.00%
ip-geolocation ip-geolocation-api ip-geolocation-ip2location currency-exchange-rates phone-validation email-verification currency-converter currency-exchange phone-number-validation ip-location-lookup

devme-sdk-ruby's Introduction

DEV.ME SDK for Ruby

Build Status Gem Version Downloads

DEV.ME SDK for Ruby

Compatible with Ruby on Rails

Get Your Free API Key

Signup Here and Get Your Free API Key

Installation and usage instructions

Installation

Install the module through GEM:

gem install devme-sdk-ruby

Or GEMFILE:

gem "devme-sdk-ruby", "~> 1.0"

Examples

Currency API Conversion

require 'devme-sdk-ruby'
DevmeSdk.configure do |config|
  config.api_key['APIKeyHeader'] = 'demo-key'
end
@api_instance = DevmeSdk::CurrencyApi.new
result = @api_instance.v1_convert_currency(from = 'USD', to = 'EUR', opts = { amount: 10 })
# puts result
# {
#   convertedAmount: 8.819,
#   convertedText: '10 USD equal to 8.819 EUR',
#   exchangeRate: 0.8819,
#   from: 'USD',
#   originalAmount: 10,
#   rateTime: '2022-01-20T14:49:28.046Z',
#   to: 'EUR'
# }

IP API Geolocation, IP2Location, IP Data

require 'devme-sdk-ruby'
DevmeSdk.configure do |config|
  config.api_key['APIKeyHeader'] = 'demo-key'
end
@api_instance = DevmeSdk::IPApi.new
result = @api_instance.v1_get_ip_details(opts = { ip: '52.45.23.11' })

# {
#   asn: 14618,
#   aso: 'AMAZON-AES',
#   city: {
#   accuracyRadius: 1000,
#     latitude: 39.0469,
#     longitude: -77.4903,
#     metroCode: 511,
#     name: 'Ashburn',
#     timeZone: 'America/New_York',
#   },
#   countryCode: 'US',
#   ip: '52.45.23.11',
#   registeredCountryCode: 'US',
# }

Testing

bundle exec rake

Need Help?

If you need help please drop us a message, we would be glad to help @ Contact us

Contributing

Please feel free to open an issue or create a pull request and fix bugs or add features, All contributions are welcome. Thank you!

LICENSE MIT

devme-sdk-ruby's People

Contributors

meabed avatar renovate-bot avatar renovate[bot] avatar

Stargazers

 avatar  avatar

Watchers

 avatar

devme-sdk-ruby's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

bundler
Gemfile
  • rake '~> 13.2.0'
  • pry-byebug undefined
  • rubocop '~> 1.63.0'
github-actions
.github/workflows/ci.yml
  • styfle/cancel-workflow-action 0.12.1
  • actions/checkout v4
  • ruby/setup-ruby v1
  • ubuntu 18.04
ruby-version
.ruby-version
  • ruby 3.3.0

  • Check this box to trigger a request for Renovate to run again on this repository

Vendor data present

Hey there,

My name is Maciej Mensfeld and I run security & quality assessment for Ruby libraries using WhiteSource Diffend.io.

While reviewing the changes for this lib, I noticed, that the vendor directory is being included.

Is this needed? Usually, it's added by mistake and causes:

a) confusion
b) problems when tracking changes
c) extensive library size

ref: LINK

If the presence of vendor data is valid I would love the reasoning. Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.