itools 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f078c88b1cad707558e31ce1e18919b7375ae486517a1428f35b9fe969d10951
4
- data.tar.gz: b5733bf7a054146ace61c91c276ede3857b2288535903c5a86103c6a7ccf80cf
3
+ metadata.gz: 37580f6cc9508b7b5f0af4e2edcab572ba83872fca07f06973ee7854b206d793
4
+ data.tar.gz: 945bb1f2ffb7982670d6ec3f8853c4822ceeae09c890a287fbcf189831c19dd6
5
5
  SHA512:
6
- metadata.gz: b504c3211b25a0c418439d9415f7277fdc2a1a3169842257c31e9ef957815b54fec241ee0eb06492a17daef2887a0e047bc9ffe33ca95bc5b49e743aa82d65c4
7
- data.tar.gz: fb3ce2ebdcc5f2d474b8afffc1ce974201723f825773f1aa2e631e393ebbcc3c1985f36bb563bb99875f7c33c0b49647d9a8c36422321cae416dc1dcdf506fa7
6
+ metadata.gz: 4201ffe5a64c295a8bfd98b06e595bef8c956ec4f3ab9944c7e01c7409c2d5e36604dd77de644613ae2da6fa210f4bbef6740906c8002bcd298a4115f443001f
7
+ data.tar.gz: 7ff901fe7a0c69ad16441ad7279490ebfb709b4b20d92c20128a3cbce1e9441393702e30896a0370bbcd21860022c5625b99acf9c1ed781ab98f9e2000e348d0
data/.gitignore CHANGED
@@ -1,8 +1,50 @@
1
- /.bundle/
2
- /.yardoc
3
- /_yardoc/
1
+ *.gem
2
+ *.rbc
3
+ /.config
4
4
  /coverage/
5
- /doc/
5
+ /InstalledFiles
6
6
  /pkg/
7
7
  /spec/reports/
8
+ /spec/examples.txt
9
+ /test/tmp/
10
+ /test/version_tmp/
8
11
  /tmp/
12
+
13
+ # Used by dotenv library to load environment variables.
14
+ # .env
15
+
16
+ ## Specific to RubyMotion:
17
+ .dat*
18
+ .repl_history
19
+ build/
20
+ *.bridgesupport
21
+ build-iPhoneOS/
22
+ build-iPhoneSimulator/
23
+
24
+ ## Specific to RubyMotion (use of CocoaPods):
25
+ #
26
+ # We recommend against adding the Pods directory to your .gitignore. However
27
+ # you should judge for yourself, the pros and cons are mentioned at:
28
+ # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
29
+ #
30
+ # vendor/Pods/
31
+
32
+ ## Documentation cache and generated files:
33
+ /.yardoc/
34
+ /_yardoc/
35
+ /doc/
36
+ /rdoc/
37
+
38
+ ## Environment normalization:
39
+ /.bundle/
40
+ /vendor/bundle
41
+ /lib/bundler/man/
42
+
43
+ # for a library or gem, you might want to ignore these files since the code is
44
+ # intended to run in multiple environments; otherwise, check them in:
45
+ # Gemfile.lock
46
+ # .ruby-version
47
+ # .ruby-gemset
48
+
49
+ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
50
+ .rvmrc
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- itools (0.1.0)
4
+ itools (0.1.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2018 Zhang Gui
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/bin/itools CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require gli
3
+ require 'gli'
4
4
  require 'itools'
5
5
 
6
6
  include GLI::App
@@ -9,12 +9,29 @@ program_desc 'a collection of tools for ios developer'
9
9
 
10
10
  version Itools::VERSION
11
11
 
12
+
13
+
14
+
12
15
  desc "Analyze the memory footprint of each part or component in Xcode project"
13
- arg 'xxx.txt linkmap'
16
+ arg 'xxx.txt'
14
17
  command :parse do |c|
15
18
  c.action do |global_options, options, args|
16
- Itools::LinkMap.parser(args[0])
19
+ Itools::LinkMap.parser(args.first)
17
20
  end
18
21
 
22
+
23
+ on_error do |err|
24
+ if debugging?
25
+ $stderr.puts err.message
26
+ $stderr.puts err.backtrace.join("\n")
27
+ else
28
+ next if GLI::CustomExit === err
29
+ $stderr.puts err.message
30
+ end
31
+ end
32
+
33
+ def debugging?
34
+ defined? Bundler
35
+ end
36
+
19
37
  exit run(ARGV)
20
-
data/lib/itools.rb CHANGED
@@ -1,2 +1,2 @@
1
1
  require "itools/version"
2
- require "itools/link_map.rb"
2
+ require "itools/link_map"
@@ -1,6 +1,5 @@
1
1
  require 'fileutils'
2
2
  require 'pathname'
3
- $: << "."
4
3
 
5
4
  module Itools
6
5
  # ---------------------------------ObjectFile class---------------------------------
@@ -1,3 +1,3 @@
1
1
  module Itools
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - zhanggui
@@ -49,6 +49,7 @@ files:
49
49
  - CODE_OF_CONDUCT.md
50
50
  - Gemfile
51
51
  - Gemfile.lock
52
+ - LICENSE
52
53
  - LICENSE.txt
53
54
  - README.md
54
55
  - Rakefile