glabssms 0.1.1 → 1.0.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
  SHA256:
3
- metadata.gz: a93476437a9b7f401f001c8b6bd60c81bdc2965d982e0f2efbe873a99711d61f
4
- data.tar.gz: cb8c86099e5a0f695a405f3b8d6c6bff132caa6646dc129b3a2c19fc4937edda
3
+ metadata.gz: 29eaddb71cbc1aa3af4e947668a94ba9d2e3e09c9534bb85cb95408c94db2125
4
+ data.tar.gz: 169651d22d029b01540619b5e76df0f4edc46a29b1812e438fa03c6c4f6c0b80
5
5
  SHA512:
6
- metadata.gz: a5beed2b95b1aca430c4425c9ac5f4d4bd2e5bd14e4ca6834b5ba0a2474743f6abb7f7f10b4b3992008b2192b2dd9636e05d080170d5f23f07e9b026038bf89b
7
- data.tar.gz: dfcfbe0b02f9f82b39e2e8515bf3d2fa8bd9c09d097afd7a5f5ccef8d567a2eae33b0884cfd18eefeaf7a7fe0ed623d7ed5c8a6a5a2046a5608ad1b5e3565ecd
6
+ metadata.gz: 1f5a943893ec0efdf0227efe2e2c3bdc310924619ff1b19c100b753d11029f16cb2b9cd147447f15c6436f95d52e4e186ed6bb4a54c86428ee57e64c5caeba0e
7
+ data.tar.gz: 9289b9733b15bc3b039d387300edcae813e69b3d7302099c09dfefac723c8300d9836f12c74aadee0b4e28e74729658aeb72bf6b6f1226e9837e282c14314bfd
@@ -1,9 +1,6 @@
1
1
  name: Ruby Gem
2
2
 
3
3
  on:
4
- pull_request:
5
- branches:
6
- - master
7
4
  push:
8
5
  branches:
9
6
  - master
