dependabot-linguist 0.212.1 → 0.217.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  ##################################################################################################################
2
- # This file is a snapshot of https://github.com/github/linguist/blob/v7.23.0/lib/linguist/languages.yml
3
- # and as such is under linguist's MIT license https://github.com/github/linguist/blob/v7.23.0/LICENSE
2
+ # This file is a snapshot of https://github.com/github/linguist/blob/v7.25.0/lib/linguist/languages.yml
3
+ # and as such is under linguist's MIT license https://github.com/github/linguist/blob/v7.25.0/LICENSE
4
4
  # Only this top comment has been modified; the data is unchanged.
5
5
  # -- MIT License; with: Copyright (c) 2017 GitHub, Inc.
6
6
  ##################################################################################################################
@@ -750,6 +750,7 @@ C++:
750
750
  - ".c++"
751
751
  - ".cc"
752
752
  - ".cp"
753
+ - ".cppm"
753
754
  - ".cxx"
754
755
  - ".h"
755
756
  - ".h++"
@@ -1023,6 +1024,14 @@ ChucK:
1023
1024
  codemirror_mode: clike
1024
1025
  codemirror_mime_type: text/x-java
1025
1026
  language_id: 57
1027
+ Circom:
1028
+ type: programming
1029
+ ace_mode: text
1030
+ extensions:
1031
+ - ".circom"
1032
+ color: "#707575"
1033
+ tm_scope: source.circom
1034
+ language_id: 1042332086
1026
1035
  Cirru:
1027
1036
  type: programming
1028
1037
  color: "#ccccff"
@@ -1546,6 +1555,27 @@ Dogescript:
1546
1555
  tm_scope: none
1547
1556
  ace_mode: text
1548
1557
  language_id: 90
1558
+ Dotenv:
1559
+ type: data
1560
+ color: "#e5d559"
1561
+ extensions:
1562
+ - ".env"
1563
+ filenames:
1564
+ - ".env"
1565
+ - ".env.ci"
1566
+ - ".env.dev"
1567
+ - ".env.development"
1568
+ - ".env.development.local"
1569
+ - ".env.example"
1570
+ - ".env.local"
1571
+ - ".env.prod"
1572
+ - ".env.production"
1573
+ - ".env.staging"
1574
+ - ".env.test"
1575
+ - ".env.testing"
1576
+ tm_scope: source.dotenv
1577
+ ace_mode: text
1578
+ language_id: 111148035
1549
1579
  Dylan:
1550
1580
  type: programming
1551
1581
  color: "#6c616e"
@@ -1676,10 +1706,25 @@ Ecere Projects:
1676
1706
  codemirror_mode: javascript
1677
1707
  codemirror_mime_type: application/json
1678
1708
  language_id: 98
1709
+ Ecmarkup:
1710
+ type: markup
1711
+ color: "#eb8131"
1712
+ group: HTML
1713
+ extensions:
1714
+ - ".html"
1715
+ tm_scope: text.html.ecmarkup
1716
+ ace_mode: html
1717
+ codemirror_mode: htmlmixed
1718
+ codemirror_mime_type: text/html
1719
+ aliases:
1720
+ - ecmarkdown
1721
+ language_id: 844766630
1679
1722
  EditorConfig:
1680
1723
  type: data
1681
1724
  color: "#fff1f2"
1682
1725
  group: INI
1726
+ extensions:
1727
+ - ".editorconfig"
1683
1728
  filenames:
1684
1729
  - ".editorconfig"
1685
1730
  aliases:
@@ -1741,6 +1786,13 @@ Elvish:
1741
1786
  tm_scope: source.elvish
1742
1787
  color: "#55BB55"
1743
1788
  language_id: 570996448
1789
+ Elvish Transcript:
1790
+ type: programming
1791
+ group: Elvish
1792
+ ace_mode: text
1793
+ tm_scope: source.elvish-transcript
1794
+ color: "#55BB55"
1795
+ language_id: 452025714
1744
1796
  Emacs Lisp:
1745
1797
  type: programming
1746
1798
  tm_scope: source.emacs.lisp
@@ -1783,6 +1835,7 @@ Erlang:
1783
1835
  color: "#B83998"
1784
1836
  extensions:
1785
1837
  - ".erl"
1838
+ - ".app"
1786
1839
  - ".app.src"
