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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1ed397539f508b36bc5f72ce8902c69b6e08d854daf9bac0a7d9a4953c20b4a5
4
- data.tar.gz: 85b02cda0c16f31c25771939a657473a155a9e68290b42cf25d888c1df0ab87e
3
+ metadata.gz: 9946d94b7fdb2545a346bd6f1d58f95fc03e51b59f72f23b31432dc56b3779a6
4
+ data.tar.gz: d5ebb1a6fda9e6b888145b9d06f212850d485e052b0be91e7e64e1c373da3ed8
5
5
  SHA512:
6
- metadata.gz: '00097049f82ba60ae2eba89a543ed469e709a6d5d17596354cf1ecfc539443f0ee2f55f25a3ada2d9bae74412a81e02fbe266cfb5cdadb61acc243dfac184026'
7
- data.tar.gz: eb4b17ac652ae385b7bd3737ec27e239dc5acb16e0a86edac8253ef88e86b8c733715574d6220291bf506abd10eff20c14bfc3f6900492c7d6f9581e0516704d
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
- option_parser = OptionParser.new do |opts|
20
- opts.banner = "杰杰子帮助信息:"
19
+ option_parser = OptionParser.new do |opts|
20
+ opts.banner = "杰杰子帮助信息呀:"
21
21
 
22
22
  opts.on('-v', '--version', '版本信息') do
23
- puts "当前版本是:" + HappyDayPlugin::VERSION
24
- end
23
+ options[:verson] = HappyDayPlugin::VERSION
24
+ puts "当前版本:" + HappyDayPlugin::VERSION
25
+ end
25
26
 
26
27
  opts.on('-p path', '--path path', '输入路径,可以排查冗余图片') do |value|
27
- # HappyDayPlugin.hi(value)
28
+ options[:path] = value
28
29
  cc = FindImage.new(value)
29
30
  cc.find
30
31
  end
31
32
 
32
- end.parse!
33
+ end
34
+
35
+ option_parser.parse!(ARGV)
36
+ # puts options.inspect
33
37
 
34
- puts options.inspect
Binary file
@@ -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
- # 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")
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
 
@@ -28,7 +28,7 @@ require "happy_day_plugin/version"
28
28
 
29
29
 
30
30
  class FindImage
31
- def initialize(dir)
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
@@ -1,3 +1,3 @@
1
1
  module HappyDayPlugin
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  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
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