cocoapods-byte-csjm 0.0.3 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 557aba2b4be3b65803702667f275d8e26d58a9b649731570920cb10a2a3283d0
4
- data.tar.gz: 38fb1f7a1fb6e6ba068c9b6ebac4238f6261ac39829f6a67bfda43f6014067aa
3
+ metadata.gz: b2bf878c15732509bc30dcc30f14147ae2dd6058de8b4e8cf5e18a989ee647c7
4
+ data.tar.gz: 97332a49cd1b3f203dbaa2d6b5aafde72042b07d9680ee1f7258884a456ac51b
5
5
  SHA512:
6
- metadata.gz: da1aeb813ffa790f061b05f34804bf12b3d5c292e6b31bd9bdfbbd023d523f66cb1c3805cdc28f51fc5343c2d4383c02582c022ed5cc651c5c72aba56f397b93
7
- data.tar.gz: 855c37ba8174dc683bc872cbff1d75ec5105f3e5e7c209904ba5c60a19a7109a63bb9eb8fff27c1d1281bc466fca716694a8d595f9a0bbd8f2ffe5eb45337f2d
6
+ metadata.gz: bbedd80456217eb50eb8d7b5dcd1d3d62096fca8e4a81ef0421bb12bfcfbe0c30ade213f09263ba0811ffd6c32ad795979c62b716a3ef11bcd5b9ffe1ad63835
7
+ data.tar.gz: 5bcba4e101ff5ede226631888532342df49c223ea412144cb34f7400e32ccc99301ffec34810c737a6b9458cc8e0f4af4bc7b616640a0e9b385c3129d2da65a2
data/Gemfile ADDED
@@ -0,0 +1,8 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in cocoapods-byte-csjm.gemspec
4
+ gemspec
5
+
6
+ group :development do
7
+ gem 'cocoapods'
8
+ end
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2023 zhangtianhao.1230@bytedance.com <zhangtianhao.1230@bytedance.com>
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,11 @@
1
+ # cocoapods-byte-csjm
2
+
3
+ A description of cocoapods-byte-csjm2.
4
+
5
+ ## Installation
6
+
7
+ $ gem install cocoapods-byte-csjm
8
+
9
+ ## Usage
10
+
11
+ $ pod spec csjm POD_NAME
data/Rakefile ADDED
@@ -0,0 +1,13 @@
1
+ require 'bundler/gem_tasks'
2
+
3
+ def specs(dir)
4
+ FileList["spec/#{dir}/*_spec.rb"].shuffle.join(' ')
5
+ end
6
+
7
+ desc 'Runs all the specs'
8
+ task :specs do
9
+ sh "bundle exec bacon #{specs('**')}"
10
+ end
11
+
12
+ task :default => :specs
13
+
@@ -0,0 +1,24 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'cocoapods-byte-csjm/gem_version.rb'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = 'cocoapods-byte-csjm'
8
+ spec.version = CocoapodsByteCsjm::VERSION
9
+ spec.authors = ['zhangtianhao.1230@bytedance.com']
10
+ spec.email = ['zhangtianhao.1230@bytedance.com']
11
+ # spec.description = 'a plugin for csjm'
12
+ spec.summary ='a plugin for csjm'
13
+ spec.homepage = 'https://github.com/EXAMPLE/cocoapods-byte-csjm'
14
+ spec.license = 'MIT'
15
+
16
+ spec.files = `git ls-files`.split($/)
17
+ # spec.files = Dir['lib/**/*']
18
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
19
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
20
+ spec.require_paths = ['lib']
21
+ spec.add_dependency "cocoapods", '>= 1.1.1', '< 2.0'
22
+ spec.add_development_dependency 'bundler', '~> 1.3'
23
+ spec.add_development_dependency 'rake'
24
+ end
@@ -1,5 +1,5 @@
1
1
  module CocoapodsByteCsjm
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.5"
3
3
  class Version
