gem_collector 1.3.1 → 1.4.0

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: 8972bbff95653e51cad82966d1fefd8424457ca1fa947014cdacc72533568a5f
4
- data.tar.gz: 256eda8b6ff12254b3c470323818946d6f4047ea0b2eaf55cb9c54af0b86838f
3
+ metadata.gz: 6afb659e925c065367ff3c53185de814607b263ce55dd4ad0fba5ce6e39e8f6c
4
+ data.tar.gz: a89dec3aea75dee230bbfaa6f67e9d4ba7f4682884d2542b84c4a53e0d139fdb
5
5
  SHA512:
6
- metadata.gz: 95de22abffce1065fb3029bad8c15234b5c3f4c6fe0a9a2284448e26a0f8acb9eddc293fa753d15bb51d86d9a58efb0f5af1a9482b08198f5f07cc34b22e73d8
7
- data.tar.gz: e0e523eef349df8fe8cb50d168d7cde02068595509dd6cd5f6bcbeacf91ea89ebf18c36ee740ce47b58c96b33435a11647b50924b2c030c7c90dccbcd6a2796b
6
+ metadata.gz: 9ff0620a29e877a8e30d8d6d2665a6ef01b4a34ee15d32ce6730d00e673976238fd5799eaf81bc2d51b54ab6f95a3a8136a9b656dec2dbea67b1668b462e909f
7
+ data.tar.gz: 5f71e8c975aabe8afcc266e532cc880451e581543d754c7b4d3dbc1e96d9e37adf22dd70367f70576bcd42131e3852771738e94fe0e73784f7753c69f874089b
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # GemCollector
2
2
  [![Gem Version](https://badge.fury.io/rb/gem_collector.svg)](https://badge.fury.io/rb/gem_collector)
3
- [![Build Status](https://travis-ci.org/cookpad/gem_collector.svg?branch=master)](https://travis-ci.org/cookpad/gem_collector)
3
+ [![Build Status](https://github.com/cookpad/gem_collector/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/cookpad/gem_collector/actions/workflows/ci.yml)
4
4
 
5
5
  Collect gems used by applications.
6
6
 
@@ -65,8 +65,9 @@ class GemCollector::UpdateGemfile
65
65
  Bundler::LockfileParser.new(content)
66
66
  end
67
67
  lock_path = path.relative_path_from(dir).to_s
68
- records = lockfile_parser.specs.map do |spec|
69
- repository.repository_gems.build(path: lock_path, name: spec.name, version: spec.version.to_s)
68
+ # uniq is required when spec.platforms is not ruby and contains multiple platforms like x86_64-darwin-20 and x86_64-linux.
69
+ records = lockfile_parser.specs.map { |spec| [spec.name, spec.version.to_s] }.uniq.map do |name, version|
70
+ repository.repository_gems.build(path: lock_path, name: name, version: version)
70
71
  end
71
72
  GemCollector::RepositoryGem.import(records)
72
73
  end
@@ -1,3 +1,3 @@
1
1
  module GemCollector
2
- VERSION = '1.3.1'
2
+ VERSION = '1.4.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gem_collector
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kohei Suzuki
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-19 00:00:00.000000000 Z
11
+ date: 2021-12-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord-import
@@ -86,14 +86,14 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 6.0.1
89
+ version: 6.1.4
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 6.0.1
96
+ version: 6.1.4
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: autodoc
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -182,7 +182,7 @@ homepage: https://github.com/cookpad/gem_collector
182
182
  licenses:
183
183
  - MIT
184
184
  metadata: {}
185
- post_install_message:
185
+ post_install_message:
186
186
  rdoc_options: []
187
187
  require_paths:
188
188
  - lib
@@ -197,8 +197,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
197
197
  - !ruby/object:Gem::Version
198
198
  version: '0'
199
199
  requirements: []
200
- rubygems_version: 3.0.3
201
- signing_key:
200
+ rubygems_version: 3.1.6
201
+ signing_key:
202
202
  specification_version: 4
203
203
  summary: Collect gems used by applications
204
204
  test_files: []