isource_lldb 0.3.0 → 0.3.1

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rubygems_plugin.rb +9 -3
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c979a29a700014a28531eb8a9fe514ea1718a8461444382e8cb5a2c3e69c4a5d
4
- data.tar.gz: c83ca09991f64b8a18c9483c25a4da45f2a0cd55de188ed20272203b50a16e70
3
+ metadata.gz: 73415557f2ef12e39ec22749fd151e42d9aa4b00c209a2987734cd2c334b387a
4
+ data.tar.gz: e750e0f940c7158164cdea81995ef76e6ba701724c89eab7c87da33cbc13525a
5
5
  SHA512:
6
- metadata.gz: 3609f144b237a99a3ae71426696c17fbc4563c43250356740f5f907421a6e8dafeda4462c5f9fd2bcda0cd7b6bc97c97b9cb014201033e66096db180de45a916
7
- data.tar.gz: df20d2c0f05f8ec2f9e03eee1bcfc9f95d66bb8fd45210e8cb31f66d7784b363317a34a5d38e91458e678a65f67119b2f2e4833fd35a419595b7093d3a3f859c
6
+ metadata.gz: 4247f762795ef62d6e274bf0a999fd97100716bc7f38c4f15a0aeedea971354f7571f0bd6e0893adea09fd824f30496d25c2362c9c462283fdf932e25ffa45dc
7
+ data.tar.gz: 4208d9df59a4fc7cbf9c9bb526bb2eb23762229bf85d3b07cb4cbce48c2e38915e97e497392a7f496cc4fea0ff9ef3bf22f180b09eef154817424d6ef1680909
@@ -7,8 +7,10 @@ Lldb_source_path = File.expand_path('~')+'/.isource_lldb'
7
7
  Lldb_file_path = File.expand_path('~')+'/.isource_lldb/isource_lldb.py'
8
8
  Commond_str = 'command script import '+Lldb_file_path
9
9
 
10
- Gem.post_install do
11
-
10
+ Gem.post_install do |installer|
11
+ if installer.spec.name != "isource_lldb"
12
+ return
13
+ end
12
14
  # 配置 .lldbinit
13
15
  if File.exist?(Lldb_init_path)
14
16
  f=File.new(Lldb_init_path,"a+")
@@ -78,7 +80,11 @@ def remove_file()
78
80
 
79
81
  end
80
82
 
81
- Gem.post_uninstall do
83
+ Gem.post_uninstall do |installer|
84
+ if installer.spec.name != "isource_lldb"
85
+ return
86
+ end
87
+
82
88
  if File.exist?(Lldb_source_path)
83
89
  remove_dir(Lldb_source_path)
84
90
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: isource_lldb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ningyuan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-16 00:00:00.000000000 Z
11
+ date: 2021-06-21 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: An plugin of LLDB.
14
14
  email: