cocoapods-foundation-headers 1.0.1
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 +12 -0
- data/Gemfile.lock +93 -0
- data/LICENSE +18 -0
- data/README.md +20 -0
- data/Rakefile +12 -0
- data/cocoapods-foundation-headers.gemspec +22 -0
- data/lib/cocoapods-foundation-headers.rb +1 -0
- data/lib/cocoapods-foundation-headers/foundation_headers.rb +9 -0
- data/lib/cocoapods-foundation-headers/gem_version.rb +3 -0
- data/lib/cocoapods_plugin.rb +1 -0
- data/spec/command/headers_spec.rb +22 -0
- data/spec/spec_helper.rb +15 -0
- metadata +88 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 2979fdfe027c8f5c609bc7d7fe00291d4617e56a
|
4
|
+
data.tar.gz: f483e37aad54d6851aaeab6ea0fbc8ff7e217070
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 45a48ce8105c41fd27e8edf0db83aa593fb047cb762ee0585f5307394c6c37d5fe0dad56fe0f03042cd12ca33a1e0abf9f296f39e9cd1e1bc438961e3b73b6e1
|
7
|
+
data.tar.gz: 6ec9c603b02ddbabf832d674b6265d94d6925ee262c77047da82cd6dd1d37fb4e43124bd39fd010d12fe14cbf8f90b2b157cfb45b50ca691429d11699e1cfd09
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,93 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
cocoapods-foundation-headers (1.0.0)
|
5
|
+
|
6
|
+
GEM
|
7
|
+
remote: https://rubygems.org/
|
8
|
+
specs:
|
9
|
+
CFPropertyList (2.3.5)
|
10
|
+
activesupport (4.2.9)
|
11
|
+
i18n (~> 0.7)
|
12
|
+
minitest (~> 5.1)
|
13
|
+
thread_safe (~> 0.3, >= 0.3.4)
|
14
|
+
tzinfo (~> 1.1)
|
15
|
+
bacon (1.2.0)
|
16
|
+
claide (1.0.2)
|
17
|
+
cocoapods (1.3.1)
|
18
|
+
activesupport (>= 4.0.2, < 5)
|
19
|
+
claide (>= 1.0.2, < 2.0)
|
20
|
+
cocoapods-core (= 1.3.1)
|
21
|
+
cocoapods-deintegrate (>= 1.0.1, < 2.0)
|
22
|
+
cocoapods-downloader (>= 1.1.3, < 2.0)
|
23
|
+
cocoapods-plugins (>= 1.0.0, < 2.0)
|
24
|
+
cocoapods-search (>= 1.0.0, < 2.0)
|
25
|
+
cocoapods-stats (>= 1.0.0, < 2.0)
|
26
|
+
cocoapods-trunk (>= 1.2.0, < 2.0)
|
27
|
+
cocoapods-try (>= 1.1.0, < 2.0)
|
28
|
+
colored2 (~> 3.1)
|
29
|
+
escape (~> 0.0.4)
|
30
|
+
fourflusher (~> 2.0.1)
|
31
|
+
gh_inspector (~> 1.0)
|
32
|
+
molinillo (~> 0.5.7)
|
33
|
+
nap (~> 1.0)
|
34
|
+
ruby-macho (~> 1.1)
|
35
|
+
xcodeproj (>= 1.5.1, < 2.0)
|
36
|
+
cocoapods-core (1.3.1)
|
37
|
+
activesupport (>= 4.0.2, < 6)
|
38
|
+
fuzzy_match (~> 2.0.4)
|
39
|
+
nap (~> 1.0)
|
40
|
+
cocoapods-deintegrate (1.0.1)
|
41
|
+
cocoapods-downloader (1.1.3)
|
42
|
+
cocoapods-plugins (1.0.0)
|
43
|
+
nap
|
44
|
+
cocoapods-search (1.0.0)
|
45
|
+
cocoapods-stats (1.0.0)
|
46
|
+
cocoapods-trunk (1.2.0)
|
47
|
+
nap (>= 0.8, < 2.0)
|
48
|
+
netrc (= 0.7.8)
|
49
|
+
cocoapods-try (1.1.0)
|
50
|
+
colored2 (3.1.2)
|
51
|
+
escape (0.0.4)
|
52
|
+
fourflusher (2.0.1)
|
53
|
+
fuzzy_match (2.0.4)
|
54
|
+
gh_inspector (1.0.3)
|
55
|
+
i18n (0.8.6)
|
56
|
+
metaclass (0.0.4)
|
57
|
+
minitest (5.10.3)
|
58
|
+
mocha (1.1.0)
|
59
|
+
metaclass (~> 0.0.1)
|
60
|
+
mocha-on-bacon (0.2.2)
|
61
|
+
mocha (>= 0.13.0)
|
62
|
+
molinillo (0.5.7)
|
63
|
+
nanaimo (0.2.3)
|
64
|
+
nap (1.1.0)
|
65
|
+
netrc (0.7.8)
|
66
|
+
prettybacon (0.0.2)
|
67
|
+
bacon (~> 1.2)
|
68
|
+
rake (10.5.0)
|
69
|
+
ruby-macho (1.1.0)
|
70
|
+
thread_safe (0.3.6)
|
71
|
+
tzinfo (1.2.3)
|
72
|
+
thread_safe (~> 0.1)
|
73
|
+
xcodeproj (1.5.1)
|
74
|
+
CFPropertyList (~> 2.3.3)
|
75
|
+
claide (>= 1.0.2, < 2.0)
|
76
|
+
colored2 (~> 3.1)
|
77
|
+
nanaimo (~> 0.2.3)
|
78
|
+
|
79
|
+
PLATFORMS
|
80
|
+
ruby
|
81
|
+
|
82
|
+
DEPENDENCIES
|
83
|
+
bacon
|
84
|
+
bundler (~> 1.3)
|
85
|
+
cocoapods
|
86
|
+
cocoapods-foundation-headers!
|
87
|
+
mocha
|
88
|
+
mocha-on-bacon
|
89
|
+
prettybacon
|
90
|
+
rake
|
91
|
+
|
92
|
+
BUNDLED WITH
|
93
|
+
1.14.6
|
data/LICENSE
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
Copyright (c) 2017 Keith Smiley (http://keith.so)
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
4
|
+
this software and associated documentation files (the 'Software'), to deal in
|
5
|
+
the Software without restriction, including without limitation the rights to
|
6
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
7
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
8
|
+
subject to the following conditions:
|
9
|
+
|
10
|
+
The above copyright notice and this permission notice shall be included in all
|
11
|
+
copies or substantial portions of the Software.
|
12
|
+
|
13
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
15
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
16
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
17
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
18
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
# cocoapods-foundation-headers
|
2
|
+
|
3
|
+
A [CocoaPods](https://cocoapods.org/) plugin for importing `Foundation`
|
4
|
+
instead of `UIKit`/`Cocoa` in the generated headers and pch files. See
|
5
|
+
[this issue](https://github.com/CocoaPods/CocoaPods/issues/6815) for
|
6
|
+
more details.
|
7
|
+
|
8
|
+
## Installation
|
9
|
+
|
10
|
+
```
|
11
|
+
$ gem install cocoapods-foundation-headers
|
12
|
+
```
|
13
|
+
|
14
|
+
## Usage
|
15
|
+
|
16
|
+
In your `Podfile` add:
|
17
|
+
|
18
|
+
```ruby
|
19
|
+
plugin "cocoapods-foundation-headers"
|
20
|
+
```
|
data/Rakefile
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path("../lib", __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require "cocoapods-foundation-headers/gem_version.rb"
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "cocoapods-foundation-headers"
|
8
|
+
spec.version = CocoapodsFoundationHeaders::VERSION
|
9
|
+
spec.authors = ["Keith Smiley"]
|
10
|
+
spec.email = ["keithbsmiley@gmail.com"]
|
11
|
+
spec.summary = "A CocoaPods plugin for using Foundation instead of UIKit/Cocoa in generated headers"
|
12
|
+
spec.homepage = "https://github.com/keith/cocoapods-foundation-headers"
|
13
|
+
spec.license = "MIT"
|
14
|
+
|
15
|
+
spec.files = `git ls-files`.split($/)
|
16
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
17
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
18
|
+
spec.require_paths = ["lib"]
|
19
|
+
|
20
|
+
spec.add_development_dependency "bundler", "~> 1.3"
|
21
|
+
spec.add_development_dependency "rake"
|
22
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
require 'cocoapods-foundation-headers/gem_version'
|
@@ -0,0 +1 @@
|
|
1
|
+
require 'cocoapods-foundation-headers/foundation_headers'
|
@@ -0,0 +1,22 @@
|
|
1
|
+
require File.expand_path("../../spec_helper", __FILE__)
|
2
|
+
|
3
|
+
module Pod
|
4
|
+
describe Generator::Header do
|
5
|
+
describe "platform header imports" do
|
6
|
+
it "always returns foundation" do
|
7
|
+
Platform.all.each do |platform|
|
8
|
+
header = Generator::Header.new platform
|
9
|
+
header.generate.should.include? "Foundation"
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
it "never includes UIKit or AppKit" do
|
14
|
+
Platform.all.each do |platform|
|
15
|
+
header = Generator::Header.new platform
|
16
|
+
header.generate.should.not.include? "UIKit"
|
17
|
+
header.generate.should.not.include? "Cocoa"
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,15 @@
|
|
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"
|
metadata
ADDED
@@ -0,0 +1,88 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: cocoapods-foundation-headers
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Keith Smiley
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-09-16 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:
|
42
|
+
email:
|
43
|
+
- keithbsmiley@gmail.com
|
44
|
+
executables: []
|
45
|
+
extensions: []
|
46
|
+
extra_rdoc_files: []
|
47
|
+
files:
|
48
|
+
- ".gitignore"
|
49
|
+
- Gemfile
|
50
|
+
- Gemfile.lock
|
51
|
+
- LICENSE
|
52
|
+
- README.md
|
53
|
+
- Rakefile
|
54
|
+
- cocoapods-foundation-headers.gemspec
|
55
|
+
- lib/cocoapods-foundation-headers.rb
|
56
|
+
- lib/cocoapods-foundation-headers/foundation_headers.rb
|
57
|
+
- lib/cocoapods-foundation-headers/gem_version.rb
|
58
|
+
- lib/cocoapods_plugin.rb
|
59
|
+
- spec/command/headers_spec.rb
|
60
|
+
- spec/spec_helper.rb
|
61
|
+
homepage: https://github.com/keith/cocoapods-foundation-headers
|
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.5.2
|
82
|
+
signing_key:
|
83
|
+
specification_version: 4
|
84
|
+
summary: A CocoaPods plugin for using Foundation instead of UIKit/Cocoa in generated
|
85
|
+
headers
|
86
|
+
test_files:
|
87
|
+
- spec/command/headers_spec.rb
|
88
|
+
- spec/spec_helper.rb
|