1787
1840
  - ".es"
1788
1841
  - ".escript"
@@ -1987,7 +2040,7 @@ Fortran Free Form:
1987
2040
  language_id: 761352333
1988
2041
  FreeBasic:
1989
2042
  type: programming
1990
- color: "#867db1"
2043
+ color: "#141AC9"
1991
2044
  extensions:
1992
2045
  - ".bi"
1993
2046
  - ".bas"
@@ -2404,6 +2457,19 @@ Go Module:
2404
2457
  tm_scope: go.mod
2405
2458
  ace_mode: text
2406
2459
  language_id: 947461016
2460
+ Godot Resource:
2461
+ type: data
2462
+ color: "#355570"
2463
+ extensions:
2464
+ - ".gdnlib"
2465
+ - ".gdns"
2466
+ - ".tres"
2467
+ - ".tscn"
2468
+ filenames:
2469
+ - project.godot
2470
+ tm_scope: source.gdresource
2471
+ ace_mode: text
2472
+ language_id: 738107771
2407
2473
  Golo:
2408
2474
  type: programming
2409
2475
  color: "#88562A"
@@ -2520,6 +2586,7 @@ HAProxy:
2520
2586
  language_id: 366607477
2521
2587
  HCL:
2522
2588
  type: programming
2589
+ color: "#844FBA"
2523
2590
  extensions:
2524
2591
  - ".hcl"
2525
2592
  - ".nomad"
@@ -2799,6 +2866,7 @@ INI:
2799
2866
  extensions:
2800
2867
  - ".ini"
2801
2868
  - ".cfg"
2869
+ - ".cnf"
2802
2870
  - ".dof"
2803
2871
  - ".lektorproject"
2804
2872
  - ".prefs"
@@ -2904,6 +2972,14 @@ Inform 7:
2904
2972
  - inform7
2905
2973
  ace_mode: text
2906
2974
  language_id: 166
2975
+ Ink:
2976
+ type: programming
2977
+ wrap: true
2978
+ extensions:
2979
+ - ".ink"
2980
+ tm_scope: source.ink
2981
+ ace_mode: text
2982
+ language_id: 838252715
2907
2983
  Inno Setup:
2908
2984
  type: programming
2909
2985
  color: "#264b99"
@@ -2968,6 +3044,14 @@ JAR Manifest:
2968
3044
  tm_scope: source.yaml
2969
3045
  ace_mode: text
2970
3046
  language_id: 447261135
3047
+ JCL:
3048
+ type: programming
3049
+ color: "#d90e09"
3050
+ extensions:
3051
+ - ".jcl"
3052
+ tm_scope: source.jcl
3053
+ ace_mode: text
3054
+ language_id: 316620079
2971
3055
  JFlex:
2972
3056
  type: programming
2973
3057
  color: "#DBCA00"
@@ -3021,6 +3105,7 @@ JSON:
3021
3105
  - ".watchmanconfig"
3022
3106
  - Pipfile.lock
3023
3107
  - composer.lock
3108
+ - flake.lock
3024
3109
  - mcmod.info
3025
3110
  language_id: 174
3026
3111
  JSON with Comments:
@@ -3315,6 +3400,18 @@ Jupyter Notebook:
3315
3400
  aliases:
3316
3401
  - IPython Notebook
3317
3402
  language_id: 185
3403
+ Just:
3404
+ type: programming
3405
+ aliases:
3406
+ - Justfile
3407
+ color: "#384d54"
3408
+ tm_scope: source.just
3409
+ filenames:
3410
+ - JUSTFILE
3411
+ - Justfile
3412
+ - justfile
3413
+ ace_mode: text
3414
+ language_id: 128447695
3318
3415
  KRL:
3319
3416
  type: programming
3320
3417
  color: "#28430A"
@@ -3348,6 +3445,14 @@ KakouneScript:
3348
3445
  - kakrc
3349
3446
  ace_mode: text
3350
3447
  language_id: 603336474
3448
+ KerboScript:
3449
+ type: programming
3450
+ ace_mode: text
3451
+ extensions:
3452
+ - ".ks"
3453
+ color: "#41adf0"
3454
+ tm_scope: source.kerboscript
3455
+ language_id: 59716426
3351
3456
  KiCad Layout:
3352
3457
  type: data
3353
3458
  color: "#2f4aab"
