Skip to content
This repository has been archived by the owner on Dec 14, 2024. It is now read-only.

Commit

Permalink
Merge pull request square#102 from square/nits
Browse files Browse the repository at this point in the history
Address review feedback nits
  • Loading branch information
dnkoutso authored Jan 4, 2021
2 parents 1fbca71 + 14c5edb commit 33c0c45
Show file tree
Hide file tree
Showing 60 changed files with 60 additions and 60 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ GIT
PATH
remote: .
specs:
cocoapods-generate (2.1.0)
cocoapods-generate (2.1.1)
cocoapods-disable-podfile-validations (~> 0.1.1)

GEM
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.1.0
2.1.1
2 changes: 1 addition & 1 deletion lib/cocoapods/generate/installer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ def create_main_source_file(project, pod_targets, name)
source_file.open('w') do |f|
f << import_statements.join("\n")
f << "\n" unless import_statements.empty?
f << "int main() {}\n"
f << "int main() { return 0; }\n"
end

source_file
Expand Down
2 changes: 1 addition & 1 deletion lib/cocoapods/generate/podfile_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def podfile_for_specs(specs)
end
pods_for_transitive_dependencies.uniq!

spec_names = specs.map { |s| s.root.name }
spec_names = specs.map { |s| s.root.name }.to_set
dependencies = generator
.transitive_dependencies_by_pod
.values_at(*pods_for_transitive_dependencies)
Expand Down
2 changes: 1 addition & 1 deletion spec/integration/fork/after/gen/Foo/App-iOS/main.m
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import Foo;
int main() {}
int main() { return 0; }
2 changes: 1 addition & 1 deletion spec/integration/fork/after/gen/Foo/App-macOS/main.m
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import Foo;
int main() {}
int main() { return 0; }
2 changes: 1 addition & 1 deletion spec/integration/fork/after/gen/Foo/App-tvOS/main.m
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import Foo;
int main() {}
int main() { return 0; }
2 changes: 1 addition & 1 deletion spec/integration/fork/after/gen/Foo/App-watchOS/main.m
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import Foo;
int main() {}
int main() { return 0; }
Original file line number Diff line number Diff line change
@@ -1 +1 @@
int main() {}
int main() { return 0; }
Original file line number Diff line number Diff line change
@@ -1 +1 @@
int main() {}
int main() { return 0; }
Original file line number Diff line number Diff line change
@@ -1 +1 @@
int main() {}
int main() { return 0; }
Original file line number Diff line number Diff line change
@@ -1 +1 @@
int main() {}
int main() { return 0; }
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import Forkable;
int main() {}
int main() { return 0; }
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import Forkable;
int main() {}
int main() { return 0; }
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import Forkable;
int main() {}
int main() { return 0; }
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import Forkable;
int main() {}
int main() { return 0; }
2 changes: 1 addition & 1 deletion spec/integration/local_sources/after/gen/E/App-iOS/main.m
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import E;
int main() {}
int main() { return 0; }
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import E;
int main() {}
int main() { return 0; }
2 changes: 1 addition & 1 deletion spec/integration/local_sources/after/gen/E/App-tvOS/main.m
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import E;
int main() {}
int main() { return 0; }
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import E;
int main() {}
int main() { return 0; }
2 changes: 1 addition & 1 deletion spec/integration/monorepo/after/gen/A/App-iOS/main.m
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import A;
int main() {}
int main() { return 0; }
2 changes: 1 addition & 1 deletion spec/integration/monorepo/after/gen/A/App-macOS/main.m
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import A;
int main() {}
int main() { return 0; }
2 changes: 1 addition & 1 deletion spec/integration/monorepo/after/gen/A/App-tvOS/main.m
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import A;
int main() {}
int main() { return 0; }
2 changes: 1 addition & 1 deletion spec/integration/monorepo/after/gen/A/App-watchOS/main.m
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import A;
int main() {}
int main() { return 0; }
2 changes: 1 addition & 1 deletion spec/integration/monorepo/after/gen/B/App-iOS/main.m
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import B;
int main() {}
int main() { return 0; }
2 changes: 1 addition & 1 deletion spec/integration/monorepo/after/gen/B/App-macOS/main.m
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import B;
int main() {}
int main() { return 0; }
2 changes: 1 addition & 1 deletion spec/integration/monorepo/after/gen/B/App-tvOS/main.m
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import B;
int main() {}
int main() { return 0; }
2 changes: 1 addition & 1 deletion spec/integration/monorepo/after/gen/B/App-watchOS/main.m
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import B;
int main() {}
int main() { return 0; }
2 changes: 1 addition & 1 deletion spec/integration/monorepo/after/gen/C/App-iOS/main.m
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import C;
int main() {}
int main() { return 0; }
2 changes: 1 addition & 1 deletion spec/integration/monorepo/after/gen/C/App-macOS/main.m
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import C;
int main() {}
int main() { return 0; }
2 changes: 1 addition & 1 deletion spec/integration/monorepo/after/gen/C/App-tvOS/main.m
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import C;
int main() {}
int main() { return 0; }
2 changes: 1 addition & 1 deletion spec/integration/monorepo/after/gen/C/App-watchOS/main.m
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import C;
int main() {}
int main() { return 0; }
2 changes: 1 addition & 1 deletion spec/integration/monorepo/after/gen/D/App-iOS/main.m
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import D;
int main() {}
int main() { return 0; }
2 changes: 1 addition & 1 deletion spec/integration/monorepo/after/gen/D/App-macOS/main.m
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import D;
int main() {}
int main() { return 0; }
2 changes: 1 addition & 1 deletion spec/integration/monorepo/after/gen/D/App-tvOS/main.m
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import D;
int main() {}
int main() { return 0; }
2 changes: 1 addition & 1 deletion spec/integration/monorepo/after/gen/D/App-watchOS/main.m
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import D;
int main() {}
int main() { return 0; }
2 changes: 1 addition & 1 deletion spec/integration/monorepo/after/gen/E/App-iOS/main.m
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import E;
int main() {}
int main() { return 0; }
2 changes: 1 addition & 1 deletion spec/integration/monorepo/after/gen/E/App-macOS/main.m
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import E;
int main() {}
int main() { return 0; }
2 changes: 1 addition & 1 deletion spec/integration/monorepo/after/gen/E/App-tvOS/main.m
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import E;
int main() {}
int main() { return 0; }
2 changes: 1 addition & 1 deletion spec/integration/monorepo/after/gen/E/App-watchOS/main.m
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import E;
int main() {}
int main() { return 0; }
2 changes: 1 addition & 1 deletion spec/integration/monorepo/after/gen/F/App-iOS/main.m
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import F;
int main() {}
int main() { return 0; }
2 changes: 1 addition & 1 deletion spec/integration/monorepo/after/gen/F/App-macOS/main.m
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import F;
int main() {}
int main() { return 0; }
2 changes: 1 addition & 1 deletion spec/integration/monorepo/after/gen/F/App-tvOS/main.m
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import F;
int main() {}
int main() { return 0; }
2 changes: 1 addition & 1 deletion spec/integration/monorepo/after/gen/F/App-watchOS/main.m
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import F;
int main() {}
int main() { return 0; }
2 changes: 1 addition & 1 deletion spec/integration/monorepo/after/gen/G/App-iOS/main.m
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import G;
int main() {}
int main() { return 0; }
2 changes: 1 addition & 1 deletion spec/integration/monorepo/after/gen/G/App-macOS/main.m
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import G;
int main() {}
int main() { return 0; }
2 changes: 1 addition & 1 deletion spec/integration/monorepo/after/gen/G/App-tvOS/main.m
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import G;
int main() {}
int main() { return 0; }
2 changes: 1 addition & 1 deletion spec/integration/monorepo/after/gen/G/App-watchOS/main.m
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import G;
int main() {}
int main() { return 0; }
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import Foo;
int main() {}
int main() { return 0; }
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import Foo;
int main() {}
int main() { return 0; }
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import Foo;
int main() {}
int main() { return 0; }
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import Foo;
int main() {}
int main() { return 0; }
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
@import E;
@import F;
@import G;
int main() {}
int main() { return 0; }
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
@import E;
@import F;
@import G;
int main() {}
int main() { return 0; }
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
@import E;
@import F;
@import G;
int main() {}
int main() { return 0; }
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
@import E;
@import F;
@import G;
int main() {}
int main() { return 0; }
Original file line number Diff line number Diff line change
@@ -1 +1 @@
int main() {}
int main() { return 0; }
Original file line number Diff line number Diff line change
@@ -1 +1 @@
int main() {}
int main() { return 0; }
Original file line number Diff line number Diff line change
@@ -1 +1 @@
int main() {}
int main() { return 0; }
Original file line number Diff line number Diff line change
@@ -1 +1 @@
int main() {}
int main() { return 0; }

0 comments on commit 33c0c45

Please sign in to comment.