@@ -0,0 +1,6 @@
1
+ ruby:
2
+ config_file: .rubocop.yml
3
+ scss:
4
+ enabled: false
5
+ javascript:
6
+ enabled: false
@@ -0,0 +1,505 @@
1
+ #see: https://github.com/bbatsov/rubocop/blob/master/config/default.yml
2
+ AllCops:
3
+ Exclude:
4
+ - "vendor/**/*"
5
+ - "db/schema.rb"
6
+ - "maint/**/*"
7
+ - "spec/**/*"
8
+ - "app/views/**/*"
9
+ - "app/views2015/**/*"
10
+ UseCache: false
11
+ DisplayCopNames: true
12
+ TargetRubyVersion: 2.2.10
13
+ TargetRailsVersion: 4.2.11
14
+ Lint/UnusedMethodArgument:
15
+ Enabled: true
16
+ Lint/Loop:
17
+ Enabled: false
18
+ Lint/UselessAccessModifier:
19
+ Enabled: true
20
+ Layout/DefEndAlignment:
21
+ EnforcedStyleAlignWith: start_of_line
22
+ Lint/AssignmentInCondition:
23
+ Description: Don't use assignment in conditions.
24
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#safe-assignment-in-condition
25
+ Enabled: false
26
+ AllowSafeAssignment: true
27
+ Lint/UselessAssignment:
28
+ Enabled: true
29
+ Lint/ShadowingOuterLocalVariable:
30
+ Enabled: true
31
+ Lint/UnusedBlockArgument:
32
+ Enabled: true
33
+ Lint/StringConversionInInterpolation:
34
+ Enabled: true
35
+ Lint/UnreachableCode:
36
+ Enabled: true
37
+ Lint/AmbiguousRegexpLiteral:
38
+ Enabled: false
39
+ Layout/EndAlignment:
40
+ EnforcedStyleAlignWith: variable
41
+ Lint/CircularArgumentReference:
42
+ Enabled: true
43
+ Lint/Void:
44
+ Enabled: false
45
+ Lint/DuplicatedKey:
46
+ Enabled: true
47
+ Lint/RescueException:
48
+ Enabled: false
49
+ Lint/DeprecatedClassMethods:
50
+ Enabled: true
51
+ Lint/AmbiguousOperator:
52
+ Enabled: true
53
+ Lint/ElseLayout:
54
+ Enabled: false
55
+ Layout/BlockAlignment:
56
+ EnforcedStyleAlignWith: start_of_block
57
+ Lint/NonLocalExitFromIterator:
58
+ Enabled: false
59
+ Lint/ParenthesesAsGroupedExpression:
60
+ Enabled: false
61
+ Lint/EnsureReturn:
62
+ Enabled: true
63
+ Lint/UnderscorePrefixedVariableName:
64
+ Enabled: false
65
+ Lint/DuplicateMethods:
66
+ Enabled: true
67
+ Lint/EachWithObjectArgument:
68
+ Description: Check for immutable argument given to each_with_object.
69
+ Enabled: true
70
+ Lint/HandleExceptions:
71
+ Description: Don't suppress exception.
72
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#dont-hide-exceptions
73
+ Enabled: false
74
+ Lint/LiteralInInterpolation:
75
+ Description: Checks for literals used in interpolation.
76
+ Enabled: false
77
+ Metrics/AbcSize:
78
+ Description: A calculated magnitude based on number of assignments, branches, and
79
+ conditions.
80
+ Enabled: false
81
+ Max: 15
82
+ Metrics/ClassLength:
83
+ Description: Avoid classes longer than 750 lines of code.
84
+ Enabled: false
85
+ CountComments: false
86
+ Max: 750
87
+ Metrics/ModuleLength:
88
+ CountComments: false
89
+ Max: 750
90
+ Description: Avoid modules longer than 750 lines of code.
91
+ Enabled: false
92
+ Metrics/CyclomaticComplexity:
93
+ Description: A complexity metric that is strongly correlated to the number of test
94
+ cases needed to validate a method.
95
+ Enabled: false
96
+ Max: 10
97
+ Metrics/MethodLength:
98
+ Description: Avoid methods longer than 50 lines of code.
99
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#short-methods
100
+ Enabled: false
101
+ CountComments: false
102
+ Max: 50
103
+ Metrics/ParameterLists:
104
+ Description: Avoid parameter lists longer than three or four parameters.
105
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#too-many-params
106
+ Enabled: false
107
+ Max: 5
108
+ CountKeywordArgs: true
109
+ Metrics/PerceivedComplexity:
110
+ Description: A complexity metric geared towards measuring complexity for a human
111
+ reader.
112
+ Enabled: false
113
+ Max: 7
114
+ Metrics/LineLength:
115
+ Enabled: true
116
+ Max: 120
117
+ Metrics/BlockNesting:
118
+ Enabled: false
119
+ Layout/EmptyLines:
120
+ Enabled: false
121
+ Layout/AlignParameters:
122
+ EnforcedStyle: with_fixed_indentation
123
+ Layout/EmptyLinesAroundClassBody:
124
+ Enabled: false
125
+ Style/EmptyMethod:
126
+ EnforcedStyle: expanded
127
+ Style/OptionHash:
128
+ Description: Don't use option hashes when you can use keyword arguments.
129
+ Enabled: false
130
+ Style/PercentLiteralDelimiters:
131
+ Description: Use `%`-literal delimiters consistently
132
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-literal-braces
133
+ Enabled: false
134
+ PreferredDelimiters:
135
+ "%": "()"
136
+ "%i": "()"
137
+ "%q": "()"
138
+ "%Q": "()"
139
+ "%r": "{}"
140
+ "%s": "()"
141
+ "%w": "()"
142
+ "%W": "()"
143
+ "%x": "()"
144
+ Naming/PredicateName:
145
+ Description: Check the names of predicate methods.
146
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#bool-methods-qmark
147
+ Enabled: false
148
+ NamePrefix:
149
+ - is_
150
+ - has_
151
+ - have_
152
+ NamePrefixBlacklist:
153
+ - is_
154
+ Exclude:
155
+ - spec/**/*
156
+ Style/RaiseArgs:
157
+ Description: Checks the arguments passed to raise/fail.
158
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#exception-class-messages
159
+ Enabled: false
160
+ EnforcedStyle: exploded
161
+ SupportedStyles:
162
+ - compact
163
+ - exploded
164
+ Style/SignalException:
165
+ Description: Checks for proper usage of fail and raise.
166
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#fail-method
167
+ Enabled: false
168
+ EnforcedStyle: semantic
169
+ SupportedStyles:
170
+ - only_raise
171
+ - only_fail
172
+ - semantic
173
+ Style/SingleLineBlockParams:
174
+ Description: Enforces the names of some block params.
175
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#reduce-blocks
176
+ Enabled: false
177
+ Methods:
178
+ - reduce:
179
+ - a
180
+ - e
181
+ - inject:
182
+ - a
183
+ - e
184
+ Style/SingleLineMethods:
185
+ Description: Avoid single-line methods.
186
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-single-line-methods
187
+ Enabled: false
188
+ AllowIfMethodIsEmpty: true
189
+ Style/StringLiterals:
190
+ Description: Checks if uses of quotes match the configured preference.
191
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#consistent-string-literals
192
+ Enabled: false
193
+ EnforcedStyle: double_quotes
194
+ SupportedStyles:
195
+ - single_quotes
196
+ - double_quotes
197
+ Style/StringLiteralsInInterpolation:
198
+ Description: Checks if uses of quotes inside expressions in interpolated strings
199
+ match the configured preference.
200
+ Enabled: false
201
+ EnforcedStyle: single_quotes
202
+ SupportedStyles:
203
+ - single_quotes
204
+ - double_quotes
205
+ Style/SymbolArray:
206
+ Enabled: false
207
+ Style/MethodDefParentheses:
208
+ Enabled: false
209
+ Style/EmptyElse:
210
+ Enabled: false
211
+ Layout/Tab:
212
+ Enabled: false
213
+ Layout/IndentationWidth:
214
+ Enabled: false
215
+ Layout/SpaceBeforeComment:
216
+ Enabled: false
217
+ Style/TrailingCommaInArrayLiteral:
218
+ Enabled: false
219
+ Style/TrailingCommaInHashLiteral:
220
+ Enabled: false
221
+ Style/NonNilCheck:
222
+ Enabled: false
223
+ Style/BlockDelimiters:
224
+ Enabled: false
225
+ Layout/MultilineMethodCallBraceLayout:
226
+ Enabled: false
227
+ Layout/MultilineMethodCallIndentation:
228
+ EnforcedStyle: indented
229
+ Style/InfiniteLoop:
230
+ Enabled: false
231
+ Style/NegatedWhile:
232
+ Enabled: false
233
+ Layout/SpaceAroundKeyword:
234
+ Enabled: false
235
+ Style/BarePercentLiterals:
236
+ Enabled: false
237
+ Style/PercentQLiterals:
238
+ Enabled: false
239
+ Style/UnneededPercentQ:
240
+ Enabled: false
241
+ Style/ZeroLengthPredicate:
242
+ Enabled: false
243
+ Layout/SpaceBeforeFirstArg:
244
+ Enabled: false
245
+ Layout/EmptyLinesAroundModuleBody:
246
+ Enabled: false
247
+ Style/SignalException:
248
+ Enabled: false
249
+ Style/GuardClause:
250
+ Enabled: true
251
+ Style/CollectionMethods:
252
+ Enabled: false
253
+ Style/ConditionalAssignment:
254
+ Enabled: false
255
+ Layout/LeadingCommentSpace:
256
+ Enabled: false
257
+ Layout/SpaceBeforeBlockBraces:
258
+ Enabled: false
259
+ Layout/SpaceInsideBlockBraces:
260
+ Enabled: false
261
+ Layout/SpaceInsideHashLiteralBraces:
262
+ Enabled: false
263
+ Layout/IndentHash:
264
+ Enabled: false
265
+ Style/BracesAroundHashParameters:
266
+ Enabled: false
267
+ Layout/ExtraSpacing:
268
+ Enabled: false
269
+ Style/WordArray:
270
+ Enabled: false
271
+ Layout/TrailingBlankLines:
272
+ Enabled: false
273
+ Layout/SpaceBeforeComma:
274
+ Enabled: false
275
+ Layout/MultilineOperationIndentation:
276
+ Enabled: false
277
+ Style/RedundantSelf:
278
+ Enabled: false
279
+ Style/RedundantBegin:
280
+ Enabled: false
281
+ Style/HashSyntax:
282
+ Enabled: false
283
+ Style/NestedTernaryOperator:
284
+ Enabled: false
285
+ Layout/SpaceAroundOperators:
286
+ Enabled: false
287
+ Style/AndOr:
288
+ Enabled: false
289
+ Style/ClassAndModuleChildren:
290
+ Enabled: false
291
+ Layout/TrailingWhitespace:
292
+ Description: looks for trailing whitespace in the source code
293
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-trailing-whitespace
294
+ Enabled: false
295
+ Style/NumericLiterals:
296
+ Description: checks for big numeric literals without _ between groups of digits in them
297
+ Enabled: false
298
+ Style/CollectionMethods:
299
+ Description: Preferred collection methods.
300
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#map-find-select-reduce-size
301
+ Enabled: false
302
+ PreferredMethods:
303
+ collect: map
304
+ collect!: map!
305
+ find: detect
306
+ find_all: select
307
+ inject: reduce
308
+ Layout/DotPosition:
309
+ Description: Checks the position of the dot in multi-line method calls.
310
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#consistent-multi-line-chains
311
+ EnforcedStyle: leading
312
+ Naming/FileName:
313
+ Description: Use snake_case for source file names.
314
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#snake-case-files
315
+ Enabled: false
316
+ Exclude: []
317
+ Style/GuardClause:
318
+ Description: Check for conditionals that can be replaced with guard clauses
319
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals
320
+ Enabled: false
321
+ MinBodyLength: 1
322
+ Style/FormatString:
323
+ Enabled: false
324
+ Style/IfUnlessModifier:
325
+ Description: Favor modifier if/unless usage when you have a single-line body.
326
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#if-as-a-modifier
327
+ Enabled: false
328
+ Style/MultilineBlockChain:
329
+ Enabled: false
330
+ Naming/VariableName:
331
+ Enabled: false
332
+ Style/EvenOdd:
333
+ Enabled: false
334
+ Style/ClassCheck:
335
+ Enabled: false
336
+ Layout/IndentArray:
337
+ Enabled: false
338
+ Style/PreferredHashMethods:
339
+ Enabled: false
340
+ Style/ClassVars:
341
+ Enabled: false
342
+ Style/Lambda:
343
+ Enabled: false
344
+ Style/ParallelAssignment:
345
+ Enabled: false
346
+ Style/TrivialAccessors:
347
+ Enabled: false
348
+ Naming/MethodName:
349
+ Enabled: false
350
+ Style/For:
351
+ Enabled: false
352
+ Layout/SpaceAfterSemicolon:
353
+ Enabled: false
354
+ Layout/AccessModifierIndentation:
355
+ Enabled: false
356
+ Naming/ConstantName:
357
+ Enabled: false
358
+ Style/CaseEquality:
359
+ Enabled: false
360
+ Style/OptionalArguments:
361
+ Enabled: false
362
+ Style/NilComparison:
363
+ Enabled: false
364
+ Style/SymbolLiteral:
365
+ Enabled: false
366
+ Style/Not:
367
+ Enabled: false
368
+ Style/Proc:
369
+ Enabled: false
370
+ Style/SelfAssignment:
371
+ Enabled: false
372
+ Style/ParenthesesAroundCondition:
373
+ Enabled: false
374
+ Style/MultilineTernaryOperator:
375
+ Enabled: false
376
+ Style/ParenthesesAroundCondition:
377
+ Enabled: false
378
+ Style/LineEndConcatenation:
379
+ Enabled: false
380
+ Style/RescueModifier:
381
+ Enabled: false
382
+ Style/LambdaCall:
383
+ Enabled: false
384
+ Style/WhileUntilDo:
385
+ Enabled: false
386
+ Style/WhileUntilModifier:
387
+ Enabled: false
388
+ Style/RedundantException:
389
+ Enabled: false
390
+ Style/GlobalVars:
391
+ Enabled: false
392
+ Layout/AlignArray:
393
+ Enabled: false
394
+ Style/Next:
395
+ Enabled: false
396
+ Style/Semicolon:
397
+ Enabled: false
398
+ Style/InlineComment:
399
+ Description: Avoid inline comments.
400
+ Enabled: false
401
+ Style/CommentAnnotation:
402
+ Enabled: false
403
+ Style/MethodCallWithoutArgsParentheses:
404
+ Enabled: false
405
+ Style/BlockComments:
406
+ Enabled: false
407
+ Style/AsciiComments:
408
+ Enabled: false
409
+ Layout/CommentIndentation:
410
+ Enabled: false
411
+ Layout/CaseIndentation:
412
+ EnforcedStyle: end
413
+ Layout/SpaceAroundEqualsInParameterDefault:
414
+ Enabled: false
415
+ Layout/SpaceInsideStringInterpolation:
416
+ Enabled: false
417
+ Layout/IndentationConsistency:
418
+ Enabled: false
419
+ Style/RegexpLiteral:
420
+ Enabled: false
421
+ Layout/SpaceInsideParens:
422
+ Enabled: false
423
+ Layout/FirstParameterIndentation:
424
+ Enabled: false
425
+ Style/ColonMethodCall:
426
+ Enabled: false
427
+ Style/NegatedIf:
428
+ Enabled: false
429
+ Style/UnlessElse:
430
+ Enabled: false
431
+ Naming/AccessorMethodName:
432
+ Description: Check the naming of accessor methods for get_/set_.
433
+ Enabled: false
434
+ Style/Alias:
435
+ Description: Use alias_method instead of alias.
436
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#alias-method
437
+ Enabled: false
438
+ Style/Documentation:
439
+ Description: Document classes and non-namespace modules.
440
+ Enabled: false
441
+ Style/DoubleNegation:
442
+ Description: Checks for uses of double negation (!!).
443
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-bang-bang
444
+ Enabled: false
445
+ Style/EachWithObject:
446
+ Description: Prefer `each_with_object` over `inject` or `reduce`.
447
+ Enabled: false
448
+ Style/EmptyLiteral:
449
+ Description: Prefer literals to Array.new/Hash.new/String.new.
450
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#literal-array-hash
451
+ Enabled: false
452
+ Style/ModuleFunction:
453
+ Description: Checks for usage of `extend self` in modules.
454
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#module-function
455
+ Enabled: false
456
+ Style/OneLineConditional:
457
+ Description: Favor the ternary operator(?:) over if/then/else/end constructs.
458
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#ternary-operator
459
+ Enabled: false
460
+ Style/PerlBackrefs:
461
+ Description: Avoid Perl-style regex back references.
462
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-perl-regexp-last-matchers
463
+ Enabled: false
464
+ Style/Send:
465
+ Description: Prefer `Object#__send__` or `Object#public_send` to `send`, as `send`
466
+ may overlap with existing methods.
467
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#prefer-public-send
468
+ Enabled: false
469
+ Style/SpecialGlobalVars:
470
+ Description: Avoid Perl-style global variables.
471
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-cryptic-perlisms
472
+ Enabled: false
473
+ Style/VariableInterpolation:
474
+ Description: Don't interpolate global, instance and class variables directly in
475
+ strings.
476
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#curlies-interpolate
477
+ Enabled: false
478
+ Style/WhenThen:
479
+ Description: Use when x then ... for one-line cases.
480
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#one-line-cases
481
+ Enabled: false
482
+ Rails/Date:
483
+ # The value `strict` disallows usage of `Date.today`, `Date.current`,
484
+ # `Date#to_time` etc.
485
+ # The value `flexible` allows usage of `Date.current`, `Date.yesterday`, etc
486
+ # (but not `Date.today`) which are overridden by ActiveSupport to handle current
487
+ # time zone.
488
+ EnforcedStyle: flexible
489
+ SupportedStyles:
490
+ - strict
491
+ - flexible
492
+ Style/SymbolProc:
493
+ Description: 'Use symbols as procs instead of blocks when possible.'
494
+ Enabled: false
495
+ Performance/Detect:
496
+ Enabled: false
497
+ Performance/Count:
498
+ Enabled: false
499
+ Performance/ReverseEach:
500
+ Enabled: false
501
+ Performance/StringReplacement:
502
+ Enabled: false
503
+ Security/Eval:
504
+ Enabled: false
505
+
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- glabssms (0.1.0)
4
+ glabssms (1.0.0)
5
5
  activesupport
