qricker 0.0.6 → 0.0.7

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: 8f6040bc0798b5ecaa812a2aa35d3054c2d9df3c
4
- data.tar.gz: 472b34ebc51556bc343c2f76c9e4d69ed0d965ed
3
+ metadata.gz: c0fa64f8b23363dcf85871bcc7140a5c9ebdf810
4
+ data.tar.gz: d8d282f488ff1491e8357264fdd48048f099420f
5
5
  SHA512:
6
- metadata.gz: '058d7bf3b9f550ef433e9d27d2c0a928c83109b29a5b9dcd5a5c5948250347e36b34133bf125544a7dac21e80c1f4b6841049b21f0ef27fae6e946a17f12956d'
7
- data.tar.gz: e837eb2f960779cf0fc6570cbdc7ea063f937dfab9903013015409b10b3d75515082dceb7848259662d2aa9f2ac4e64b4d9c0024f7e8e18d4714b23f398fcab8
6
+ metadata.gz: 56ce565555477d317b2be4283acdd2a21b73f25da09d7df3e93ba60ffc82a0b301fa1906f55c885fe87f5af481db89a94b922227c004c3c3aab36d028c8df993
7
+ data.tar.gz: 81bfd0ee57ce8eda38043df34d8e913215c0edb172dab7045d410cbc0ed6d822692cfd079c903818240bcf9d58941b45a82963c4a43c79e7a06c9a1d9764c1f0
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- qricker (0.0.6)
4
+ qricker (0.0.7)
5
5
  cocoapods (~> 1)
6
6
  gli (= 2.16.0)
7
7
  parseconfig (~> 1)
data/bin/qricker CHANGED
@@ -63,20 +63,6 @@ command :dependency do |c|
63
63
  end
64
64
 
65
65
 
66
- desc "transfer podspec to release"
67
- command :transfer do |c|
68
- c.desc 'the input podspec file'
69
- c.flag [:i, "input-file"], :required=>true
70
-
71
-
72
- c.desc 'the input rctl file'
73
- c.flag [:rctl,"rctl"], :required=>true
74
- c.action do |global_options,options,args|
75
- inputfile = options[:i]
76
- spec = Qricker.transferSpec(options[:rctl],inputfile)
77
- print spec
78
- end
79
- end
80
66
 
81
67
 
82
68
 
@@ -1,3 +1,5 @@
1
+ # -*- coding: UTF-8 -*-
2
+
1
3
  require_relative "module_cache"
2
4
  module Qricker
3
5
 
@@ -44,7 +46,7 @@ RB
44
46
  "end\n"
45
47
  end
46
48
 
47
- private
49
+
48
50
 
49
51
  def spec_dependencies
50
52
  value = @spec.attributes_hash["dependencies"]
@@ -68,27 +70,41 @@ RB
68
70
  spec
69
71
  end
70
72
 
73
+ def spec_origin_sources
74
+ value = @spec.attributes_hash["source_files"]
75
+ return "" if value.nil?
76
+ " s.source_files = #{transferValueToS(value)}\n"
77
+ end
78
+
79
+ def transferValueToS(value)
80
+ return "" if value.nil?
81
+ valueStr = ""
82
+ if value.class == String
83
+ value = value.dump
84
+ valueStr = "#{value}\n"
85
+ elsif value.class == Array
86
+ value.each_with_index {|each , index|
87
+ if index != 0
88
+ valueStr += ", "
89
+ end
90
+ valueStr += "'#{each}'"
91
+ }
92
+ elsif value.class == Hash
93
+ valueStr = "#{value}"
94
+ end
95
+ return valueStr
96
+ end
97
+
98
+ private
71
99
  def spec_header
72
100
  spec = "Pod::Spec.new do |s|\n"
73
101
 
74
102
  %w(name version summary license authors homepage description social_media_url
75
103
  docset_url documentation_url screenshots frameworks weak_frameworks libraries requires_arc
76
- deployment_target xcconfig prefix_header_file module_name prepare_command ).each do |attribute|
104
+ deployment_target xcconfig prefix_header_file module_name prepare_command platforms ).each do |attribute|
77
105
  value = @spec.attributes_hash[attribute]
78
106
  next if value.nil?
79
- if value.class == String
80
- value = value.dump
81
- spec += " s.#{attribute} = #{value}\n"
82
- elsif value.class == Array
83
- spec += " s.#{attribute} = "
84
- value.each_with_index {|each , index|
85
- if index != 0
86
- spec += ", "
87
- end
88
- spec += "'#{each}'"
89
- }
90
- spec += "\n"
91
- end
107
+ spec += " s.#{attribute} = #{transferValueToS(value)}\n"
92
108
  end
93
109
  spec
94
110
  end
@@ -1,3 +1,3 @@
1
1
  module Qricker
2
- VERSION = '0.0.6'
2
+ VERSION = '0.0.7'
3
3
  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.6
4
+ version: 0.0.7
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-09-06 00:00:00.000000000 Z
11
+ date: 2017-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake