dfb 0.0.2 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +61 -0
- data/bin/dfb +12 -12
- data/dfb-0.0.1.gem +0 -0
- data/dfb-0.0.2.gem +0 -0
- data/dfb-0.0.3.gem +0 -0
- data/dfb-0.0.4.gem +0 -0
- data/dfb-0.0.5.gem +0 -0
- data/dfb-0.0.6.gem +0 -0
- data/install_flutter_env.sh +20 -0
- data/lib/dfb.rb +29 -3
- data/lib/dfb/version.rb +1 -1
- metadata +10 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 30eac5e2f49f7a32719401624478f71a3f735470da6451dc6f87364c90336e99
|
4
|
+
data.tar.gz: e9b07899e2b75e741097e8a4735789f80e7e20a041ba9cf4e5f360ac212dfba2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98d48e62bbe739c6631529927f3456fd35561bc244567d9905bb6baf91aa3573020f40289b1a4388d07109ac9301c77f1604576eef871ec80d6bd655f89cc64c
|
7
|
+
data.tar.gz: 172f9b7ad07433caddb5b828ef199583ba7a2e89c7c1b68151e19dbc81848f0febba94b74bb47c0260135888e22da531c963a1965296c3c4d272c26e397f6474
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,61 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
dfb (0.0.6)
|
5
|
+
gli (= 2.19.0)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
aruba (0.14.12)
|
11
|
+
childprocess (>= 0.6.3, < 4.0.0)
|
12
|
+
contracts (~> 0.9)
|
13
|
+
cucumber (>= 1.3.19)
|
14
|
+
ffi (~> 1.9)
|
15
|
+
rspec-expectations (>= 2.99)
|
16
|
+
thor (~> 0.19)
|
17
|
+
backports (3.15.0)
|
18
|
+
builder (3.2.3)
|
19
|
+
childprocess (3.0.0)
|
20
|
+
contracts (0.16.0)
|
21
|
+
cucumber (3.1.2)
|
22
|
+
builder (>= 2.1.2)
|
23
|
+
cucumber-core (~> 3.2.0)
|
24
|
+
cucumber-expressions (~> 6.0.1)
|
25
|
+
cucumber-wire (~> 0.0.1)
|
26
|
+
diff-lcs (~> 1.3)
|
27
|
+
gherkin (~> 5.1.0)
|
28
|
+
multi_json (>= 1.7.5, < 2.0)
|
29
|
+
multi_test (>= 0.1.2)
|
30
|
+
cucumber-core (3.2.1)
|
31
|
+
backports (>= 3.8.0)
|
32
|
+
cucumber-tag_expressions (~> 1.1.0)
|
33
|
+
gherkin (~> 5.0)
|
34
|
+
cucumber-expressions (6.0.1)
|
35
|
+
cucumber-tag_expressions (1.1.1)
|
36
|
+
cucumber-wire (0.0.1)
|
37
|
+
diff-lcs (1.3)
|
38
|
+
ffi (1.11.3)
|
39
|
+
gherkin (5.1.0)
|
40
|
+
gli (2.19.0)
|
41
|
+
multi_json (1.14.1)
|
42
|
+
multi_test (0.1.2)
|
43
|
+
rake (13.0.1)
|
44
|
+
rdoc (6.2.0)
|
45
|
+
rspec-expectations (3.9.0)
|
46
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
47
|
+
rspec-support (~> 3.9.0)
|
48
|
+
rspec-support (3.9.0)
|
49
|
+
thor (0.20.3)
|
50
|
+
|
51
|
+
PLATFORMS
|
52
|
+
ruby
|
53
|
+
|
54
|
+
DEPENDENCIES
|
55
|
+
aruba
|
56
|
+
dfb!
|
57
|
+
rake
|
58
|
+
rdoc
|
59
|
+
|
60
|
+
BUNDLED WITH
|
61
|
+
1.17.3
|
data/bin/dfb
CHANGED
@@ -14,7 +14,7 @@ class App
|
|
14
14
|
|
15
15
|
program_desc '词典flutter工程管理命令'
|
16
16
|
|
17
|
-
version
|
17
|
+
version Dfb::VERSION
|
18
18
|
|
19
19
|
subcommand_option_handling :normal
|
20
20
|
arguments :strict
|
@@ -51,7 +51,7 @@ class App
|
|
51
51
|
arg_name 'Describe arguments to complete here'
|
52
52
|
command :clone do |c|
|
53
53
|
c.action do |global_options,options,args|
|
54
|
-
|
54
|
+
Dfb.clone
|
55
55
|
end
|
56
56
|
end
|
57
57
|
|
@@ -59,7 +59,7 @@ class App
|
|
59
59
|
arg_name 'Describe arguments to add here'
|
60
60
|
command :init_flutter do |c|
|
61
61
|
c.action do |global_options,options,args|
|
62
|
-
|
62
|
+
Dfb.init_flutter
|
63
63
|
end
|
64
64
|
end
|
65
65
|
|
@@ -67,7 +67,7 @@ class App
|
|
67
67
|
arg_name 'Describe arguments to add here'
|
68
68
|
command :run_ios do |c|
|
69
69
|
c.action do |global_options,options,args|
|
70
|
-
|
70
|
+
Dfb.run_ios
|
71
71
|
end
|
72
72
|
end
|
73
73
|
|
@@ -75,23 +75,23 @@ class App
|
|
75
75
|
arg_name 'Describe arguments to add here'
|
76
76
|
command :run_android do |c|
|
77
77
|
c.action do |global_options,options,args|
|
78
|
-
|
78
|
+
Dfb.run_android
|
79
79
|
end
|
80
80
|
end
|
81
81
|
|
82
|
-
desc '
|
82
|
+
desc 'attach手机'
|
83
83
|
arg_name 'Describe arguments to add here'
|
84
84
|
command :attach do |c|
|
85
85
|
c.action do |global_options,options,args|
|
86
|
-
|
86
|
+
Dfb.attach
|
87
87
|
end
|
88
88
|
end
|
89
89
|
|
90
|
-
desc '
|
91
|
-
arg_name '
|
90
|
+
desc '创建业务flutter package'
|
91
|
+
arg_name '后接package name'
|
92
92
|
command :create_package do |c|
|
93
93
|
c.action do |global_options,options,args|
|
94
|
-
|
94
|
+
Dfb.create_package(args[0])
|
95
95
|
end
|
96
96
|
end
|
97
97
|
|
@@ -99,7 +99,7 @@ class App
|
|
99
99
|
arg_name 'Describe arguments to add here'
|
100
100
|
command :pub_get do |c|
|
101
101
|
c.action do |global_options,options,args|
|
102
|
-
|
102
|
+
Dfb.pub_get
|
103
103
|
end
|
104
104
|
end
|
105
105
|
|
@@ -107,7 +107,7 @@ class App
|
|
107
107
|
arg_name 'Describe arguments to add here'
|
108
108
|
command :flutter_clean do |c|
|
109
109
|
c.action do |global_options,options,args|
|
110
|
-
|
110
|
+
Dfb.flutter_clean
|
111
111
|
end
|
112
112
|
end
|
113
113
|
|
data/dfb-0.0.1.gem
ADDED
Binary file
|
data/dfb-0.0.2.gem
ADDED
Binary file
|
data/dfb-0.0.3.gem
ADDED
Binary file
|
data/dfb-0.0.4.gem
ADDED
Binary file
|
data/dfb-0.0.5.gem
ADDED
Binary file
|
data/dfb-0.0.6.gem
ADDED
Binary file
|
@@ -0,0 +1,20 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
brew install wget
|
3
|
+
mkdir ~/development
|
4
|
+
cd ~/development
|
5
|
+
wget https://storage.googleapis.com/flutter_infra/releases/stable/macos/flutter_macos_v1.9.1+hotfix.6-stable.zip
|
6
|
+
unzip ./flutter_macos_v1.9.1+hotfix.6-stable
|
7
|
+
|
8
|
+
|
9
|
+
sudo -s touch /etc/paths.d/flutter
|
10
|
+
sudo chmod 777 /etc/paths.d/flutter
|
11
|
+
sudo -s echo "`pwd`/flutter/bin" > /etc/paths.d/flutter
|
12
|
+
|
13
|
+
sudo -s touch /etc/paths.d/dart
|
14
|
+
sudo chmod 777 /etc/paths.d/dart
|
15
|
+
sudo -s echo "`pwd`/flutter/bin/cache/dart-sdk/bin" > /etc/paths.d/dart
|
16
|
+
|
17
|
+
source /etc/paths
|
18
|
+
export PATH=$PATH:`pwd`/flutter/bin
|
19
|
+
flutter doctor
|
20
|
+
read -s -n1 -p "按任意键继续 ... "
|
data/lib/dfb.rb
CHANGED
@@ -2,7 +2,7 @@ require 'dfb/version.rb'
|
|
2
2
|
|
3
3
|
# Add requires for other files you add to your project here, so
|
4
4
|
# you just need to require this one file in your bin file
|
5
|
-
module
|
5
|
+
module Dfb
|
6
6
|
# Your code goes here...
|
7
7
|
def self.hello
|
8
8
|
p "hello world"
|
@@ -11,7 +11,7 @@ module dfb
|
|
11
11
|
|
12
12
|
def self.clone
|
13
13
|
p "git clone ..."
|
14
|
-
system 'mkdir ~/YDDictFlutter; cd ~/YDDictFlutter;git clone git@gitlab.corp.youdao.com:luna-dev/
|
14
|
+
system 'mkdir ~/YDDictFlutter; cd ~/YDDictFlutter;git clone git@gitlab.corp.youdao.com:luna-dev/YDNativeFlutterBridge.git;'
|
15
15
|
system "cd ~/YDDictFlutter/dict-ios-flutter-bridge;git submodule init;git submodule update;"
|
16
16
|
end
|
17
17
|
|
@@ -43,6 +43,7 @@ module dfb
|
|
43
43
|
end
|
44
44
|
|
45
45
|
def self.create_package(packageName)
|
46
|
+
self.checkEnv
|
46
47
|
p "创建flutter package"
|
47
48
|
command = "cd ~/YDDictFlutter/dict-ios-flutter-bridge/Embed/flutter_module/Business;flutter create --template=package " + packageName
|
48
49
|
system command
|
@@ -57,4 +58,29 @@ module dfb
|
|
57
58
|
system "cd ~/YDDictFlutter/dict-ios-flutter-bridge/Embed/flutter_module;flutter clean;"
|
58
59
|
end
|
59
60
|
|
60
|
-
|
61
|
+
def self.checkEnv
|
62
|
+
self.checkFlutter
|
63
|
+
self.checkProject
|
64
|
+
end
|
65
|
+
|
66
|
+
def self.checkFlutter
|
67
|
+
outputs = system 'flutter --version'
|
68
|
+
if outputs == nil
|
69
|
+
p '安装flutter...'
|
70
|
+
self.init_flutter
|
71
|
+
else
|
72
|
+
p '已安装flutter环境'
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
def self.checkProject
|
77
|
+
outputs = system 'cd ~;mkdir YDDictFlutter'
|
78
|
+
if outputs == false
|
79
|
+
p '工程已存在'
|
80
|
+
else
|
81
|
+
p '正在下载工程..'
|
82
|
+
self.clone
|
83
|
+
end
|
84
|
+
end
|
85
|
+
|
86
|
+
end
|
data/lib/dfb/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dfb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
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: 2019-12-
|
11
|
+
date: 2019-12-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -76,14 +76,22 @@ extra_rdoc_files:
|
|
76
76
|
- dfb.rdoc
|
77
77
|
files:
|
78
78
|
- Gemfile
|
79
|
+
- Gemfile.lock
|
79
80
|
- README.rdoc
|
80
81
|
- Rakefile
|
81
82
|
- bin/dfb
|
83
|
+
- dfb-0.0.1.gem
|
84
|
+
- dfb-0.0.2.gem
|
85
|
+
- dfb-0.0.3.gem
|
86
|
+
- dfb-0.0.4.gem
|
87
|
+
- dfb-0.0.5.gem
|
88
|
+
- dfb-0.0.6.gem
|
82
89
|
- dfb.gemspec
|
83
90
|
- dfb.rdoc
|
84
91
|
- features/dfb.feature
|
85
92
|
- features/step_definitions/dfb_steps.rb
|
86
93
|
- features/support/env.rb
|
94
|
+
- install_flutter_env.sh
|
87
95
|
- lib/dfb.rb
|
88
96
|
- lib/dfb/version.rb
|
89
97
|
- test/default_test.rb
|