cocoapods-dongjia 1.0.2 → 1.0.3
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 +4 -4
- data/lib/cocoapods-dongjia/gem_version.rb +1 -1
- data/lib/helper/dongjia_version_checker.rb +23 -0
- data/lib/helper/podfile_warnings.rb +8 -0
- metadata +20 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 20e84142456adb1a7aafa2395706f044bb374b6afd2c2a9e0cc3543a202f3c7e
|
4
|
+
data.tar.gz: 64d4f993f3637cff64296e9e4616f889543a985c531e6a1ad39c589d540a4560
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab2c71217234370fc4648d13711d1e88a3a1be68310e9084ff27b90b8cf207b6e533f97f41c62e4abe3a4a8397e8f6c24c6363eb47d93d13bb46bfcea2724854
|
7
|
+
data.tar.gz: 90acc42e03382bcf0f8f47da18a51630c9bd09bfbd6e6a622f0af8017ecff2116c17e865890947284ed4bd3b129b752090fdad49b47ceae4ba9c8892ca4152a1
|
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'cocoapods-dongjia/gem_version'
|
2
|
+
require 'gems'
|
3
|
+
|
4
|
+
module Dongjia
|
5
|
+
|
6
|
+
class DongjiaVersionChecker
|
7
|
+
|
8
|
+
def self.check_version
|
9
|
+
|
10
|
+
Pod::UI.puts 'Done.'
|
11
|
+
|
12
|
+
info = Gems.info 'cocoapods-dongjia'
|
13
|
+
latest_version = info['version']
|
14
|
+
v = CocoapodsDongjia::VERSION
|
15
|
+
|
16
|
+
if v < latest_version
|
17
|
+
Pod::UI.warn "发现新版本插件(#{latest_version}),更新:[sudo] gem install cocoapods-dongjia"
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
require_relative 'dongjia_version_checker'
|
2
|
+
|
1
3
|
module Pod
|
2
4
|
|
3
5
|
class Installer
|
@@ -15,6 +17,12 @@ module Pod
|
|
15
17
|
|
16
18
|
end
|
17
19
|
|
20
|
+
origin_perform_post_install_actions = instance_method(:perform_post_install_actions)
|
21
|
+
define_method :perform_post_install_actions do
|
22
|
+
origin_perform_post_install_actions.bind(self)
|
23
|
+
Dongjia::DongjiaVersionChecker.check_version
|
24
|
+
end
|
25
|
+
|
18
26
|
end
|
19
27
|
|
20
28
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-dongjia
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jiangzhuoyi
|
@@ -28,16 +28,30 @@ dependencies:
|
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
33
|
+
version: '13.0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '13.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: gems
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.2'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
39
53
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
54
|
+
version: '1.2'
|
41
55
|
description: A short description of cocoapods-dongjia.
|
42
56
|
email:
|
43
57
|
- jiangzhuoyi@idongjia.cn
|
@@ -53,6 +67,7 @@ files:
|
|
53
67
|
- lib/dongjia_inspector.rb
|
54
68
|
- lib/dongjia_source.rb
|
55
69
|
- lib/dongjia_warning_manager.rb
|
70
|
+
- lib/helper/dongjia_version_checker.rb
|
56
71
|
- lib/helper/pod.rb
|
57
72
|
- lib/helper/podfile_local_importer.rb
|
58
73
|
- lib/helper/podfile_options.rb
|