diaspora_federation 0.2.6 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Changelog.md +10 -0
- data/lib/diaspora_federation/entities/account_migration.rb +5 -0
- data/lib/diaspora_federation/parsers/xml_parser.rb +1 -1
- data/lib/diaspora_federation/validators/account_migration_validator.rb +2 -0
- data/lib/diaspora_federation/validators/photo_validator.rb +1 -1
- data/lib/diaspora_federation/version.rb +1 -1
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 98803be0a780d1fdc7112c28c278550b279ab693e01ecfc268e3a7f43ce77a17
|
4
|
+
data.tar.gz: fd0b31783ca8f058ab3f9d9bd1154e3d229f7cbe663000b2dab5f23305f20ae5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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:
|
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:
|
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:
|
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:
|
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:
|
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.
|
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: []
|