qricker 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5e20270ab3c574d96b8af91cada791cefbd2c407
4
- data.tar.gz: 62d0adcbff3f7d3a07b75858a80ef84c4d511854
3
+ metadata.gz: '08e1eaec8e95ac1b45aa3aea6348da883952c756'
4
+ data.tar.gz: 1418b97afee02c10c520a484a7325f0e2724485d
5
5
  SHA512:
6
- metadata.gz: 48b37d9e56517590f75f552bbbc75346e0e5570554474905e2579bf8203bf66d737401896cdea040085cfd01f784fba89a534d5853e6d611a689271d76df237b
7
- data.tar.gz: 1075738230c24013aa8e5b9cd153e0d95e33dce1ae238609372b2fc8e2e644a588181f5854ad89bcfe63cf1ab343cb284255a89e33193b91cb9e07be74b1a8bf
6
+ metadata.gz: d8e8c51663b7fa7200738bbc60c9b3155e23b7b15347db79fc16979a8ab3bb617bd63a38b6f3afb4bfbfc8fcb559a47a440ca1b0ddf4ac092932fce73c3746e3
7
+ data.tar.gz: 261899df21179dfc2d7e3269bf395d63fd1d233cee0a9330ee088729c4d69b9ff8996c8f91511375acde3fdbbd8cdffd292de22ab10878bfe7cafb7cb66d58fe
data/README.md CHANGED
@@ -32,4 +32,23 @@ GLOBAL OPTIONS
32
32
  COMMANDS
33
33
  collect - collect all podspec file in special path
34
34
  help - Shows a list of commands or help for one command
35
- ```
35
+ ```
36
+
37
+ # 在QCloud iOS打包中的应用
38
+
39
+ 首先切到工程根目录下面运行命令,收集改目录下面的所有的podspec
40
+
41
+ ~~~
42
+ qricker collect
43
+ ~~~
44
+ 改命令会收集目录下面所有的podspec,并以标准的配置文件的方式输出到文件podspecs.rclt
45
+
46
+ 使用cocoapods-package进行打包
47
+
48
+ > 指定参数--rclt,改参数表述在引用本地的podspec索引信息
49
+
50
+ 例如:
51
+
52
+ ~~~
53
+ pod package ./QCloudCOSXML.podspec --rclt=../../../podspecs.rclt --exclude-deps --no-mangle --embedded
54
+ ~~~
data/Rakefile CHANGED
@@ -4,6 +4,8 @@ require 'rubygems/package_task'
4
4
  require 'rdoc/task'
5
5
  require 'cucumber'
6
6
  require 'cucumber/rake/task'
7
+ require File.join([File.dirname(__FILE__),'lib','qricker','version.rb'])
8
+
7
9
  Rake::RDocTask.new do |rd|
8
10
  rd.main = "README.rdoc"
9
11
  rd.rdoc_files.include("README.rdoc","lib/**/*.rb","bin/**/*")
@@ -42,3 +44,17 @@ Rake::TestTask.new do |t|
42
44
  end
43
45
 
44
46
  task :default => [:test,:features]
47
+
48
+
49
+ task :build do
50
+ sh "gem build qricker.gemspec"
51
+ end
52
+
53
+ desc "build&install the gem "
54
+ task :install => [:build] do
55
+ sh "gem install qricker-#{Qricker::VERSION}.gem"
56
+ end
57
+
58
+ task :publish => [:build] do
59
+ sh "gem push qricker-#{Qricker::VERSION}.gem"
60
+ end
data/bin/qricker CHANGED
@@ -63,9 +63,11 @@ command :dependency do |c|
63
63
  specname = options[:n]
64
64
  Qricker.dependency(inputfile, specname)
65
65
  end
66
-
67
66
  end
68
67
 
68
+
69
+
70
+
69
71
  pre do |global,command,options,args|
70
72
  # Pre logic here
71
73
  # Return true to proceed; false to abort and not call the
@@ -1,3 +1,3 @@
1
1
  module Qricker
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
data/lib/qricker.rb CHANGED
@@ -18,6 +18,8 @@ module Qricker
18
18
  }
19
19
  end
20
20
  end
21
+
22
+
21
23
  def Qricker.dependency(localfile , specnames)
22
24
  config = ParseConfig.new(localfile)
23
25
  if config.nil?
@@ -42,4 +44,29 @@ module Qricker
42
44
  puts outputDependencies
43
45
  return outputDependencies
44
46
  end
47
+
48
+ def Qricker.dependencyIncludeSelf(localfile, specnames)
49
+ config = ParseConfig.new(localfile)
50
+ if config.nil?
51
+ return []
52
+ end
53
+ allDependencies = Array.new(specnames)
54
+ if not specnames.nil?
55
+ specnames.each { |name|
56
+ collectDependencies(config,allDependencies, name)
57
+ }
58
+ end
59
+
60
+ outputDependencies = []
61
+ allDependencies.each { |dep|
62
+ if config.get_groups.include?(dep)
63
+ spec = RickerSpec.new()
64
+ spec.name = dep
65
+ spec.path = config[dep]["PATH"]
66
+ outputDependencies << spec
67
+ end
68
+ }
69
+ return outputDependencies
70
+
71
+ end
45
72
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qricker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Your Name Here
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-16 00:00:00.000000000 Z
11
+ date: 2017-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake