bibliothecary 8.7.3 → 8.7.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9d0f05bf5e90424caec70a51181e2fcdeef5ad3ba8ab03109cd765f2ea2943b0
4
- data.tar.gz: e40d4ab5813287042f421c719df563869f2a6b3b8647d038e666b4e2bfc830c7
3
+ metadata.gz: 1498d2e39e0820cce0a03669d89bd6416b5afd67d1f0769602b1715a57a8ffc0
4
+ data.tar.gz: bd5d0f8c450b22c63106f4866c6d191dc3a3628eaf0f53fc341fb5e0663f33b1
5
5
  SHA512:
6
- metadata.gz: 279dd423656e36ce95d8ef56f4c6377019b8f101d2d57c71c8fcecba09c62bb2bb50deb0b98f996045f79f798021ef0eadaae351b2cfc5ca3ca9ad8b78fc80f4
7
- data.tar.gz: 52e317e720768a405d9f2c77e1f855a025274da31b8460784524cff825715f19b58be1f158505de099c026e8ed292bd7008ec8a468bb733bba1e7787294e248b
6
+ metadata.gz: 345d4049074667e97ca9a8c57a0b0327443a60fd5efc7b7566ef19154e1a95e395a4ef45b49f4bd20dfbeaf80c397f8cfab6b8f00203005f33ec60a1c2590270
7
+ data.tar.gz: 7e3a43056de7cfde69fa6bd6ab8329fb226ec65a591e4c4301fb39a8368e80974e112bce577d5a0bbdee42448edc5b692c68b058525d46c28c1235a09f412038
@@ -102,7 +102,15 @@ module Bibliothecary
102
102
  # Parse poetry [tool.poetry] deps
103
103
  poetry_manifest = file_contents.fetch('tool', {}).fetch('poetry', {})
104
104
  deps += map_dependencies(poetry_manifest['dependencies'], 'runtime')
105
+ # Poetry 1.0.0-1.2.0 way of defining dev deps
105
106
  deps += map_dependencies(poetry_manifest['dev-dependencies'], 'develop')
107
+ # Poetry's 1.2.0+ of defining dev deps
108
+ poetry_manifest
109
+ .fetch("group", {})
110
+ .each_pair do |group_name, obj|
111
+ group_name = "develop" if group_name == "dev"
112
+ deps += map_dependencies(obj.fetch("dependencies", {}), group_name)
113
+ end
106
114
 
107
115
  # Parse PEP621 [project] deps
108
116
  pep621_manifest = file_contents.fetch('project', {})
@@ -179,10 +187,10 @@ module Bibliothecary
179
187
  manifest["package"].each do |package|
180
188
  # next if group == "_meta"
181
189
  group = case package['category']
182
- when 'main'
183
- 'runtime'
184
190
  when 'dev'
185
191
  'develop'
192
+ else
193
+ 'runtime'
186
194
  end
187
195
 
188
196
  deps << {
@@ -1,3 +1,3 @@
1
1
  module Bibliothecary
2
- VERSION = "8.7.3"
2
+ VERSION = "8.7.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bibliothecary
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.7.3
4
+ version: 8.7.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Nesbitt