globelabs_sms_rails 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CODE_OF_CONDUCT.md +1 -1
- data/Gemfile.lock +5 -62
- data/README.md +33 -5
- data/globelabs_sms_rails.gemspec +8 -9
- data/lib/globelabs_sms_rails/version.rb +1 -1
- metadata +5 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e09c5e7d4327fc9d0439bae34d8c97b97e06df53fd7422e8c35bcdb31e6b0ab6
|
4
|
+
data.tar.gz: 310fba6f213b8f818d85112b185ee9d61f045aa02f80424e64ea4c1e5b3910b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 772a9b35c1d5842c938b6dd9295ef360d57217357562d47afb5dd46432aaeca727c3a39d18eb70b09541f7b499227344f4abfef1ab5f8e52380204fcb5efd823
|
7
|
+
data.tar.gz: fa5f20c6f106ec5e19ba0fa9c21233438af697f5b5030a74ebff284fca4dec21035373d1d45e9cd26ec52f95fddb5cf818f343fdcfcc0c5835d1d2d494e7f5fc
|
data/CODE_OF_CONDUCT.md
CHANGED
@@ -55,7 +55,7 @@ further defined and clarified by project maintainers.
|
|
55
55
|
## Enforcement
|
56
56
|
|
57
57
|
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
-
reported by contacting the project team at
|
58
|
+
reported by contacting the project team at denmarkmeralpis@gmail.com. All
|
59
59
|
complaints will be reviewed and investigated and will result in a response that
|
60
60
|
is deemed necessary and appropriate to the circumstances. The project team is
|
61
61
|
obligated to maintain confidentiality with regard to the reporter of an incident.
|
data/Gemfile.lock
CHANGED
@@ -1,21 +1,11 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
globelabs_sms_rails (0.1.
|
4
|
+
globelabs_sms_rails (0.1.1)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
|
-
actioncable (5.2.0)
|
10
|
-
actionpack (= 5.2.0)
|
11
|
-
nio4r (~> 2.0)
|
12
|
-
websocket-driver (>= 0.6.1)
|
13
|
-
actionmailer (5.2.0)
|
14
|
-
actionpack (= 5.2.0)
|
15
|
-
actionview (= 5.2.0)
|
16
|
-
activejob (= 5.2.0)
|
17
|
-
mail (~> 2.5, >= 2.5.4)
|
18
|
-
rails-dom-testing (~> 2.0)
|
19
9
|
actionpack (5.2.0)
|
20
10
|
actionview (= 5.2.0)
|
21
11
|
activesupport (= 5.2.0)
|
@@ -29,19 +19,6 @@ GEM
|
|
29
19
|
erubi (~> 1.4)
|
30
20
|
rails-dom-testing (~> 2.0)
|
31
21
|
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
32
|
-
activejob (5.2.0)
|
33
|
-
activesupport (= 5.2.0)
|
34
|
-
globalid (>= 0.3.6)
|
35
|
-
activemodel (5.2.0)
|
36
|
-
activesupport (= 5.2.0)
|
37
|
-
activerecord (5.2.0)
|
38
|
-
activemodel (= 5.2.0)
|
39
|
-
activesupport (= 5.2.0)
|
40
|
-
arel (>= 9.0)
|
41
|
-
activestorage (5.2.0)
|
42
|
-
actionpack (= 5.2.0)
|
43
|
-
activerecord (= 5.2.0)
|
44
|
-
marcel (~> 0.3.1)
|
45
22
|
activesupport (5.2.0)
|
46
23
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
47
24
|
i18n (>= 0.7, < 2)
|
@@ -50,7 +27,6 @@ GEM
|
|
50
27
|
addressable (2.5.2)
|
51
28
|
public_suffix (>= 2.0.2, < 4.0)
|
52
29
|
ansi (1.5.0)
|
53
|
-
arel (9.0.0)
|
54
30
|
builder (3.2.3)
|
55
31
|
concurrent-ruby (1.0.5)
|
56
32
|
crack (0.4.3)
|
@@ -63,45 +39,23 @@ GEM
|
|
63
39
|
generator_spec (0.9.4)
|
64
40
|
activesupport (>= 3.0.0)
|
65
41
|
railties (>= 3.0.0)
|
66
|
-
globalid (0.4.1)
|
67
|
-
activesupport (>= 4.2.0)
|
68
42
|
hashdiff (0.3.7)
|
69
43
|
hirb (0.7.3)
|
70
44
|
i18n (1.0.1)
|
71
45
|
concurrent-ruby (~> 1.0)
|
72
46
|
json (2.1.0)
|
73
|
-
loofah (2.2.
|
47
|
+
loofah (2.2.3)
|
74
48
|
crass (~> 1.0.2)
|
75
49
|
nokogiri (>= 1.5.9)
|
76
|
-
mail (2.7.0)
|
77
|
-
mini_mime (>= 0.1.1)
|
78
|
-
marcel (0.3.2)
|
79
|
-
mimemagic (~> 0.3.2)
|
80
50
|
method_source (0.9.0)
|
81
|
-
mimemagic (0.3.2)
|
82
|
-
mini_mime (1.0.0)
|
83
51
|
mini_portile2 (2.3.0)
|
84
52
|
minitest (5.11.3)
|
85
|
-
|
86
|
-
nokogiri (1.8.4)
|
53
|
+
nokogiri (1.8.5)
|
87
54
|
mini_portile2 (~> 2.3.0)
|
88
55
|
public_suffix (3.0.2)
|
89
56
|
rack (2.0.5)
|
90
57
|
rack-test (1.0.0)
|
91
58
|
rack (>= 1.0, < 3)
|
92
|
-
rails (5.2.0)
|
93
|
-
actioncable (= 5.2.0)
|
94
|
-
actionmailer (= 5.2.0)
|
95
|
-
actionpack (= 5.2.0)
|
96
|
-
actionview (= 5.2.0)
|
97
|
-
activejob (= 5.2.0)
|
98
|
-
activemodel (= 5.2.0)
|
99
|
-
activerecord (= 5.2.0)
|
100
|
-
activestorage (= 5.2.0)
|
101
|
-
activesupport (= 5.2.0)
|
102
|
-
bundler (>= 1.3.0)
|
103
|
-
railties (= 5.2.0)
|
104
|
-
sprockets-rails (>= 2.0.0)
|
105
59
|
rails-dom-testing (2.0.3)
|
106
60
|
activesupport (>= 4.2.0)
|
107
61
|
nokogiri (>= 1.6)
|
@@ -137,13 +91,6 @@ GEM
|
|
137
91
|
hirb
|
138
92
|
simplecov
|
139
93
|
simplecov-html (0.10.2)
|
140
|
-
sprockets (3.7.2)
|
141
|
-
concurrent-ruby (~> 1.0)
|
142
|
-
rack (> 1, < 3)
|
143
|
-
sprockets-rails (3.2.1)
|
144
|
-
actionpack (>= 4.0)
|
145
|
-
activesupport (>= 4.0)
|
146
|
-
sprockets (>= 3.0.0)
|
147
94
|
thor (0.20.0)
|
148
95
|
thread_safe (0.3.6)
|
149
96
|
tzinfo (1.2.5)
|
@@ -152,24 +99,20 @@ GEM
|
|
152
99
|
addressable (>= 2.3.6)
|
153
100
|
crack (>= 0.3.2)
|
154
101
|
hashdiff
|
155
|
-
websocket-driver (0.7.0)
|
156
|
-
websocket-extensions (>= 0.1.0)
|
157
|
-
websocket-extensions (0.1.3)
|
158
102
|
|
159
103
|
PLATFORMS
|
160
104
|
ruby
|
161
105
|
|
162
106
|
DEPENDENCIES
|
163
107
|
bundler (~> 1.16)
|
164
|
-
dotenv (~> 2.5
|
108
|
+
dotenv (~> 2.5)
|
165
109
|
generator_spec
|
166
110
|
globelabs_sms_rails!
|
167
|
-
rails
|
168
111
|
rake (~> 10.0)
|
169
112
|
rspec (~> 3.0)
|
170
113
|
simplecov
|
171
114
|
simplecov-console
|
172
|
-
webmock (~> 3.4
|
115
|
+
webmock (~> 3.4)
|
173
116
|
|
174
117
|
BUNDLED WITH
|
175
118
|
1.16.1
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
[![Build Status](https://travis-ci.org/denmarkmeralpis/globelabs_sms_rails.svg?branch=master)](https://travis-ci.org/denmarkmeralpis/globelabs_sms_rails) [![Test Coverage](https://api.codeclimate.com/v1/badges/8f4e8e1c883e6865d2ed/test_coverage)](https://codeclimate.com/github/denmarkmeralpis/globelabs_sms_rails/test_coverage) [![Maintainability](https://api.codeclimate.com/v1/badges/8f4e8e1c883e6865d2ed/maintainability)](https://codeclimate.com/github/denmarkmeralpis/globelabs_sms_rails/maintainability)
|
1
|
+
[![Build Status](https://travis-ci.org/denmarkmeralpis/globelabs_sms_rails.svg?branch=master)](https://travis-ci.org/denmarkmeralpis/globelabs_sms_rails) [![Test Coverage](https://api.codeclimate.com/v1/badges/8f4e8e1c883e6865d2ed/test_coverage)](https://codeclimate.com/github/denmarkmeralpis/globelabs_sms_rails/test_coverage) [![Maintainability](https://api.codeclimate.com/v1/badges/8f4e8e1c883e6865d2ed/maintainability)](https://codeclimate.com/github/denmarkmeralpis/globelabs_sms_rails/maintainability) [![Gem Version](https://badge.fury.io/rb/globelabs_sms_rails.svg)](https://badge.fury.io/rb/globelabs_sms_rails)
|
2
2
|
|
3
3
|
# Globe Labs SMS on Rails
|
4
4
|
|
@@ -22,7 +22,7 @@ Or install it yourself as:
|
|
22
22
|
|
23
23
|
Generate initializer to config/initializer via:
|
24
24
|
|
25
|
-
$ rails g globelabs_sms_rails:install
|
25
|
+
$ rails g globelabs_sms_rails:install initializer
|
26
26
|
|
27
27
|
then edit the file in `config/initializer/globelabs_sms_rails.rb` and supply the necessary details.
|
28
28
|
|
@@ -30,14 +30,38 @@ then edit the file in `config/initializer/globelabs_sms_rails.rb` and supply the
|
|
30
30
|
|
31
31
|
Two way of sending SMS:
|
32
32
|
```ruby
|
33
|
-
# Direct sending through class method
|
34
|
-
GlobelabsSmsRails.send(address: '0917XXXXXXX', message: 'Your message here!')
|
33
|
+
# Direct sending through class method #send
|
34
|
+
GlobelabsSmsRails::Client.send(address: '0917XXXXXXX', message: 'Your message here!')
|
35
35
|
|
36
36
|
# Initialize and send
|
37
|
-
client = GlobelabsSmsRails.new(address: '0917XXXXXXX', message: 'Your message here!)
|
37
|
+
client = GlobelabsSmsRails::Client.new(address: '0917XXXXXXX', message: 'Your message here!)
|
38
38
|
ciient.send
|
39
39
|
```
|
40
40
|
|
41
|
+
# License
|
42
|
+
|
43
|
+
MIT License
|
44
|
+
|
45
|
+
Copyright (c) 2017 Nujian Den Mark Meralpis
|
46
|
+
|
47
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
48
|
+
of this software and associated documentation files (the "Software"), to deal
|
49
|
+
in the Software without restriction, including without limitation the rights
|
50
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
51
|
+
copies of the Software, and to permit persons to whom the Software is
|
52
|
+
furnished to do so, subject to the following conditions:
|
53
|
+
|
54
|
+
The above copyright notice and this permission notice shall be included in all
|
55
|
+
copies or substantial portions of the Software.
|
56
|
+
|
57
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
58
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
59
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
60
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
61
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
62
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
63
|
+
SOFTWARE.
|
64
|
+
|
41
65
|
## Contributing
|
42
66
|
|
43
67
|
Bug reports and pull requests are welcome on GitHub at https://github.com/denmarkmeralpis/globelabs_sms_rails. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
@@ -45,3 +69,7 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/denmar
|
|
45
69
|
## Code of Conduct
|
46
70
|
|
47
71
|
Everyone interacting in the GlobelabsSmsRails project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/denmarkmeralpis/globelabs_sms_rails/blob/master/CODE_OF_CONDUCT.md).
|
72
|
+
|
73
|
+
## Donate
|
74
|
+
|
75
|
+
[![paypal](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=nujiandenmarkmeralpis@gmail.com&lc=US&item_name=For+Living&no_note=0&cn=&curency_code=USD&bn=PP-DonationsBF:btn_donateCC_LG.gif:NonHosted)
|
data/globelabs_sms_rails.gemspec
CHANGED
@@ -8,20 +8,20 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.version = GlobelabsSmsRails::VERSION
|
9
9
|
spec.authors = ["Nujian Den Mark Meralpis"]
|
10
10
|
spec.email = ["meralpisdenmark@gmail.com"]
|
11
|
-
|
11
|
+
|
12
12
|
spec.summary = "A simple gem for sending SMS through Globe Labs API."
|
13
|
-
spec.homepage = "https://
|
13
|
+
spec.homepage = "https://rubygems.org/gems/globelabs_sms_rails"
|
14
14
|
spec.description = "This gem will help you send SMS using Globe Labs API. Please take note that this gem will work if the subscriber consent workflow is disabled. You can apply the process by asking Globe"
|
15
15
|
spec.license = "MIT"
|
16
16
|
|
17
17
|
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
18
18
|
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
19
|
+
if spec.respond_to?(:metadata)
|
20
|
+
spec.metadata["allowed_push_host"] = "https://rubygems.org/gems/globelabs_sms_rails"
|
21
|
+
else
|
22
|
+
raise "RubyGems 2.0 or newer is required to protect against " \
|
23
|
+
"public gem pushes."
|
24
|
+
end
|
25
25
|
|
26
26
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
27
27
|
f.match(%r{^(test|spec|features)/})
|
@@ -35,5 +35,4 @@ Gem::Specification.new do |spec|
|
|
35
35
|
spec.add_development_dependency "rspec", "~> 3.0"
|
36
36
|
spec.add_development_dependency "dotenv", "~> 2.5"
|
37
37
|
spec.add_development_dependency "webmock", "~> 3.4"
|
38
|
-
spec.add_development_dependency "rails", "~> 4.2"
|
39
38
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: globelabs_sms_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nujian Den Mark Meralpis
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -80,20 +80,6 @@ dependencies:
|
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '3.4'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: rails
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - "~>"
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '4.2'
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - "~>"
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '4.2'
|
97
83
|
description: This gem will help you send SMS using Globe Labs API. Please take note
|
98
84
|
that this gem will work if the subscriber consent workflow is disabled. You can
|
99
85
|
apply the process by asking Globe
|
@@ -123,10 +109,11 @@ files:
|
|
123
109
|
- lib/globelabs_sms_rails/configuration.rb
|
124
110
|
- lib/globelabs_sms_rails/errors/configuration.rb
|
125
111
|
- lib/globelabs_sms_rails/version.rb
|
126
|
-
homepage: https://
|
112
|
+
homepage: https://rubygems.org/gems/globelabs_sms_rails
|
127
113
|
licenses:
|
128
114
|
- MIT
|
129
|
-
metadata:
|
115
|
+
metadata:
|
116
|
+
allowed_push_host: https://rubygems.org/gems/globelabs_sms_rails
|
130
117
|
post_install_message:
|
131
118
|
rdoc_options: []
|
132
119
|
require_paths:
|