@@ -3383,6 +3488,13 @@ KiCad Schematic:
3383
3488
  tm_scope: source.pcb.schematic
3384
3489
  ace_mode: text
3385
3490
  language_id: 622447435
3491
+ Kickstart:
3492
+ type: data
3493
+ ace_mode: text
3494
+ extensions:
3495
+ - ".ks"
3496
+ tm_scope: source.kickstart
3497
+ language_id: 692635484
3386
3498
  Kit:
3387
3499
  type: markup
3388
3500
  ace_mode: html
@@ -4686,8 +4798,8 @@ Option List:
4686
4798
  - ackrc
4687
4799
  filenames:
4688
4800
  - ".ackrc"
4689
- - "ackrc"
4690
- - "mocha.opts"
4801
+ - ackrc
4802
+ - mocha.opts
4691
4803
  tm_scope: source.opts
4692
4804
  ace_mode: sh
4693
4805
  codemirror_mode: shell
@@ -4999,6 +5111,7 @@ Pike:
4999
5111
  language_id: 287
5000
5112
  PlantUML:
5001
5113
  type: data
5114
+ color: "#fbbd16"
5002
5115
  extensions:
5003
5116
  - ".puml"
5004
5117
  - ".iuml"
@@ -5147,6 +5260,7 @@ Prolog:
5147
5260
  color: "#74283c"
5148
5261
  extensions:
5149
5262
  - ".pl"
5263
+ - ".plt"
5150
5264
  - ".pro"
5151
5265
  - ".prolog"
5152
5266
  - ".yap"
@@ -5255,6 +5369,14 @@ PureScript:
5255
5369
  codemirror_mode: haskell
5256
5370
  codemirror_mime_type: text/x-haskell
5257
5371
  language_id: 302
5372
+ Pyret:
5373
+ type: programming
5374
+ color: "#ee1e10"
5375
+ extensions:
5376
+ - ".arr"
5377
+ ace_mode: python
5378
+ tm_scope: source.arr
5379
+ language_id: 252961827
5258
5380
  Python:
5259
5381
  type: programming
5260
5382
  tm_scope: source.python
@@ -5276,7 +5398,6 @@ Python:
5276
5398
  - ".pyt"
5277
5399
  - ".pyw"
5278
5400
  - ".rpy"
5279
- - ".smk"
5280
5401
  - ".spec"
5281
5402
  - ".tac"
5282
5403
  - ".wsgi"
@@ -5286,12 +5407,14 @@ Python:
5286
5407
  - DEPS
5287
5408
  - SConscript
5288
5409
  - SConstruct
5289
- - Snakefile
5290
5410
  - wscript
5291
5411
  interpreters:
5292
5412
  - python
5293
5413
  - python2
5294
5414
  - python3
5415
+ - py
5416
+ - pypy
5417
+ - pypy3
5295
5418
  aliases:
5296
5419
  - python3
5297
5420
  - rusthon
@@ -6199,7 +6322,6 @@ Shell:
6199
6322
  - ".bats"
6200
6323
  - ".cgi"
6201
6324
  - ".command"
6202
- - ".env"
6203
6325
  - ".fcgi"
6204
6326
  - ".ksh"
6205
6327
  - ".sh.in"
@@ -6209,13 +6331,12 @@ Shell:
6209
6331
  - ".zsh-theme"
6210
6332
  filenames:
6211
6333
  - ".bash_aliases"
6334
+ - ".bash_functions"
6212
6335
  - ".bash_history"
6213
6336
  - ".bash_logout"
6214
6337
  - ".bash_profile"
6215
6338
  - ".bashrc"
6216
6339
  - ".cshrc"
6217
- - ".env"
6218
- - ".env.example"
6219
6340
  - ".flaskenv"
6220
6341
  - ".kshrc"
6221
6342
  - ".login"
@@ -6385,6 +6506,32 @@ Smarty:
6385
6506
  codemirror_mime_type: text/x-smarty
6386
6507
  tm_scope: text.html.smarty
6387
6508
  language_id: 353
