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 +4 -4
- data/README.md +1 -1
- data/app/services/gem_collector/update_gemfile.rb +3 -2
- data/lib/gem_collector/version.rb +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6afb659e925c065367ff3c53185de814607b263ce55dd4ad0fba5ce6e39e8f6c
|
4
|
+
data.tar.gz: a89dec3aea75dee230bbfaa6f67e9d4ba7f4682884d2542b84c4a53e0d139fdb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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://
|
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
|
-
|
69
|
-
|
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
|
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.
|
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:
|
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.
|
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.
|
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.
|
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: []
|