furion 1.0.1 → 1.0.3
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 +4 -4
- data/bin/furion +27 -1
- data/lib/furion.rb +21 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6c3f0543d2d7b219bd294780c646db83d176be2e1420237d96a6f456e61e7416
|
4
|
+
data.tar.gz: f8816a052bb7b96cbe15b1be41fc2686a684bd6fc8200ba3131f4f0a59872e4d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 56663791bd9818cf38ccb4124335f56a76d985c8c0789abb7b52111e64e57c8d1312af2d68341077d1ac41267b33fc3b95d766e5a1bbab3f900e441ef94a3bf7
|
7
|
+
data.tar.gz: 3d468ea7c109f11145427391308220a9fef89b1eb31a8f053572654da3309b9b2719d7a231a58ed2b29b8e9fca0ca313fa9b488a33a8638093488464c245732a
|
data/bin/furion
CHANGED
@@ -1,4 +1,30 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
3
|
require 'furion'
|
4
|
-
|
4
|
+
require 'optionparser'
|
5
|
+
options = {}
|
6
|
+
printers = Array.new
|
7
|
+
|
8
|
+
OptionParser.new do |opts|
|
9
|
+
opts.banner = "Usage: dfm [options] [path]\nDefaults: dfm -xd ." + File::SEPARATOR
|
10
|
+
opts.on("-f", "--filters FILTERS", Array, "File extension filters") do |filters|
|
11
|
+
options[:filters] = filters
|
12
|
+
end
|
13
|
+
opts.on("-h", "--help", "help on furion") do |dh|
|
14
|
+
puts "Options and arguments:
|
15
|
+
-v : print the version number
|
16
|
+
-h : print the help message
|
17
|
+
-init : run wrapper-pick work flow in existed project
|
18
|
+
-create [name]: create an empty project and init wrapper
|
19
|
+
"
|
20
|
+
end
|
21
|
+
opts.on("-v", "--version", "Prints version") do |dh|
|
22
|
+
puts "1.0.3"
|
23
|
+
end
|
24
|
+
opts.on("-init", "run wrapper pick workflow") do |dh|
|
25
|
+
Furion.makeConfig
|
26
|
+
end
|
27
|
+
opts.on("-create", "Create project") do |dh|
|
28
|
+
puts "to be continue"
|
29
|
+
end
|
30
|
+
end.parse!
|
data/lib/furion.rb
CHANGED
@@ -1,6 +1,24 @@
|
|
1
1
|
|
2
|
+
require 'json'
|
3
|
+
require 'plist'
|
4
|
+
require 'open-uri'
|
2
5
|
class Furion
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
+
def self.makeConfig
|
7
|
+
uri = "https://git.huya.com/chenguohao2/FurionTemplateResource/raw/master/GenConfig.py"
|
8
|
+
data = open(uri, 'User-Agent' => 'ruby'){|f| f.read}
|
9
|
+
file = File.new "GenConfig.py", 'w+'
|
10
|
+
file.binmode
|
11
|
+
file << data
|
12
|
+
file.flush
|
13
|
+
file.close
|
14
|
+
|
15
|
+
result = `python GenConfig.py `
|
16
|
+
File.write('data.json', result)
|
17
|
+
puts "finish writting"
|
18
|
+
`plutil -convert xml1 data.json -o MTPSDK.plist`
|
19
|
+
File.delete('data.json')
|
20
|
+
puts "Config finished, run 'pod install' to continue "
|
21
|
+
end
|
6
22
|
end
|
23
|
+
|
24
|
+
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: furion
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- MTP Huya
|
@@ -10,7 +10,7 @@ bindir: bin
|
|
10
10
|
cert_chain: []
|
11
11
|
date: 2019-10-16 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
|
-
description:
|
13
|
+
description: MTP Huya is the best!!!
|
14
14
|
email: mtphuya@yandex.com
|
15
15
|
executables:
|
16
16
|
- furion
|
@@ -41,5 +41,5 @@ requirements: []
|
|
41
41
|
rubygems_version: 3.0.3
|
42
42
|
signing_key:
|
43
43
|
specification_version: 4
|
44
|
-
summary:
|
44
|
+
summary: Host template for MTP
|
45
45
|
test_files: []
|