6509
+ Smithy:
6510
+ type: programming
6511
+ ace_mode: text
6512
+ codemirror_mode: clike
6513
+ codemirror_mime_type: text/x-csrc
6514
+ tm_scope: source.smithy
6515
+ color: "#c44536"
6516
+ extensions:
6517
+ - ".smithy"
6518
+ language_id: 1027892786
6519
+ Snakemake:
6520
+ type: programming
6521
+ group: Python
6522
+ tm_scope: source.python
6523
+ ace_mode: python
6524
+ codemirror_mode: python
6525
+ codemirror_mime_type: text/x-python
6526
+ color: "#419179"
6527
+ extensions:
6528
+ - ".smk"
6529
+ - ".snakefile"
6530
+ filenames:
6531
+ - Snakefile
6532
+ aliases:
6533
+ - snakefile
6534
+ language_id: 151241392
6388
6535
  Solidity:
6389
6536
  type: programming
6390
6537
  color: "#AA6746"
@@ -6465,6 +6612,7 @@ Starlark:
6465
6612
  - BUCK
6466
6613
  - BUILD
6467
6614
  - BUILD.bazel
6615
+ - MODULE.bazel
6468
6616
  - Tiltfile
6469
6617
  - WORKSPACE
6470
6618
  - WORKSPACE.bazel
@@ -6542,6 +6690,16 @@ Svelte:
6542
6690
  extensions:
6543
6691
  - ".svelte"
6544
6692
  language_id: 928734530
6693
+ Sway:
6694
+ type: programming
6695
+ color: "#dea584"
6696
+ extensions:
6697
+ - ".sw"
6698
+ tm_scope: source.sway
6699
+ ace_mode: rust
6700
+ codemirror_mode: rust
6701
+ codemirror_mime_type: text/x-rustsrc
6702
+ language_id: 271471144
6545
6703
  Swift:
6546
6704
  type: programming
6547
6705
  color: "#F05138"
@@ -6592,6 +6750,7 @@ TOML:
6592
6750
  - Cargo.lock
6593
6751
  - Gopkg.lock
6594
6752
  - Pipfile
6753
+ - pdm.lock
6595
6754
  - poetry.lock
6596
6755
  tm_scope: source.toml
6597
6756
  ace_mode: toml
@@ -6953,7 +7112,6 @@ VBA:
6953
7112
  - ".bas"
6954
7113
  - ".cls"
6955
7114
  - ".frm"
6956
- - ".frx"
6957
7115
  - ".vba"
6958
7116
  tm_scope: source.vbnet
6959
7117
  aliases:
@@ -7111,8 +7269,10 @@ Visual Basic 6.0:
7111
7269
  type: programming
7112
7270
  color: "#2c6353"
7113
7271
  extensions:
7272
+ - ".cls"
7114
7273
  - ".ctl"
7115
7274
  - ".Dsr"
7275
+ - ".frm"
7116
7276
  tm_scope: source.vbnet
7117
7277
  aliases:
7118
7278
  - vb6
@@ -7435,6 +7595,7 @@ XML:
7435
7595
  - ".srdf"
7436
7596
  - ".storyboard"
7437
7597
  - ".sublime-snippet"
7598
+ - ".sw"
7438
7599
  - ".targets"
7439
7600
  - ".tml"
7440
7601
  - ".ts"
@@ -7799,16 +7960,6 @@ jq:
7799
7960
  - ".jq"
7800
7961
  tm_scope: source.jq
7801
7962
  language_id: 905371884
7802
- just:
7803
- type: programming
7804
- aliases:
7805
- - Justfile
7806
- color: "#384d54"
7807
- tm_scope: source.just
7808
- filenames:
7809
- - Justfile
7810
- ace_mode: text
7811
- language_id: 128447695
7812
7963
  kvlang:
7813
7964
  type: markup
7814
7965
  ace_mode: text
@@ -7,7 +7,7 @@
7
7
  # https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#package-ecosystem
8
8
 
9
9
  # For the file_fetchers' register function, whose keys we map to, see
10
- # https://github.com/dependabot/dependabot-core/blob/v0.212.0/common/lib/dependabot/file_fetchers.rb#L14-L16
10
+ # https://github.com/dependabot/dependabot-core/blob/v0.217.0/common/lib/dependabot/file_fetchers.rb#L14-L16
11
11
 
12
12
  module Dependabot
13
13
  module Linguist
@@ -92,37 +92,37 @@ module Dependabot
92
92
  # so each mapping |K,V| element should have a comment linking to the place
93
93
  # that its value was registered!
