Skip to content

Commit 51efb4b

Browse files
committed
Address Rubocop Concerns
1 parent c4b35df commit 51efb4b

File tree

3 files changed

+25
-11
lines changed

3 files changed

+25
-11
lines changed

.rubocop.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Opt in to new cops by default
2+
AllCops:
3+
NewCops: enable
4+
5+
# Allow the Podspec filename to match the project
6+
Naming/FileName:
7+
Exclude:
8+
- 'WordPress-Aztec-iOS.podspec'
9+
- 'WordPress-Editor-iOS.podspec'
10+
- 'Example/Carthage/Checkouts/Gridicons-iOS/Gridicons.podspec'

WordPress-Aztec-iOS.podspec

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
Pod::Spec.new do |s|
24
s.name = 'WordPress-Aztec-iOS'
35
s.version = '1.19.8'
@@ -7,21 +9,21 @@ Pod::Spec.new do |s|
79
The native HTML Editor by Automattic Inc.
810
911
This library provides a UITextView subclass with HTML visual editing capabilities.
10-
DESC
12+
DESC
1113

1214
s.homepage = 'https://github.com/wordpress-mobile/AztecEditor-iOS'
13-
s.license = { :type => 'MPLv2', :file => 'LICENSE.md' }
15+
s.license = { type: 'MPLv2', file: 'LICENSE.md' }
1416
s.author = { 'The WordPress Mobile Team' => '[email protected]' }
1517

1618
s.ios.deployment_target = '11.0'
1719
s.swift_version = '5.0'
1820

19-
s.source = { :git => 'https://github.com/wordpress-mobile/AztecEditor-iOS.git', :tag => s.version.to_s }
20-
s.module_name = "Aztec"
21+
s.source = { git: 'https://github.com/wordpress-mobile/AztecEditor-iOS.git', tag: s.version.to_s }
22+
s.module_name = 'Aztec'
2123
s.source_files = 'Aztec/Classes/**/*'
2224
s.resource_bundles = {
2325
'WordPress-Aztec-iOS': [
24-
"Aztec/Assets/**/*"
26+
'Aztec/Assets/**/*'
2527
]
2628
}
2729
s.xcconfig = {

WordPress-Editor-iOS.podspec

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
Pod::Spec.new do |s|
24
s.name = 'WordPress-Editor-iOS'
35
s.version = '1.19.8'
@@ -8,23 +10,23 @@ Pod::Spec.new do |s|
810
911
This library provides a UITextView subclass with HTML visual editing capabilities.
1012
Use this library if you want to create an App that interacts with WordPress HTML content.
11-
DESC
13+
DESC
1214

1315
s.homepage = 'https://github.com/wordpress-mobile/AztecEditor-iOS'
14-
s.license = { :type => 'MPLv2', :file => 'LICENSE.md' }
16+
s.license = { type: 'MPLv2', file: 'LICENSE.md' }
1517
s.author = { 'The WordPress Mobile Team' => '[email protected]' }
1618

1719
s.ios.deployment_target = '11.0'
1820
s.swift_version = '5.0'
19-
20-
s.source = { :git => 'https://github.com/wordpress-mobile/AztecEditor-iOS.git', :tag => s.version.to_s }
21-
s.module_name = "WordPressEditor"
21+
22+
s.source = { git: 'https://github.com/wordpress-mobile/AztecEditor-iOS.git', tag: s.version.to_s }
23+
s.module_name = 'WordPressEditor'
2224
s.source_files = 'WordPressEditor/WordPressEditor/Classes/**/*'
2325
s.resources = 'WordPressEditor/WordPressEditor/Assets/**/*'
2426
s.xcconfig = {
2527
'OTHER_LDFLAGS' => '-lxml2',
2628
'HEADER_SEARCH_PATHS' => '/usr/include/libxml2'
2729
}
2830

29-
s.dependency "WordPress-Aztec-iOS", s.version.to_s
31+
s.dependency 'WordPress-Aztec-iOS', s.version.to_s
3032
end

0 commit comments

Comments
 (0)