xcactivitylog 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
  SHA256:
3
- metadata.gz: 561c9f74cd2cab61c1158227b8e88699df06a5d5ef0f71c39a6cd628eed7e0dd
4
- data.tar.gz: a3eae4cc82dd43bd2400addf3283590e120aee6f40e4756a55fd856401d455e5
3
+ metadata.gz: '0941e9747f9f3d7a0084d056e888b5cc81d99387de1e57ff4d388dd4bcc85d74'
4
+ data.tar.gz: ea4dcc96f4ffc78b07e188a3b58d5469c4a74f7277bdcd087ce7b9101c8023ac
5
5
  SHA512:
6
- metadata.gz: 73178b58dcb84f04592ed5010d12236134505f250bffd42aede8fbfb800cec607e708250fb0b5601850eef6dbd2c64a3c7792cffd20402ef2103ff46634f3822
7
- data.tar.gz: a6008dd5c46faefd20781626288b8bc373498231c3de4455fb35b5a79f56656029fb9aa06733e0f8cf537ec4e9a71c8b0ba2a5025a2b31a27eaa15d44033e5ca
6
+ metadata.gz: 29d2b99572f5f8701d42e1ca0299bfefcf57da06118587ad3f09c86be44a812c7c22069d204308584c8f854cad230275ce5a872d3ca4fe1b678c917ccc457b6c
7
+ data.tar.gz: 8d6a3b9b96c23729dacc2aceb35d868223307b63efc0412a1f8f029532723e51566073d1b81e1e90fe6497c21ee02bac90e907defc9c0a409ac7c9e87cce3282
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.2
@@ -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
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.2
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: 2020-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler