cocoapods-youku-environment 0.1.4 → 0.1.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5e1b55fbfb14b87bb4bcaf31fae43fcd3cd92520
4
- data.tar.gz: 3f9bd25601a0e026af4def451e65ccec5fbf058f
3
+ metadata.gz: 7b759e8b3e70a0a1bc41affb037755ddf9195569
4
+ data.tar.gz: def4b5bd4505b326d16191721e0420116d3a6dad
5
5
  SHA512:
6
- metadata.gz: 3a1375687240259cbc068287d387260207c00e8020847bfd32a36a9a246d17a2576fd64c2e1dee82bb3e5d81e2b229d4dc7d37ca2d10a9764e3b5fd0206b09a0
7
- data.tar.gz: 091a02b92a1e2b1b1788dc04df483174260438ba5be61b833140cca9ea3ba142528d906541dfba5180cf33777042d74cab46ae06e17dce3c11a89b17b32193bd
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.xxxxx}
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
@@ -1,7 +1,7 @@
1
1
  module Cocoapods
2
2
  module Youku
3
3
  module Environment
4
- VERSION = "0.1.4"
4
+ VERSION = "0.1.5"
5
5
  end
6
6
  end
7
7
  end
@@ -0,0 +1,3 @@
1
+ require "cocoapods-core"
2
+
3
+ require 'cocoapods/youku/environment.rb'
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
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.xxxxx
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
@@ -1,9 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /Gemfile.lock
4
- /_yardoc/
5
- /coverage/
6
- /doc/
7
- /pkg/
8
- /spec/reports/
9
- /tmp/
data/.rspec DELETED
@@ -1,2 +0,0 @@
1
- --format documentation
2
- --color
data/.travis.yml DELETED
@@ -1,5 +0,0 @@
1
- sudo: false
2
- language: ruby
3
- rvm:
4
- - 2.0.0
5
- before_install: gem install bundler -v 1.12.5
data/Gemfile DELETED
@@ -1,4 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- # Specify your gem's dependencies in cocoapods-youku-environment.gemspec
4
- gemspec
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
@@ -1,6 +0,0 @@
1
- require "bundler/gem_tasks"
2
- require "rspec/core/rake_task"
3
-
4
- RSpec::Core::RakeTask.new(:spec)
5
-
6
- task :default => :spec
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
data/bin/setup DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
-
8
- # Do any other automated setup that you need to do here