# -*- encoding: utf-8 -*- # stub: mblox 0.0.2 ruby lib Gem::Specification.new do |s| s.name = "mblox".freeze s.version = "0.0.2".freeze s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version= s.require_paths = ["lib".freeze] s.authors = ["Isaac Betesh".freeze] s.date = "2013-05-01" s.description = "Send SMS messages".freeze s.email = ["iybetesh@gmail.com".freeze] s.files = [".gitignore".freeze, "Gemfile".freeze, "LICENSE.txt".freeze, "README.md".freeze, "Rakefile".freeze, "config.yml.example".freeze, "lib/mblox.rb".freeze, "lib/mblox/configuration.rb".freeze, "lib/mblox/sms.rb".freeze, "lib/mblox/sms_error.rb".freeze, "lib/mblox/version.rb".freeze, "mblox.gemspec".freeze, "spec/configuration_spec.rb".freeze, "spec/log_spec.rb".freeze, "spec/sms_spec.rb".freeze, "spec/spec_helper.rb".freeze] s.homepage = "".freeze s.licenses = ["MIT".freeze] s.rubygems_version = "3.5.10".freeze s.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. # 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 config.on_message_too_long = :truncate end Once your application is configured, send messages: phone_number = 2225555555 # The number you're sending to. Must be a 10-digit number, including the area code. Can be a String or Fixnum. 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 3 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".freeze s.test_files = ["spec/configuration_spec.rb".freeze, "spec/log_spec.rb".freeze, "spec/sms_spec.rb".freeze, "spec/spec_helper.rb".freeze] s.specification_version = 3 s.add_development_dependency(%q.freeze, ["~> 1.3".freeze]) s.add_development_dependency(%q.freeze, [">= 0".freeze]) s.add_development_dependency(%q.freeze, [">= 0".freeze]) s.add_runtime_dependency(%q.freeze, [">= 0".freeze]) s.add_runtime_dependency(%q.freeze, [">= 0".freeze]) s.add_runtime_dependency(%q.freeze, [">= 0".freeze]) end