cocoapods-ipub 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.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: e973f83cdd6dfe7049fb36562a52201fe18ba775471c21d7e9c6baad33f8c519
4
+ data.tar.gz: 2f5e1dea9de1f172e4809f331b960fdd96c9378fb740ef217f8517b8ec2831d9
5
+ SHA512:
6
+ metadata.gz: 27fbc2dba420cc006028e69fedbd00faa5d96c80c8d86ae5013a7f4e9496253cc30c9c9d2c1e2ba0e08716862e23f2ccdce5448304332a6d8af63f257b3677f3
7
+ data.tar.gz: a94b4b3d3f341b0bbf1b161c67b57fe0e850263db54790d3d3f3e562fd6b7dce70e8512612508c5a930d3b605a3a1f51a4405a393444aa11687502ba969d782f
data/.gitignore ADDED
@@ -0,0 +1,3 @@
1
+ .DS_Store
2
+ pkg
3
+ .idea/
@@ -0,0 +1,64 @@
1
+ {
2
+ // 使用 IntelliSense 了解相关属性。
3
+ // 悬停以查看现有属性的描述。
4
+ // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
5
+ "version": "0.2.0",
6
+ "configurations": [
7
+ {
8
+ "name": "Debug Local File",
9
+ "type": "Ruby",
10
+ "request": "launch",
11
+ "cwd": "${workspaceRoot}",
12
+ "program": "${workspaceRoot}/main.rb"
13
+ },
14
+ {
15
+ "name": "Listen for rdebug-ide",
16
+ "type": "Ruby",
17
+ "request": "attach",
18
+ "cwd": "${workspaceRoot}",
19
+ "remoteHost": "127.0.0.1",
20
+ "remotePort": "1234",
21
+ "remoteWorkspaceRoot": "${workspaceRoot}"
22
+ },
23
+ {
24
+ "name": "Rails server",
25
+ "type": "Ruby",
26
+ "request": "launch",
27
+ "cwd": "${workspaceRoot}",
28
+ "program": "${workspaceRoot}/bin/rails",
29
+ "args": [
30
+ "server"
31
+ ]
32
+ },
33
+ {
34
+ "name": "RSpec - all",
35
+ "type": "Ruby",
36
+ "request": "launch",
37
+ "cwd": "${workspaceRoot}",
38
+ "program": "${workspaceRoot}/bin/rspec",
39
+ "args": [
40
+ "-I",
41
+ "${workspaceRoot}"
42
+ ]
43
+ },
44
+ {
45
+ "name": "RSpec - active spec file only",
46
+ "type": "Ruby",
47
+ "request": "launch",
48
+ "cwd": "${workspaceRoot}",
49
+ "program": "${workspaceRoot}/bin/rspec",
50
+ "args": [
51
+ "-I",
52
+ "${workspaceRoot}",
53
+ "${file}"
54
+ ]
55
+ },
56
+ {
57
+ "name": "Cucumber",
58
+ "type": "Ruby",
59
+ "request": "launch",
60
+ "cwd": "${workspaceRoot}",
61
+ "program": "${workspaceRoot}/bin/cucumber"
62
+ }
63
+ ]
64
+ }
data/Gemfile ADDED
@@ -0,0 +1,13 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in cocoapods-ipub.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,97 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ cocoapods-ipub (0.0.1)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ CFPropertyList (3.0.0)
10
+ activesupport (4.2.10)
11
+ i18n (~> 0.7)
12
+ minitest (~> 5.1)
13
+ thread_safe (~> 0.3, >= 0.3.4)
14
+ tzinfo (~> 1.1)
15
+ atomos (0.1.3)
16
+ bacon (1.2.0)
17
+ claide (1.0.2)
18
+ cocoapods (1.4.0)
19
+ activesupport (>= 4.0.2, < 5)
20
+ claide (>= 1.0.2, < 2.0)
21
+ cocoapods-core (= 1.4.0)
22
+ cocoapods-deintegrate (>= 1.0.2, < 2.0)
23
+ cocoapods-downloader (>= 1.1.3, < 2.0)
24
+ cocoapods-plugins (>= 1.0.0, < 2.0)
25
+ cocoapods-search (>= 1.0.0, < 2.0)
26
+ cocoapods-stats (>= 1.0.0, < 2.0)
27
+ cocoapods-trunk (>= 1.3.0, < 2.0)
28
+ cocoapods-try (>= 1.1.0, < 2.0)
29
+ colored2 (~> 3.1)
30
+ escape (~> 0.0.4)
31
+ fourflusher (~> 2.0.1)
32
+ gh_inspector (~> 1.0)
33
+ molinillo (~> 0.6.4)
34
+ nap (~> 1.0)
35
+ ruby-macho (~> 1.1)
36
+ xcodeproj (>= 1.5.4, < 2.0)
37
+ cocoapods-core (1.4.0)
38
+ activesupport (>= 4.0.2, < 6)
39
+ fuzzy_match (~> 2.0.4)
40
+ nap (~> 1.0)
41
+ cocoapods-deintegrate (1.0.2)
42
+ cocoapods-downloader (1.2.1)
43
+ cocoapods-plugins (1.0.0)
44
+ nap
45
+ cocoapods-search (1.0.0)
46
+ cocoapods-stats (1.0.0)
47
+ cocoapods-trunk (1.3.1)
48
+ nap (>= 0.8, < 2.0)
49
+ netrc (~> 0.11)
50
+ cocoapods-try (1.1.0)
51
+ colored2 (3.1.2)
52
+ concurrent-ruby (1.0.5)
53
+ escape (0.0.4)
54
+ fourflusher (2.0.1)
55
+ fuzzy_match (2.0.4)
56
+ gh_inspector (1.1.3)
57
+ i18n (0.9.5)
58
+ concurrent-ruby (~> 1.0)
59
+ metaclass (0.0.4)
60
+ minitest (5.11.3)
61
+ mocha (1.7.0)
62
+ metaclass (~> 0.0.1)
63
+ mocha-on-bacon (0.2.3)
64
+ mocha (>= 0.13.0)
65
+ molinillo (0.6.6)
66
+ nanaimo (0.2.6)
67
+ nap (1.1.0)
68
+ netrc (0.11.0)
69
+ prettybacon (0.0.2)
70
+ bacon (~> 1.2)
71
+ rake (12.3.1)
72
+ ruby-macho (1.2.0)
73
+ thread_safe (0.3.6)
74
+ tzinfo (1.2.5)
75
+ thread_safe (~> 0.1)
76
+ xcodeproj (1.6.0)
77
+ CFPropertyList (>= 2.3.3, < 4.0)
78
+ atomos (~> 0.1.3)
79
+ claide (>= 1.0.2, < 2.0)
80
+ colored2 (~> 3.1)
81
+ nanaimo (~> 0.2.6)
82
+
83
+ PLATFORMS
84
+ ruby
85
+
86
+ DEPENDENCIES
87
+ bacon
88
+ bundler (~> 1.3)
89
+ cocoapods
90
+ cocoapods-ipub!
91
+ mocha
92
+ mocha-on-bacon
93
+ prettybacon
94
+ rake
95
+
96
+ BUNDLED WITH
97
+ 1.16.3
data/LICENSE.txt ADDED
@@ -0,0 +1,26 @@
1
+ <<<<<<< HEAD
2
+ Copyright (c) 2018 welkiner <tianliang.black@gmail.com>
3
+ =======
4
+ Copyright (c) 2018 <>
5
+ >>>>>>> Initial commit
6
+
7
+ MIT License
8
+
9
+ Permission is hereby granted, free of charge, to any person obtaining
10
+ a copy of this software and associated documentation files (the
11
+ "Software"), to deal in the Software without restriction, including
12
+ without limitation the rights to use, copy, modify, merge, publish,
13
+ distribute, sublicense, and/or sell copies of the Software, and to
14
+ permit persons to whom the Software is furnished to do so, subject to
15
+ the following conditions:
16
+
17
+ The above copyright notice and this permission notice shall be
18
+ included in all copies or substantial portions of the Software.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
23
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
24
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
25
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
26
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,11 @@
1
+ # cocoapods-ipub
2
+
3
+ A description of cocoapods-ipub.
4
+
5
+ ## Installation
6
+
7
+ $ gem install cocoapods-ipub
8
+
9
+ ## Usage
10
+
11
+ $ pod spec ipub POD_NAME
data/Rakefile ADDED
@@ -0,0 +1,23 @@
1
+ require 'bundler/gem_tasks'
2
+
3
+ def specs(dir)
4
+ FileList["spec/#{dir}/*_spec.rb"].shuffle.join(' ')
5
+ end
6
+
7
+ def build
8
+ sh('gem build cocoapods-ipub.gemspec')
9
+ sh('sudo gem install cocoapods-ipub-0.0.1.gem')
10
+ end
11
+
12
+ desc 'Builds the gem'
13
+ task :build do
14
+ build
15
+ end
16
+
17
+ desc 'Runs all the specs'
18
+ task :specs do
19
+ sh "bundle exec bacon #{specs('**')}"
20
+ end
21
+
22
+ task :default => :specs
23
+
@@ -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-ipub/gem_version.rb'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = 'cocoapods-ipub'
8
+ spec.version = CocoapodsIpub::VERSION
9
+ spec.authors = ['welkiner']
10
+ spec.email = ['tianliang.black@gmail.com']
11
+ spec.description = %q{ipub plug-in.}
12
+ spec.summary = %q{make a distinction between internal dependency and external dependency.}
13
+ spec.homepage = 'https://github.com/welkiner/cocoapods-ipub'
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,3 @@
1
+ require 'cocoapods-ipub/gem_version'
2
+ require 'cocoapods-ipub/pod_ipub'
3
+
@@ -0,0 +1,3 @@
1
+ module CocoapodsIpub
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,48 @@
1
+ require 'cocoapods-core'
2
+
3
+ module Pod
4
+ class Podfile
5
+
6
+ module DSL
7
+
8
+ def pod_ipub(name = nil, *requirements)
9
+ pod(name, *requirements)
10
+ current_target_definition.store_ipub(name)
11
+ end
12
+ end
13
+
14
+ class TargetDefinition
15
+ # @return [Array<String>]
16
+ attr_accessor :ipub_dependency_names
17
+
18
+ def store_ipub(name)
19
+ @ipub_dependency_names ||= []
20
+ @ipub_dependency_names << name
21
+ end
22
+
23
+ def ipub_dependencies
24
+ @ipub_dependency_names ||= []
25
+ dependencies.map do |dependency|
26
+ if @ipub_dependency_names.include?(dependency.name)
27
+ dependency.is_ipub = true
28
+ end
29
+ dependency
30
+ end
31
+ end
32
+
33
+ end
34
+
35
+ end
36
+
37
+ class IPubPodfile < Pod::Podfile
38
+ end
39
+
40
+
41
+
42
+ class Dependency
43
+ attr_accessor :is_ipub
44
+ end
45
+
46
+
47
+
48
+ end
@@ -0,0 +1 @@
1
+ require 'cocoapods-ipub/pod_ipub'
@@ -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,86 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: cocoapods-ipub
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - welkiner
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2018-09-20 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: ipub plug-in.
42
+ email:
43
+ - tianliang.black@gmail.com
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - ".gitignore"
49
+ - ".vscode/launch.json"
50
+ - Gemfile
51
+ - Gemfile.lock
52
+ - LICENSE.txt
53
+ - README.md
54
+ - Rakefile
55
+ - cocoapods-ipub.gemspec
56
+ - lib/cocoapods-ipub.rb
57
+ - lib/cocoapods-ipub/gem_version.rb
58
+ - lib/cocoapods-ipub/pod_ipub.rb
59
+ - lib/cocoapods_plugin.rb
60
+ - spec/spec_helper.rb
61
+ homepage: https://github.com/welkiner/cocoapods-ipub
62
+ licenses:
63
+ - MIT
64
+ metadata: {}
65
+ post_install_message:
66
+ rdoc_options: []
67
+ require_paths:
68
+ - lib
69
+ required_ruby_version: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - ">="
72
+ - !ruby/object:Gem::Version
73
+ version: '0'
74
+ required_rubygems_version: !ruby/object:Gem::Requirement
75
+ requirements:
76
+ - - ">="
77
+ - !ruby/object:Gem::Version
78
+ version: '0'
79
+ requirements: []
80
+ rubyforge_project:
81
+ rubygems_version: 2.7.6
82
+ signing_key:
83
+ specification_version: 4
84
+ summary: make a distinction between internal dependency and external dependency.
85
+ test_files:
86
+ - spec/spec_helper.rb