Skip to content

Commit 366e8f8

Browse files
author
Jemma Issroff
committed
Added panolint
1 parent e335490 commit 366e8f8

File tree

11 files changed

+130
-13
lines changed

11 files changed

+130
-13
lines changed

.github/workflows/main.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Main
2+
on: push
3+
jobs:
4+
ci:
5+
name: CI
6+
strategy:
7+
fail-fast: false
8+
matrix:
9+
ruby: [ 2.4, 2.5, 2.6, 2.7, jruby, truffleruby ]
10+
runs-on: ubuntu-latest
11+
env:
12+
CI: true
13+
steps:
14+
- uses: actions/checkout@master
15+
- uses: ruby/setup-ruby@v1
16+
with:
17+
ruby-version: ${{ matrix.ruby }}
18+
- uses: actions/cache@v1
19+
with:
20+
path: vendor/bundle
21+
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
22+
restore-keys: |
23+
${{ runner.os }}-gems-
24+
- run: bundle config path vendor/bundle
25+
- run: bundle install --jobs 4 --retry 3
26+
- run: bundle exec rubocop --config rubocop.yml
27+
- run: bundle exec rspec

.rubocop.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
inherit_gem:
2+
panolint: rubocop.yml

Gemfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1+
# frozen_string_literal: true
2+
13
source "https://rubygems.org"
24

5+
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
6+
37
# Specify your gem's dependencies in memo_wise.gemspec
48
gemspec
59

6-
gem "rake", "~> 12.0"
10+
gem "panolint", github: "panorama-ed/panolint"
711
gem "rspec", "~> 3.0"

Gemfile.lock

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
GIT
2+
remote: https://github.com/panorama-ed/panolint.git
3+
revision: c998e60f6960201e157e9b4d941f2fdca9b66655
4+
specs:
5+
panolint (0.1.2)
6+
brakeman (~> 4.8)
7+
rubocop (~> 0.83)
8+
rubocop-performance (~> 1.5)
9+
rubocop-rails (~> 2.5)
10+
rubocop-rspec (~> 1.39)
11+
12+
PATH
13+
remote: .
14+
specs:
15+
memo_wise (0.1.0)
16+
17+
GEM
18+
remote: https://rubygems.org/
19+
specs:
20+
activesupport (6.0.3.1)
21+
concurrent-ruby (~> 1.0, >= 1.0.2)
22+
i18n (>= 0.7, < 2)
23+
minitest (~> 5.1)
24+
tzinfo (~> 1.1)
25+
zeitwerk (~> 2.2, >= 2.2.2)
26+
ast (2.4.0)
27+
brakeman (4.8.2)
28+
concurrent-ruby (1.1.6)
29+
diff-lcs (1.3)
30+
i18n (1.8.2)
31+
concurrent-ruby (~> 1.0)
32+
minitest (5.14.1)
33+
parallel (1.19.1)
34+
parser (2.7.1.2)
35+
ast (~> 2.4.0)
36+
rack (2.2.2)
37+
rainbow (3.0.0)
38+
rexml (3.2.4)
39+
rspec (3.9.0)
40+
rspec-core (~> 3.9.0)
41+
rspec-expectations (~> 3.9.0)
42+
rspec-mocks (~> 3.9.0)
43+
rspec-core (3.9.2)
44+
rspec-support (~> 3.9.3)
45+
rspec-expectations (3.9.2)
46+
diff-lcs (>= 1.2.0, < 2.0)
47+
rspec-support (~> 3.9.0)
48+
rspec-mocks (3.9.1)
49+
diff-lcs (>= 1.2.0, < 2.0)
50+
rspec-support (~> 3.9.0)
51+
rspec-support (3.9.3)
52+
rubocop (0.83.0)
53+
parallel (~> 1.10)
54+
parser (>= 2.7.0.1)
55+
rainbow (>= 2.2.2, < 4.0)
56+
rexml
57+
ruby-progressbar (~> 1.7)
58+
unicode-display_width (>= 1.4.0, < 2.0)
59+
rubocop-performance (1.5.2)
60+
rubocop (>= 0.71.0)
61+
rubocop-rails (2.5.2)
62+
activesupport
63+
rack (>= 1.1)
64+
rubocop (>= 0.72.0)
65+
rubocop-rspec (1.39.0)
66+
rubocop (>= 0.68.1)
67+
ruby-progressbar (1.10.1)
68+
thread_safe (0.3.6)
69+
tzinfo (1.2.7)
70+
thread_safe (~> 0.1)
71+
unicode-display_width (1.7.0)
72+
zeitwerk (2.3.0)
73+
74+
PLATFORMS
75+
ruby
76+
77+
DEPENDENCIES
78+
memo_wise!
79+
panolint!
80+
rspec (~> 3.0)
81+
82+
BUNDLED WITH
83+
2.1.4

Rakefile

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

bin/console

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env ruby
2+
# frozen_string_literal: true
23

34
require "bundler/setup"
45
require "memo_wise"

lib/memo_wise.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
require "memo_wise/version"
24

35
module MemoWise

lib/memo_wise/version.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
module MemoWise
24
VERSION = "0.1.0"
35
end

memo_wise.gemspec

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
require_relative 'lib/memo_wise/version'
1+
# frozen_string_literal: true
2+
3+
require_relative "lib/memo_wise/version"
24

35
Gem::Specification.new do |spec|
46
spec.name = "memo_wise"
@@ -14,7 +16,7 @@ Gem::Specification.new do |spec|
1416
# Specify which files should be added to the gem when it is released.
1517
# The `git ls-files -z` loads the files in the RubyGem that have been added
1618
# into git.
17-
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
19+
spec.files = Dir.chdir(File.expand_path(__dir__)) do
1820
`git ls-files -z`.split("\x0").reject do |f|
1921
f.match(%r{^(test|spec|features)/})
2022
end

spec/memo_wise_spec.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1+
# frozen_string_literal: true
2+
13
RSpec.describe MemoWise do
24
it "has a version number" do
35
expect(MemoWise::VERSION).not_to be nil
46
end
5-
6-
it "does something useful" do
7-
expect(false).to eq(true)
8-
end
97
end

spec/spec_helper.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
require "bundler/setup"
24
require "memo_wise"
35

0 commit comments

Comments
 (0)