cocoapods-Framework 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 2d78c123841f2754d11a070eccf5f35c666e2ddb
4
+ data.tar.gz: 826927ec12a54ea85fd946316a2e473b396a7242
5
+ SHA512:
6
+ metadata.gz: ae44370185a300a6865d0fc1758b09f36c1bcef83a5a94df2d229f5b809f839d5313166fdde449b759de5a1f67e676826f209d484f8679cb46f03b374adbb7a1
7
+ data.tar.gz: 8307ce9b91a719c735b5b34353de6a3c8cc276ac4d9ec29546844ce6fcface9a805deddd59da1c2717e4eef421331ba4153ea6e2fa62a0321fd596736d0c824a
data/.gitignore ADDED
@@ -0,0 +1,3 @@
1
+ .DS_Store
2
+ pkg
3
+ .idea/
data/Gemfile ADDED
@@ -0,0 +1,13 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in cocoapods-Framework.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/Gemfile.lock ADDED
@@ -0,0 +1,84 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ cocoapods-Framework (0.0.1)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ activesupport (4.2.6)
10
+ i18n (~> 0.7)
11
+ json (~> 1.7, >= 1.7.7)
12
+ minitest (~> 5.1)
13
+ thread_safe (~> 0.3, >= 0.3.4)
14
+ tzinfo (~> 1.1)
15
+ bacon (1.2.0)
16
+ claide (0.9.1)
17
+ cocoapods (0.39.0)
18
+ activesupport (>= 4.0.2)
19
+ claide (~> 0.9.1)
20
+ cocoapods-core (= 0.39.0)
21
+ cocoapods-downloader (~> 0.9.3)
22
+ cocoapods-plugins (~> 0.4.2)
23
+ cocoapods-search (~> 0.1.0)
24
+ cocoapods-stats (~> 0.6.2)
25
+ cocoapods-trunk (~> 0.6.4)
26
+ cocoapods-try (~> 0.5.1)
27
+ colored (~> 1.2)
28
+ escape (~> 0.0.4)
29
+ molinillo (~> 0.4.0)
30
+ nap (~> 1.0)
31
+ xcodeproj (~> 0.28.2)
32
+ cocoapods-core (0.39.0)
33
+ activesupport (>= 4.0.2)
34
+ fuzzy_match (~> 2.0.4)
35
+ nap (~> 1.0)
36
+ cocoapods-downloader (0.9.3)
37
+ cocoapods-plugins (0.4.2)
38
+ nap
39
+ cocoapods-search (0.1.0)
40
+ cocoapods-stats (0.6.2)
41
+ cocoapods-trunk (0.6.4)
42
+ nap (>= 0.8, < 2.0)
43
+ netrc (= 0.7.8)
44
+ cocoapods-try (0.5.1)
45
+ colored (1.2)
46
+ escape (0.0.4)
47
+ fuzzy_match (2.0.4)
48
+ i18n (0.7.0)
49
+ json (1.8.3)
50
+ metaclass (0.0.4)
51
+ minitest (5.9.0)
52
+ mocha (1.1.0)
53
+ metaclass (~> 0.0.1)
54
+ mocha-on-bacon (0.2.2)
55
+ mocha (>= 0.13.0)
56
+ molinillo (0.4.5)
57
+ nap (1.1.0)
58
+ netrc (0.7.8)
59
+ prettybacon (0.0.2)
60
+ bacon (~> 1.2)
61
+ rake (11.2.2)
62
+ thread_safe (0.3.5)
63
+ tzinfo (1.2.2)
64
+ thread_safe (~> 0.1)
65
+ xcodeproj (0.28.2)
66
+ activesupport (>= 3)
67
+ claide (~> 0.9.1)
68
+ colored (~> 1.2)
69
+
70
+ PLATFORMS
71
+ ruby
72
+
73
+ DEPENDENCIES
74
+ bacon
75
+ bundler (~> 1.3)
76
+ cocoapods
77
+ cocoapods-Framework!
78
+ mocha
79
+ mocha-on-bacon
80
+ prettybacon
81
+ rake
82
+
83
+ BUNDLED WITH
84
+ 1.11.2
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2016 从权 <chaoyang.zcy@alibaba-inc.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-Framework
2
+
3
+ A description of cocoapods-Framework.
4
+
5
+ ## Installation
6
+
7
+ $ gem install cocoapods-Framework
8
+
9
+ ## Usage
10
+
11
+ $ pod spec Framework 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,23 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'cocoapods-Framework/gem_version.rb'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = 'cocoapods-Framework'
8
+ spec.version = CocoapodsFramework::VERSION
9
+ spec.authors = ['张朝阳']
10
+ spec.email = ['zhzhy@163.com']
11
+ spec.description = %q{With this plugin a Framwork project can be created, include Podfile, .podspec and so on.}
12
+ spec.summary = %q{With this plugin a Framwork project can be created, include Podfile, .podspec and so on.}
13
+ spec.homepage = 'https://github.com/EXAMPLE/cocoapods-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_development_dependency 'bundler', '~> 1.3'
22
+ spec.add_development_dependency 'rake'
23
+ end
@@ -0,0 +1 @@
1
+ require 'cocoapods-Framework/gem_version'
@@ -0,0 +1 @@
1
+ require 'cocoapods-Framework/command/Framework'
@@ -0,0 +1,59 @@
1
+ require 'fileutils'
2
+
3
+ module Pod
4
+ class Command
5
+ # This is an example of a cocoapods plugin adding a top-level subcommand
6
+ # to the 'pod' command.
7
+ #
8
+ # You can also create subcommands of existing or new commands. Say you
9
+ # wanted to add a subcommand to `list` to show newly deprecated pods,
10
+ # (e.g. `pod list deprecated`), there are a few things that would need
11
+ # to change.
12
+ #
13
+ # - move this file to `lib/pod/command/list/deprecated.rb` and update
14
+ # the class to exist in the the Pod::Command::List namespace
15
+ # - change this class to extend from `List` instead of `Command`. This
16
+ # tells the plugin system that it is a subcommand of `list`.
17
+ # - edit `lib/cocoapods_plugins.rb` to require this file
18
+ class Framework < Command
19
+ self.abstract_command = true
20
+ self.summary = 'Manipulate the Framework Project.'
21
+
22
+ self.description = <<-DESC
23
+ Manipulate the Framework Project. such as Create.
24
+ DESC
25
+
26
+ class Create < Framework
27
+ self.summary = 'Generate a Framwork Project.'
28
+
29
+ self.description = <<-DESC
30
+ Generate a Framwork Project.
31
+ DESC
32
+
33
+ self.arguments = [
34
+ CLAide::Argument.new('PROJECT_NAME', false),
35
+ ]
36
+
37
+ def initialize(argv)
38
+ @name = argv.shift_argument
39
+ super
40
+ end
41
+
42
+ def validate!
43
+ super
44
+ help! 'A project name is required.' unless @name
45
+ end
46
+
47
+ def run
48
+ `git clone --depth 1 git@gitlab.alibaba-inc.com:AliMusic-Mobile/FrameworkTemplate.git`
49
+ Dir.chdir("FrameworkTemplate")
50
+ current_directory = Dir.pwd
51
+ `#{current_directory}/MakeProject.sh #{@name}`
52
+ `mv #{current_directory}/#{@name} #{current_directory}/../#{@name}`
53
+
54
+ FileUtils.rm_rf('./../FrameworkTemplate')
55
+ end
56
+ end
57
+ end
58
+ end
59
+ end
@@ -0,0 +1,3 @@
1
+ module CocoapodsFramework
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1 @@
1
+ require 'cocoapods-Framework/command'
@@ -0,0 +1,12 @@
1
+ require File.expand_path('../../spec_helper', __FILE__)
2
+
3
+ module Pod
4
+ describe Command::Framework do
5
+ describe 'CLAide' do
6
+ it 'registers it self' do
7
+ Command.parse(%w{ Framework }).should.be.instance_of Command::Framework
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,91 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: cocoapods-Framework
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - 张朝阳
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-08-17 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.3'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ description: With this plugin a Framwork project can be created, include Podfile,
42
+ .podspec and so on.
43
+ email:
44
+ - zhzhy@163.com
45
+ executables: []
46
+ extensions: []
47
+ extra_rdoc_files: []
48
+ files:
49
+ - ".gitignore"
50
+ - Gemfile
51
+ - Gemfile.lock
52
+ - LICENSE.txt
53
+ - README.md
54
+ - Rakefile
55
+ - cocoapods-Framework.gemspec
56
+ - lib/cocoapods-Framework.rb
57
+ - lib/cocoapods-Framework/command.rb
58
+ - lib/cocoapods-Framework/command/Framework.rb
59
+ - lib/cocoapods-Framework/gem_version.rb
60
+ - lib/cocoapods_plugin.rb
61
+ - spec/command/Framework_spec.rb
62
+ - spec/spec_helper.rb
63
+ homepage: https://github.com/EXAMPLE/cocoapods-Framework
64
+ licenses:
65
+ - MIT
66
+ metadata: {}
67
+ post_install_message:
68
+ rdoc_options: []
69
+ require_paths:
70
+ - lib
71
+ required_ruby_version: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ required_rubygems_version: !ruby/object:Gem::Requirement
77
+ requirements:
78
+ - - ">="
79
+ - !ruby/object:Gem::Version
80
+ version: '0'
81
+ requirements: []
82
+ rubyforge_project:
83
+ rubygems_version: 2.6.1
84
+ signing_key:
85
+ specification_version: 4
86
+ summary: With this plugin a Framwork project can be created, include Podfile, .podspec
87
+ and so on.
88
+ test_files:
89
+ - spec/command/Framework_spec.rb
90
+ - spec/spec_helper.rb
91
+ has_rdoc: