cocoapods-static_framework 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +3 -0
- data/Gemfile +13 -0
- data/LICENSE.txt +22 -0
- data/README.md +11 -0
- data/Rakefile +13 -0
- data/cocoapods-static_framework.gemspec +24 -0
- data/lib/cocoapods-static_framework.rb +1 -0
- data/lib/cocoapods-static_framework/command.rb +1 -0
- data/lib/cocoapods-static_framework/command/static_framework.rb +49 -0
- data/lib/cocoapods-static_framework/gem_version.rb +3 -0
- data/lib/cocoapods_plugin.rb +1 -0
- data/spec/command/static_framework_spec.rb +12 -0
- data/spec/spec_helper.rb +50 -0
- metadata +101 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: edc81724e9aaa4ee3171f945f89f3a80c5eee3da
|
4
|
+
data.tar.gz: c6521db81b3283657af040a391ba277b6fcedf70
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: caec841206e888d4174b7bab3c6824dda0cb416ab42ababbf262dfee5bd7b203080fd9b9a722b7b745322b61b8e8442e8494532f6dad93c0d6aa21c05afb72e5
|
7
|
+
data.tar.gz: 4827053da5566483e9299d53772342372341db35a020f41b4a9ffb82d79152a2f6e34de02934030717f81980a692403aa9df4a92220dc8091a8599083ba659fe
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2018 coolkernel <coolkernel@163.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
data/Rakefile
ADDED
@@ -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-static_framework/gem_version.rb'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = 'cocoapods-static_framework'
|
8
|
+
spec.version = CocoapodsStatic_framework::VERSION
|
9
|
+
spec.authors = ['coolkernel']
|
10
|
+
spec.email = ['coolkernel@163.com']
|
11
|
+
spec.description = %q{A short description of cocoapods-static_framework.}
|
12
|
+
spec.summary = %q{A longer description of cocoapods-static_framework.}
|
13
|
+
spec.homepage = 'https://github.com/EXAMPLE/cocoapods-static_framework'
|
14
|
+
spec.license = 'MIT'
|
15
|
+
|
16
|
+
spec.files = `git ls-files`.split($/)
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ['lib']
|
20
|
+
|
21
|
+
spec.add_dependency "cocoapods", ">= 1.5.0"
|
22
|
+
spec.add_development_dependency 'bundler', '~> 1.3'
|
23
|
+
spec.add_development_dependency 'rake'
|
24
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
require 'cocoapods-static_framework/gem_version'
|
@@ -0,0 +1 @@
|
|
1
|
+
require 'cocoapods-static_framework/command/static_framework'
|
@@ -0,0 +1,49 @@
|
|
1
|
+
module Pod
|
2
|
+
class Podfile
|
3
|
+
def static_framework!
|
4
|
+
require 'cocoapods-static-swift-framework/command/patch/static_pod.rb'
|
5
|
+
end
|
6
|
+
end
|
7
|
+
class Command
|
8
|
+
# This is an example of a cocoapods plugin adding a top-level subcommand
|
9
|
+
# to the 'pod' command.
|
10
|
+
#
|
11
|
+
# You can also create subcommands of existing or new commands. Say you
|
12
|
+
# wanted to add a subcommand to `list` to show newly deprecated pods,
|
13
|
+
# (e.g. `pod list deprecated`), there are a few things that would need
|
14
|
+
# to change.
|
15
|
+
#
|
16
|
+
# - move this file to `lib/pod/command/list/deprecated.rb` and update
|
17
|
+
# the class to exist in the the Pod::Command::List namespace
|
18
|
+
# - change this class to extend from `List` instead of `Command`. This
|
19
|
+
# tells the plugin system that it is a subcommand of `list`.
|
20
|
+
# - edit `lib/cocoapods_plugins.rb` to require this file
|
21
|
+
#
|
22
|
+
# @todo Create a PR to add your plugin to CocoaPods/cocoapods.org
|
23
|
+
# in the `plugins.json` file, once your plugin is released.
|
24
|
+
#
|
25
|
+
class Static_framework < Command
|
26
|
+
self.summary = 'Short description of cocoapods-static_framework.'
|
27
|
+
|
28
|
+
self.description = <<-DESC
|
29
|
+
Longer description of cocoapods-static_framework.
|
30
|
+
DESC
|
31
|
+
|
32
|
+
self.arguments = 'NAME'
|
33
|
+
|
34
|
+
def initialize(argv)
|
35
|
+
@name = argv.shift_argument
|
36
|
+
super
|
37
|
+
end
|
38
|
+
|
39
|
+
def validate!
|
40
|
+
super
|
41
|
+
help! 'A Pod name is required.' unless @name
|
42
|
+
end
|
43
|
+
|
44
|
+
def run
|
45
|
+
UI.puts "Add your implementation for the cocoapods-static_framework plugin in #{__FILE__}"
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
require 'cocoapods-static_framework/command'
|
@@ -0,0 +1,12 @@
|
|
1
|
+
require File.expand_path('../../spec_helper', __FILE__)
|
2
|
+
|
3
|
+
module Pod
|
4
|
+
describe Command::Static_framework do
|
5
|
+
describe 'CLAide' do
|
6
|
+
it 'registers it self' do
|
7
|
+
Command.parse(%w{ static_framework }).should.be.instance_of Command::Static_framework
|
8
|
+
end
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
data/spec/spec_helper.rb
ADDED
@@ -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,101 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: cocoapods-static_framework
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- coolkernel
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2018-05-07 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: 1.5.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 1.5.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.3'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.3'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
description: A short description of cocoapods-static_framework.
|
56
|
+
email:
|
57
|
+
- coolkernel@163.com
|
58
|
+
executables: []
|
59
|
+
extensions: []
|
60
|
+
extra_rdoc_files: []
|
61
|
+
files:
|
62
|
+
- ".gitignore"
|
63
|
+
- Gemfile
|
64
|
+
- LICENSE.txt
|
65
|
+
- README.md
|
66
|
+
- Rakefile
|
67
|
+
- cocoapods-static_framework.gemspec
|
68
|
+
- lib/cocoapods-static_framework.rb
|
69
|
+
- lib/cocoapods-static_framework/command.rb
|
70
|
+
- lib/cocoapods-static_framework/command/static_framework.rb
|
71
|
+
- lib/cocoapods-static_framework/gem_version.rb
|
72
|
+
- lib/cocoapods_plugin.rb
|
73
|
+
- spec/command/static_framework_spec.rb
|
74
|
+
- spec/spec_helper.rb
|
75
|
+
homepage: https://github.com/EXAMPLE/cocoapods-static_framework
|
76
|
+
licenses:
|
77
|
+
- MIT
|
78
|
+
metadata: {}
|
79
|
+
post_install_message:
|
80
|
+
rdoc_options: []
|
81
|
+
require_paths:
|
82
|
+
- lib
|
83
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
84
|
+
requirements:
|
85
|
+
- - ">="
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: '0'
|
88
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
89
|
+
requirements:
|
90
|
+
- - ">="
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
version: '0'
|
93
|
+
requirements: []
|
94
|
+
rubyforge_project:
|
95
|
+
rubygems_version: 2.6.14
|
96
|
+
signing_key:
|
97
|
+
specification_version: 4
|
98
|
+
summary: A longer description of cocoapods-static_framework.
|
99
|
+
test_files:
|
100
|
+
- spec/command/static_framework_spec.rb
|
101
|
+
- spec/spec_helper.rb
|