Skip to content

Commit

Permalink
frozen string literal
Browse files Browse the repository at this point in the history
  • Loading branch information
sled committed Nov 29, 2023
1 parent d8856de commit 7c3e10b
Show file tree
Hide file tree
Showing 28 changed files with 54 additions and 0 deletions.
1 change: 1 addition & 0 deletions bin/autospec
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env ruby
# frozen_string_literal: true
#
# This file was generated by Bundler.
#
Expand Down
2 changes: 2 additions & 0 deletions lib/mote_sms.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'mote_sms/transports'

module MoteSMS
Expand Down
2 changes: 2 additions & 0 deletions lib/mote_sms/delivery_job.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'active_job'
require 'mote_sms/message'

Expand Down
2 changes: 2 additions & 0 deletions lib/mote_sms/message.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'mote_sms/number'
require 'mote_sms/number_list'

Expand Down
2 changes: 2 additions & 0 deletions lib/mote_sms/number.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'phony'

module MoteSMS
Expand Down
2 changes: 2 additions & 0 deletions lib/mote_sms/number_list.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'mote_sms/number'

module MoteSMS
Expand Down
2 changes: 2 additions & 0 deletions lib/mote_sms/transports.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module MoteSMS
# All transports live within mote_sms/transports, though should be
# available in ruby as `MoteSMS::<Some>Transport`.
Expand Down
2 changes: 2 additions & 0 deletions lib/mote_sms/transports/OBH_transport.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
require 'phony'
require 'logger'
# frozen_string_literal: true

require 'OBH/client'

module MoteSMS
Expand Down
2 changes: 2 additions & 0 deletions lib/mote_sms/transports/action_mailer_transport.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'action_mailer'

module MoteSMS
Expand Down
2 changes: 2 additions & 0 deletions lib/mote_sms/transports/http_client.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'uri'
require 'net/https'
require 'digest/sha1'
Expand Down
2 changes: 2 additions & 0 deletions lib/mote_sms/transports/mobile_technics_transport.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'uri'
require 'net/http'
require 'phony'
Expand Down
2 changes: 2 additions & 0 deletions lib/mote_sms/transports/swisscom_transport.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'phony'
require 'logger'
require 'json'
Expand Down
2 changes: 2 additions & 0 deletions lib/mote_sms/transports/test_transport.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module MoteSMS
# Public: Provide access to global array of delivered
# messages, this can be used in testing to assert sent
Expand Down
2 changes: 2 additions & 0 deletions lib/mote_sms/transports/twilio_transport.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'phony'
require 'logger'
require 'twilio-ruby'
Expand Down
2 changes: 2 additions & 0 deletions lib/mote_sms/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module MoteSMS
VERSION = '1.5.0'.freeze
end
2 changes: 2 additions & 0 deletions spec/mote_sms/delivery_job_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'spec_helper'
require 'mote_sms'

Expand Down
2 changes: 2 additions & 0 deletions spec/mote_sms/message_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'spec_helper'
require 'mote_sms'
require 'active_job'
Expand Down
2 changes: 2 additions & 0 deletions spec/mote_sms/number_list_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'spec_helper'
require 'mote_sms/number_list'

Expand Down
2 changes: 2 additions & 0 deletions spec/mote_sms/number_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'spec_helper'
require 'mote_sms/number'

Expand Down
2 changes: 2 additions & 0 deletions spec/mote_sms/transports/action_mailer_transport_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'spec_helper'
require 'mote_sms/message'
require 'mote_sms/transports/action_mailer_transport'
Expand Down
2 changes: 2 additions & 0 deletions spec/mote_sms/transports/http_client_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'spec_helper'
require 'mote_sms/version'
require 'mote_sms/transports/http_client'
Expand Down
2 changes: 2 additions & 0 deletions spec/mote_sms/transports/mobile_technics_transport_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# encoding: utf-8
# frozen_string_literal: true

require 'spec_helper'
require 'cgi'
require 'mote_sms/message'
Expand Down
1 change: 1 addition & 0 deletions spec/mote_sms/transports/obh_transport_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require 'spec_helper'
require 'twilio-ruby'
require 'mote_sms/transports/twilio_transport'
Expand Down
2 changes: 2 additions & 0 deletions spec/mote_sms/transports/swisscom_transport_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# encoding: utf-8
# frozen_string_literal: true

require 'spec_helper'
require 'cgi'
require 'mote_sms/message'
Expand Down
2 changes: 2 additions & 0 deletions spec/mote_sms/transports/test_transport_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'spec_helper'
require 'mote_sms/transports/test_transport'

Expand Down
2 changes: 2 additions & 0 deletions spec/mote_sms/transports/twilio_transport_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'spec_helper'
require 'twilio-ruby'
require 'mote_sms/transports/twilio_transport'
Expand Down
2 changes: 2 additions & 0 deletions spec/mote_sms_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'spec_helper'
require 'mote_sms'

Expand Down
2 changes: 2 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rubygems'
require 'bundler/setup'

Expand Down

0 comments on commit 7c3e10b

Please sign in to comment.