Skip to content

Commit

Permalink
Merge pull request #235 from tritter/master
Browse files Browse the repository at this point in the history
Add support for Ventura and M1 | osx_keychain to ruby-keychain
  • Loading branch information
orta committed Dec 6, 2022
2 parents c8bcbcb + ab4ec9a commit e3ebd28
Show file tree
Hide file tree
Showing 11 changed files with 179 additions and 117 deletions.
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ inherit_from:

#- cocoapods-keys -------------------------------------------------------------

Style/FileName:
Naming/FileName:
Exclude:
- bin/*
- Rakefile
Expand Down
39 changes: 22 additions & 17 deletions .rubocop_cocoapods.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
AllCops:
NewCops: enable
SuggestExtensions: false
Include:
- ./Rakefile
- ./Gemfile
Expand All @@ -8,44 +10,47 @@ AllCops:

# At the moment not ready to be used
# https://github.com/bbatsov/rubocop/issues/947
Documentation:
Style/Documentation:
Enabled: false

#- CocoaPods -----------------------------------------------------------------#

# We adopted raise instead of fail.
SignalException:
Style/SignalException:
EnforcedStyle: only_raise

# They are idiomatic
AssignmentInCondition:
Lint/AssignmentInCondition:
Enabled: false

# Allow backticks
AsciiComments:
Style/AsciiComments:
Enabled: false

# Indentation clarifies logic branches in implementations
IfUnlessModifier:
Style/IfUnlessModifier:
Enabled: false

# No enforced convention here.
SingleLineBlockParams:
Style/SingleLineBlockParams:
Enabled: false

# We only add the comment when needed.
Encoding:
Style/Encoding:
Enabled: false

Style/FrozenStringLiteralComment:
Enabled: false

Layout/MultilineOperationIndentation:
EnforcedStyle: indented

# Clashes with CLAide Command#validate!
GuardClause:
Style/GuardClause:
Enabled: false

# Not always desirable: lib/claide/command/plugins_helper.rb:12:15
Next:
Style/Next:
Enabled: false

# Arbitrary max lengths for classes simply do not work and enabling this will
Expand Down Expand Up @@ -74,16 +79,16 @@ Metrics/CyclomaticComplexity:

#- CocoaPods support for Ruby 1.8.7 ------------------------------------------#

HashSyntax:
Style/HashSyntax:
EnforcedStyle: hash_rockets

Lambda:
Style/Lambda:
Enabled: false

DotPosition:
Layout/DotPosition:
EnforcedStyle: trailing

EachWithObject:
Style/EachWithObject:
Enabled: false

Style/SpecialGlobalVars:
Expand All @@ -92,20 +97,20 @@ Style/SpecialGlobalVars:
#- CocoaPods specs -----------------------------------------------------------#

# Allow for `should.match /regexp/`.
AmbiguousRegexpLiteral:
Lint/AmbiguousRegexpLiteral:
Exclude:
- spec/**/*

# Allow `object.should == object` syntax.
Void:
Lint/Void:
Exclude:
- spec/**/*

ClassAndModuleChildren:
Style/ClassAndModuleChildren:
Exclude:
- spec/**/*

UselessComparison:
Lint/BinaryOperatorWithIdenticalOperands:
Exclude:
- spec/**/*

4 changes: 2 additions & 2 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ Lint/Void:

# Offense count: 38
# Configuration parameters: AllowURI, URISchemes.
Metrics/LineLength:
Layout/LineLength:
Max: 173

# Offense count: 1
Metrics/PerceivedComplexity:
Max: 9

# Offense count: 4
Style/AccessorMethodName:
Naming/AccessorMethodName:
Enabled: false

# Offense count: 1
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
language: objective-c
install: bundle install --deployment
install: bundle install
script: bundle exec rake spec
5 changes: 3 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ source 'https://rubygems.org'
# Specify your gem's dependencies in cocoapods-keys.gemspec
gemspec

