mollie-sms 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/Rakefile +1 -0
  2. data/VERSION +1 -1
  3. data/mollie-sms.gemspec +2 -1
  4. data/rails/init.rb +15 -0
  5. metadata +4 -3
data/Rakefile CHANGED
@@ -17,6 +17,7 @@ begin
17
17
  s.authors = ["Eloy Duran"]
18
18
  s.summary = s.description = "Send SMS text messages via the Mollie.nl SMS gateway."
19
19
  s.files -= %w{ .gitignore TODO }
20
+ s.files << "rails/init.rb"
20
21
  s.extra_rdoc_files -= %w{ TODO }
21
22
  s.add_dependency('activesupport', '>= 2.3.8')
22
23
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.1
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{mollie-sms}
8
- s.version = "0.2.0"
8
+ s.version = "0.2.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Eloy Duran"]
@@ -24,6 +24,7 @@ Gem::Specification.new do |s|
24
24
  "lib/mollie/sms.rb",
25
25
  "lib/mollie/sms/test_helper.rb",
26
26
  "mollie-sms.gemspec",
27
+ "rails/init.rb",
27
28
  "spec/functional_sms_deliver_spec.rb",
28
29
  "spec/sms_spec.rb",
29
30
  "spec/spec_helper.rb",
@@ -0,0 +1,15 @@
1
+ case Rails.env
2
+ when "test"
3
+ require 'mollie/sms/test_helper'
4
+ require 'active_support/test_case'
5
+ ActiveSupport::TestCase.send(:include, Mollie::SMS::TestHelper)
6
+ when "development"
7
+ require 'mollie/sms/test_helper'
8
+ class Mollie::SMS
9
+ def deliver
10
+ validate_params!
11
+ Rails.logger.info "\n[!] SMS message sent #{to_s}\n\n"
12
+ Mollie::SMS.stubbed_response
13
+ end
14
+ end
15
+ end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mollie-sms
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 0
10
- version: 0.2.0
9
+ - 1
10
+ version: 0.2.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Eloy Duran
@@ -52,6 +52,7 @@ files:
52
52
  - lib/mollie/sms.rb
53
53
  - lib/mollie/sms/test_helper.rb
54
54
  - mollie-sms.gemspec
55
+ - rails/init.rb
55
56
  - spec/functional_sms_deliver_spec.rb
56
57
  - spec/sms_spec.rb
57
58
  - spec/spec_helper.rb