cocoapods-bin-cache 0.0.1 → 0.0.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2309086892987cacb0dbda0a71142ba55cee8d0a1380d92b03b8e8aa2c5ed0ed
4
- data.tar.gz: df110ea74f0390f05cb7bc96d3d44337392f1a8e5dbf49dabccdc515c63363e4
3
+ metadata.gz: 8b4fd20b927308bfca0766412475984fd36590e4f81b10c4c5a0f7ff9e445662
4
+ data.tar.gz: a8009fe933b592759ee647e9c11a620b40a91a49dc728c0274f555d8d702ddcf
5
5
  SHA512:
6
- metadata.gz: 59a83cb71c056a5f4c80f111a1918ec412ab6113e9e66ca989ad47f75a95d2ed123e4a978bfd00c0ee106fa8cb17a7418e47e50c20d38efc2d9a2281bba72a3c
7
- data.tar.gz: 92d443b6386ea6cb2505fc21262a1054591cb3c1c2cf9623fd1d8f6871384a3662ee5a7977d9bc25f1f1ea9adb9a295b4bafc395f131a84798cdebaca0425cc8
6
+ metadata.gz: cccb7fef0f0d1af198b05e800ed88737db938fa27aa5a5907573197dac32ec6345ce60bbe071dcfd23027ff48455cdae042793134c39803de67f2bd9e06be9de
7
+ data.tar.gz: a96b54ab7a68a9697e6aeef68ff21cc7a6f6f8e7c05f7d46fbf146b48ba65a803afaab57ba25d4261100e96f623f8e8774d1be29f0819f67346413d99167212c
data/.DS_Store ADDED
Binary file
data/Gemfile ADDED
@@ -0,0 +1,13 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in cocoapods-bin-cache.gemspec
4
+ gemspec
5
+
6
+ group :development do
7
+ gem 'cocoapods'
8
+
9
+ gem 'mocha'
10
+ gem 'bacon'
11
+ gem 'mocha-on-bacon'
12
+ gem 'prettybacon'
13
+ end
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2022 royliu1990 <royliu.chengdu@gmail.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,13 @@
1
+ # cocoapods-bin-cache
2
+
3
+ A patch for cocoapods-binary by which you can cache prebuild binaries in a local path specified,besides,there are some function to eliminate bundle/dsyms copy bugs of cocoapods-binary.
4
+
5
+ ## Installation
6
+ $ gem install cocoapods-binary
7
+ $ gem install cocoapods-bin-cache
8
+
9
+ ## Usage
10
+ in Podfile:
11
+ plugin 'cocoapods-binary-cache'
12
+ fix_bundle_copy (optional, when you prebuild in static framework,you may encounter bundle copy problem,just fix it by call this method)
13
+ fix_dsyms_copy (optional,just like fix_bundle_copy,this is for dsyms_copy during dynamic framework prebuilding)
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
+
Binary file
@@ -0,0 +1,27 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'cocoapods-bin-cache/gem_version.rb'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = 'cocoapods-bin-cache'
8
+ spec.version = CocoapodsBinCache::VERSION
9
+ spec.authors = ['royliu1990']
10
+ spec.email = ['309225529@qq.com']
11
+ spec.description = %q{A patch for cocoapods-binary by which you can cache prebuild binaries in a local path specified,besides,there are some function to eliminate bundle/dsyms copy bugs of cocoapods-binary.
12
+ }
13
+ spec.summary = %q{Cocoapods-bianry cache patch}
14
+ spec.homepage = 'https://github.com/royliu1990/cocoapods-bin-cache.git'
15
+ spec.license = 'MIT'
16
+
17
+ spec.files = `git ls-files`.split($/)
18
+ # spec.files = Dir['lib/**/*']
19
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
20
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
21
+ spec.require_paths = ['lib']
22
+
23
+ spec.add_dependency "cocoapods-binary"
24
+
25
+ spec.add_development_dependency 'bundler', '~> 1.3'
26
+ spec.add_development_dependency 'rake'
27
+ end
@@ -1,3 +1,3 @@
1
1
  module CocoapodsBinCache
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -0,0 +1,12 @@
1
+ require File.expand_path('../../spec_helper', __FILE__)
2
+
3
+ module Pod
4
+ describe Command::Cache do
5
+ describe 'CLAide' do
6
+ it 'registers it self' do
7
+ Command.parse(%w{ cache }).should.be.instance_of Command::Cache
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,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-bin-cache
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - royliu1990
@@ -10,6 +10,20 @@ bindir: bin
10
10
  cert_chain: []
11
11
  date: 2022-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: cocoapods-binary
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'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: bundler
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -38,18 +52,29 @@ dependencies:
38
52
  - - ">="
39
53
  - !ruby/object:Gem::Version
40
54
  version: '0'
41
- description: A short description of cocoapods-bin-cache.
55
+ description: "A patch for cocoapods-binary by which you can cache prebuild binaries
56
+ in a local path specified,besides,there are some function to eliminate bundle/dsyms
57
+ copy bugs of cocoapods-binary.\n "
42
58
  email:
43
- - royliu.chengdu@gmail.com
59
+ - 309225529@qq.com
44
60
  executables: []
45
61
  extensions: []
46
62
  extra_rdoc_files: []
47
63
  files:
64
+ - ".DS_Store"
65
+ - Gemfile
66
+ - LICENSE.txt
67
+ - README.md
68
+ - Rakefile
69
+ - cocoapods-bin-cache-0.0.1.gem
70
+ - cocoapods-bin-cache.gemspec
48
71
  - lib/cocoapods-bin-cache.rb
49
72
  - lib/cocoapods-bin-cache/gem_version.rb
50
73
  - lib/cocoapods-binary-patch.rb
51
74
  - lib/cocoapods_plugin.rb
52
- homepage: https://github.com/EXAMPLE/cocoapods-bin-cache
75
+ - spec/command/cache_spec.rb
76
+ - spec/spec_helper.rb
77
+ homepage: https://github.com/royliu1990/cocoapods-bin-cache.git
53
78
  licenses:
54
79
  - MIT
55
80
  metadata: {}
@@ -71,5 +96,7 @@ requirements: []
71
96
  rubygems_version: 3.0.3
72
97
  signing_key:
73
98
  specification_version: 4
74
- summary: A longer description of cocoapods-bin-cache.
75
- test_files: []
99
+ summary: Cocoapods-bianry cache patch
100
+ test_files:
101
+ - spec/command/cache_spec.rb
102
+ - spec/spec_helper.rb