happy_day_plugin 0.1.3 → 0.1.4
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 +34 -0
- data/happy_day_plugin-0.1.0.gem +0 -0
- data/happy_day_plugin-0.1.1.gem +0 -0
- data/happy_day_plugin-0.1.2.gem +0 -0
- data/happy_day_plugin-0.1.3.gem +0 -0
- data/happy_day_plugin.gemspec +12 -2
- data/lib/happy_day_plugin.rb +22 -26
- data/lib/happy_day_plugin/version.rb +1 -1
- data/unused.txt +44 -0
- metadata +11 -6
- data/bin/console +0 -14
- data/bin/setup +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ed397539f508b36bc5f72ce8902c69b6e08d854daf9bac0a7d9a4953c20b4a5
|
4
|
+
data.tar.gz: 85b02cda0c16f31c25771939a657473a155a9e68290b42cf25d888c1df0ab87e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '00097049f82ba60ae2eba89a543ed469e709a6d5d17596354cf1ecfc539443f0ee2f55f25a3ada2d9bae74412a81e02fbe266cfb5cdadb61acc243dfac184026'
|
7
|
+
data.tar.gz: eb4b17ac652ae385b7bd3737ec27e239dc5acb16e0a86edac8253ef88e86b8c733715574d6220291bf506abd10eff20c14bfc3f6900492c7d6f9581e0516704d
|
@@ -0,0 +1,34 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
# require "bundler/setup"
|
4
|
+
# require "happy_day_plugin"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require 'optparse'
|
14
|
+
|
15
|
+
require 'happy_day_plugin'
|
16
|
+
require 'happy_day_plugin/version'
|
17
|
+
|
18
|
+
options = {}
|
19
|
+
option_parser = OptionParser.new do |opts|
|
20
|
+
opts.banner = "杰杰子帮助信息:"
|
21
|
+
|
22
|
+
opts.on('-v', '--version', '版本信息') do
|
23
|
+
puts "当前版本是:" + HappyDayPlugin::VERSION
|
24
|
+
end
|
25
|
+
|
26
|
+
opts.on('-p path', '--path path', '输入路径,可以排查冗余图片') do |value|
|
27
|
+
# HappyDayPlugin.hi(value)
|
28
|
+
cc = FindImage.new(value)
|
29
|
+
cc.find
|
30
|
+
end
|
31
|
+
|
32
|
+
end.parse!
|
33
|
+
|
34
|
+
puts options.inspect
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/happy_day_plugin.gemspec
CHANGED
@@ -32,8 +32,18 @@ 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.
|
36
|
-
|
35
|
+
# spec.files = `git ls-files`.split("\n")
|
36
|
+
|
37
|
+
# spec.rubyforge_project = "happy_day_plugin"
|
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")
|
46
|
+
spec.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
37
47
|
spec.require_paths = ["lib"]
|
38
48
|
|
39
49
|
spec.add_development_dependency "bundler", "~> 1.17"
|
data/lib/happy_day_plugin.rb
CHANGED
@@ -1,35 +1,33 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
1
3
|
require "happy_day_plugin/version"
|
2
|
-
require 'optparse'
|
3
4
|
|
4
|
-
options = {}
|
5
|
-
option_parser = OptionParser.new do |opts|
|
6
5
|
|
7
|
-
opts.on('-s', '--switch', 'Set options as switch') do
|
8
|
-
options[:switch] = true
|
9
|
-
end
|
10
6
|
|
11
|
-
end.parse!
|
12
7
|
|
13
|
-
|
8
|
+
# module HappyDayPlugin
|
9
|
+
# class Error < StandardError; end
|
10
|
+
|
11
|
+
# def self.hi(p)
|
12
|
+
# cc = FindImage.new(p)
|
13
|
+
# cc.find
|
14
|
+
# end
|
14
15
|
|
15
|
-
|
16
|
-
|
16
|
+
# # class CH
|
17
|
+
# # def initialize(p)
|
18
|
+
# # @v = p
|
19
|
+
# # end
|
20
|
+
# # def hello
|
21
|
+
# # puts "hello" + @v
|
22
|
+
# # end
|
23
|
+
# # end
|
17
24
|
|
18
|
-
|
19
|
-
cc = FindImage.new(p)
|
20
|
-
cc.find
|
21
|
-
end
|
25
|
+
|
22
26
|
|
23
|
-
|
24
|
-
# def initialize(p)
|
25
|
-
# @v = p
|
26
|
-
# end
|
27
|
-
# def hello
|
28
|
-
# puts "hello" + @v
|
29
|
-
# end
|
30
|
-
# end
|
27
|
+
# end
|
31
28
|
|
32
|
-
|
29
|
+
|
30
|
+
class FindImage
|
33
31
|
def initialize(dir)
|
34
32
|
@imgs = Array.new
|
35
33
|
@mFiles = Array.new
|
@@ -120,6 +118,4 @@ module HappyDayPlugin
|
|
120
118
|
puts "|--结束"
|
121
119
|
end
|
122
120
|
|
123
|
-
end
|
124
|
-
|
125
|
-
end
|
121
|
+
end
|
data/unused.txt
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
/Users/zhujiabao3/jrCommunityTools/JRCommunityTools/Assets/jrcommunity_hot_list_icon_0@2x.png
|
2
|
+
/Users/zhujiabao3/jrCommunityTools/JRCommunityTools/Assets/jrcommunity_hot_list_icon_2@3x.png
|
3
|
+
/Users/zhujiabao3/jrCommunityTools/JRCommunityTools/Assets/jrcommunity_hot_list_icon_2@2x.png
|
4
|
+
/Users/zhujiabao3/jrCommunityTools/JRCommunityTools/Assets/jrcommunity_hot_list_icon_0@3x.png
|
5
|
+
/Users/zhujiabao3/jrCommunityTools/JRCommunityTools/Assets/JRCommunityReport_Edit.png
|
6
|
+
/Users/zhujiabao3/jrCommunityTools/JRCommunityTools/Assets/jrcommunity_hot_list_icon_1@2x.png
|
7
|
+
/Users/zhujiabao3/jrCommunityTools/JRCommunityTools/Assets/LivePraise/live_img_6.png
|
8
|
+
/Users/zhujiabao3/jrCommunityTools/JRCommunityTools/Assets/LivePraise/live_img_7.png
|
9
|
+
/Users/zhujiabao3/jrCommunityTools/JRCommunityTools/Assets/LivePraise/live_img_5.png
|
10
|
+
/Users/zhujiabao3/jrCommunityTools/JRCommunityTools/Assets/LivePraise/live_img_4.png
|
11
|
+
/Users/zhujiabao3/jrCommunityTools/JRCommunityTools/Assets/LivePraise/live_img_1.png
|
12
|
+
/Users/zhujiabao3/jrCommunityTools/JRCommunityTools/Assets/LivePraise/live_img_3.png
|
13
|
+
/Users/zhujiabao3/jrCommunityTools/JRCommunityTools/Assets/LivePraise/live_img_2.png
|
14
|
+
/Users/zhujiabao3/jrCommunityTools/JRCommunityTools/Assets/LivePraise/live_img_8.png
|
15
|
+
/Users/zhujiabao3/jrCommunityTools/JRCommunityTools/Assets/jrcommunity_hot_list_icon_1@3x.png
|
16
|
+
/Users/zhujiabao3/jrCommunityTools/JRCommunityTools/Assets/share_common/JRCommunity_userinfo_share_avatar_vip@2x.png
|
17
|
+
/Users/zhujiabao3/jrCommunityTools/JRCommunityTools/Assets/share_common/JRCommunity_userinfo_share_avatar_vip@3x.png
|
18
|
+
/Users/zhujiabao3/jrCommunityTools/JRCommunityTools/Assets/share_common/JRCommunity_articleShare_jd_finance@3x.png
|
19
|
+
/Users/zhujiabao3/jrCommunityTools/JRCommunityTools/Assets/share_common/JRCommunity_articleShare_jd_finance@2x.png
|
20
|
+
/Users/zhujiabao3/jrCommunityTools/JRCommunityTools/Assets/community_315cell_icon.png
|
21
|
+
/Users/zhujiabao3/jrCommunityTools/JRCommunityTools/Assets/no_message_icon.png
|
22
|
+
/Users/zhujiabao3/jrCommunityTools/JRCommunityTools/Assets/reply_icon_blue.png
|
23
|
+
/Users/zhujiabao3/jrCommunityTools/JRCommunityTools/Assets/jrcommunity_hot_list_icon_0@2x.png
|
24
|
+
/Users/zhujiabao3/jrCommunityTools/JRCommunityTools/Assets/jrcommunity_hot_list_icon_2@3x.png
|
25
|
+
/Users/zhujiabao3/jrCommunityTools/JRCommunityTools/Assets/jrcommunity_hot_list_icon_2@2x.png
|
26
|
+
/Users/zhujiabao3/jrCommunityTools/JRCommunityTools/Assets/jrcommunity_hot_list_icon_0@3x.png
|
27
|
+
/Users/zhujiabao3/jrCommunityTools/JRCommunityTools/Assets/JRCommunityReport_Edit.png
|
28
|
+
/Users/zhujiabao3/jrCommunityTools/JRCommunityTools/Assets/jrcommunity_hot_list_icon_1@2x.png
|
29
|
+
/Users/zhujiabao3/jrCommunityTools/JRCommunityTools/Assets/LivePraise/live_img_6.png
|
30
|
+
/Users/zhujiabao3/jrCommunityTools/JRCommunityTools/Assets/LivePraise/live_img_7.png
|
31
|
+
/Users/zhujiabao3/jrCommunityTools/JRCommunityTools/Assets/LivePraise/live_img_5.png
|
32
|
+
/Users/zhujiabao3/jrCommunityTools/JRCommunityTools/Assets/LivePraise/live_img_4.png
|
33
|
+
/Users/zhujiabao3/jrCommunityTools/JRCommunityTools/Assets/LivePraise/live_img_1.png
|
34
|
+
/Users/zhujiabao3/jrCommunityTools/JRCommunityTools/Assets/LivePraise/live_img_3.png
|
35
|
+
/Users/zhujiabao3/jrCommunityTools/JRCommunityTools/Assets/LivePraise/live_img_2.png
|
36
|
+
/Users/zhujiabao3/jrCommunityTools/JRCommunityTools/Assets/LivePraise/live_img_8.png
|
37
|
+
/Users/zhujiabao3/jrCommunityTools/JRCommunityTools/Assets/jrcommunity_hot_list_icon_1@3x.png
|
38
|
+
/Users/zhujiabao3/jrCommunityTools/JRCommunityTools/Assets/share_common/JRCommunity_userinfo_share_avatar_vip@2x.png
|
39
|
+
/Users/zhujiabao3/jrCommunityTools/JRCommunityTools/Assets/share_common/JRCommunity_userinfo_share_avatar_vip@3x.png
|
40
|
+
/Users/zhujiabao3/jrCommunityTools/JRCommunityTools/Assets/share_common/JRCommunity_articleShare_jd_finance@3x.png
|
41
|
+
/Users/zhujiabao3/jrCommunityTools/JRCommunityTools/Assets/share_common/JRCommunity_articleShare_jd_finance@2x.png
|
42
|
+
/Users/zhujiabao3/jrCommunityTools/JRCommunityTools/Assets/community_315cell_icon.png
|
43
|
+
/Users/zhujiabao3/jrCommunityTools/JRCommunityTools/Assets/no_message_icon.png
|
44
|
+
/Users/zhujiabao3/jrCommunityTools/JRCommunityTools/Assets/reply_icon_blue.png
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- 朱佳宝
|
8
8
|
autorequire:
|
9
|
-
bindir:
|
9
|
+
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-05-
|
11
|
+
date: 2021-05-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -41,7 +41,8 @@ dependencies:
|
|
41
41
|
description: we love day
|
42
42
|
email:
|
43
43
|
- 13051132827@163.com
|
44
|
-
executables:
|
44
|
+
executables:
|
45
|
+
- happy_day_plugin
|
45
46
|
extensions: []
|
46
47
|
extra_rdoc_files: []
|
47
48
|
files:
|
@@ -51,11 +52,15 @@ files:
|
|
51
52
|
- LICENSE.txt
|
52
53
|
- README.md
|
53
54
|
- Rakefile
|
54
|
-
- bin/
|
55
|
-
-
|
55
|
+
- bin/happy_day_plugin
|
56
|
+
- happy_day_plugin-0.1.0.gem
|
57
|
+
- happy_day_plugin-0.1.1.gem
|
58
|
+
- happy_day_plugin-0.1.2.gem
|
59
|
+
- happy_day_plugin-0.1.3.gem
|
56
60
|
- happy_day_plugin.gemspec
|
57
61
|
- lib/happy_day_plugin.rb
|
58
62
|
- lib/happy_day_plugin/version.rb
|
63
|
+
- unused.txt
|
59
64
|
homepage: https://rubygems.org
|
60
65
|
licenses:
|
61
66
|
- MIT
|
data/bin/console
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require "bundler/setup"
|
4
|
-
require "happy_day_plugin"
|
5
|
-
|
6
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
-
# with your gem easier. You can also use a different console, if you like.
|
8
|
-
|
9
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
-
# require "pry"
|
11
|
-
# Pry.start
|
12
|
-
|
13
|
-
require "irb"
|
14
|
-
IRB.start(__FILE__)
|