Skip to content

Commit 0331dc7

Browse files
gemmaromame
authored andcommitted
Move Prism dependency to gemspec file from Gemfile
* typeprof.gemspec:, Gemfile, Gemfile.lock: Using TypeProf as a library does not resolve Gemfile dependencies, so move Prism to gemspec file. Notice that TypeProf now uses Prism version 1.4.0 or later[1]. [1] Update Prism to 1.4.0 and remove workarounds, #312
1 parent 4bf6703 commit 0331dc7

3 files changed

Lines changed: 24 additions & 14 deletions

File tree

Gemfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
source "https://rubygems.org"
2+
gemspec
23

34
#if ENV["RBS_VERSION"]
45
gem "rbs", github: "ruby/rbs", ref: ENV["RBS_VERSION"]
@@ -7,8 +8,6 @@ source "https://rubygems.org"
78
# gemspec
89
#end
910

10-
gem "prism", ">= 1.4.0"
11-
1211
group :development do
1312
gem "rake"
1413
gem "stackprof", platforms: :mri

Gemfile.lock

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,52 @@
11
GIT
22
remote: https://github.com/ruby/rbs.git
3-
revision: bcc737da3c8c625d55d9b8856d9b8399b92a32d4
3+
revision: d86ab02eb7e41343b8391bc38e349b40c7e72b15
44
specs:
5-
rbs (3.5.1)
5+
rbs (4.0.0.dev.4)
66
logger
7+
prism (>= 1.3.0)
8+
tsort
9+
10+
PATH
11+
remote: .
12+
specs:
13+
typeprof (0.30.1)
14+
prism (>= 1.4.0)
15+
rbs (>= 3.6.0)
716

817
GEM
918
remote: https://rubygems.org/
1019
specs:
1120
coverage-helpers (1.0.0)
12-
docile (1.4.0)
13-
logger (1.6.0)
14-
power_assert (2.0.3)
15-
prism (1.4.0)
16-
rake (13.2.1)
21+
docile (1.4.1)
22+
logger (1.7.0)
23+
power_assert (3.0.0)
24+
prism (1.6.0)
25+
rake (13.3.1)
1726
simplecov (0.22.0)
1827
docile (~> 1.1)
1928
simplecov-html (~> 0.11)
2029
simplecov_json_formatter (~> 0.1)
21-
simplecov-html (0.12.3)
30+
simplecov-html (0.13.2)
2231
simplecov_json_formatter (0.1.4)
23-
stackprof (0.2.26)
24-
test-unit (3.6.2)
32+
stackprof (0.2.27)
33+
test-unit (3.7.1)
2534
power_assert
35+
tsort (0.2.0)
2636

2737
PLATFORMS
2838
ruby
2939
x86_64-linux
3040

3141
DEPENDENCIES
3242
coverage-helpers
33-
prism (>= 1.4.0)
3443
rake
3544
rbs!
3645
simplecov
3746
simplecov-html
3847
stackprof
3948
test-unit
49+
typeprof!
4050

4151
BUNDLED WITH
42-
2.6.8
52+
2.6.9

typeprof.gemspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,6 @@ Gem::Specification.new do |spec|
2828
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
2929
spec.require_paths = ["lib"]
3030

31+
spec.add_runtime_dependency "prism", ">= 1.4.0"
3132
spec.add_runtime_dependency "rbs", ">= 3.6.0"
3233
end

0 commit comments

Comments
 (0)