cocoapods-lhj-bin 0.0.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 (64) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +22 -0
  3. data/README.md +11 -0
  4. data/lib/cocoapods-lhj-bin.rb +2 -0
  5. data/lib/cocoapods-lhj-bin/command.rb +1 -0
  6. data/lib/cocoapods-lhj-bin/command/bin.rb +59 -0
  7. data/lib/cocoapods-lhj-bin/command/bin/archive.rb +233 -0
  8. data/lib/cocoapods-lhj-bin/command/bin/auto.rb +198 -0
  9. data/lib/cocoapods-lhj-bin/command/bin/code.rb +232 -0
  10. data/lib/cocoapods-lhj-bin/command/bin/dup.rb +78 -0
  11. data/lib/cocoapods-lhj-bin/command/bin/init.rb +69 -0
  12. data/lib/cocoapods-lhj-bin/command/bin/initHotKey.rb +70 -0
  13. data/lib/cocoapods-lhj-bin/command/bin/install.rb +44 -0
  14. data/lib/cocoapods-lhj-bin/command/bin/lhj.rb +46 -0
  15. data/lib/cocoapods-lhj-bin/command/bin/lib/lint.rb +69 -0
  16. data/lib/cocoapods-lhj-bin/command/bin/repo/update.rb +43 -0
  17. data/lib/cocoapods-lhj-bin/command/bin/spec/create.rb +73 -0
  18. data/lib/cocoapods-lhj-bin/command/bin/spec/push.rb +115 -0
  19. data/lib/cocoapods-lhj-bin/command/bin/update.rb +153 -0
  20. data/lib/cocoapods-lhj-bin/config/config.rb +137 -0
  21. data/lib/cocoapods-lhj-bin/config/config_asker.rb +57 -0
  22. data/lib/cocoapods-lhj-bin/config/config_builder.rb +216 -0
  23. data/lib/cocoapods-lhj-bin/config/config_hot_key.rb +103 -0
  24. data/lib/cocoapods-lhj-bin/config/config_hot_key_asker.rb +57 -0
  25. data/lib/cocoapods-lhj-bin/gem_version.rb +9 -0
  26. data/lib/cocoapods-lhj-bin/helpers.rb +5 -0
  27. data/lib/cocoapods-lhj-bin/helpers/Info.plist +0 -0
  28. data/lib/cocoapods-lhj-bin/helpers/build_helper.rb +158 -0
  29. data/lib/cocoapods-lhj-bin/helpers/build_utils.rb +93 -0
  30. data/lib/cocoapods-lhj-bin/helpers/framework.rb +85 -0
  31. data/lib/cocoapods-lhj-bin/helpers/framework_builder.rb +444 -0
  32. data/lib/cocoapods-lhj-bin/helpers/library.rb +54 -0
  33. data/lib/cocoapods-lhj-bin/helpers/library_builder.rb +90 -0
  34. data/lib/cocoapods-lhj-bin/helpers/sources_helper.rb +36 -0
  35. data/lib/cocoapods-lhj-bin/helpers/spec_creator.rb +168 -0
  36. data/lib/cocoapods-lhj-bin/helpers/spec_files_helper.rb +75 -0
  37. data/lib/cocoapods-lhj-bin/helpers/spec_source_creator.rb +227 -0
  38. data/lib/cocoapods-lhj-bin/helpers/upload_helper.rb +87 -0
  39. data/lib/cocoapods-lhj-bin/native.rb +19 -0
  40. data/lib/cocoapods-lhj-bin/native/acknowledgements.rb +27 -0
  41. data/lib/cocoapods-lhj-bin/native/analyzer.rb +55 -0
  42. data/lib/cocoapods-lhj-bin/native/file_accessor.rb +28 -0
  43. data/lib/cocoapods-lhj-bin/native/installation_options.rb +25 -0
  44. data/lib/cocoapods-lhj-bin/native/installer.rb +135 -0
  45. data/lib/cocoapods-lhj-bin/native/linter.rb +26 -0
  46. data/lib/cocoapods-lhj-bin/native/path_source.rb +33 -0
  47. data/lib/cocoapods-lhj-bin/native/pod_source_installer.rb +19 -0
  48. data/lib/cocoapods-lhj-bin/native/pod_target_installer.rb +94 -0
  49. data/lib/cocoapods-lhj-bin/native/podfile.rb +91 -0
  50. data/lib/cocoapods-lhj-bin/native/podfile_env.rb +37 -0
  51. data/lib/cocoapods-lhj-bin/native/podfile_generator.rb +199 -0
  52. data/lib/cocoapods-lhj-bin/native/podspec_finder.rb +25 -0
  53. data/lib/cocoapods-lhj-bin/native/resolver.rb +230 -0
  54. data/lib/cocoapods-lhj-bin/native/sandbox_analyzer.rb +34 -0
  55. data/lib/cocoapods-lhj-bin/native/source.rb +35 -0
  56. data/lib/cocoapods-lhj-bin/native/sources_manager.rb +20 -0
  57. data/lib/cocoapods-lhj-bin/native/specification.rb +31 -0
  58. data/lib/cocoapods-lhj-bin/native/target_validator.rb +41 -0
  59. data/lib/cocoapods-lhj-bin/native/validator.rb +40 -0
  60. data/lib/cocoapods-lhj-bin/source_provider_hook.rb +66 -0
  61. data/lib/cocoapods_plugin.rb +2 -0
  62. data/spec/command/bin_spec.rb +12 -0
  63. data/spec/spec_helper.rb +50 -0
  64. metadata +177 -0
