diaspora_federation-rails 0.2.4 → 0.2.5

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.
Files changed (5) hide show
  1. checksums.yaml +5 -5
  2. data/Changelog.md +16 -0
  3. data/README.md +9 -4
  4. data/config/routes.rb +1 -1
  5. metadata +5 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: e302604c6149e19c0449db305c7af9899b9f37d1
4
- data.tar.gz: f0a463568625f49da72f119c4ccded990acc1c81
2
+ SHA256:
3
+ metadata.gz: 4838620eba5b49b1cc7a9c17ea1f8065cc3e1cebeb90ad1b2754fa77e36a0406
4
+ data.tar.gz: f2051a93e81eca471745146c55527e91db07ceb03ff5433885eb79541a8b1963
5
5
  SHA512:
6
- metadata.gz: b80d766e29e06bf4503625c1671aaa089e2046b4ddb60fdb9cbdc1bb35a4777d2e380d6257faec6b8a0d084d6cf4e190a2bb949918eb6e50e130bfdb367ab19d
7
- data.tar.gz: e8b61844f3e00533a8ab7cb4c3ead21b2e72fbf7b07f9a86d15c1dc0e992d80d1a5706ed14ea77347396ae487378604c9012c5c3244e0a9d418060cf905adb0e
6
+ metadata.gz: 0e1dea89708a3db5c8aceb592282a8723387326c7002a0e8250ded91a31f07c9c628b82a2d8eafa6156345210de41cd1bf54186433e96ae7f073d3f2db0e62cf
7
+ data.tar.gz: 872671615d5468b7d4a007c2bc92484edc08b34c83f5fe6d479939b1ec3e03d6f597ee2c2714ad2f32cf486471e68f822db7861b97648c58190ea4e2e2a6f37e
@@ -1,3 +1,19 @@
1
+ # 0.2.5
2
+
3
+ ## Features
4
+
5
+ * Add `full_name` to `Profile` entity [#100](https://github.com/diaspora/diaspora_federation/pull/100)
6
+ * Add `Embed` entity [#101](https://github.com/diaspora/diaspora_federation/pull/101)
7
+
8
+ ## Refactor
9
+
10
+ * Include `web+` prefix in `diaspora://` URL parsing [#108](https://github.com/diaspora/diaspora_federation/pull/108)
11
+
12
+ ## Bug fixes
13
+
14
+ * Various bug fixes in the `federation_entities.json` [#102](https://github.com/diaspora/diaspora_federation/pull/102) [#104](https://github.com/diaspora/diaspora_federation/pull/104) [#107](https://github.com/diaspora/diaspora_federation/pull/107)
15
+ * Allow fetching of entities with dot in the GUID [#106](https://github.com/diaspora/diaspora_federation/pull/106)
16
+
1
17
  # 0.2.4
2
18
 
3
19
  ## Features
data/README.md CHANGED
@@ -6,7 +6,6 @@
6
6
 
7
7
  [![Code Climate](https://codeclimate.com/github/diaspora/diaspora_federation/badges/gpa.svg)](https://codeclimate.com/github/diaspora/diaspora_federation)
8
8
  [![Test Coverage](https://codeclimate.com/github/diaspora/diaspora_federation/badges/coverage.svg)](https://codeclimate.com/github/diaspora/diaspora_federation/coverage)
9
- [![Dependency Status](https://gemnasium.com/diaspora/diaspora_federation.svg)](https://gemnasium.com/diaspora/diaspora_federation)
10
9
  [![Inline docs](https://inch-ci.org/github/diaspora/diaspora_federation.svg?branch=master)](https://inch-ci.org/github/diaspora/diaspora_federation)
11
10
  [![Gem Version](https://badge.fury.io/rb/diaspora_federation.svg)](https://badge.fury.io/rb/diaspora_federation)
12
11
 
@@ -38,25 +37,31 @@ Configure the engine in ```config/initializers/diaspora_federation.rb```:
38
37
  ```ruby
39
38
  DiasporaFederation.configure do |config|
40
39
  # the pod url
41
- config.server_uri = AppConfig.pod_uri
40
+ config.server_uri = URI("http://localhost:3000")
41
+
42
+ # ... other settings
42
43
 
43
44
  config.define_callbacks do
44
45
  on :fetch_person_for_webfinger do |diaspora_id|
45
46
  person = Person.find_local_by_diaspora_id(diaspora_id)
46
47
  if person
47
48
  DiasporaFederation::Discovery::WebFinger.new(
48
- # ...
49
+ # ... copy person attributes to WebFinger object
49
50
  )
50
51
  end
51
52
  end
52
53
 
53
54
  on :fetch_person_for_hcard do |guid|
54
- # ...
55
+ # ... fetch hcard information
55
56
  end
57
+
58
+ # ... other callbacks
56
59
  end
57
60
  end
58
61
  ```
59
62
 
63
+ The available config settings can be found [here](https://www.rubydoc.info/gems/diaspora_federation/DiasporaFederation#class_attr_details) and the callbacks are listed [here](https://www.rubydoc.info/gems/diaspora_federation/DiasporaFederation#define_callbacks-class_method) in the gem documentation.
64
+
60
65
  ## Contributing
61
66
 
62
67
  See [our contribution guide](/CONTRIBUTING.md) for more information on how to contribute to the diaspora\* federation library.
@@ -5,7 +5,7 @@ DiasporaFederation::Engine.routes.draw do
5
5
  end
6
6
 
7
7
  controller :fetch do
8
- get "fetch/:type/:guid" => :fetch, :as => "fetch"
8
+ get "fetch/:type/:guid" => :fetch, :as => "fetch", :guid => /#{Validation::Rule::Guid::VALID_CHARS}/
9
9
  end
10
10
 
11
11
  controller :webfinger do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: diaspora_federation-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benjamin Neff
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-18 00:00:00.000000000 Z
11
+ date: 2018-10-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack
@@ -36,14 +36,14 @@ dependencies:
36
36
  requirements:
37
37
  - - '='
38
38
  - !ruby/object:Gem::Version
39
- version: 0.2.4
39
+ version: 0.2.5
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - '='
45
45
  - !ruby/object:Gem::Version
46
- version: 0.2.4
46
+ version: 0.2.5
47
47
  description: A rails engine that adds the diaspora* federation protocol to a rails
48
48
  app
49
49
  email:
@@ -85,7 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
85
85
  version: '0'
86
86
  requirements: []
87
87
  rubyforge_project:
88
- rubygems_version: 2.6.14
88
+ rubygems_version: 2.7.7
89
89
  signing_key:
90
90
  specification_version: 4
91
91
  summary: diaspora* federation rails engine