dfb 1.1.1 → 1.1.6

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
  SHA256:
3
- metadata.gz: f81b3f500087438651df8fb1300c9bfe3c3f107413adb1d92f26ef8481a39431
4
- data.tar.gz: e6d6edb4b254ebfc2a080e0a1cd4d2b0b06e382ce439c6950f350c3dd41718ae
3
+ metadata.gz: 6de52e04f86c74471e18e679688ec6694854fa85ebdb25b61030c4e65eb864bf
4
+ data.tar.gz: 0b419c7f41508bb6caad631a2d81cce3efc96bf838a89084d2741b9cfe94ca5a
5
5
  SHA512:
6
- metadata.gz: 688f8b8df3a3574b37f2c6a79f40ba4a7404f17e64eeaebb6982fd24b55c8763006dfc4fea336d1c6f33a1379f95c752baf91aa4653050be2c3967e703f4fe67
7
- data.tar.gz: 7b9f0401ef3e90b9aefcdb41bca3fdb772a2f38999b4ff97fc100c6fdc00623c636b92855f0296c3fd215d3f702ebf9b326bbc87e44e04052f4ef9425d778886
6
+ metadata.gz: 6bc2c61f227d5d2b4a90b158a81e02b3be1e74efc9d40f0a7ec90bedac6fa0874bd595a9b917dde29d4d61b8e25fd5989e90df8e87eddcb93314005d522ddb30
7
+ data.tar.gz: 8e194a2da5b6e04f5230403366b07d3b29c5d483e238abf7956bf39b95fdbb5a65bb1f48d5a70e362938d4c0f294124494ec9bf466df348fe85af39c44c66d52
data/bin/dfb CHANGED
@@ -47,19 +47,19 @@ class App
47
47
  end
48
48
  end
49
49
 
50
- desc '修改当前工程指向的目录'
50
+ desc '下载词典flutter工程'
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
- Dfb.changePath
54
+ Dfb.clone
55
55
  end
56
56
  end
57
57
 
58
- desc '下载词典flutter工程'
58
+ desc '修改当前工程指向的目录'
59
59
  arg_name 'Describe arguments to complete here'
60
- command :clone do |c|
60
+ command :change do |c|
61
61
  c.action do |global_options,options,args|
62
- Dfb.clone
62
+ Dfb.changePath
63
63
  end
64
64
  end
65
65
 
data/lib/dfb.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/ruby
2
2
 
3
3
  require 'dfb/version.rb'
4
- require './path_manager.rb'
4
+ require 'path_manager.rb'
5
5
 
6
6
  # Add requires for other files you add to your project here, so
7
7
  # you just need to require this one file in your bin file
@@ -16,7 +16,7 @@ module Dfb
16
16
 
17
17
  def self.clone
18
18
  puts "请输入您要放此工程的位置:"
19
- val = gets
19
+ val = STDIN.gets
20
20
  val = val.chop
21
21
  path = val + "/YDNativeFlutterBridge"
22
22
  puts "您的工程的路径为" + val + path
@@ -130,11 +130,13 @@ module Dfb
130
130
  puts "如果您的工程是YDNativeFlutterBridge 路径是 /Users/chedch/YDDictFlutter/YDNativeFlutterBridge,则输入此路径"
131
131
  puts "请输入您的新的YDNativeFlutterBridge工程路径:"
132
132
 
133
- val = gets
133
+ val = STDIN.gets
134
134
  if val =~ /(.*)\/YDNativeFlutterBridge/
135
135
  PathManager.inputPath(val.chop)
136
+ return
136
137
  else
137
138
  puts "'change path' fails"
139
+ return
138
140
  end
139
141
 
140
142
  end
@@ -165,9 +167,9 @@ module Dfb
165
167
 
166
168
  # Dfb.changePath("/user/asdfadfasdf/sdfasdf/user/asdfadfasdf/sdfasdf/user/asdfadfasdf/sdfasdf/user/asdfadfasdf/sdfasdf/user/asdfadfasdf/sdfasdf/user/asdfadfasdf/sdfasdf/user/asdfadfasdf/sdfasdf/user/asdfadfasdf/sdfasdf/user/asdfadfasdf/sdfasdf")
167
169
  # Dfb.systemCDInProject
168
- Dfb.attach
170
+ # Dfb.attach
169
171
  # Dfb.systemCDInProject
170
- # Dfb.changePath
172
+ Dfb.changePath
171
173
  # Dfb.run_android
172
174
  # Dfb.cdPathWithFlutterModule
173
175
  # Dfb.cdPathWithAndroidExample
data/lib/dfb/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Dfb
2
- VERSION = '1.1.1'
2
+ VERSION = '1.1.6'
3
3
  end
data/lib/path_manager.rb CHANGED
@@ -7,7 +7,7 @@ module PathManager
7
7
  if self.containsPath
8
8
  puts "确定您的新路径?为" + path
9
9
  puts "y/n"
10
- val = gets
10
+ val = STDIN.gets
11
11
  if val =~ /Y|y/
12
12
  self.deletePathFile
13
13
  self.storagePathFile(path)
@@ -44,7 +44,7 @@ module PathManager
44
44
  }
45
45
  return true
46
46
  else
47
- puts "根目录不存在"
47
+ puts "根目录不存在,请添加!"
48
48
  return false
49
49
  end
50
50
  end
@@ -52,4 +52,4 @@ module PathManager
52
52
  def self.pathFileName
53
53
  return "dfb_path_file"
54
54
  end
55
- end
55
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dfb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - chedechao
@@ -80,26 +80,6 @@ files:
80
80
  - README.rdoc
81
81
  - Rakefile
82
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
89
- - dfb-0.0.7.gem
90
- - dfb-0.0.8.gem
91
- - dfb-0.0.9.gem
92
- - dfb-1.0.0.gem
93
- - dfb-1.0.1.gem
94
- - dfb-1.0.2.gem
95
- - dfb-1.0.3.gem
96
- - dfb-1.0.4.gem
97
- - dfb-1.0.5.gem
98
- - dfb-1.0.6.gem
99
- - dfb-1.0.7.gem
100
- - dfb-1.0.8.gem
101
- - dfb-1.0.9.gem
102
- - dfb-1.1.0.gem
103
83
  - dfb.gemspec
104
84
  - dfb.rdoc
105
85
  - features/dfb.feature
data/dfb-0.0.1.gem DELETED
Binary file
data/dfb-0.0.2.gem DELETED
Binary file
data/dfb-0.0.3.gem DELETED
Binary file
data/dfb-0.0.4.gem DELETED
Binary file
data/dfb-0.0.5.gem DELETED
Binary file
data/dfb-0.0.6.gem DELETED
Binary file
data/dfb-0.0.7.gem DELETED
Binary file
data/dfb-0.0.8.gem DELETED
Binary file
data/dfb-0.0.9.gem DELETED
Binary file
data/dfb-1.0.0.gem DELETED
Binary file
data/dfb-1.0.1.gem DELETED
Binary file
data/dfb-1.0.2.gem DELETED
Binary file
data/dfb-1.0.3.gem DELETED
Binary file
data/dfb-1.0.4.gem DELETED
Binary file
data/dfb-1.0.5.gem DELETED
Binary file
data/dfb-1.0.6.gem DELETED
Binary file
data/dfb-1.0.7.gem DELETED
Binary file
data/dfb-1.0.8.gem DELETED
Binary file
data/dfb-1.0.9.gem DELETED
Binary file
data/dfb-1.1.0.gem DELETED
Binary file