diaspora_federation 0.2.6 → 0.2.7

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: 56decb94b957b16f0978ab1fc43bfb02331ff734d710f9bcf8e02f245fc33197
4
- data.tar.gz: 30d90921dec5b241547688e865be7840d3408564d1a76155552762648bf39be0
3
+ metadata.gz: 98803be0a780d1fdc7112c28c278550b279ab693e01ecfc268e3a7f43ce77a17
4
+ data.tar.gz: fd0b31783ca8f058ab3f9d9bd1154e3d229f7cbe663000b2dab5f23305f20ae5
5
5
  SHA512:
6
- metadata.gz: 5e339270f2d49f08ce928988e26f089574e8c413a68c97b92716b6fb22880415f081bcf3a6d29a13931f4333506bbcd40442e1ba482fd487d13e330cf68a7bd8
7
- data.tar.gz: 00e2393f02ce03346be0134c5239141f581d236a8adc1434da47bd7da267208ad97dae6fd1f10a31d34bc25cf1763274075fb25245426d52552bb7e2f1e864e2
6
+ metadata.gz: 57ec25012b75ba2895900923d1b48d9ae066542f2be88a6521d2ac862b24e64a402b75a84c657f89cc75fbc18d80631dbe4b5da29087adf3d27e2526967318fe
7
+ data.tar.gz: 44ef6a752b43a751dc006fa9d0bf7ea62d5ee3fa579549bf9c27598a67811dddc62c775061175f9c26309365ad0a43b5fe2dcc57a5bec23f1211ffc0f6dd6d05
data/Changelog.md CHANGED
@@ -1,3 +1,13 @@
1
+ # 0.2.7
2
+
3
+ ## Features
4
+
5
+ * Add `remote_photo_path` to `AccountMigration` entity [#119](https://github.com/diaspora/diaspora_federation/pull/119)
6
+
7
+ ## Bug fixes
8
+
9
+ * Only parse each nested element name once from the XML [#118](https://github.com/diaspora/diaspora_federation/pull/118)
10
+
1
11
  # 0.2.6
2
12
 
3
13
  ## Bug fixes
@@ -33,6 +33,11 @@ module DiasporaFederation
33
33
  # @return [String] old identity
34
34
  property :old_identity, :string, default: nil
35
35
 
36
+ # @!attribute [r] remote_photo_path
37
+ # The url to the path of the photos on the new pod. Can be empty if photos weren't migrated.
38
+ # @return [String] remote photo path
39
+ property :remote_photo_path, :string, optional: true
40
+
36
41
  # Returns diaspora* ID of the old person identity.
37
42
  # @return [String] diaspora* ID of the old person identity
38
43
  def old_identity
@@ -12,7 +12,7 @@ module DiasporaFederation
12
12
  def parse(root_node)
13
13
  from_xml_sanity_validation(root_node)
14
14
 
15
- hash = root_node.element_children.map {|child|
15
+ hash = root_node.element_children.uniq(&:name).map {|child|
16
16
  xml_name = child.name
17
17
  property = entity_type.find_property_for_xml_name(xml_name)
18
18
  if property
@@ -9,6 +9,8 @@ module DiasporaFederation
9
9
  rule :profile, :not_nil
10
10
 
11
11
  rule :old_identity, :diaspora_id
12
+
13
+ rule :remote_photo_path, URI: [:path]
12
14
  end
13
15
  end
14
16
  end
@@ -10,7 +10,7 @@ module DiasporaFederation
10
10
 
11
11
  rule :public, :boolean
12
12
 
13
- rule :remote_photo_path, :not_empty
13
+ rule :remote_photo_path, [:not_empty, URI: [:path]]
14
14
 
15
15
  rule :remote_photo_name, :not_empty
16
16
 
@@ -1,4 +1,4 @@
1
1
  module DiasporaFederation
2
2
  # the gem version
3
- VERSION = "0.2.6".freeze
3
+ VERSION = "0.2.7".freeze
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: diaspora_federation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benjamin Neff
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-28 00:00:00.000000000 Z
11
+ date: 2021-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: 0.9.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: 0.16.0
22
+ version: '1.0'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: 0.9.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: 0.16.0
32
+ version: '1.0'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: faraday_middleware
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -39,7 +39,7 @@ dependencies:
39
39
  version: 0.10.0
40
40
  - - "<"
41
41
  - !ruby/object:Gem::Version
42
- version: 0.14.0
42
+ version: '1.0'
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
@@ -49,7 +49,7 @@ dependencies:
49
49
  version: 0.10.0
50
50
  - - "<"
51
51
  - !ruby/object:Gem::Version
52
- version: 0.14.0
52
+ version: '1.0'
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: nokogiri
55
55
  requirement: !ruby/object:Gem::Requirement
@@ -217,7 +217,7 @@ homepage: https://github.com/diaspora/diaspora_federation
217
217
  licenses:
218
218
  - AGPL-3.0
219
219
  metadata: {}
220
- post_install_message:
220
+ post_install_message:
221
221
  rdoc_options: []
222
222
  require_paths:
223
223
  - lib
@@ -232,8 +232,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
232
232
  - !ruby/object:Gem::Version
233
233
  version: '0'
234
234
  requirements: []
235
- rubygems_version: 3.0.3
236
- signing_key:
235
+ rubygems_version: 3.0.9
236
+ signing_key:
237
237
  specification_version: 4
238
238
  summary: diaspora* federation library
239
239
  test_files: []