api_diff 0.3.3 → 0.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5f502c34ac580dadc1abab3ddc39102ba86a4f4ec4cade0fe0c616310de5e6ed
4
- data.tar.gz: 1638231a645d0610290f43add23960ca971ef366236d68466fe62a7d9ced26e2
3
+ metadata.gz: da95c670b708585e0f5a7dc1c1ffff7a003bf9e283dfe0189a7456e279fd8aeb
4
+ data.tar.gz: 84a0502b97dc4aa46e54d7f7d112900beaae001af293aa5c0b427937b17bf552
5
5
  SHA512:
6
- metadata.gz: 9adadc2b1658936cca2eded8c2e2ca067b46533d9bc32c6a65955e86c4fefaa265729cc9655e2ff0ff853a47c016a99db72c7892b343b50cd7ee1d2f3b528849
7
- data.tar.gz: cd7c77b6ddb6970115eadd74745bc5775808065d15baec0717e8ada95ea3ec6b0611798549d74012b10c46d7957ae71fd75b8d6aed9ff86d0a25dc1a0c85e442
6
+ metadata.gz: 6f5b05ba569e101be84e9f144324c50ae0f7dce7e44c6c3052f355bb5b0f60067f9eee7f5f2a2af26b8066006c4b509fe1d92fe65610a90ed71108bd132cc649
7
+ data.tar.gz: d2ff8b714d6b441d1b11375e0fed18b893d2768f9a54cb106ef1f3382e1154a241e17dd805ea3257c144c7440579617a8e148a720db921aec3c7eba35f0ff39f
@@ -75,10 +75,10 @@ module ApiDiff
75
75
  def parse_extension(content, container_types)
76
76
  name = content.match(/extension ([\w\.]+)/)[1]
77
77
 
78
- base_type = api.class(fully_qualified_name: qualified_name(name, container_types))
79
- base_type ||= api.struct(fully_qualified_name: qualified_name(name, container_types))
80
- base_type ||= api.interface(fully_qualified_name: qualified_name(name, container_types))
81
- base_type ||= api.enum(fully_qualified_name: qualified_name(name, container_types))
78
+ base_type = api.class(fully_qualified_name: name)
79
+ base_type ||= api.struct(fully_qualified_name: name)
80
+ base_type ||= api.interface(fully_qualified_name: name)
81
+ base_type ||= api.enum(fully_qualified_name: name)
82
82
  raise Error.new "Unable to find base type for extension `#{name}`" if base_type.nil?
83
83
  base_type.parents.append(*parse_parents(content)).uniq!
84
84
  base_type.properties.append(*parse_properties(content)).uniq!
@@ -1,3 +1,3 @@
1
1
  module ApiDiff
2
- VERSION = "0.3.3"
2
+ VERSION = "0.3.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: api_diff
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastian Ludwig
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-06-28 00:00:00.000000000 Z
11
+ date: 2022-07-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest
@@ -88,11 +88,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  requirements: []
91
- rubygems_version: 3.2.15
91
+ rubygems_version: 3.3.11
92
92
  signing_key:
93
93
  specification_version: 4
94
94
  summary: Bring APIs into an easily diff-able format
95
95
  test_files:
96
+ - test/kotlin_bcv_parser_test.rb
96
97
  - test/swift_interface_parser_test.rb
97
98
  - test/test_helper.rb
98
- - test/kotlin_bcv_parser_test.rb