Giter Site home page Giter Site logo

any_sms's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

saroar

any_sms's Issues

Exception workflow

Gem should handle exceptions from backends and treat them in some way. Probably exceptions should silently make request fail, and if needed - exception object and stacktrace should be available from response object.

Ensure incoming phone number is always in E.164

ActiveSMS should test incoming number for sending SMS, and if it does not follow standard it should throw an ActiveSms::PhoneFormatError exception. However, invalid phone numbers should be all caught by developer during development and not in production.

allow backends to pass metadata in response object

backends should be allowed to put additional meta information in response (remaining funds after api query?)

Additinaly, base backend respond_with_status method should support :meta key.
So you can call it like the following:

respond_with_status :success, meta: { remaining_funds: 63.4 }

Phone number converter

Allow passing custom proc to convert phone numbers on the fly. It would help using already existent database and just converting phone number on the fly.

Rspec test helper to ensure sms message sent

ActiveSMS should have sms sent matcher.
Functionality:

  • Check if block has sent any sms
  • Check phone number and text been used
  • Should allow mocking response object with custom status/meta data.
  • Check what custom backend: used for delivery.

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.