Skip to content

Commit 2dbb9d2

Browse files
committed
Setup RuboCop and run with autocorrect on podspec and Podfile
1 parent 8acc519 commit 2dbb9d2

File tree

5 files changed

+38
-14
lines changed

5 files changed

+38
-14
lines changed

Gemfile

+1
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
source 'https://rubygems.org'
44

55
gem 'cocoapods', '~> 1.12'
6+
gem 'rubocop', '~> 1.50'

Gemfile.lock

+21
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ GEM
1313
algoliasearch (1.27.5)
1414
httpclient (~> 2.8, >= 2.8.3)
1515
json (>= 1.5.1)
16+
ast (2.4.2)
1617
atomos (0.1.3)
1718
claide (1.1.0)
1819
cocoapods (1.12.0)
@@ -70,13 +71,32 @@ GEM
7071
nanaimo (0.3.0)
7172
nap (1.1.0)
7273
netrc (0.11.0)
74+
parallel (1.22.1)
75+
parser (3.2.2.0)
76+
ast (~> 2.4.1)
7377
public_suffix (4.0.7)
78+
rainbow (3.1.1)
79+
regexp_parser (2.7.0)
7480
rexml (3.2.5)
81+
rubocop (1.50.1)
82+
json (~> 2.3)
83+
parallel (~> 1.10)
84+
parser (>= 3.2.0.0)
85+
rainbow (>= 2.2.2, < 4.0)
86+
regexp_parser (>= 1.8, < 3.0)
87+
rexml (>= 3.2.5, < 4.0)
88+
rubocop-ast (>= 1.28.0, < 2.0)
89+
ruby-progressbar (~> 1.7)
90+
unicode-display_width (>= 2.4.0, < 3.0)
91+
rubocop-ast (1.28.0)
92+
parser (>= 3.2.1.0)
7593
ruby-macho (2.5.1)
94+
ruby-progressbar (1.13.0)
7695
typhoeus (1.4.0)
7796
ethon (>= 0.9.0)
7897
tzinfo (2.0.6)
7998
concurrent-ruby (~> 1.0)
99+
unicode-display_width (2.4.2)
80100
xcodeproj (1.22.0)
81101
CFPropertyList (>= 2.3.3, < 4.0)
82102
atomos (~> 0.1.3)
@@ -90,6 +110,7 @@ PLATFORMS
90110

91111
DEPENDENCIES
92112
cocoapods (~> 1.12)
113+
rubocop (~> 1.50)
93114

94115
BUNDLED WITH
95116
2.3.24

ParselyAnalytics.podspec

+13-11
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
1+
# frozen_string_literal: true
2+
13
Pod::Spec.new do |s|
2-
s.name = "ParselyAnalytics"
3-
s.version = "0.2.1"
4-
s.swift_versions = ["4.2", "5.0", "5.1", "5.2", "5.3", "5.4", "5.5"]
5-
s.summary = "Parsely analytics integration for iOS"
6-
s.homepage = "https://www.parse.ly/help/integration/ios-sdk/"
7-
s.license = "Apache License, Version 2.0"
8-
s.author = { "Emmett Butler" => "[email protected]" }
9-
s.ios.deployment_target = "13.0"
10-
s.tvos.deployment_target = "13.0"
11-
s.source = { :git => "https://github.com/Parsely/AnalyticsSDK-iOS.git", :tag => "#{s.version}" }
12-
s.source_files = "ParselyTracker"
4+
s.name = 'ParselyAnalytics'
5+
s.version = '0.2.1'
6+
s.swift_versions = ['4.2', '5.0', '5.1', '5.2', '5.3', '5.4', '5.5']
7+
s.summary = 'Parsely analytics integration for iOS'
8+
s.homepage = 'https://www.parse.ly/help/integration/ios-sdk/'
9+
s.license = 'Apache License, Version 2.0'
10+
s.author = { 'Emmett Butler' => '[email protected]' }
11+
s.ios.deployment_target = '13.0'
12+
s.tvos.deployment_target = '13.0'
13+
s.source = { git: 'https://github.com/Parsely/AnalyticsSDK-iOS.git', tag: s.version.to_s }
14+
s.source_files = 'ParselyTracker'
1315
s.framework = 'Foundation'
1416
s.dependency 'SwiftyJSON', '~> 4.2'
1517
end

Podfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
# Uncomment the next line to define a global platform for your project
24
platform :ios, '13.0'
35

@@ -10,7 +12,6 @@ target 'ParselyDemo' do
1012
inherit! :search_paths
1113
# Pods for testing
1214
end
13-
1415
end
1516

1617
target 'ParselyTracker' do
@@ -23,5 +24,4 @@ target 'ParselyTracker' do
2324
inherit! :search_paths
2425
# Pods for testing
2526
end
26-
2727
end

Podfile.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ SPEC REPOS:
1111
SPEC CHECKSUMS:
1212
SwiftyJSON: c4bcba26dd9ec7a027fc8eade48e2c911f229e96
1313

14-
PODFILE CHECKSUM: e6c21e52f7a35f2ee81efc57fb3162b94a6e9dfd
14+
PODFILE CHECKSUM: 2982111194e349f0a180a44ebc61c21df2be45af
1515

1616
COCOAPODS: 1.12.0

0 commit comments

Comments
 (0)