diaspora_federation 0.2.5 → 0.2.8

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: 35131d74a51b0fc8445843fb59db5f48f964d7462f892d4c1324eaaa34ad927d
4
- data.tar.gz: dcc6e003cffe457597d42a0659fc85a52355834f966ca05ccef8cafae57a42dd
3
+ metadata.gz: 799e373a0f8e153d52d0dcb671ae0599563a621367664bf4dd992268da1b8344
4
+ data.tar.gz: 9ee5e27b118036f4bb840e090bfe0e44654da4610a503c5f3b50f69532ce0457
5
5
  SHA512:
6
- metadata.gz: ae87265e272332d979019e06c2bcade0bed570da326213efc5ddc3f7a5c3c4dac573d0bdf7b0836827cd68325ecde557fc959daa55b647e71cc07cc28d48d79b
7
- data.tar.gz: 56c39d7011b5c8ed4e10270682cf9d7ed57b3765e8dbee6d1fd3d2a55630fe9c804eb1ac47147771ea2ce5730805ba8cdb7408dd950ba60c824e35abbed200d6
6
+ metadata.gz: 5eb7cca4e379ae813a08511c3af2716b325b477b1d0f93a3d012e2ae03c66545ddf97151e5c0be8e8c4b463f3fbb49ed8560ab9db62b4baaed1949eb71261b99
7
+ data.tar.gz: 16274964f8727afd81f7b7bfb6c9d7acf19cd705a0401759bbbfbf30d7f1177702be83be40dec6fb8acddb7e984339bc26ab4cd9dedb7e4527303016bb5b1832
data/Changelog.md CHANGED
@@ -1,3 +1,23 @@
1
+ # 0.2.8
2
+
3
+ * Re-release which allows rails 6 to be used
4
+
5
+ # 0.2.7
6
+
7
+ ## Features
8
+
9
+ * Add `remote_photo_path` to `AccountMigration` entity [#119](https://github.com/diaspora/diaspora_federation/pull/119)
10
+
11
+ ## Bug fixes
12
+
13
+ * Only parse each nested element name once from the XML [#118](https://github.com/diaspora/diaspora_federation/pull/118)
14
+
15
+ # 0.2.6
16
+
17
+ ## Bug fixes
18
+
19
+ * Make `width` and `height` optional for photos in the JSON schema [#110](https://github.com/diaspora/diaspora_federation/pull/110)
20
+
1
21
  # 0.2.5
2
22
 
3
23
  ## Features
@@ -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.5".freeze
3
+ VERSION = "0.2.8".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.5
4
+ version: 0.2.8
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: 2018-10-05 00:00:00.000000000 Z
11
+ date: 2022-07-17 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.13.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.13.0
52
+ version: '1.0'
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: nokogiri
55
55
  requirement: !ruby/object:Gem::Requirement
@@ -216,8 +216,9 @@ files:
216
216
  homepage: https://github.com/diaspora/diaspora_federation
217
217
  licenses:
218
218
  - AGPL-3.0
219
- metadata: {}
220
- post_install_message:
219
+ metadata:
220
+ rubygems_mfa_required: 'true'
221
+ post_install_message:
221
222
  rdoc_options: []
222
223
  require_paths:
223
224
  - lib
@@ -232,9 +233,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
232
233
  - !ruby/object:Gem::Version
233
234
  version: '0'
234
235
  requirements: []
235
- rubyforge_project:
236
- rubygems_version: 2.7.7
237
- signing_key:
236
+ rubygems_version: 3.0.9
237
+ signing_key:
238
238
  specification_version: 4
239
239
  summary: diaspora* federation library
240
240
  test_files: []