xcactivitylog 0.2.1 → 0.2.3

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: 561c9f74cd2cab61c1158227b8e88699df06a5d5ef0f71c39a6cd628eed7e0dd
4
- data.tar.gz: a3eae4cc82dd43bd2400addf3283590e120aee6f40e4756a55fd856401d455e5
3
+ metadata.gz: 302f15b4e2c755e0dd506b3aafb102cb211141206a1c97b1dff11240307b26e5
4
+ data.tar.gz: f0c90f6312c6c4e5ae37526b39f3426310d4a8463a62d68fef031aba6d8fbb33
5
5
  SHA512:
6
- metadata.gz: 73178b58dcb84f04592ed5010d12236134505f250bffd42aede8fbfb800cec607e708250fb0b5601850eef6dbd2c64a3c7792cffd20402ef2103ff46634f3822
7
- data.tar.gz: a6008dd5c46faefd20781626288b8bc373498231c3de4455fb35b5a79f56656029fb9aa06733e0f8cf537ec4e9a71c8b0ba2a5025a2b31a27eaa15d44033e5ca
6
+ metadata.gz: 2cfbb133c25295f73cebe822ac3943fd04bb8ae84627d236cffa14f27cc55b36a32d65593ff64ee0211aeee01641770b6d6f31baad3561c9945828a6b39e08e2
7
+ data.tar.gz: 6e3883fe267006a351e0c1682e1f1620187b7e53af0fbfac2d40cf74a99dc056ed3d78d0dacda8fcfb837529fe85ed3284249f985f4d7fe6f5016ece29cc78cc
data/README.md CHANGED
@@ -36,6 +36,14 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
36
36
 
37
37
  Bug reports and pull requests are welcome on GitHub at https://github.com/segiddins/xcactivitylog. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
38
38
 
39
+ ## New Xcode versions
40
+
41
+ As new versions of Xcode come out it might be necessary to handle new private API, the parser will fail and the name of the unhandled class can be found in the error message as `#<NameError: uninitialized constant <CLASS_NAME>`.
42
+
43
+ One way to fix it is to create a dummy project using the new Xcode version and generate a `.xcactivitylog` that allows one to reproduce the same error, the logs can be found in Xcode's `DerivedData` folder (`~/Library/Developer/Xcode/DerivedData/{UUID}/Logs/Build`). Manually parse the `.xcactivitylog` file, check the `version` at the top and then for `version = X` create a folder `spec/fixtures/xcactivitylog/vX` and puth the `.xcactivitylog` in there.
44
+
45
+ Now `rake spec` will try to parse the new log file and it should fail with the same exception above. Make the necessary code changes to handle the new class (it might help to check for class dumps like these [here](https://github.com/segiddins/Xcode-RuntimeHeaders)). Once the proper changes are in `rake spec` should go green.
46
+
39
47
  ## License
40
48
 
41
49
  The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.1
1
+ 0.2.3
@@ -259,6 +259,10 @@ module XCActivityLog
259
259
  attributes.freeze
260
260
  end
261
261
 
262
+ class IDEDiagnosticActivityLogMessage < IDEActivityLogMessage
263
+ attributes.freeze
264
+ end
265
+
262
266
  class IDEActivityLogAnalyzerControlFlowStepEdge < SerializedObject
263
267
  attribute :start_location, :document_location
264
268
  attribute :end_location, :document_location
@@ -274,6 +278,7 @@ module XCActivityLog
274
278
  URI::File.parse(document_url_string)
275
279
  end
276
280
  end
281
+
277
282
  class DVTTextDocumentLocation < DVTDocumentLocation
278
283
  attribute :starting_line_number, :int
279
284
  attribute :starting_column_number, :int
@@ -284,6 +289,11 @@ module XCActivityLog
284
289
  attributes.freeze
285
290
  end
286
291
 
292
+ class DVTMemberDocumentLocation < DVTDocumentLocation
293
+ attribute :member, :string
294
+ attributes.freeze
295
+ end
296
+
287
297
  class Xcode3ProjectDocumentLocation < DVTDocumentLocation
288
298
  attributes.freeze
289
299
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xcactivitylog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Giddins
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-08-25 00:00:00.000000000 Z
11
+ date: 2023-09-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -91,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
91
91
  - !ruby/object:Gem::Version
92
92
  version: '0'
93
93
  requirements: []
94
- rubygems_version: 3.0.1
94
+ rubygems_version: 3.4.19
95
95
  signing_key:
96
96
  specification_version: 4
97
97
  summary: Parse Xcode's xcactivitylog files (and other SLF0-serialized files)