94
94
  PACKAGE_ECOSYSTEM_TO_FILE_FETCHERS_REGISTRY_KEY = {
95
- # https://github.com/dependabot/dependabot-core/blob/v0.212.0/bundler/lib/dependabot/bundler/file_fetcher.rb#L216
95
+ # https://github.com/dependabot/dependabot-core/blob/v0.217.0/bundler/lib/dependabot/bundler/file_fetcher.rb#L225
96
96
  PackageEcosystems::BUNDLER => "bundler",
97
- # https://github.com/dependabot/dependabot-core/blob/v0.212.0/cargo/lib/dependabot/cargo/file_fetcher.rb#L295
97
+ # https://github.com/dependabot/dependabot-core/blob/v0.217.0/cargo/lib/dependabot/cargo/file_fetcher.rb#L324
98
98
  PackageEcosystems::CARGO => "cargo",
99
- # https://github.com/dependabot/dependabot-core/blob/v0.212.0/composer/lib/dependabot/composer/file_fetcher.rb#L183
99
+ # https://github.com/dependabot/dependabot-core/blob/v0.217.0/composer/lib/dependabot/composer/file_fetcher.rb#L183
100
100
  PackageEcosystems::COMPOSER => "composer",
101
- # https://github.com/dependabot/dependabot-core/blob/v0.212.0/docker/lib/dependabot/docker/file_fetcher.rb#L103
101
+ # https://github.com/dependabot/dependabot-core/blob/v0.217.0/docker/lib/dependabot/docker/file_fetcher.rb#L101
102
102
  PackageEcosystems::DOCKER => "docker",
103
- # https://github.com/dependabot/dependabot-core/blob/v0.212.0/elm/lib/dependabot/elm/file_fetcher.rb#L46
103
+ # https://github.com/dependabot/dependabot-core/blob/v0.217.0/elm/lib/dependabot/elm/file_fetcher.rb#L46
104
104
  PackageEcosystems::ELM => "elm",
105
- # https://github.com/dependabot/dependabot-core/blob/v0.212.0/github_actions/lib/dependabot/github_actions/file_fetcher.rb#L72-L73
105
+ # https://github.com/dependabot/dependabot-core/blob/v0.217.0/github_actions/lib/dependabot/github_actions/file_fetcher.rb#L79-L80
106
106
  PackageEcosystems::GITHUB_ACTIONS => "github_actions",
107
- # https://github.com/dependabot/dependabot-core/blob/v0.212.0/git_submodules/lib/dependabot/git_submodules/file_fetcher.rb#L84-L85
107
+ # https://github.com/dependabot/dependabot-core/blob/v0.217.0/git_submodules/lib/dependabot/git_submodules/file_fetcher.rb#L88-L89
108
108
  PackageEcosystems::GIT_SUBMODULE => "submodules",
109
- # https://github.com/dependabot/dependabot-core/blob/v0.212.0/go_modules/lib/dependabot/go_modules/file_fetcher.rb#L54-L55
109
+ # https://github.com/dependabot/dependabot-core/blob/v0.217.0/go_modules/lib/dependabot/go_modules/file_fetcher.rb#L67-L68
110
110
  PackageEcosystems::GOMOD => "go_modules",
111
- # https://github.com/dependabot/dependabot-core/blob/v0.212.0/gradle/lib/dependabot/gradle/file_fetcher.rb#L131
111
+ # https://github.com/dependabot/dependabot-core/blob/v0.217.0/gradle/lib/dependabot/gradle/file_fetcher.rb#L176
112
112
  PackageEcosystems::GRADLE => "gradle",
113
- # https://github.com/dependabot/dependabot-core/blob/v0.212.0/maven/lib/dependabot/maven/file_fetcher.rb#L142
113
+ # https://github.com/dependabot/dependabot-core/blob/v0.217.0/maven/lib/dependabot/maven/file_fetcher.rb#L162
114
114
  PackageEcosystems::MAVEN => "maven",
115
- # https://github.com/dependabot/dependabot-core/blob/v0.212.0/hex/lib/dependabot/hex/file_fetcher.rb#L98
115
+ # https://github.com/dependabot/dependabot-core/blob/v0.217.0/hex/lib/dependabot/hex/file_fetcher.rb#L97
116
116
  PackageEcosystems::MIX => "hex",
117
- # https://github.com/dependabot/dependabot-core/blob/v0.212.0/npm_and_yarn/lib/dependabot/npm_and_yarn/file_fetcher.rb#L419-L420
117
+ # https://github.com/dependabot/dependabot-core/blob/v0.217.0/npm_and_yarn/lib/dependabot/npm_and_yarn/file_fetcher.rb#L527-L528
118
118
  PackageEcosystems::NPM => "npm_and_yarn",
119
- # https://github.com/dependabot/dependabot-core/blob/v0.212.0/nuget/lib/dependabot/nuget/file_fetcher.rb#L271
119
+ # https://github.com/dependabot/dependabot-core/blob/v0.217.0/nuget/lib/dependabot/nuget/file_fetcher.rb#L278
120
120
  PackageEcosystems::NUGET => "nuget",
121
- # https://github.com/dependabot/dependabot-core/blob/v0.212.0/python/lib/dependabot/python/file_fetcher.rb#L409
121
+ # https://github.com/dependabot/dependabot-core/blob/v0.217.0/python/lib/dependabot/python/file_fetcher.rb#L418
122
122
  PackageEcosystems::PIP => "pip",
123
- # https://github.com/dependabot/dependabot-core/blob/v0.212.0/pub/lib/dependabot/pub/file_fetcher.rb#L46
123
+ # https://github.com/dependabot/dependabot-core/blob/v0.217.0/pub/lib/dependabot/pub/file_fetcher.rb#L46
124
124
  PackageEcosystems::PUB => "pub",
125
- # https://github.com/dependabot/dependabot-core/blob/v0.212.0/terraform/lib/dependabot/terraform/file_fetcher.rb#L90-L91
125
+ # https://github.com/dependabot/dependabot-core/blob/v0.217.0/terraform/lib/dependabot/terraform/file_fetcher.rb#L90-L91
126
126
  PackageEcosystems::TERRAFORM => "terraform"
127
127
  }.freeze
