happy_day_plugin 0.1.4 → 0.1.5
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/happy_day_plugin +10 -7
- data/happy_day_plugin-0.1.4.gem +0 -0
- data/happy_day_plugin.gemspec +1 -10
- data/lib/happy_day_plugin.rb +2 -3
- data/lib/happy_day_plugin/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9946d94b7fdb2545a346bd6f1d58f95fc03e51b59f72f23b31432dc56b3779a6
|
4
|
+
data.tar.gz: d5ebb1a6fda9e6b888145b9d06f212850d485e052b0be91e7e64e1c373da3ed8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ee79f5f203b465061ad4cd26836ede0b085785c0a99900c8d5766dbe3ff7f3e204162be287beb5f7a1d883149fb3072fae67930cdad80959cc8bf5f89839c09
|
7
|
+
data.tar.gz: b8953c3e3962bf58d6ead2457e6bc7b94b0822386be755276c45ebbfd0c65a4aca59acfcf27eea60ce6d83511baa473aa1c4d3ee677e611f3f095e79553bc9f4
|
data/bin/happy_day_plugin
CHANGED
@@ -16,19 +16,22 @@ require 'happy_day_plugin'
|
|
16
16
|
require 'happy_day_plugin/version'
|
17
17
|
|
18
18
|
options = {}
|
19
|
-
|
20
|
-
|
19
|
+
option_parser = OptionParser.new do |opts|
|
20
|
+
opts.banner = "杰杰子帮助信息呀:"
|
21
21
|
|
22
22
|
opts.on('-v', '--version', '版本信息') do
|
23
|
-
|
24
|
-
|
23
|
+
options[:verson] = HappyDayPlugin::VERSION
|
24
|
+
puts "当前版本:" + HappyDayPlugin::VERSION
|
25
|
+
end
|
25
26
|
|
26
27
|
opts.on('-p path', '--path path', '输入路径,可以排查冗余图片') do |value|
|
27
|
-
|
28
|
+
options[:path] = value
|
28
29
|
cc = FindImage.new(value)
|
29
30
|
cc.find
|
30
31
|
end
|
31
32
|
|
32
|
-
end
|
33
|
+
end
|
34
|
+
|
35
|
+
option_parser.parse!(ARGV)
|
36
|
+
# puts options.inspect
|
33
37
|
|
34
|
-
puts options.inspect
|
Binary file
|
data/happy_day_plugin.gemspec
CHANGED
@@ -32,17 +32,8 @@ Gem::Specification.new do |spec|
|
|
32
32
|
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
33
33
|
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
34
34
|
end
|
35
|
-
# spec.files = `git ls-files`.split("\n")
|
36
35
|
|
37
|
-
|
38
|
-
# # spec.files = `git ls-files`.split("\n")
|
39
|
-
# spec.bindir = "bin"
|
40
|
-
# spec.executables = "happy_day_plugin"
|
41
|
-
# # spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
42
|
-
# spec.require_paths = ["lib"]
|
43
|
-
|
44
|
-
# spec.files = `git ls-files`.split("\n")
|
45
|
-
# spec.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
36
|
+
spec.bindir = "bin"
|
46
37
|
spec.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
47
38
|
spec.require_paths = ["lib"]
|
48
39
|
|
data/lib/happy_day_plugin.rb
CHANGED
@@ -28,7 +28,7 @@ require "happy_day_plugin/version"
|
|
28
28
|
|
29
29
|
|
30
30
|
class FindImage
|
31
|
-
|
31
|
+
def initialize(dir)
|
32
32
|
@imgs = Array.new
|
33
33
|
@mFiles = Array.new
|
34
34
|
@dir = dir
|
@@ -117,5 +117,4 @@ class FindImage
|
|
117
117
|
|
118
118
|
puts "|--结束"
|
119
119
|
end
|
120
|
-
|
121
|
-
end
|
120
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: happy_day_plugin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- 朱佳宝
|
@@ -57,6 +57,7 @@ files:
|
|
57
57
|
- happy_day_plugin-0.1.1.gem
|
58
58
|
- happy_day_plugin-0.1.2.gem
|
59
59
|
- happy_day_plugin-0.1.3.gem
|
60
|
+
- happy_day_plugin-0.1.4.gem
|
60
61
|
- happy_day_plugin.gemspec
|
61
62
|
- lib/happy_day_plugin.rb
|
62
63
|
- lib/happy_day_plugin/version.rb
|