Permalink
Browse files

Release version 0.2.1 which makes sure no messages are send in dev/te…

…st modes.
  • Loading branch information...
1 parent 68c06c4 commit 77953ffdd14d8bab276ffdc53c436095455a5e08 @alloy alloy committed Aug 3, 2010
Showing with 18 additions and 1 deletion.
  1. +1 −0 Rakefile
  2. +1 −1 VERSION
  3. +1 −0 mollie-sms.gemspec
  4. +15 −0 rails/init.rb
View
@@ -17,6 +17,7 @@ begin
s.authors = ["Eloy Duran"]
s.summary = s.description = "Send SMS text messages via the Mollie.nl SMS gateway."
s.files -= %w{ .gitignore TODO }
+ s.files << "rails/init.rb"
s.extra_rdoc_files -= %w{ TODO }
s.add_dependency('activesupport', '>= 2.3.8')
end
View
@@ -1 +1 @@
-0.2.0
+0.2.1
View
@@ -24,6 +24,7 @@ Gem::Specification.new do |s|
"lib/mollie/sms.rb",
"lib/mollie/sms/test_helper.rb",
"mollie-sms.gemspec",
+ "rails/init.rb",
"spec/functional_sms_deliver_spec.rb",
"spec/sms_spec.rb",
"spec/spec_helper.rb",
View
@@ -0,0 +1,15 @@
+case Rails.env
+when "test"
+ require 'mollie/sms/test_helper'
+ require 'active_support/test_case'
+ ActiveSupport::TestCase.send(:include, Mollie::SMS::TestHelper)
+when "development"
+ require 'mollie/sms/test_helper'
+ class Mollie::SMS
+ def deliver
+ validate_params!
+ Rails.logger.info "\n[!] SMS message sent #{to_s}\n\n"
+ Mollie::SMS.stubbed_response
+ end
+ end
+end

0 comments on commit 77953ff

Please sign in to comment.