Skip to content

Commit da890f7

Browse files
authored
Merge pull request #11 from github/update-octocatalog-diff
let's get octocatalog-diff to latest
2 parents 7c3410c + 1642af0 commit da890f7

File tree

147 files changed

+240
-87
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

147 files changed

+240
-87
lines changed

.github/workflows/lint-and-test.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Lint and Test
2+
on: [push, pull_request, workflow_dispatch]
3+
jobs:
4+
lint:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v2
8+
- name: Setup Ruby
9+
uses: ruby/setup-ruby@v1
10+
with:
11+
ruby-version: 2.6
12+
- name: Install dependencies
13+
run: |
14+
bundle install --jobs 4 --retry 3
15+
- name: Lint with Rubocop
16+
run: |
17+
bundle exec rubocop --parallel
18+
test:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v2
22+
- uses: ruby/setup-ruby@v1
23+
with:
24+
node-version: 2.1
25+
- name: Install dependencies
26+
run: |
27+
bundle install --jobs 4 --retry 3
28+
- name: Test octofacts
29+
run: |
30+
bundle exec rake octofacts:spec:octofacts
31+
- name: Test octofacts_updater
32+
run: |
33+
bundle exec rake octofacts:spec:octofacts_updater

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,6 @@ build-iPhoneSimulator/
5252