128
128
 
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Direct the requiring of the files that patch linguist via this.
4
- # https://github.com/github/linguist/tree/v7.23.0
4
+ # https://github.com/github/linguist/tree/v7.25.0
5
5
 
6
6
  require_relative "language"
@@ -16,7 +16,9 @@ module Dependabot
16
16
  # the languages it thought was relevant to each dependabot ecosystem.
17
17
  class Repository
18
18
  def initialize(repo_path, repo_name, ignore_linguist: 0, verbose: false)
19
- @repo_path = repo_path.chomp.delete_suffix("/")
19
+ @repo_path = repo_path.chomp.delete_suffix("/") unless repo_path.nil?
20
+ # If repo_path is nil, say that the current workdir is the path.
21
+ @repo_path ||= "."
20
22
  @repo_name = repo_name
21
23
  begin
22
24
  @repo = Rugged::Repository.new(@repo_path)
@@ -24,9 +26,12 @@ module Dependabot
24
26
  # Either the folder doesn't exist, or it does and doesn't have a `.git/`
25
27
  # Try to clone into it, if it's public
26
28
  puts "Repository #{@repo_name} not found at #{@repo_path}; falling back to cloning public url"
29
+ # If the current path isn't empty, make a temporary repository path.
30
+ @repo_path = "./tmp/#{@repo_name}" unless Dir.empty? @repo_path
31
+ puts "Cloning https://github.com/#{@repo_name}.git into #{@repo_path}"
27
32
  @repo = Rugged::Repository.clone_at("https://github.com/#{@repo_name}.git", @repo_path)
28
33
  end
29
- @ignore_linguist = [[0, ignore_linguist].max, 2].min
34
+ @ignore_linguist = ignore_linguist.clamp(0, 2)
30
35
  @verbose = verbose
31
36
  @linguist = ::Linguist::Repository.new(@repo, @repo.head.target_id)
32
37
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Dependabot
4
4
  module Linguist
5
- VERSION = "0.212.1"
5
+ VERSION = "0.217.0"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,57 +1,57 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dependabot-linguist
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.212.1
4
+ version: 0.217.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Levett
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-11-29 00:00:00.000000000 Z
11
+ date: 2023-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rugged
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 1.5.0
19
+ version: 1.6.3
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 1.5.0
26
+ version: 1.6.3
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: github-linguist
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 7.23.0
33
+ version: 7.25.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 7.23.0
40
+ version: 7.25.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: dependabot-omnibus
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: 0.212.0
47
+ version: 0.217.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - '='
53
53
  - !ruby/object:Gem::Version
54
- version: 0.212.0
54
+ version: 0.217.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -137,7 +137,7 @@ files:
137
137
  - lib/dependabot/linguist.rb
138
138
  - lib/dependabot/linguist/dependabot_file_validator.rb
139
139
  - lib/dependabot/linguist/dependabot_patch.rb
140
- - lib/dependabot/linguist/file_fetchers/base.rb
140
+ - lib/dependabot/linguist/file_fetchers/bundler.rb
141
141
  - lib/dependabot/linguist/file_fetchers/git_submodules.rb
142
142
  - lib/dependabot/linguist/file_fetchers/go_modules.rb
143
143
  - lib/dependabot/linguist/language.rb
@@ -157,7 +157,7 @@ licenses:
157
157
  metadata:
158
158
  homepage_uri: https://skenvy.github.io/dependabot-linguist
159
159
  source_code_uri: https://github.com/Skenvy/dependabot-linguist/tree/main/
160
- post_install_message:
160
+ post_install_message:
161
161
  rdoc_options: []
162
162
  require_paths:
163
163
  - lib
@@ -165,15 +165,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
165
165
  requirements:
166
166
  - - ">="
167
167
  - !ruby/object:Gem::Version
168
- version: 2.7.0
168
+ version: 3.1.0
169
169
  required_rubygems_version: !ruby/object:Gem::Requirement
170
170
  requirements:
171
171
  - - ">="
172
172
  - !ruby/object:Gem::Version
173
- version: '0'
173
+ version: 3.3.7
174
174
  requirements: []
175
- rubygems_version: 3.1.6
176
- signing_key:
175
+ rubygems_version: 3.4.12
176
+ signing_key:
177
177
  specification_version: 4
178
178
  summary: Automate generating dependabot config with linguist and dependabot-core!
179
179
  test_files: []
@@ -1,48 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- #########################################################################################
4
- # _____ _ _ _ _____ _ _ #
5
- # | __ \ | | | | | | | __ \ | | | | #
6
- # | | | | ___ _ __ ___ _ __ __| | __ _| |__ ___ | |_ | |__) |_ _| |_ ___| |__ #
7
- # | | | |/ _ \ '_ \ / _ \ '_ \ / _` |/ _` | '_ \ / _ \| __| | ___/ _` | __/ __| '_ \ #
8
- # | |__| | __/ |_) | __/ | | | (_| | (_| | |_) | (_) | |_ | | | (_| | || (__| | | | #
9
- # |_____/ \___| .__/ \___|_| |_|\__,_|\__,_|_.__/ \___/ \__| |_| \__,_|\__\___|_| |_| #
10
- # | | #
11
- # |_| #
12
- #########################################################################################
13
-
14
- # Patches the class Dependabot::FileFetchers::Base that all file fetching classes sub class.
15
- # https://github.com/dependabot/dependabot-core/blob/v0.212.0/common/lib/dependabot/file_fetchers/base.rb
16
-
17
- # cloned_commit was added in 0.213.0; so we need to patch it in for 0.212.0 with an edit that
18
- # removes the `SharedHelpers.with_git_configured(credentials: credentials) do` wrap
19
-
20
- require "dependabot/file_fetchers"
21
-
22
- # rubocop:disable Style/Documentation
23
-
24
- module Dependabot
25
- module FileFetchers
26
- class Base
27
- def cloned_commit
28
- return if repo_contents_path.nil? || !File.directory?(File.join(repo_contents_path, ".git"))
29
- Dir.chdir(repo_contents_path) do
30
- return SharedHelpers.run_shell_command("git rev-parse HEAD")&.strip
31
- end
32
- end
33
-
34
- def commit
35
- return cloned_commit if cloned_commit
36
- return source.commit if source.commit
37
- branch = target_branch || default_branch_for_repo
38
- @commit ||= client_for_provider.fetch_commit(repo, branch)
39
- rescue *CLIENT_NOT_FOUND_ERRORS
40
- raise Dependabot::BranchNotFound, branch
41
- rescue Octokit::Conflict => e
42
- raise unless e.message.include?("Repository is empty")
43
- end
44
- end
45
- end
46
- end
47
-
48
- # rubocop:enable Style/Documentation