Skip to content

Commit 55b94e6

Browse files
author
Ben Miller
authored
Merge branch 'master' into ruby3
2 parents 03a3165 + 0e6542f commit 55b94e6

File tree

3 files changed

+47
-18
lines changed

3 files changed

+47
-18
lines changed

.github/workflows/ruby.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
6+
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
7+
8+
name: Ruby
9+
10+
on:
11+
push:
12+
branches: [ "master" ]
13+
pull_request:
14+
branches: [ "master" ]
15+
16+
permissions:
17+
contents: read
18+
19+
jobs:
20+
test:
21+
runs-on: ubuntu-latest
22+
strategy:
23+
matrix:
24+
ruby-version:
25+
- '2.0'
26+
- '2.1'
27+
- '2.2'
28+
- '2.3'
29+
- '2.4'
30+
- '2.5'
31+
- '2.6'
32+
- '2.7'
33+
- jruby-9.1.17.0
34+
- jruby-9.2.21.0
35+
- jruby-9.3.6.0
36+
37+
steps:
38+
- uses: actions/checkout@v3
39+
- name: Set up Ruby
40+
# https://github.com/ruby/setup-ruby#versioning
41+
uses: ruby/setup-ruby@v1
42+
with:
43+
ruby-version: ${{ matrix.ruby-version }}
44+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
45+
- name: Run tests
46+
run: bundle exec rake

.travis.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

lib/ios_parser/ios/command.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def args
2121
end
2222

2323
def name
24-
tokens.first&.value
24+
(tokens.first) && tokens.first.value
2525
end
2626

2727
def ==(other)

0 commit comments

Comments
 (0)