gem 'cocoapods', '1.0.0.beta.6'
gem 'activesupport', '< 5'
gem 'cocoapods', '>= 1.11'
gem 'activesupport', '>= 5'
gem 'ruby-keychain', :require => 'keychain'
204 changes: 121 additions & 83 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,117 +3,155 @@ PATH
specs:
cocoapods-keys (2.2.1)
dotenv
osx_keychain
keychain

GEM
remote: https://rubygems.org/
specs:
CFPropertyList (2.3.5)
RubyInline (3.12.5)
ZenTest (~> 4.3)
ZenTest (4.12.0)
activesupport (4.2.9)
i18n (~> 0.7)
minitest (~> 5.1)
thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
ast (2.3.0)
claide (1.0.2)
cocoapods (1.0.0.beta.6)
activesupport (>= 4.0.2)
claide (>= 1.0.0.beta.3, < 2.0)
cocoapods-core (= 1.0.0.beta.6)
cocoapods-deintegrate (>= 1.0.0.beta.1, < 2.0)
cocoapods-downloader (>= 1.0.0.beta.2, < 2.0)
cocoapods-plugins (>= 1.0.0.beta.1, < 2.0)
cocoapods-search (>= 1.0.0.beta.1, < 2.0)
cocoapods-stats (>= 1.0.0.beta.3, < 2.0)
cocoapods-trunk (>= 1.0.0.beta.2, < 2.0)
cocoapods-try (>= 1.0.0.beta.3, < 2.0)
colored (~> 1.2)
CFPropertyList (3.0.5)
rexml
activesupport (6.1.7)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 1.6, < 2)
minitest (>= 5.1)
tzinfo (~> 2.0)
zeitwerk (~> 2.3)
addressable (2.8.1)
public_suffix (>= 2.0.2, < 6.0)
algoliasearch (1.27.5)
httpclient (~> 2.8, >= 2.8.3)
json (>= 1.5.1)
ast (2.4.2)
atomos (0.1.3)
claide (1.1.0)
cocoapods (1.11.3)
addressable (~> 2.8)
claide (>= 1.0.2, < 2.0)
cocoapods-core (= 1.11.3)
cocoapods-deintegrate (>= 1.0.3, < 2.0)
cocoapods-downloader (>= 1.4.0, < 2.0)
cocoapods-plugins (>= 1.0.0, < 2.0)
cocoapods-search (>= 1.0.0, < 2.0)
cocoapods-trunk (>= 1.4.0, < 2.0)
cocoapods-try (>= 1.1.0, < 2.0)
colored2 (~> 3.1)
escape (~> 0.0.4)
fourflusher (~> 0.3.0)
molinillo (~> 0.4.4)
fourflusher (>= 2.3.0, < 3.0)
gh_inspector (~> 1.0)
molinillo (~> 0.8.0)
nap (~> 1.0)
xcodeproj (>= 1.0.0.beta.3, < 2.0)
cocoapods-core (1.0.0.beta.6)
activesupport (>= 4.0.2)
ruby-macho (>= 1.0, < 3.0)
xcodeproj (>= 1.21.0, < 2.0)
cocoapods-core (1.11.3)
activesupport (>= 5.0, < 7)
addressable (~> 2.8)
algoliasearch (~> 1.0)
concurrent-ruby (~> 1.1)
fuzzy_match (~> 2.0.4)
nap (~> 1.0)
cocoapods-deintegrate (1.0.1)
netrc (~> 0.11)
public_suffix (~> 4.0)
typhoeus (~> 1.0)
cocoapods-deintegrate (1.0.5)
cocoapods-downloader (1.6.3)
cocoapods-plugins (1.0.0)
nap
cocoapods-search (1.0.0)
cocoapods-stats (1.0.0)
cocoapods-trunk (1.2.0)
cocoapods-search (1.0.1)
cocoapods-trunk (1.6.0)
nap (>= 0.8, < 2.0)
netrc (= 0.7.8)
cocoapods-try (1.1.0)
colored (1.2)
netrc (~> 0.11)
cocoapods-try (1.2.0)
colored2 (3.1.2)
diff-lcs (1.3)
dotenv (2.7.5)
concurrent-ruby (1.1.10)
crypt (2.2.1)
diff-lcs (1.5.0)
dotenv (2.8.1)
escape (0.0.4)
fourflusher (0.3.2)
ethon (0.16.0)
ffi (>= 1.15.0)
ffi (1.15.5)
fourflusher (2.3.1)
fuzzy_match (2.0.4)
i18n (0.8.4)
minitest (5.10.2)
molinillo (0.4.5)
nanaimo (0.2.3)
gh_inspector (1.1.3)
highline (2.0.3)
httpclient (2.8.3)
i18n (1.12.0)
concurrent-ruby (~> 1.0)
json (2.6.2)
keychain (0.2.3)
crypt (>= 1.1.4)
highline (>= 1.4.0)
minitest (5.16.3)
molinillo (0.8.0)
nanaimo (0.3.0)
nap (1.1.0)
netrc (0.7.8)
osx_keychain (1.0.2)
RubyInline (~> 3)
parallel (1.11.2)
parser (2.4.0.0)
ast (~> 2.2)
powerpack (0.1.1)
rainbow (2.2.2)
rake
rake (12.0.0)
rspec (3.6.0)
rspec-core (~> 3.6.0)
rspec-expectations (~> 3.6.0)
rspec-mocks (~> 3.6.0)
rspec-core (3.6.0)
rspec-support (~> 3.6.0)
rspec-expectations (3.6.0)
netrc (0.11.0)
og-corefoundation (0.2.3)
ffi
parallel (1.22.1)
parser (3.1.3.0)
ast (~> 2.4.1)
public_suffix (4.0.7)
rainbow (3.1.1)
rake (13.0.6)
regexp_parser (2.6.1)
rexml (3.2.5)
rspec (3.12.0)
rspec-core (~> 3.12.0)
rspec-expectations (~> 3.12.0)
rspec-mocks (~> 3.12.0)
rspec-core (3.12.0)
rspec-support (~> 3.12.0)
rspec-expectations (3.12.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.6.0)
rspec-mocks (3.6.0)
rspec-support (~> 3.12.0)
rspec-mocks (3.12.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.6.0)
rspec-support (3.6.0)
rubocop (0.49.1)
rspec-support (~> 3.12.0)
rspec-support (3.12.0)
rubocop (1.39.0)
json (~> 2.3)
parallel (~> 1.10)
parser (>= 2.3.3.1, < 3.0)
powerpack (~> 0.1)
rainbow (>= 1.99.1, < 3.0)
parser (>= 3.1.2.1)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.23.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (~> 1.0, >= 1.0.1)
ruby-progressbar (1.8.1)
thread_safe (0.3.6)
tzinfo (1.2.3)
thread_safe (~> 0.1)
unicode-display_width (1.3.0)
xcodeproj (1.5.0)
CFPropertyList (~> 2.3.3)
unicode-display_width (>= 1.4.0, < 3.0)
rubocop-ast (1.24.0)
parser (>= 3.1.1.0)
ruby-keychain (0.4.0)
ffi
og-corefoundation (~> 0.2.0)
ruby-macho (2.5.1)
ruby-progressbar (1.11.0)
typhoeus (1.4.0)
ethon (>= 0.9.0)
tzinfo (2.0.5)
concurrent-ruby (~> 1.0)
unicode-display_width (2.3.0)
xcodeproj (1.22.0)
CFPropertyList (>= 2.3.3, < 4.0)
atomos (~> 0.1.3)
claide (>= 1.0.2, < 2.0)
colored2 (~> 3.1)
nanaimo (~> 0.2.3)
nanaimo (~> 0.3.0)
rexml (~> 3.2.4)
zeitwerk (2.6.6)

PLATFORMS
ruby
arm64-darwin-22

DEPENDENCIES
activesupport (< 5)
bundler (~> 1.3)
cocoapods (= 1.0.0.beta.6)
activesupport (>= 5)
bundler (~> 2.3)
cocoapods (>= 1.11)
cocoapods-keys!
rake
rspec
rubocop
rubocop (> 1.38)
ruby-keychain

BUNDLED WITH
1.17.3
2.3.26

0 comments on commit e3ebd28

Please sign in to comment.