typeprof 0.21.5 → 0.21.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/main.yml +2 -1
- data/Gemfile.lock +2 -2
- data/lib/typeprof/import.rb +15 -6
- data/lib/typeprof/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1d207fe000797f7326bd569640296801ff8047d8261b2461f22c744899753641
|
4
|
+
data.tar.gz: ec87c3c228fc1326739f11fc6aaa63c4d5db46ad66bec55aab46d11d09953a50
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b6acf621b74c3468b14986c8c8616d0d6fc30a4e610dcf817ef550cc302d008cf916ea34f721a7e06038b48c77097e83a16f2e27233e93b18465f69288da4561
|
7
|
+
data.tar.gz: 1c80d8d54c9cda86819eac0aec7b47393f01423a6506946240ebdef40b02ad90bae4c69c43ced7906ecc60945b85fee2baefc8c0aa717a8b95c570f9c25adcf4
|
data/.github/workflows/main.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
typeprof (0.21.
|
4
|
+
typeprof (0.21.6)
|
5
5
|
rbs (>= 1.8.1)
|
6
6
|
|
7
7
|
GEM
|
@@ -11,7 +11,7 @@ GEM
|
|
11
11
|
docile (1.4.0)
|
12
12
|
power_assert (2.0.1)
|
13
13
|
rake (13.0.1)
|
14
|
-
rbs (3.0.
|
14
|
+
rbs (3.0.1)
|
15
15
|
simplecov (0.21.2)
|
16
16
|
docile (~> 1.1)
|
17
17
|
simplecov-html (~> 0.11)
|
data/lib/typeprof/import.rb
CHANGED
@@ -6,9 +6,13 @@ module TypeProf
|
|
6
6
|
@repo = RBS::Repository.new
|
7
7
|
collection_path = Config.current.collection_path
|
8
8
|
if collection_path&.exist?
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
lock_path = RBS::Collection::Config.to_lockfile_path(collection_path)
|
10
|
+
if lock_path.exist?
|
11
|
+
collection_lock = RBS::Collection::Config.from_path(lock_path)
|
12
|
+
@repo.add(collection_lock.repo_path)
|
13
|
+
else
|
14
|
+
raise "Please execute 'rbs collection install'"
|
15
|
+
end
|
12
16
|
end
|
13
17
|
@env, @loaded_gems, @builtin_env_json = RBSReader.get_builtin_env
|
14
18
|
end
|
@@ -24,9 +28,14 @@ module TypeProf
|
|
24
28
|
# TODO: invalidate this cache when rbs_collection.yml was changed
|
25
29
|
collection_path = Config.current.collection_path
|
26
30
|
if collection_path&.exist?
|
27
|
-
|
28
|
-
|
29
|
-
|
31
|
+
lock_path = RBS::Collection::Config.to_lockfile_path(collection_path)
|
32
|
+
if lock_path.exist?
|
33
|
+
collection_lock = RBS::Collection::Config::Lockfile.from_lockfile(lockfile_path: lock_path, data: YAML.load_file(lock_path.to_s))
|
34
|
+
collection_lock.gems.each {|gem| @loaded_gems << gem["name"] }
|
35
|
+
loader.add_collection(collection_lock)
|
36
|
+
else
|
37
|
+
raise "Please execute 'rbs collection install'"
|
38
|
+
end
|
30
39
|
end
|
31
40
|
|
32
41
|
new_decls = loader.load(env: @builtin_env).map {|decl,| decl }
|
data/lib/typeprof/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: typeprof
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.21.
|
4
|
+
version: 0.21.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yusuke Endoh
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-02-
|
11
|
+
date: 2023-02-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rbs
|