--- !ruby/object:Gem::Specification name: mblox version: !ruby/object:Gem::Version version: 0.2.7 platform: ruby authors: - Isaac Betesh autorequire: bindir: bin cert_chain: [] date: 2013-10-14 00:00:00.000000000 Z dependencies: - !ruby/object:Gem::Dependency name: bundler requirement: !ruby/object:Gem::Requirement requirements: - - ~> - !ruby/object:Gem::Version version: '1.3' type: :development prerelease: false version_requirements: !ruby/object:Gem::Requirement requirements: - - ~> - !ruby/object:Gem::Version version: '1.3' - !ruby/object:Gem::Dependency name: rake requirement: !ruby/object:Gem::Requirement requirements: - - ! '>=' - !ruby/object:Gem::Version version: '0' type: :development prerelease: false version_requirements: !ruby/object:Gem::Requirement requirements: - - ! '>=' - !ruby/object:Gem::Version version: '0' - !ruby/object:Gem::Dependency name: rspec requirement: !ruby/object:Gem::Requirement requirements: - - ! '>=' - !ruby/object:Gem::Version version: '0' type: :development prerelease: false version_requirements: !ruby/object:Gem::Requirement requirements: - - ! '>=' - !ruby/object:Gem::Version version: '0' - !ruby/object:Gem::Dependency name: activemodel requirement: !ruby/object:Gem::Requirement requirements: - - ! '>=' - !ruby/object:Gem::Version version: '0' type: :runtime prerelease: false version_requirements: !ruby/object:Gem::Requirement requirements: - - ! '>=' - !ruby/object:Gem::Version version: '0' - !ruby/object:Gem::Dependency name: activesupport requirement: !ruby/object:Gem::Requirement requirements: - - ! '>=' - !ruby/object:Gem::Version version: '0' type: :runtime prerelease: false version_requirements: !ruby/object:Gem::Requirement requirements: - - ! '>=' - !ruby/object:Gem::Version version: '0' - !ruby/object:Gem::Dependency name: addressable requirement: !ruby/object:Gem::Requirement requirements: - - ! '>=' - !ruby/object:Gem::Version version: '0' type: :runtime prerelease: false version_requirements: !ruby/object:Gem::Requirement requirements: - - ! '>=' - !ruby/object:Gem::Version version: '0' - !ruby/object:Gem::Dependency name: builder requirement: !ruby/object:Gem::Requirement requirements: - - ! '>=' - !ruby/object:Gem::Version version: '0' type: :runtime prerelease: false version_requirements: !ruby/object:Gem::Requirement requirements: - - ! '>=' - !ruby/object:Gem::Version version: '0' description: Send SMS messages email: - iybetesh@gmail.com executables: [] extensions: [] extra_rdoc_files: [] files: - .gitignore - .rspec - Gemfile - LICENSE.txt - README.md - Rakefile - config.yml.example - lib/mblox.rb - lib/mblox/configuration.rb - lib/mblox/from_xml.rb - lib/mblox/sms.rb - lib/mblox/sms_receipt.rb - lib/mblox/sms_response.rb - lib/mblox/version.rb - mblox.gemspec - spec/configuration_spec.rb - spec/sms_receipt_spec.rb - spec/sms_response_result_spec.rb - spec/sms_spec.rb - spec/spec_helper.rb homepage: '' licenses: - MIT metadata: {} post_install_message: rdoc_options: [] require_paths: - lib required_ruby_version: !ruby/object:Gem::Requirement requirements: - - ! '>=' - !ruby/object:Gem::Version version: '0' required_rubygems_version: !ruby/object:Gem::Requirement requirements: - - ! '>=' - !ruby/object:Gem::Version version: '0' requirements: [] rubyforge_project: rubygems_version: 2.1.5 signing_key: specification_version: 4 summary: ! '# Mblox This gem is for subscribers to Mblox to send SMS messages. ## Installation Add this line to your application''s Gemfile: gem ''mblox'' And then execute: $ bundle Or install it yourself as: $ gem install mblox ## Usage Configuration Mblox.configure do |config| # Set all of these values, provided to you in your Mblox subscription config.outbound_url = ... config.profile_id = ... config.sender_id = ... config.password = ... config.partner_name = ... config.tariff = ... config.service_id = ... # You can also configure some logging options # In a Rails environment, config.logger will default to Rails.logger and config.log_at will default to :debug # config.log_at means the level at which Mblox will log. # For instance, if config.log_at == :debug, Mblox will log only if the logger''s log level is :debug # Note that if config.log_at == :debug and your logger''s log level is :info, # logging will be suppressed because it is below the log level of the logger. config.logger = Logger.new(STDOUT) config.log_at :info # What to do if messages are longer than 160 characters. Default is :raise_error # Other options are :truncate and :split config.on_message_too_long = :truncate end Once your application is configured, send messages: # The number to sending to must be a 10-digit number, including the area code. Can be a String or Fixnum. phone_number = 2225555555 # or: phone_number = "2225555555" Mblox::Sms.new(phone_number, "your message").send ## Testing Copy config.yml.example to config.yml and set all the values in that file. Run: rspec You should recieve 4 SMS messages to your phone within several seconds. ## Contributing 1. Fork it 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am ''Add some feature''`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create new Pull Request' test_files: - spec/configuration_spec.rb - spec/sms_receipt_spec.rb - spec/sms_response_result_spec.rb - spec/sms_spec.rb - spec/spec_helper.rb