mediaburst-rails 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/.gitignore +43 -0
- data/.rspec +1 -0
- data/Gemfile +14 -0
- data/LICENSE.txt +20 -0
- data/README.rdoc +54 -0
- data/Rakefile +51 -0
- data/VERSION +1 -0
- data/lib/generators/mediaburst.rb +13 -0
- data/lib/generators/mediaburst/config/config_generator.rb +15 -0
- data/lib/generators/mediaburst/config/templates/mediaburst.yml +17 -0
- data/lib/mediaburst-rails.rb +61 -0
- data/lib/mediaburst/rails/config.rb +35 -0
- data/lib/mediaburst/rails/version.rb +7 -0
- data/mediaburst-rails.gemspec +84 -0
- data/spec/mediaburst-rails_spec.rb +7 -0
- data/spec/spec_helper.rb +12 -0
- metadata +220 -0
data/.document
ADDED
data/.gitignore
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
# rcov generated
|
2
|
+
coverage
|
3
|
+
|
4
|
+
# rdoc generated
|
5
|
+
rdoc
|
6
|
+
|
7
|
+
# yard generated
|
8
|
+
doc
|
9
|
+
.yardoc
|
10
|
+
|
11
|
+
# bundler
|
12
|
+
.bundle
|
13
|
+
Gemfile.lock
|
14
|
+
|
15
|
+
# jeweler generated
|
16
|
+
pkg
|
17
|
+
|
18
|
+
# Have editor/IDE/OS specific files you need to ignore? Consider using a global gitignore:
|
19
|
+
#
|
20
|
+
# * Create a file at ~/.gitignore
|
21
|
+
# * Include files you want ignored
|
22
|
+
# * Run: git config --global core.excludesfile ~/.gitignore
|
23
|
+
#
|
24
|
+
# After doing this, these files will be ignored in all your git projects,
|
25
|
+
# saving you from having to 'pollute' every project you touch with them
|
26
|
+
#
|
27
|
+
# Not sure what to needs to be ignored for particular editors/OSes? Here's some ideas to get you started. (Remember, remove the leading # of the line)
|
28
|
+
#
|
29
|
+
# For MacOS:
|
30
|
+
#
|
31
|
+
.DS_Store
|
32
|
+
#
|
33
|
+
# For TextMate
|
34
|
+
#*.tmproj
|
35
|
+
#tmtags
|
36
|
+
#
|
37
|
+
# For emacs:
|
38
|
+
#*~
|
39
|
+
#\#*
|
40
|
+
#.\#*
|
41
|
+
#
|
42
|
+
# For vim:
|
43
|
+
#*.swp
|
data/.rspec
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--color
|
data/Gemfile
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
source "http://rubygems.org"
|
2
|
+
|
3
|
+
gem 'activesupport', '~> 3.0'
|
4
|
+
gem 'railties', '~> 3.0'
|
5
|
+
gem 'mediaburst'
|
6
|
+
|
7
|
+
# Add dependencies to develop your gem here.
|
8
|
+
# Include everything needed to run rake, tests, features, etc.
|
9
|
+
group :development do
|
10
|
+
gem "rspec", "~> 2.3.0"
|
11
|
+
gem "bundler", "~> 1.0.0"
|
12
|
+
gem "jeweler", "~> 1.5.2"
|
13
|
+
gem "rcov", ">= 0"
|
14
|
+
end
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2011 Matthew Gibbons
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.rdoc
ADDED
@@ -0,0 +1,54 @@
|
|
1
|
+
= Mediaburst-Rails
|
2
|
+
|
3
|
+
Mediaburst-Rails is a Ruby Gem providing Rails 3.0 extensions to the Ruby Mediaburst SMS Gem (https://github.com/mediaburst/ruby-mediaburst-sms).
|
4
|
+
|
5
|
+
== Installation
|
6
|
+
|
7
|
+
To use Mediaburst-Rails with Rails 3.0, simply specify the gem in your application's Gemfile:
|
8
|
+
|
9
|
+
gem 'mediaburst-rails'
|
10
|
+
|
11
|
+
== Configuration
|
12
|
+
|
13
|
+
To use Mediaburst-Rails, you will need an SMS API account with Mediaburst Limited. For details, see http://www.mediaburst.co.uk/api/prices.
|
14
|
+
|
15
|
+
You specify your configuration in <code>config/mediaburst.yml</code>:
|
16
|
+
|
17
|
+
defaults: &defaults
|
18
|
+
username: my_username
|
19
|
+
password: my_password
|
20
|
+
from: MyApp
|
21
|
+
unique_id: true
|
22
|
+
|
23
|
+
development:
|
24
|
+
<<: *defaults
|
25
|
+
from: MyAppDev
|
26
|
+
|
27
|
+
test:
|
28
|
+
<<: *defaults
|
29
|
+
from: MyAppTest
|
30
|
+
|
31
|
+
To automatically generate a suitable configuration file, a Rails generator is included:
|
32
|
+
|
33
|
+
$ rails generate mediaburst:config
|
34
|
+
|
35
|
+
== Usage
|
36
|
+
|
37
|
+
client = Mediaburst::API.new
|
38
|
+
client.send_message('447890654321', 'This is an SMS message')
|
39
|
+
|
40
|
+
For additional usage, please refer to the Ruby Mediaburst SMS Gem (https://github.com/mediaburst/ruby-mediaburst-sms).
|
41
|
+
|
42
|
+
== Note on Patches/Pull Requests
|
43
|
+
|
44
|
+
* Fork the project.
|
45
|
+
* Make your feature addition or bug fix.
|
46
|
+
* Add tests for it. This is important so I don't break it in a
|
47
|
+
future version unintentionally.
|
48
|
+
* Commit, do not mess with rakefile, version, or history.
|
49
|
+
(if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
|
50
|
+
* Send me a pull request. Bonus points for topic branches.
|
51
|
+
|
52
|
+
== Copyright
|
53
|
+
|
54
|
+
Copyright (c) 2010 Matthew Gibbons. See LICENSE for details.
|
data/Rakefile
ADDED
@@ -0,0 +1,51 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'bundler'
|
3
|
+
begin
|
4
|
+
Bundler.setup(:default, :development)
|
5
|
+
rescue Bundler::BundlerError => e
|
6
|
+
$stderr.puts e.message
|
7
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
8
|
+
exit e.status_code
|
9
|
+
end
|
10
|
+
require 'rake'
|
11
|
+
|
12
|
+
require 'jeweler'
|
13
|
+
Jeweler::Tasks.new do |gem|
|
14
|
+
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
15
|
+
gem.name = "mediaburst-rails"
|
16
|
+
gem.homepage = "http://github.com/accuser/mediaburst-rails"
|
17
|
+
gem.license = "MIT"
|
18
|
+
gem.summary = %Q{Mediaburst SMS API for Rails}
|
19
|
+
gem.description = %Q{Mediaburst SMS API for Rails}
|
20
|
+
gem.email = "mhgibbons@me.com"
|
21
|
+
gem.authors = [ "Matthew Gibbons" ]
|
22
|
+
# Include your dependencies below. Runtime dependencies are required when using your gem,
|
23
|
+
# and development dependencies are only needed for development (ie running rake tasks, tests, etc)
|
24
|
+
gem.add_runtime_dependency 'mediaburst'
|
25
|
+
gem.add_development_dependency 'rspec', '~> 2.5.0'
|
26
|
+
gem.files = `git ls-files`.split("\n")
|
27
|
+
end
|
28
|
+
Jeweler::RubygemsDotOrgTasks.new
|
29
|
+
|
30
|
+
require 'rspec/core'
|
31
|
+
require 'rspec/core/rake_task'
|
32
|
+
RSpec::Core::RakeTask.new(:spec) do |spec|
|
33
|
+
spec.pattern = FileList['spec/**/*_spec.rb']
|
34
|
+
end
|
35
|
+
|
36
|
+
RSpec::Core::RakeTask.new(:rcov) do |spec|
|
37
|
+
spec.pattern = 'spec/**/*_spec.rb'
|
38
|
+
spec.rcov = true
|
39
|
+
end
|
40
|
+
|
41
|
+
task :default => :spec
|
42
|
+
|
43
|
+
require 'rake/rdoctask'
|
44
|
+
Rake::RDocTask.new do |rdoc|
|
45
|
+
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
46
|
+
|
47
|
+
rdoc.rdoc_dir = 'rdoc'
|
48
|
+
rdoc.title = "mediaburst-rails #{version}"
|
49
|
+
rdoc.rdoc_files.include('README*')
|
50
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
51
|
+
end
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.1.0
|
@@ -0,0 +1,13 @@
|
|
1
|
+
require 'rails/generators/base'
|
2
|
+
|
3
|
+
module Mediaburst
|
4
|
+
module Generators
|
5
|
+
class Base < Rails::Generators::Base
|
6
|
+
def self.source_root
|
7
|
+
@_mediaburst_source_root ||= File.expand_path(File.join(File.dirname(__FILE__), 'mediaburst', generator_name, 'templates'))
|
8
|
+
end
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module Mediaburst
|
2
|
+
module Generators
|
3
|
+
class ConfigGenerator < ::Rails::Generators::Base
|
4
|
+
source_root File.expand_path(File.join(File.dirname(__FILE__), 'templates'))
|
5
|
+
|
6
|
+
def app_name
|
7
|
+
::Rails::Application.subclasses.first.parent.to_s
|
8
|
+
end
|
9
|
+
|
10
|
+
def create_config_file
|
11
|
+
template 'mediaburst.yml', File.join('config', 'mediaburst.yml')
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
defaults: &defaults
|
2
|
+
username: <%%= ENV['MEDIABURST_USERNAME'] %>
|
3
|
+
password: <%%= ENV['MEDIABURST_PASSWORD'] %>
|
4
|
+
from: <%= app_name.truncate(11, :omission => '') %>
|
5
|
+
unique_id: true
|
6
|
+
|
7
|
+
development:
|
8
|
+
<<: *defaults
|
9
|
+
from: <%= app_name.truncate(8, :omission => '') + 'Dev' %>
|
10
|
+
|
11
|
+
test:
|
12
|
+
<<: *defaults
|
13
|
+
from: <%= app_name.truncate(7, :omission => '') + 'Test' %>
|
14
|
+
|
15
|
+
production:
|
16
|
+
<<: *defaults
|
17
|
+
|
@@ -0,0 +1,61 @@
|
|
1
|
+
require 'mediaburst/rails/config'
|
2
|
+
|
3
|
+
module Mediaburst
|
4
|
+
class API
|
5
|
+
def initialize(u = nil, p = nil)
|
6
|
+
@auth = {
|
7
|
+
:username => u || ::Mediaburst::Rails.username,
|
8
|
+
:password => p || ::Mediaburst::Rails.password
|
9
|
+
}
|
10
|
+
end
|
11
|
+
|
12
|
+
def send_message_with_defaults(numbers, content, options = {})
|
13
|
+
send_message_without_defaults(numbers, content, default_options.merge(options))
|
14
|
+
end
|
15
|
+
|
16
|
+
alias_method_chain :send_message, :defaults
|
17
|
+
|
18
|
+
private
|
19
|
+
def default_options
|
20
|
+
@default_options ||= default_option_keys.inject({}) do |m, k|
|
21
|
+
if v = ::Mediaburst::Rails.send(k)
|
22
|
+
m[k] = v
|
23
|
+
end
|
24
|
+
|
25
|
+
m
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
def default_option_keys
|
30
|
+
[ :from, :unique_id ]
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
module Rails
|
35
|
+
class << self
|
36
|
+
def config
|
37
|
+
::Mediaburst::Rails::Config.instance
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
Config.public_instance_methods(false).each do |method|
|
42
|
+
(class << self; self; end).class_eval <<-EOT
|
43
|
+
def #{method}(*args)
|
44
|
+
config.send("#{method}", *args)
|
45
|
+
end
|
46
|
+
EOT
|
47
|
+
end
|
48
|
+
|
49
|
+
class Railtie < ::Rails::Railtie
|
50
|
+
initializer 'configure mediaburst' do
|
51
|
+
config_file = ::Rails.root.join('config', 'mediaburst.yml')
|
52
|
+
|
53
|
+
if config_file.file?
|
54
|
+
settings = YAML.load(ERB.new(config_file.read).result)[::Rails.env]
|
55
|
+
::Rails.logger.info(settings.inspect)
|
56
|
+
::Mediaburst::Rails.from_hash(settings) if settings.present?
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
require 'singleton'
|
2
|
+
|
3
|
+
module Mediaburst
|
4
|
+
module Rails
|
5
|
+
class Config
|
6
|
+
include Singleton
|
7
|
+
|
8
|
+
attr_accessor :username, :password, :from, :unique_id
|
9
|
+
|
10
|
+
def from_hash(settings)
|
11
|
+
settings.each_pair do |key, value|
|
12
|
+
send("#{key}=", value) if respond_to?("#{key}=")
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
def from=(value)
|
17
|
+
if value =~ /\A(\d{0,12}|[\w\d]{0,11})\Z/
|
18
|
+
@from = value
|
19
|
+
else
|
20
|
+
raise ArgumentError, "value for 'from' invalid"
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
def unique_id=(value)
|
25
|
+
if [ 1, true, '1', 'true', 't', 'yes', 'y' ].include? value
|
26
|
+
@unique_id = 1
|
27
|
+
elsif [ 0, false, '0', 'false', 'f', 'no', 'n' ].include? value
|
28
|
+
@unique_id = 0
|
29
|
+
else
|
30
|
+
raise ArgumentError, "value for 'unique_id' invalid"
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,84 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{mediaburst-rails}
|
8
|
+
s.version = "0.1.0"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Matthew Gibbons"]
|
12
|
+
s.date = %q{2011-03-04}
|
13
|
+
s.description = %q{Mediaburst SMS API for Rails}
|
14
|
+
s.email = %q{mhgibbons@me.com}
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"LICENSE.txt",
|
17
|
+
"README.rdoc"
|
18
|
+
]
|
19
|
+
s.files = [
|
20
|
+
".document",
|
21
|
+
".gitignore",
|
22
|
+
".rspec",
|
23
|
+
"Gemfile",
|
24
|
+
"LICENSE.txt",
|
25
|
+
"README.rdoc",
|
26
|
+
"Rakefile",
|
27
|
+
"VERSION",
|
28
|
+
"lib/generators/mediaburst.rb",
|
29
|
+
"lib/generators/mediaburst/config/config_generator.rb",
|
30
|
+
"lib/generators/mediaburst/config/templates/mediaburst.yml",
|
31
|
+
"lib/mediaburst-rails.rb",
|
32
|
+
"lib/mediaburst/rails/config.rb",
|
33
|
+
"lib/mediaburst/rails/version.rb",
|
34
|
+
"mediaburst-rails.gemspec",
|
35
|
+
"spec/mediaburst-rails_spec.rb",
|
36
|
+
"spec/spec_helper.rb"
|
37
|
+
]
|
38
|
+
s.homepage = %q{http://github.com/accuser/mediaburst-rails}
|
39
|
+
s.licenses = ["MIT"]
|
40
|
+
s.require_paths = ["lib"]
|
41
|
+
s.rubygems_version = %q{1.6.0}
|
42
|
+
s.summary = %q{Mediaburst SMS API for Rails}
|
43
|
+
s.test_files = [
|
44
|
+
"spec/mediaburst-rails_spec.rb",
|
45
|
+
"spec/spec_helper.rb"
|
46
|
+
]
|
47
|
+
|
48
|
+
if s.respond_to? :specification_version then
|
49
|
+
s.specification_version = 3
|
50
|
+
|
51
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
52
|
+
s.add_runtime_dependency(%q<activesupport>, ["~> 3.0"])
|
53
|
+
s.add_runtime_dependency(%q<railties>, ["~> 3.0"])
|
54
|
+
s.add_runtime_dependency(%q<mediaburst>, [">= 0"])
|
55
|
+
s.add_development_dependency(%q<rspec>, ["~> 2.3.0"])
|
56
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
|
57
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
|
58
|
+
s.add_development_dependency(%q<rcov>, [">= 0"])
|
59
|
+
s.add_runtime_dependency(%q<mediaburst>, [">= 0"])
|
60
|
+
s.add_development_dependency(%q<rspec>, ["~> 2.5.0"])
|
61
|
+
else
|
62
|
+
s.add_dependency(%q<activesupport>, ["~> 3.0"])
|
63
|
+
s.add_dependency(%q<railties>, ["~> 3.0"])
|
64
|
+
s.add_dependency(%q<mediaburst>, [">= 0"])
|
65
|
+
s.add_dependency(%q<rspec>, ["~> 2.3.0"])
|
66
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
67
|
+
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
68
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
69
|
+
s.add_dependency(%q<mediaburst>, [">= 0"])
|
70
|
+
s.add_dependency(%q<rspec>, ["~> 2.5.0"])
|
71
|
+
end
|
72
|
+
else
|
73
|
+
s.add_dependency(%q<activesupport>, ["~> 3.0"])
|
74
|
+
s.add_dependency(%q<railties>, ["~> 3.0"])
|
75
|
+
s.add_dependency(%q<mediaburst>, [">= 0"])
|
76
|
+
s.add_dependency(%q<rspec>, ["~> 2.3.0"])
|
77
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
78
|
+
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
79
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
80
|
+
s.add_dependency(%q<mediaburst>, [">= 0"])
|
81
|
+
s.add_dependency(%q<rspec>, ["~> 2.5.0"])
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
2
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
3
|
+
require 'rspec'
|
4
|
+
require 'mediaburst-rails'
|
5
|
+
|
6
|
+
# Requires supporting files with custom matchers and macros, etc,
|
7
|
+
# in ./support/ and its subdirectories.
|
8
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
|
9
|
+
|
10
|
+
RSpec.configure do |config|
|
11
|
+
|
12
|
+
end
|
metadata
ADDED
@@ -0,0 +1,220 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: mediaburst-rails
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 27
|
5
|
+
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 1
|
9
|
+
- 0
|
10
|
+
version: 0.1.0
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- Matthew Gibbons
|
14
|
+
autorequire:
|
15
|
+
bindir: bin
|
16
|
+
cert_chain: []
|
17
|
+
|
18
|
+
date: 2011-03-04 00:00:00 +00:00
|
19
|
+
default_executable:
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
22
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
23
|
+
none: false
|
24
|
+
requirements:
|
25
|
+
- - ~>
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
hash: 7
|
28
|
+
segments:
|
29
|
+
- 3
|
30
|
+
- 0
|
31
|
+
version: "3.0"
|
32
|
+
version_requirements: *id001
|
33
|
+
name: activesupport
|
34
|
+
prerelease: false
|
35
|
+
type: :runtime
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
38
|
+
none: false
|
39
|
+
requirements:
|
40
|
+
- - ~>
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
hash: 7
|
43
|
+
segments:
|
44
|
+
- 3
|
45
|
+
- 0
|
46
|
+
version: "3.0"
|
47
|
+
version_requirements: *id002
|
48
|
+
name: railties
|
49
|
+
prerelease: false
|
50
|
+
type: :runtime
|
51
|
+
- !ruby/object:Gem::Dependency
|
52
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
53
|
+
none: false
|
54
|
+
requirements:
|
55
|
+
- - ">="
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
hash: 3
|
58
|
+
segments:
|
59
|
+
- 0
|
60
|
+
version: "0"
|
61
|
+
version_requirements: *id003
|
62
|
+
name: mediaburst
|
63
|
+
prerelease: false
|
64
|
+
type: :runtime
|
65
|
+
- !ruby/object:Gem::Dependency
|
66
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
67
|
+
none: false
|
68
|
+
requirements:
|
69
|
+
- - ~>
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
hash: 3
|
72
|
+
segments:
|
73
|
+
- 2
|
74
|
+
- 3
|
75
|
+
- 0
|
76
|
+
version: 2.3.0
|
77
|
+
version_requirements: *id004
|
78
|
+
name: rspec
|
79
|
+
prerelease: false
|
80
|
+
type: :development
|
81
|
+
- !ruby/object:Gem::Dependency
|
82
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
83
|
+
none: false
|
84
|
+
requirements:
|
85
|
+
- - ~>
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
hash: 23
|
88
|
+
segments:
|
89
|
+
- 1
|
90
|
+
- 0
|
91
|
+
- 0
|
92
|
+
version: 1.0.0
|
93
|
+
version_requirements: *id005
|
94
|
+
name: bundler
|
95
|
+
prerelease: false
|
96
|
+
type: :development
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
99
|
+
none: false
|
100
|
+
requirements:
|
101
|
+
- - ~>
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
hash: 7
|
104
|
+
segments:
|
105
|
+
- 1
|
106
|
+
- 5
|
107
|
+
- 2
|
108
|
+
version: 1.5.2
|
109
|
+
version_requirements: *id006
|
110
|
+
name: jeweler
|
111
|
+
prerelease: false
|
112
|
+
type: :development
|
113
|
+
- !ruby/object:Gem::Dependency
|
114
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
115
|
+
none: false
|
116
|
+
requirements:
|
117
|
+
- - ">="
|
118
|
+
- !ruby/object:Gem::Version
|
119
|
+
hash: 3
|
120
|
+
segments:
|
121
|
+
- 0
|
122
|
+
version: "0"
|
123
|
+
version_requirements: *id007
|
124
|
+
name: rcov
|
125
|
+
prerelease: false
|
126
|
+
type: :development
|
127
|
+
- !ruby/object:Gem::Dependency
|
128
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
129
|
+
none: false
|
130
|
+
requirements:
|
131
|
+
- - ">="
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
hash: 3
|
134
|
+
segments:
|
135
|
+
- 0
|
136
|
+
version: "0"
|
137
|
+
version_requirements: *id008
|
138
|
+
name: mediaburst
|
139
|
+
prerelease: false
|
140
|
+
type: :runtime
|
141
|
+
- !ruby/object:Gem::Dependency
|
142
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
143
|
+
none: false
|
144
|
+
requirements:
|
145
|
+
- - ~>
|
146
|
+
- !ruby/object:Gem::Version
|
147
|
+
hash: 27
|
148
|
+
segments:
|
149
|
+
- 2
|
150
|
+
- 5
|
151
|
+
- 0
|
152
|
+
version: 2.5.0
|
153
|
+
version_requirements: *id009
|
154
|
+
name: rspec
|
155
|
+
prerelease: false
|
156
|
+
type: :development
|
157
|
+
description: Mediaburst SMS API for Rails
|
158
|
+
email: mhgibbons@me.com
|
159
|
+
executables: []
|
160
|
+
|
161
|
+
extensions: []
|
162
|
+
|
163
|
+
extra_rdoc_files:
|
164
|
+
- LICENSE.txt
|
165
|
+
- README.rdoc
|
166
|
+
files:
|
167
|
+
- .document
|
168
|
+
- .gitignore
|
169
|
+
- .rspec
|
170
|
+
- Gemfile
|
171
|
+
- LICENSE.txt
|
172
|
+
- README.rdoc
|
173
|
+
- Rakefile
|
174
|
+
- VERSION
|
175
|
+
- lib/generators/mediaburst.rb
|
176
|
+
- lib/generators/mediaburst/config/config_generator.rb
|
177
|
+
- lib/generators/mediaburst/config/templates/mediaburst.yml
|
178
|
+
- lib/mediaburst-rails.rb
|
179
|
+
- lib/mediaburst/rails/config.rb
|
180
|
+
- lib/mediaburst/rails/version.rb
|
181
|
+
- mediaburst-rails.gemspec
|
182
|
+
- spec/mediaburst-rails_spec.rb
|
183
|
+
- spec/spec_helper.rb
|
184
|
+
has_rdoc: true
|
185
|
+
homepage: http://github.com/accuser/mediaburst-rails
|
186
|
+
licenses:
|
187
|
+
- MIT
|
188
|
+
post_install_message:
|
189
|
+
rdoc_options: []
|
190
|
+
|
191
|
+
require_paths:
|
192
|
+
- lib
|
193
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
194
|
+
none: false
|
195
|
+
requirements:
|
196
|
+
- - ">="
|
197
|
+
- !ruby/object:Gem::Version
|
198
|
+
hash: 3
|
199
|
+
segments:
|
200
|
+
- 0
|
201
|
+
version: "0"
|
202
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
203
|
+
none: false
|
204
|
+
requirements:
|
205
|
+
- - ">="
|
206
|
+
- !ruby/object:Gem::Version
|
207
|
+
hash: 3
|
208
|
+
segments:
|
209
|
+
- 0
|
210
|
+
version: "0"
|
211
|
+
requirements: []
|
212
|
+
|
213
|
+
rubyforge_project:
|
214
|
+
rubygems_version: 1.6.0
|
215
|
+
signing_key:
|
216
|
+
specification_version: 3
|
217
|
+
summary: Mediaburst SMS API for Rails
|
218
|
+
test_files:
|
219
|
+
- spec/mediaburst-rails_spec.rb
|
220
|
+
- spec/spec_helper.rb
|