6
6
  gem_config
7
7
 
data/README.md CHANGED
@@ -1,4 +1,6 @@
1
1
  # Globe Labs SMS Ruby Library
2
+ [![Build
3
+ Status](https://travis-ci.org/makisu/glabssms.svg?branch=master)](https://travis-ci.com/makisu/glabssms)
2
4
 
3
5
  Send SMS using [Globe Labs](http://www.globelabs.com.ph/developer/api) in Ruby.
4
6
 
@@ -21,8 +21,8 @@ module Glabssms
21
21
  attribute_value = instance_variable_get("@#{attribute}")
22
22
  if attribute_value.nil? || attribute_value.to_s.empty?
23
23
  raise ConfigurationError.new(
24
- "Glabssms::Configuration.#{attribute.to_s} needs to be set"
25
- )
24
+ "Glabssms::Configuration.#{attribute} needs to be set"
25
+ )
26
26
  end
27
27
  attribute_value
28
28
  end
@@ -45,7 +45,7 @@ module Glabssms
45
45
  def initialize(options = {})
46
46
  WRITABLE_ATTRIBUTES.each do |attr|
47
47
  instance_variable_set "@#{attr}",
48
- options[attr] || Glabssms.configuration.send(attr)
48
+ options[attr] || Glabssms.configuration.send(attr)
49
49
  end
50
50
  end
51
51
 
@@ -66,8 +66,8 @@ module Glabssms
66
66
  def assert_has_keys
67
67
  if app_id.nil? || app_secret.nil? || cross_telco_short_code.nil? || short_code.nil?
68
68
  raise ConfigurationError.new(
69
- 'Glabssms::Configuration app_id, app_secret, cross_telco_short_code, short_code and are required.'
70
- )
69
+ 'Glabssms::Configuration app_id, app_secret, cross_telco_short_code, short_code and are required.'
70
+ )
71
71
  end
72
72
  end
73
73
  end
@@ -1,4 +1,8 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Glabssms
4
+ # This class is used as a response object when any of our calls to Globe Labs
5
+ # fail
2
6
  class ErrorResult
3
7
  attr_reader :errors
4
8
 
@@ -1,4 +1,8 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Glabssms
4
+ # This class is used as a response object when we successfully send an SMS to
5
+ # a subscriber
2
6
  class SmsResult
3
7
  include BaseModule
4
8
 
@@ -16,7 +20,7 @@ module Glabssms
16
20
  class << self
17
21
  protected :new
18
22
  def _new(*args)
19
- self.new(*args)
23
+ new(*args)
20
24
  end
21
25
  end
22
26
 
@@ -1,4 +1,8 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Glabssms
4
+ # This class is used as a response object when we successfully retrieve a
5
+ # token from Globe Labs
2
6
  class TokenResult
3
7
  include BaseModule
4
8
 
@@ -12,7 +16,7 @@ module Glabssms
12
16
  class << self
13
17
  protected :new
14
18
  def _new(*args)
15
- self.new(*args)
19
+ new(*args)
16
20
  end
17
21
  end
18
22
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Glabssms
2
- VERSION = "0.1.1"
4
+ VERSION = "1.0.0".freeze
3
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glabssms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Xavi Ablaza
@@ -131,7 +131,9 @@ extra_rdoc_files: []
131
131
  files:
132
132
  - ".github/workflows/gempush.yml"
133
133
  - ".gitignore"
134
+ - ".hound.yml"
134
135
  - ".rspec"
136
+ - ".rubocop.yml"
135
137
  - ".travis.yml"
136
138
  - CHANGELOG.md
137
139
  - CODE_OF_CONDUCT.md