overrides_tracker 0.1.12 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,134 @@
1
+ {
2
+ "ClassADifferentSources":{
3
+ "instance_methods":{
4
+ "method_one":{
5
+ "sha":"376988d98a7069f2a2914a4544d4e2d1d519f62b",
6
+ "overriding_sha":"376988d98a7069f2a2914a4544d4e2d1d519f345",
7
+ "location":[
8
+ "/gem/models/class_a.rb",
9
+ 7
10
+ ],
11
+ "body":"def method_one\n master_original_implementation\nend\n",
12
+ "overriding_location":[
13
+ "/app/models/class_a.rb",
14
+ 7
15
+ ],
16
+ "overriding_body":"def method_one\n master_override\nend\n"
17
+ }
18
+ },
19
+ "singleton_methods":{
20
+ "self.method_two":{
21
+ "sha":"376988d98a7069f2a2914a4544d4e2d1d519f62b",
22
+ "overriding_sha":"376988d98a7069f2a2914a4544d4e2d1d519f345",
23
+ "location":[
24
+ "/gem/models/class_a.rb",
25
+ 7
26
+ ],
27
+ "body":"def self.method_two\n master_original_implementation\nend\n",
28
+ "overriding_location":[
29
+ "/app/models/class_a.rb",
30
+ 7
31
+ ],
32
+ "overriding_body":"def self.method_two\n master_override\nend\n"
33
+ }
34
+ },
35
+ "added_instance_methods":{
36
+ "method_three":{
37
+ "sha":"376988d98a7069f2a2914a4544d4e2d1d519f62b",
38
+ "overriding_sha":"376988d98a7069f2a2914a4544d4e2d1d519f345",
39
+ "location":[
40
+ "/gem/models/class_a.rb",
41
+ 7
42
+ ],
43
+ "body":"def method_three\n master_original_implementation\nend\n",
44
+ "overriding_location":[
45
+ "/app/models/class_a.rb",
46
+ 7
47
+ ],
48
+ "overriding_body":"def method_three\n master_override\nend\n"
49
+ }
50
+ },
51
+ "added_singleton_methods":{
52
+ "method_four":{
53
+ "sha":"376988d98a7069f2a2914a4544d4e2d1d519f62b",
54
+ "overriding_sha":"376988d98a7069f2a2914a4544d4e2d1d519f345",
55
+ "location":[
56
+ "/gem/models/class_a.rb",
57
+ 7
58
+ ],
59
+ "body":"def method_four\n master_original_implementation\nend\n",
60
+ "overriding_location":[
61
+ "/app/models/class_a.rb",
62
+ 7
63
+ ],
64
+ "overriding_body":"def method_four\n master_override\nend\n"
65
+ }
66
+ }
67
+ },
68
+ "ClassDifferentOverrides":{
69
+ "instance_methods":{
70
+ "method_one":{
71
+ "sha":"376988d98a7069f2a2914a4544d4e2d1d519f62b",
72
+ "overriding_sha":"376988d98a7069f2a2914a4544d4e2d1d519f345",
73
+ "location":[
74
+ "/gem/models/class_b.rb",
75
+ 7
76
+ ],
77
+ "body":"def method_one\n master_original_implementation\nend\n",
78
+ "overriding_location":[
79
+ "/app/models/class_b.rb",
80
+ 7
81
+ ],
82
+ "overriding_body":"def method_one\n master_override\nend\n"
83
+ }
84
+ },
85
+ "singleton_methods":{
86
+ "self.method_two":{
87
+ "sha":"376988d98a7069f2a2914a4544d4e2d1d519f62b",
88
+ "overriding_sha":"376988d98a7069f2a2914a4544d4e2d1d519f345",
89
+ "location":[
90
+ "/gem/models/class_b.rb",
91
+ 7
92
+ ],
93
+ "body":"def self.method_two\n master_original_implementation\nend\n",
94
+ "overriding_location":[
95
+ "/app/models/class_b.rb",
96
+ 7
97
+ ],
98
+ "overriding_body":"def self.method_two\n master_override\nend\n"
99
+ }
100
+ },
101
+ "added_instance_methods":{
102
+ "method_three":{
103
+ "sha":"376988d98a7069f2a2914a4544d4e2d1d519f62b",
104
+ "overriding_sha":"376988d98a7069f2a2914a4544d4e2d1d519f345",
105
+ "location":[
106
+ "/gem/models/class_b.rb",
107
+ 7
108
+ ],
109
+ "body":"def method_three\n master_original_implementation\nend\n",
110
+ "overriding_location":[
111
+ "/app/models/class_b.rb",
112
+ 7
113
+ ],
114
+ "overriding_body":"def method_three\n master_override\nend\n"
115
+ }
116
+ },
117
+ "added_singleton_methods":{
118
+ "method_four":{
119
+ "sha":"376988d98a7069f2a2914a4544d4e2d1d519f62b",
120
+ "overriding_sha":"376988d98a7069f2a2914a4544d4e2d1d519f345",
121
+ "location":[
122
+ "/gem/models/class_b.rb",
123
+ 7
124
+ ],
125
+ "body":"def method_four\n master_original_implementation\nend\n",
126
+ "overriding_location":[
127
+ "/app/models/class_a.rb",
128
+ 7
129
+ ],
130
+ "overriding_body":"def method_four\n master_override\nend\n"
131
+ }
132
+ }
133
+ }
134
+ }
@@ -0,0 +1,31 @@
1
+ class CustomClass
2
+ def self.call
3
+ 'custom class'
4
+ end
5
+
6
+ def self.singleton_test_method
7
+ 'singleton_test_method'
8
+ end
9
+
10
+ def instance_test_method
11
+ 'instance_test_method'
12
+ end
13
+
14
+ def instance_override_test_method
15
+ 'instance_override_test_method'
16
+ end
17
+
18
+ def instance_added_test_method
19
+ 'instance_added_test_method'
20
+ end
21
+
22
+ def self.singleton_added_test_method
23
+ 'singleton_added_test_method'
24
+ end
25
+
26
+ def self.overrides_tracker_finished_file
27
+ @overrides_tracker_finished_file_called = true
28
+ end
29
+
30
+ extend OverridesTracker::FileObserver
31
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: overrides_tracker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.12
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simon Meyborg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-06 00:00:00.000000000 Z
11
+ date: 2023-02-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -38,8 +38,8 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
- description: Overrides Tracker monitors methods you override for changes and allows
42
- for comparison across branches.
41
+ description: Overrides Tracker keeps track of all overriding methods and their sources
42
+ and allows for comparison across branches.
43
43
  email:
44
44
  - meyborg@syborgstudios.com
45
45
  executables:
@@ -47,12 +47,14 @@ executables:
47
47
  extensions: []
48
48
  extra_rdoc_files: []
49
49
  files:
50
+ - ".circleci/config.yml"
50
51
  - ".gitignore"
51
52
  - ".rspec"
52
53
  - ".travis.yml"
53
54
  - CHANGELOG.md
54
55
  - CODE_OF_CONDUCT.md
55
56
  - Gemfile
57
+ - Gemfile.lock
56
58
  - LICENSE
57
59
  - LICENSE.txt
58
60
  - README.md
@@ -60,17 +62,30 @@ files:
60
62
  - bin/console
61
63
  - bin/overrides_tracker
62
64
  - bin/setup
65
+ - lib/external/require_all.rb
63
66
  - lib/overrides_tracker.rb
64
67
  - lib/overrides_tracker/api.rb
65
68
  - lib/overrides_tracker/comparer.rb
66
69
  - lib/overrides_tracker/file_observer.rb
70
+ - lib/overrides_tracker/hash_decorator.rb
67
71
  - lib/overrides_tracker/methods_collector.rb
68
72
  - lib/overrides_tracker/string_colorizer.rb
69
73
  - lib/overrides_tracker/util.rb
70
74
  - lib/overrides_tracker/version.rb
71
75
  - overrides_tracker.gemspec
76
+ - overrides_tracker/branch_name#last_commit_id.otf
77
+ - spec/overrides_tracker/api_spec.rb
78
+ - spec/overrides_tracker/comparer_spec.rb
79
+ - spec/overrides_tracker/file_observer_spec.rb
80
+ - spec/overrides_tracker/hash_decorator_spec.rb
81
+ - spec/overrides_tracker/methods_collector_spec.rb
82
+ - spec/overrides_tracker/string_colorizer_spec.rb
83
+ - spec/overrides_tracker/util_spec.rb
84
+ - spec/overrides_tracker/version_spec.rb
72
85
  - spec/overrides_tracker_spec.rb
86
+ - spec/result_files/master.otf
73
87
  - spec/spec_helper.rb
88
+ - spec/test_classes/custom_class.rb
74
89
  homepage: https://github.com/SyborgStudios/overrides_tracker
75
90
  licenses:
76
91
  - MIT
@@ -97,6 +112,6 @@ requirements: []
97
112
  rubygems_version: 3.0.3.1
98
113
  signing_key:
99
114
  specification_version: 4
100
- summary: Overrides Tracker monitors methods you override for changes and allows for
101
- comparison across branches.
115
+ summary: Overrides Tracker keeps track of all overriding methods and their sources
116
+ and allows for comparison across branches.
102
117
  test_files: []