4
4
  def self.version
5
5
  VERSION
@@ -500,6 +500,7 @@ module GM
500
500
  end
501
501
 
502
502
  def self.get_package_name
503
+
503
504
  project_path = Pod::Config.instance.project_root
504
505
  # pattern = File.join(project_path, '*.xcodeproj') # 匹配所有子目录下的 .xcodeproj 文件
505
506
  # xcodeproj_path = Dir.glob(pattern).first
@@ -521,7 +522,7 @@ module GM
521
522
 
522
523
  def self.request_adapter(m_version, adn_list)
523
524
 
524
- package_name = get_package_name
525
+ package_name = ['com.bytedance.gromore-inhouse'] ##get_package_name
525
526
  body = Hash["package_name"=>package_name, "mediation_version"=>m_version, "os_type"=>"ios", "list"=>adn_list]
526
527
  Pod::UserInterface.section '[DEBUG]CSJM plugin Network request data' do
527
528
  puts "请求信息:#{body}"
@@ -698,11 +699,8 @@ module Pod
698
699
 
699
700
  def use_gm_adapter_update!(option)
700
701
  @global_gm_build_config = GM::Recorder.instance.find_global_note option
701
-
702
-
703
702
  end
704
703
 
705
-
706
704
  alias_method :original_parse_inhibit_warnings, :parse_inhibit_warnings
707
705
  def parse_inhibit_warnings(name, requirements)
708
706
 
@@ -0,0 +1,12 @@
1
+ require File.expand_path('../../spec_helper', __FILE__)
2
+
3
+ module Pod
4
+ describe Command::Csjm do
5
+ describe 'CLAide' do
6
+ it 'registers it self' do
7
+ Command.parse(%w{ csjm }).should.be.instance_of Command::Csjm
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 CHANGED
@@ -1,15 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-byte-csjm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - zhangtianhao.1230@bytedance.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-01 00:00:00.000000000 Z
11
+ date: 2023-08-04 00:00:00.000000000 Z
12
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: 1.1.1
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '2.0'
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: 1.1.1
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '2.0'
13
33
  - !ruby/object:Gem::Dependency
14
34
  name: bundler
15
35
  requirement: !ruby/object:Gem::Requirement
@@ -38,13 +58,18 @@ dependencies:
38
58
  - - ">="
39
59
  - !ruby/object:Gem::Version
40
60
  version: '0'
41
- description: A short description of cocoapods-byte-csjm.
61
+ description:
42
62
  email:
43
63
  - zhangtianhao.1230@bytedance.com
44
64
  executables: []
45
65
  extensions: []
46
66
  extra_rdoc_files: []
47
67
  files:
68
+ - Gemfile
69
+ - LICENSE.txt
70
+ - README.md
71
+ - Rakefile
72
+ - cocoapods-byte-csjm.gemspec
48
73
  - lib/cocoapods-byte-csjm.rb
49
74
  - lib/cocoapods-byte-csjm/config.rb
50
75
  - lib/cocoapods-byte-csjm/csj.rb
@@ -52,6 +77,8 @@ files:
52
77
  - lib/cocoapods-byte-csjm/gm.rb
53
78
  - lib/cocoapods-byte-csjm/net.rb
54
79
  - lib/cocoapods_plugin.rb
80
+ - spec/command/csjm_spec.rb
81
+ - spec/spec_helper.rb
55
82
  homepage: https://github.com/EXAMPLE/cocoapods-byte-csjm
56
83
  licenses:
57
84
  - MIT
@@ -74,5 +101,7 @@ requirements: []
74
101
  rubygems_version: 3.2.3
75
102
  signing_key:
76
103
  specification_version: 4
77
- summary: A longer description of cocoapods-byte-csjm.
78
- test_files: []
104
+ summary: a plugin for csjm
105
+ test_files:
106
+ - spec/command/csjm_spec.rb
107
+ - spec/spec_helper.rb