5353
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
5454
.rvmrc
55+
56+
# JetBrains
57+
.idea/**

.rubocop.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ inherit_gem:
33
- config/default.yml
44

55
AllCops:
6+
NewCops: enable
67
DisplayCopNames: true
8+
TargetRubyVersion: 2.6
79

8-
AllCops:
9-
TargetRubyVersion: 2.1
10+
Style/HashSyntax:
11+
Exclude:
12+
- spec/octofacts/util/keys_spec.rb

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.1.9
1+
2.6.4

Gemfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
1+
# frozen_string_literal: true
12
source "https://rubygems.org"
23

4+
35
gemspec name: "octofacts"
46
gemspec name: "octofacts-updater"
57

68
group :development do
79
gem "parallel", "= 1.12.0"
810
gem "pry", "~> 0.10"
911
gem "rake", "~> 12.3"
10-
gem "rubocop-github", "~> 0.5.0"
12+
gem "rubocop-github", "~> 0.20.0"
1113
gem "simplecov", ">= 0.14.1"
1214
gem "simplecov-json", "~> 0.2"
1315

1416
# Integration test
15-
gem "rspec-puppet", "~> #{ENV['RSPEC_PUPPET_VERSION'] || '2.6.2'}"
1617
gem "puppet", "~> #{ENV['PUPPET_VERSION'] || '4.10.4'}"
18+
gem "rspec-puppet", "~> #{ENV['RSPEC_PUPPET_VERSION'] || '2.6.2'}"
1719
end

Gemfile.lock

Lines changed: 71 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,34 @@ PATH
55
octofacts-updater (0.5.1)
66
diffy (>= 3.1.0)
77
net-ssh (>= 2.9)
8-
octocatalog-diff (>= 1.4.1)
8+
octocatalog-diff (>= 2.1.0)
99
octokit (>= 4.2.0)
1010

1111
GEM
1212
remote: https://rubygems.org/
1313
specs:
14-
addressable (2.8.0)
15-
public_suffix (>= 2.0.2, < 5.0)
16-
ast (2.3.0)
14+
activesupport (6.1.7.6)
15+
concurrent-ruby (~> 1.0, >= 1.0.2)
16+
i18n (>= 1.6, < 2)
17+
minitest (>= 5.1)
18+
tzinfo (~> 2.0)
19+
zeitwerk (~> 2.3)
20+
addressable (2.8.5)
21+
public_suffix (>= 2.0.2, < 6.0)
22+
ast (2.4.2)
23+
base64 (0.2.0)
1724
coderay (1.1.1)
25+
concurrent-ruby (1.2.2)
1826
diff-lcs (1.3)
1927
diffy (3.4.2)
2028
docile (1.1.5)
21-
faraday (0.17.4)
2229
facter (2.5.7)
2330
multipart-post (>= 1.2, < 3)
31+
faraday (2.7.12)
32+
base64
33+
faraday-net_http (>= 2.0, < 3.1)
34+
ruby2_keywords (>= 0.0.4)
35+
faraday-net_http (3.0.2)
2436
fast_gettext (1.1.2)
2537
gettext (3.2.9)
2638
locale (>= 2.0.5)
@@ -29,43 +41,52 @@ GEM
2941
fast_gettext (~> 1.1.0)
3042
gettext (>= 3.0.2, < 3.3.0)
3143
locale
32-
hashdiff (0.3.6)
44+
hashdiff (1.0.1)
3345
hiera (3.12.0)
34-
httparty (0.15.6)
46+
httparty (0.21.0)
47+
mini_mime (>= 1.0.0)
3548
multi_xml (>= 0.5.2)
49+
i18n (1.14.1)
50+
concurrent-ruby (~> 1.0)
3651
json (2.5.1)
3752
json_pure (1.8.6)
3853
locale (2.1.3)
3954
method_source (0.8.2)
55+
mini_mime (1.1.5)
56+
minitest (5.20.0)
4057
multi_xml (0.6.0)
4158
multipart-post (2.1.1)
42-
net-ssh (4.2.0)
43-
octocatalog-diff (1.4.1)
59+
net-ssh (7.2.0)
60+
octocatalog-diff (2.1.0)
4461
diffy (>= 3.1.0)
4562
hashdiff (>= 0.3.0)
4663
httparty (>= 0.11.0)
64+
parallel (>= 1.12.0)
4765
rugged (>= 0.25.0b2)
48-
octokit (4.21.0)
49-
faraday (>= 0.9)
50-
sawyer (~> 0.8.0, >= 0.5.3)
66+
octokit (4.25.1)
67+
faraday (>= 1, < 3)
68+
sawyer (~> 0.9)
5169
parallel (1.12.0)
52-
parser (2.4.0.0)
53-
ast (~> 2.2)
54-
powerpack (0.1.1)
70+
parser (3.2.2.4)
71+
ast (~> 2.4.1)
72+
racc
5573
pry (0.10.4)
5674
coderay (~> 1.1.0)
5775
method_source (~> 0.8.1)
5876
slop (~> 3.4)
59-
public_suffix (3.1.1)
77+
public_suffix (5.0.4)
6078
puppet (4.10.12)
6179
facter (> 2.0, < 4)
6280
gettext-setup (>= 0.10, < 1)
6381
hiera (>= 2.0, < 4)
6482
json_pure (~> 1.8)
6583
locale (~> 2.1)
66-
rainbow (2.2.2)
67-
rake
84+
racc (1.7.3)
85+
rack (3.0.8)
86+
rainbow (3.1.1)
6887
rake (12.3.3)
88+
regexp_parser (2.8.3)
89+
rexml (3.2.6)
6990
rspec (3.6.0)
7091
rspec-core (~> 3.6.0)
7192
rspec-expectations (~> 3.6.0)
@@ -81,20 +102,35 @@ GEM
81102
rspec-puppet (2.6.2)
82103
rspec
83104
rspec-support (3.6.0)
84-
rubocop (0.49.1)
105+
rubocop (1.50.2)
106+
json (~> 2.3)
85107
parallel (~> 1.10)
86-
parser (>= 2.3.3.1, < 3.0)
87-
powerpack (~> 0.1)
88-
rainbow (>= 1.99.1, < 3.0)
108+
parser (>= 3.2.0.0)
109+
rainbow (>= 2.2.2, < 4.0)
110+
regexp_parser (>= 1.8, < 3.0)
111+
rexml (>= 3.2.5, < 4.0)
112+
rubocop-ast (>= 1.28.0, < 2.0)
89113
ruby-progressbar (~> 1.7)
90-
unicode-display_width (~> 1.0, >= 1.0.1)
91-
rubocop-github (0.5.0)
92-
rubocop (~> 0.49)
93-
ruby-progressbar (1.8.1)
94-
rugged (0.26.0)
95-
sawyer (0.8.2)
114+
unicode-display_width (>= 2.4.0, < 3.0)
115+
rubocop-ast (1.30.0)
116+
parser (>= 3.2.1.0)
117+
rubocop-github (0.20.0)
118+
rubocop (>= 1.37)
119+
rubocop-performance (>= 1.15)
120+
rubocop-rails (>= 2.17)
121+
rubocop-performance (1.17.1)
122+
rubocop (>= 1.7.0, < 2.0)
123+
rubocop-ast (>= 0.4.0)
124+
rubocop-rails (2.19.1)
125+
activesupport (>= 4.2.0)
126+
rack (>= 1.1)
127+
rubocop (>= 1.33.0, < 2.0)
128+
ruby-progressbar (1.13.0)
129+
ruby2_keywords (0.0.5)
130+
rugged (1.7.1)
131+
sawyer (0.9.2)
96132
addressable (>= 2.3.5)
97-
faraday (> 0.8, < 2.0)
133+
faraday (>= 0.17.3, < 3)
98134
simplecov (0.14.1)
99135
docile (~> 1.1.0)
100136
json (>= 1.8, < 3)
@@ -105,7 +141,10 @@ GEM
105141
simplecov
106142
slop (3.6.0)
107143
text (1.3.1)
108-
unicode-display_width (1.3.0)
144+
tzinfo (2.0.6)
145+
concurrent-ruby (~> 1.0)
146+
unicode-display_width (2.5.0)
147+
zeitwerk (2.6.12)
109148

110149
PLATFORMS
111150
ruby
@@ -118,9 +157,9 @@ DEPENDENCIES
118157
puppet (~> 4.10.4)
119158
rake (~> 12.3)
120159
rspec-puppet (~> 2.6.2)
121-
rubocop-github (~> 0.5.0)
160+
rubocop-github (~> 0.20.0)
122161
simplecov (>= 0.14.1)
123162
simplecov-json (~> 0.2)
124163

125164
BUNDLED WITH
126-
1.15.1
165+
1.17.2

Rakefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1+
#frozen_string_literal: true
2+
13
require "rake"
24
require "rspec/core/rake_task"
35
require_relative "rake/gem"
46

57
namespace :octofacts do
6-
task :default => [:"octofacts:spec:octofacts", :"octofacts:spec:octofacts_updater", :"octofacts:spec:octofacts_integration"] do
8+
task default: [":octofacts:spec:octofacts", ":octofacts:spec:octofacts_updater", ":octofacts:spec:octofacts_integration"] do
79
end
810
end
911

bin/octofacts-updater

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env ruby
2-
2+
# frozen_string_literal: true
3+
#
34
require "bundler/setup"
45
require "octofacts_updater"
56
cli = OctofactsUpdater::CLI.new(ARGV)

lib/octofacts.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# frozen_string_literal: true
12
require "octofacts/constructors/from_file"
23
require "octofacts/constructors/from_index"
34
require "octofacts/manipulators"

lib/octofacts/backends/base.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# frozen_string_literal: true
12
module Octofacts
23
module Backends
34
# This is a template class to define the minimum API to be implemented

0 commit comments

Comments
 (0)