cocoapods-youku-environment 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/cocoapods-youku-environment.gemspec +2 -2
- data/lib/cocoapods/youku/environment/cocoapods_fastbuild.rb +48 -0
- data/lib/cocoapods/youku/environment/version.rb +1 -1
- data/lib/cocoapods_plugin.rb +3 -0
- metadata +4 -10
- data/.gitignore +0 -9
- data/.rspec +0 -2
- data/.travis.yml +0 -5
- data/Gemfile +0 -4
- data/README.md +0 -36
- data/Rakefile +0 -6
- data/bin/console +0 -14
- data/bin/setup +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b759e8b3e70a0a1bc41affb037755ddf9195569
|
4
|
+
data.tar.gz: def4b5bd4505b326d16191721e0420116d3a6dad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce66ddd2f694d68406cfdeb2c8723df4dbfb7a92a2ea3f011df302f71729ccabb30dd9378b92f568524f0cde98b3cdaa19d8db3111aef9ffeb645c86d2f4b10f
|
7
|
+
data.tar.gz: f4c89728482cafd4cc4bc213917f1cc1652661d10cf42f02edfec47f6979b37609ab298131854afafddb13826188ef945bef8bb5c2c037dfcffd64b6337aa267
|
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.email = ["chenlei1@alibaba-inc.com"]
|
11
11
|
|
12
12
|
spec.summary = %q{youku cocoapods plugins}
|
13
|
-
spec.description = %q{youku cocoapods plugins.
|
13
|
+
spec.description = %q{youku cocoapods plugins.description}
|
14
14
|
spec.homepage = "http://www.youku.com"
|
15
15
|
spec.license = "MIT"
|
16
16
|
spec.files = Dir["lib/**/*.rb"]+Dir["cocoapods-youku-environment.gemspec"]
|
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
|
|
23
23
|
raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
|
24
24
|
end
|
25
25
|
|
26
|
-
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
26
|
+
#spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
27
27
|
spec.bindir = "exe"
|
28
28
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
29
29
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
@@ -0,0 +1,48 @@
|
|
1
|
+
require 'colored'
|
2
|
+
|
3
|
+
#############################################【1.初始化逻辑】#############################################
|
4
|
+
|
5
|
+
#控制参数初始化。根据命令行参数,设置到ENV中
|
6
|
+
module Pod
|
7
|
+
class Command
|
8
|
+
alias_method :old_fbinitialize, :initialize
|
9
|
+
def initialize(args)
|
10
|
+
|
11
|
+
#mark for youku
|
12
|
+
if (args.flag?("fastbuild"))
|
13
|
+
puts (("[FASTBUILD] initialize: ").magenta)
|
14
|
+
ENV["POD_FASTBUILD_MODE"]="true"
|
15
|
+
ENV["POD_FAST_MODE"]="true"
|
16
|
+
ENV["POD_BUILD_CFG"]="Debug,Release"
|
17
|
+
end
|
18
|
+
if (args.flag?("fb"))
|
19
|
+
puts (("[FASTBUILD] initialize: ").magenta)
|
20
|
+
ENV["POD_FASTBUILD_MODE"]="true"
|
21
|
+
ENV["POD_FAST_MODE"]="true"
|
22
|
+
ENV["POD_BUILD_CFG"]="Debug,Release"
|
23
|
+
end
|
24
|
+
#mark youku end
|
25
|
+
|
26
|
+
old_fbinitialize(args)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
|
32
|
+
module Pod
|
33
|
+
class Installer
|
34
|
+
alias_method :old_fb_install!, :install!
|
35
|
+
def install!
|
36
|
+
old_fb_install!
|
37
|
+
|
38
|
+
#mark for youku
|
39
|
+
if ENV["POD_FASTBUILD_MODE"]
|
40
|
+
editscript =`sh fb.sh`
|
41
|
+
if editscript
|
42
|
+
puts (("[FASTBUILD] success modify xconfig ").magenta)
|
43
|
+
end
|
44
|
+
end
|
45
|
+
#mark youku end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-youku-environment
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- chenlei1
|
@@ -66,24 +66,18 @@ dependencies:
|
|
66
66
|
- - ~>
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '1.2'
|
69
|
-
description: youku cocoapods plugins.
|
69
|
+
description: youku cocoapods plugins.description
|
70
70
|
email:
|
71
71
|
- chenlei1@alibaba-inc.com
|
72
72
|
executables: []
|
73
73
|
extensions: []
|
74
74
|
extra_rdoc_files: []
|
75
75
|
files:
|
76
|
-
- .gitignore
|
77
|
-
- .rspec
|
78
|
-
- .travis.yml
|
79
|
-
- Gemfile
|
80
|
-
- README.md
|
81
|
-
- Rakefile
|
82
|
-
- bin/console
|
83
|
-
- bin/setup
|
84
76
|
- cocoapods-youku-environment.gemspec
|
85
77
|
- lib/cocoapods/youku/environment.rb
|
78
|
+
- lib/cocoapods/youku/environment/cocoapods_fastbuild.rb
|
86
79
|
- lib/cocoapods/youku/environment/version.rb
|
80
|
+
- lib/cocoapods_plugin.rb
|
87
81
|
homepage: http://www.youku.com
|
88
82
|
licenses:
|
89
83
|
- MIT
|
data/.gitignore
DELETED
data/.rspec
DELETED
data/.travis.yml
DELETED
data/Gemfile
DELETED
data/README.md
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
# Cocoapods::Youku::Environment
|
2
|
-
|
3
|
-
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/cocoapods/youku/environment`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
-
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
6
|
-
|
7
|
-
## Installation
|
8
|
-
|
9
|
-
Add this line to your application's Gemfile:
|
10
|
-
|
11
|
-
```ruby
|
12
|
-
gem 'cocoapods-youku-environment'
|
13
|
-
```
|
14
|
-
|
15
|
-
And then execute:
|
16
|
-
|
17
|
-
$ bundle
|
18
|
-
|
19
|
-
Or install it yourself as:
|
20
|
-
|
21
|
-
$ gem install cocoapods-youku-environment
|
22
|
-
|
23
|
-
## Usage
|
24
|
-
|
25
|
-
TODO: Write usage instructions here
|
26
|
-
|
27
|
-
## Development
|
28
|
-
|
29
|
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
30
|
-
|
31
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
|
-
|
33
|
-
## Contributing
|
34
|
-
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/cocoapods-youku-environment.
|
36
|
-
|
data/Rakefile
DELETED
data/bin/console
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require "bundler/setup"
|
4
|
-
require "cocoapods/youku/environment"
|
5
|
-
|
6
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
-
# with your gem easier. You can also use a different console, if you like.
|
8
|
-
|
9
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
-
# require "pry"
|
11
|
-
# Pry.start
|
12
|
-
|
13
|
-
require "irb"
|
14
|
-
IRB.start
|