@@ -0,0 +1,2 @@
1
+ require 'cocoapods-lhj-bin/command'
2
+ require 'cocoapods-lhj-bin/source_provider_hook'
@@ -0,0 +1,12 @@
1
+ require File.expand_path('../../spec_helper', __FILE__)
2
+
3
+ module Pod
4
+ describe Command::Bin do
5
+ describe 'CLAide' do
6
+ it 'registers it self' do
7
+ Command.parse(%w{ bin }).should.be.instance_of Command::Bin
8
+ end
9
+ end
10
+ end
11
+ end
12
+
@@ -0,0 +1,50 @@
1
+ require 'pathname'
2
+ ROOT = Pathname.new(File.expand_path('../../', __FILE__))
3
+ $:.unshift((ROOT + 'lib').to_s)
4
+ $:.unshift((ROOT + 'spec').to_s)
5
+
6
+ require 'bundler/setup'
7
+ require 'bacon'
8
+ require 'mocha-on-bacon'
9
+ require 'pretty_bacon'
10
+ require 'pathname'
11
+ require 'cocoapods'
12
+
13
+ Mocha::Configuration.prevent(:stubbing_non_existent_method)
14
+
15
+ require 'cocoapods_plugin'
16
+
17
+ #-----------------------------------------------------------------------------#
18
+
19
+ module Pod
20
+
21
+ # Disable the wrapping so the output is deterministic in the tests.
22
+ #
23
+ UI.disable_wrap = true
24
+
25
+ # Redirects the messages to an internal store.
26
+ #
27
+ module UI
28
+ @output = ''
29
+ @warnings = ''
30
+
31
+ class << self
32
+ attr_accessor :output
33
+ attr_accessor :warnings
34
+
35
+ def puts(message = '')
36
+ @output << "#{message}\n"
37
+ end
38
+
39
+ def warn(message = '', actions = [])
40
+ @warnings << "#{message}\n"
41
+ end
42
+
43
+ def print(message)
44
+ @output << message
45
+ end
46
+ end
47
+ end
48
+ end
49
+
50
+ #-----------------------------------------------------------------------------#
metadata ADDED
@@ -0,0 +1,177 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: cocoapods-lhj-bin
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - lihaijian
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2021-04-16 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: cocoapods
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: cocoapods-generate
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 2.0.1
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 2.0.1
41
+ - !ruby/object:Gem::Dependency
42
+ name: parallel
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: bundler
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ description: A short description of cocoapods-lhj-bin.
84
+ email:
85
+ - sanan.li@qq.com
86
+ executables: []
87
+ extensions: []
88
+ extra_rdoc_files: []
89
+ files:
90
+ - LICENSE.txt
91
+ - README.md
92
+ - lib/cocoapods-lhj-bin.rb
93
+ - lib/cocoapods-lhj-bin/command.rb
94
+ - lib/cocoapods-lhj-bin/command/bin.rb
95
+ - lib/cocoapods-lhj-bin/command/bin/archive.rb
96
+ - lib/cocoapods-lhj-bin/command/bin/auto.rb
97
+ - lib/cocoapods-lhj-bin/command/bin/code.rb
98
+ - lib/cocoapods-lhj-bin/command/bin/dup.rb
99
+ - lib/cocoapods-lhj-bin/command/bin/init.rb
100
+ - lib/cocoapods-lhj-bin/command/bin/initHotKey.rb
101
+ - lib/cocoapods-lhj-bin/command/bin/install.rb
102
+ - lib/cocoapods-lhj-bin/command/bin/lhj.rb
103
+ - lib/cocoapods-lhj-bin/command/bin/lib/lint.rb
104
+ - lib/cocoapods-lhj-bin/command/bin/repo/update.rb
105
+ - lib/cocoapods-lhj-bin/command/bin/spec/create.rb
106
+ - lib/cocoapods-lhj-bin/command/bin/spec/push.rb
107
+ - lib/cocoapods-lhj-bin/command/bin/update.rb
108
+ - lib/cocoapods-lhj-bin/config/config.rb
109
+ - lib/cocoapods-lhj-bin/config/config_asker.rb
110
+ - lib/cocoapods-lhj-bin/config/config_builder.rb
111
+ - lib/cocoapods-lhj-bin/config/config_hot_key.rb
112
+ - lib/cocoapods-lhj-bin/config/config_hot_key_asker.rb
113
+ - lib/cocoapods-lhj-bin/gem_version.rb
114
+ - lib/cocoapods-lhj-bin/helpers.rb
115
+ - lib/cocoapods-lhj-bin/helpers/Info.plist
116
+ - lib/cocoapods-lhj-bin/helpers/build_helper.rb
117
+ - lib/cocoapods-lhj-bin/helpers/build_utils.rb
118
+ - lib/cocoapods-lhj-bin/helpers/framework.rb
119
+ - lib/cocoapods-lhj-bin/helpers/framework_builder.rb
120
+ - lib/cocoapods-lhj-bin/helpers/library.rb
121
+ - lib/cocoapods-lhj-bin/helpers/library_builder.rb
122
+ - lib/cocoapods-lhj-bin/helpers/sources_helper.rb
123
+ - lib/cocoapods-lhj-bin/helpers/spec_creator.rb
124
+ - lib/cocoapods-lhj-bin/helpers/spec_files_helper.rb
125
+ - lib/cocoapods-lhj-bin/helpers/spec_source_creator.rb
126
+ - lib/cocoapods-lhj-bin/helpers/upload_helper.rb
127
+ - lib/cocoapods-lhj-bin/native.rb
128
+ - lib/cocoapods-lhj-bin/native/acknowledgements.rb
129
+ - lib/cocoapods-lhj-bin/native/analyzer.rb
130
+ - lib/cocoapods-lhj-bin/native/file_accessor.rb
131
+ - lib/cocoapods-lhj-bin/native/installation_options.rb
132
+ - lib/cocoapods-lhj-bin/native/installer.rb
133
+ - lib/cocoapods-lhj-bin/native/linter.rb
134
+ - lib/cocoapods-lhj-bin/native/path_source.rb
135
+ - lib/cocoapods-lhj-bin/native/pod_source_installer.rb
136
+ - lib/cocoapods-lhj-bin/native/pod_target_installer.rb
137
+ - lib/cocoapods-lhj-bin/native/podfile.rb
138
+ - lib/cocoapods-lhj-bin/native/podfile_env.rb
139
+ - lib/cocoapods-lhj-bin/native/podfile_generator.rb
140
+ - lib/cocoapods-lhj-bin/native/podspec_finder.rb
141
+ - lib/cocoapods-lhj-bin/native/resolver.rb
142
+ - lib/cocoapods-lhj-bin/native/sandbox_analyzer.rb
143
+ - lib/cocoapods-lhj-bin/native/source.rb
144
+ - lib/cocoapods-lhj-bin/native/sources_manager.rb
145
+ - lib/cocoapods-lhj-bin/native/specification.rb
146
+ - lib/cocoapods-lhj-bin/native/target_validator.rb
147
+ - lib/cocoapods-lhj-bin/native/validator.rb
148
+ - lib/cocoapods-lhj-bin/source_provider_hook.rb
149
+ - lib/cocoapods_plugin.rb
150
+ - spec/command/bin_spec.rb
151
+ - spec/spec_helper.rb
152
+ homepage: https://github.com/EXAMPLE/cocoapods-lhj-bin
153
+ licenses:
154
+ - MIT
155
+ metadata: {}
156
+ post_install_message:
157
+ rdoc_options: []
158
+ require_paths:
159
+ - lib
160
+ required_ruby_version: !ruby/object:Gem::Requirement
161
+ requirements:
162
+ - - ">="
163
+ - !ruby/object:Gem::Version
164
+ version: '0'
165
+ required_rubygems_version: !ruby/object:Gem::Requirement
166
+ requirements:
167
+ - - ">="
168
+ - !ruby/object:Gem::Version
169
+ version: '0'
170
+ requirements: []
171
+ rubygems_version: 3.1.4
172
+ signing_key:
173
+ specification_version: 4
174
+ summary: A longer description of cocoapods-lhj-bin.
175
+ test_files:
176
+ - spec/command/bin_spec.rb
177
+ - spec/spec_helper.rb