Skip to content

Commit c10b11a

Browse files
committed
Added frozen_string_literal: true
1 parent ab1d3c1 commit c10b11a

8 files changed

+18
-4
lines changed

Gemfile

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
source 'https://rubygems.org'
24

35
# Specify your gem's dependencies in ios-devices.gemspec

Rakefile

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
require "bundler/gem_tasks"
1+
# frozen_string_literal: true
22

3+
require 'bundler/gem_tasks'

ios-devices.gemspec

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# coding: utf-8
1+
# frozen_string_literal: true
2+
23
lib = File.expand_path('../lib', __FILE__)
34

45
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)

lib/ios/devices.rb

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
require 'ios/devices/version'
24
require 'ios/devices/model'
35

lib/ios/devices/model.rb

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
# frozen_string_literal: true
2+
13
module Ios
24
module Devices
3-
# Represents an iOS device model. Every device has a type and name and some of them also have
4-
# extra information (Revision, Wi-fi, etc.)
5+
# Represents an iOS device model. Every device has a type and name and some
6+
# of them also have extra information (Revision, Wi-fi, etc.)
57
class Model
68
attr_accessor :device_type, :name, :extra
79

lib/ios/devices/version.rb

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
module Ios
24
module Devices
35
VERSION = '0.2.5'

spec/ios_devices_spec.rb

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
require 'spec_helper'
24

35
describe Ios::Devices do

spec/spec_helper.rb

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
require 'ios/devices'
24
require 'rspec'
35

0 commit comments

Comments
 (0)