typeprof 0.21.5 → 0.21.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3f5c0fba3561953bdf7db3fe5c326cd4a8375376189928270d919f23dffd78ce
4
- data.tar.gz: b3d7aabe2f15298c41de661308e3d757ed0643df079092fe184f6046cc9336c6
3
+ metadata.gz: 1d207fe000797f7326bd569640296801ff8047d8261b2461f22c744899753641
4
+ data.tar.gz: ec87c3c228fc1326739f11fc6aaa63c4d5db46ad66bec55aab46d11d09953a50
5
5
  SHA512:
6
- metadata.gz: b861fb63e8cfb3d39fdf5a5f753ea88041e730d5c8518098c05fa07f360eae8f3f808697e5e0462ffc76def30e7163c184a95e3bd14a941063c3dc523a9fad53
7
- data.tar.gz: 6b061ce0869738ea048e85c74a018adc8894f1c05d71c61b0e91d93b0714c177ef2bc48499640a97fc5f43fd29ace9227ef13924df006a81239cf2ac50480087
6
+ metadata.gz: b6acf621b74c3468b14986c8c8616d0d6fc30a4e610dcf817ef550cc302d008cf916ea34f721a7e06038b48c77097e83a16f2e27233e93b18465f69288da4561
7
+ data.tar.gz: 1c80d8d54c9cda86819eac0aec7b47393f01423a6506946240ebdef40b02ad90bae4c69c43ced7906ecc60945b85fee2baefc8c0aa717a8b95c570f9c25adcf4
@@ -5,7 +5,8 @@ on:
5
5
  pull_request:
6
6
  workflow_dispatch:
7
7
  schedule:
8
- - cron: '11 24 * * 5'
8
+ # # This job runs at 00:00 on Friday.
9
+ - cron: '0 15 * * 5'
9
10
 
10
11
  jobs:
11
12
  ruby-versions:
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- typeprof (0.21.5)
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.0)
14
+ rbs (3.0.1)
15
15
  simplecov (0.21.2)
16
16
  docile (~> 1.1)
17
17
  simplecov-html (~> 0.11)
@@ -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
- collection_lock = RBS::Collection::Config.lockfile_of(collection_path)
10
- raise "Please execute 'rbs collection install'" if collection_lock.nil?
11
- @repo.add(collection_lock.repo_path)
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
- collection_lock = RBS::Collection::Config.lockfile_of(collection_path)
28
- collection_lock.gems.each {|gem| @loaded_gems << gem["name"] }
29
- loader.add_collection(collection_lock)
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 }
@@ -1,3 +1,3 @@
1
1
  module TypeProf
2
- VERSION = "0.21.5"
2
+ VERSION = "0.21.6"
3
3
  end
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.5
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-27 00:00:00.000000000 Z
11
+ date: 2023-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rbs