swoop_report 0.2.1 → 0.2.2

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
  SHA1:
3
- metadata.gz: fa4120022c0b5a0ae627d937c5e4884fd46c078b
4
- data.tar.gz: 7d03fa387ecb76abf2b4ebd8729c9c071149225b
3
+ metadata.gz: 1965a15f5a1155a260cfd4743d46da63ad415ae7
4
+ data.tar.gz: 20fca146129aa5856d657e1b3fd9ec402027b17e
5
5
  SHA512:
6
- metadata.gz: 29c0f2a9a96bb37420b209219fcaab562b64115379763ae5866a0ea28a860b35570369c5f92e25db89a2e648888f1b0f3c42a23ddf6bb7992265657e987245e5
7
- data.tar.gz: d9c06e1d912dc79ef6f91471c73fdc3b970c7441a3131aab44126be9e894a5dc7fcce8d7e77a69efe3b381b01d07be9165da89a7ca0c035d0dc2bdd0ce27a922
6
+ metadata.gz: 31d3697117e100ea08eab62d3d0fea9f93d26a002666773105641221cb9d2c0978fb49fa188f7e019948fda7c3e65e6b60f730a7e382e3cc5de214a5e7e1f969
7
+ data.tar.gz: 2744fe86cf6e87d6d2cbab3cf278e09f1d2f5e200281622308b08da26c4b6ca52a7807b2c30d56a6327fdfaec2efd4b2acab96393566284b68d707ac638fab36
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## v0.2.2
4
+
5
+ * Empty file checks
6
+
3
7
  ## v0.2.1
4
8
 
5
9
  * Adding CHANGELOG.md
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Swoop : Swift to Objective-C conversion reporter
1
+ # Swoop : Swift and Objective-C comparison reporter
2
2
 
3
3
  [![Gem](https://img.shields.io/gem/v/swoop_report.svg)][rubygems]
4
4
  [![Build Status](http://img.shields.io/travis/ikhsan/swoop/master.svg)][travis]
@@ -58,13 +58,13 @@ Say you have your awesome project inside `YourAwesomeProject` folder called `Awe
58
58
  Say, you want to compare all of the classes then run :
59
59
 
60
60
  ```bash
61
- $ swoop --path "~/YourAwesomeProject/AwesomeProject.xcodeproj" --dir 'Classes'
61
+ $ swoop --path '~/YourAwesomeProject/AwesomeProject.xcodeproj' --dir 'Classes'
62
62
  ```
63
63
 
64
64
  Or, if you want to compare only files inside `Controller`, run :
65
65
 
66
66
  ```bash
67
- $ swoop --path "~/YourAwesomeProject/AwesomeProject.xcodeproj" --dir 'Classes/Controller'
67
+ $ swoop --path '~/YourAwesomeProject/AwesomeProject.xcodeproj' --dir 'Classes/Controller'
68
68
  ```
69
69
 
70
70
  ### Options
@@ -82,21 +82,27 @@ Specify which directory where the files that you want to compare based on Xcode
82
82
  Specify a number of how many tags you want to include for comparison. For example, if you want to include the last 10 tags you would run:
83
83
 
84
84
  ```bash
85
- $ swoop --path "~/YourAwesomeProject/AwesomeProject.xcodeproj" --dir 'Classes' --tags 10
85
+ $ swoop --path '~/YourAwesomeProject/AwesomeProject.xcodeproj' --dir 'Classes' --tags 10
86
86
  ```
87
87
 
88
88
  #### Filter Tag (`--filter_tag`)
89
89
 
90
- Specify a regular expression that will be applied to tag names. This only applies if tags is used. For example, if
90
+ Specify a regular expression that will be applied to tag names. This only applies if tags is used. For example, if you only want to include tags that look like `v1.0.0`, then you would run:
91
+
92
+ ```bash
93
+ $ swoop --path '~/YourAwesomeProject/AwesomeProject.xcodeproj' --dir 'Classes' --tags 10 --filter_tag 'v\d+.\d+.\d+'
94
+ ```
91
95
 
92
96
  #### Weeks (`--weeks`)
93
97
 
94
98
  Specify a number of how many weeks you want to include for comparison. For example, if you want to include the last 30 weeks, run :
95
99
 
96
100
  ```bash
97
- $ swoop --path "~/YourAwesomeProject/AwesomeProject.xcodeproj" --dir 'Classes' --weeks 30
101
+ $ swoop --path '~/YourAwesomeProject/AwesomeProject.xcodeproj' --dir 'Classes' --weeks 30
98
102
  ```
99
103
 
104
+ Note: If both `--tags` and `--weeks` are specified, weeks will take priority.
105
+
100
106
  #### Renderer (`--render`)
101
107
 
102
108
  Specify how do you render the reports. Available renderers are `table`, `csv` and `chart`
@@ -106,9 +112,9 @@ Specify how do you render the reports. Available renderers are `table`, `csv` an
106
112
  This renders a table in your console. Table is used if `--render` is not specified.
107
113
 
108
114
  ```bash
109
- $ swoop --path "~/YourAwesomeProject/AwesomeProject.xcodeproj" --dir 'Classes'
115
+ $ swoop --path '~/YourAwesomeProject/AwesomeProject.xcodeproj' --dir 'Classes'
110
116
  # or
111
- $ swoop --path "~/YourAwesomeProject/AwesomeProject.xcodeproj" --dir 'Classes' --render table
117
+ $ swoop --path '~/YourAwesomeProject/AwesomeProject.xcodeproj' --dir 'Classes' --render table
112
118
  ```
113
119
 
114
120
  will output this table in your console
@@ -121,7 +127,7 @@ will output this table in your console
121
127
  This will export your report as a csv file in root.
122
128
 
123
129
  ```bash
124
- $ swoop --path "~/YourAwesomeProject/AwesomeProject.xcodeproj" --dir 'Classes' --render csv
130
+ $ swoop --path '~/YourAwesomeProject/AwesomeProject.xcodeproj' --dir 'Classes' --render csv
125
131
  ```
126
132
 
127
133
  ##### Chart
@@ -129,7 +135,7 @@ $ swoop --path "~/YourAwesomeProject/AwesomeProject.xcodeproj" --dir 'Classes' -
129
135
  This will export your report as a chart in a webpage. It creates an `html` folder in root with the page `index.html` inside of it.
130
136
 
131
137
  ```bash
132
- $ swoop --path "~/YourAwesomeProject/AwesomeProject.xcodeproj" --dir 'Classes' --render chart
138
+ $ swoop --path '~/YourAwesomeProject/AwesomeProject.xcodeproj' --dir 'Classes' --render chart
133
139
  ```
134
140
 
135
141
  will output a chart in `./html/index.html`
data/lib/swoop/project.rb CHANGED
@@ -39,6 +39,7 @@ module Swoop
39
39
 
40
40
  def valid_file? (f)
41
41
  return false unless f.is_a?(Xcodeproj::Project::Object::PBXFileReference)
42
+ return false unless File.exist?(f.real_path)
42
43
 
43
44
  ext = File.extname(f.real_path)
44
45
  valid_file_extensions.include?(ext)
data/lib/swoop/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Swoop
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
data/swoop.gemspec CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
9
9
  spec.authors = ["Ikhsan Assaat"]
10
10
  spec.email = ["ikhsan.assaat@songkick.com"]
11
11
 
12
- spec.summary = "Compare how swift swoops objective-c classes over time"
12
+ spec.summary = "Swift and Objective-C comparison reporter"
13
13
  spec.license = "MIT"
14
14
 
15
15
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: swoop_report
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ikhsan Assaat
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-08-20 00:00:00.000000000 Z
11
+ date: 2016-08-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -194,5 +194,5 @@ rubyforge_project:
194
194
  rubygems_version: 2.4.8
195
195
  signing_key:
196
196
  specification_version: 4
197
- summary: Compare how swift swoops objective-c classes over time
197
+ summary: Swift and Objective-C comparison reporter
198
198
  test_files: []