cm-sms-rails 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5a51d1077b718b27ff08b452dd76197a09cafd07
4
- data.tar.gz: 33ea3b535997ac2aea0d042a1245abe388b8dd9c
3
+ metadata.gz: a3b853f42746a274ed7bc3d115e255da73692133
4
+ data.tar.gz: 9bf3a8d9efce3774b0a74ffeaab501aa645b9d16
5
5
  SHA512:
6
- metadata.gz: 471750a1fea3e3785883fc24afdaf33946807c871a4399872856bd7976d725862542ce939c2b9e41331101ba0b54c55dc6dab9fe236f29c8ccdeabca98d80ac8
7
- data.tar.gz: fa3a50ad475b14355dd31b5d1dec94150fd3c8a8bbf5369f64b6fc623cf3cd8f8ba4640b0a306b98366f9f69ae320e23211cd85209504f69df1182d7cb9f20b6
6
+ metadata.gz: fbcfd988b00e7a4cb88e6e062d38872af48d2efd10b9effeab842f3101d193285da2fc93564bb5127dc0210c741f6fc7707fc7a703f4e8337bb701eef31b4f8c
7
+ data.tar.gz: 3f6175db0929f7f44ae5d5c3f55ab93a380fe8c64bf1f0948ff6ac0926da543d64c6c1412a015d38439a0a419c6963a71c5adf3d777e4b431a169b167e44d14c
data/.gitignore CHANGED
@@ -10,3 +10,4 @@
10
10
 
11
11
  .DS_Store
12
12
  coverage
13
+ *.gem
@@ -2,3 +2,4 @@ language: ruby
2
2
  rvm:
3
3
  - 2.2.2
4
4
  before_install: gem install bundler -v 1.10.6
5
+ sudo: required
data/Gemfile CHANGED
@@ -3,4 +3,5 @@ source 'https://rubygems.org'
3
3
  # Specify your gem's dependencies in cm-sms-rails.gemspec
4
4
  gemspec
5
5
 
6
- gem 'simplecov', require: false, group: :test
6
+ gem 'simplecov', require: false, group: :test
7
+ gem 'coveralls', require: false, group: :test
data/README.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Cm::Sms::Rails
2
2
 
3
+ [![Build Status](https://img.shields.io/travis/HitFox/cm-sms-rails.svg?style=flat-square)](https://travis-ci.org/HitFox/cm-sms-rails)
4
+ [![Gem](https://img.shields.io/gem/dt/cm-sms-rails.svg?style=flat-square)](https://rubygems.org/gems/cm-sms-rails)
5
+ [![Code Climate](https://img.shields.io/codeclimate/github/HitFox/cm-sms-rails.svg?style=flat-square)](https://codeclimate.com/github/HitFox/cm-sms-rails)
6
+ [![Coverage](https://img.shields.io/coveralls/HitFox/cm-sms-rails.svg?style=flat-square)](https://coveralls.io/github/HitFox/cm-sms-rails)
7
+
3
8
  Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/cm/sms/rails`. To experiment with that code, run `bin/console` for an interactive prompt.
4
9
 
5
10
  TODO: Delete this and the text above, and describe your gem
data/Rakefile CHANGED
@@ -1 +1,6 @@
1
1
  require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
@@ -1,3 +1,6 @@
1
1
  require 'rails'
2
2
  require 'cm_sms'
3
- require 'cm_sms_rails'
3
+ require 'cm_sms_rails'
4
+
5
+ require 'generators/cm_sms/config_generator'
6
+ require 'generators/cm_sms/install_generator'
@@ -6,7 +6,7 @@ module CmSmsRails
6
6
 
7
7
  module VERSION
8
8
  MAJOR = 0
9
- MINOR = 1
9
+ MINOR = 2
10
10
  TINY = 0
11
11
  PRE = nil
12
12
 
@@ -3,11 +3,11 @@ require 'cm_sms_rails/delivery_job'
3
3
 
4
4
  module CmSmsRails
5
5
  module MessageDelivery
6
- def deliver_later!(options={})
6
+ def deliver_later!(options = {})
7
7
  enqueue_delivery :deliver_now!, options
8
8
  end
9
9
 
10
- def deliver_later(options={})
10
+ def deliver_later(options = {})
11
11
  enqueue_delivery :deliver_now, options
12
12
  end
13
13
 
@@ -0,0 +1,11 @@
1
+ module CmSms
2
+ module Generators
3
+ class ConfigGenerator < ::Rails::Generators::Base
4
+ source_root File.expand_path("../templates", __FILE__)
5
+
6
+ def copy_initializer_file
7
+ copy_file "initializer.rb", "config/initializers/cm_sms.rb"
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,10 @@
1
+ module CmSms
2
+ module Generators
3
+ class InstallGenerator < ::Rails::Generators::Base
4
+
5
+ def run_other_generators
6
+ generate "cm_sms:config"
7
+ end
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,6 @@
1
+ CmSms.configure do |config|
2
+ config.api_key = # Here goes your product token. After signup at https://www.cmtelecom.de/, you will find one in your settings. This is mandatory!!!
3
+ # config.from = # If you want to set a default from (sender), do it here.
4
+ # config.to = # If you want to set a default to (receiver), do it here.
5
+ # config.body = # If you want to set a default body (message), do it here.
6
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cm-sms-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - itschn
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-09-16 00:00:00.000000000 Z
11
+ date: 2015-09-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -119,6 +119,9 @@ files:
119
119
  - lib/cm_sms_rails/gem_version.rb
120
120
  - lib/cm_sms_rails/message_delivery.rb
121
121
  - lib/cm_sms_rails/version.rb
122
+ - lib/generators/cm_sms/config_generator.rb
123
+ - lib/generators/cm_sms/install_generator.rb
124
+ - lib/generators/cm_sms/templates/initializer.rb
122
125
  homepage: https://github.com/HitFox/cm-sms-rails
123
126
  licenses:
124
127
  - MIT