diaspora_federation-rails 0.0.13 → 0.1.0

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
  SHA1:
3
- metadata.gz: 9b03b6fa1888ffee4dd8ca177375f2e945bb1fae
4
- data.tar.gz: 4e11d2005c587ac8ba7eb1c5d47ea60260df22b1
3
+ metadata.gz: 1b5523d45733972aad2844c368aabc4f4928cc37
4
+ data.tar.gz: 8c38906f37289b09eeddb1a4bcc2d003f4de7194
5
5
  SHA512:
6
- metadata.gz: cf5779d3f78cd35095be2d5186397868f6677181403244ef40023557f1d8fef065f49a967675f83d02226f97c12db0c76317c8296969316fa48af2ed90260c5d
7
- data.tar.gz: 88b210bf518481fd5c79540d797c1b980a7fdd45b7541aed16db825c357499306e7d57b4514e6e5bf4d8311b748cd7dd2ca590c2d19865fd64d11c7c28c1982a
6
+ metadata.gz: 0450dbf184f84f39751f4e102e44cb31da707b751065ce68e574f7f4df3bbbb50d40f9c41f6e996824221a956a8b8de00a6a7f436dfc5324122e6bac94f7ec6e
7
+ data.tar.gz: 30dd9d32ee1f9abcd5296afd21999ae917c1c0f32ec4268b7bc0642200e25f8b68f728fad898f8ee2a0dc708f4ff33c0aeb7d063a415d0d7213be0e35e1362f6
data/README.md CHANGED
@@ -1,29 +1,24 @@
1
1
  # diaspora* federation library
2
+ ### A library that provides functionalities needed for the diaspora\* federation protocol
2
3
 
3
- **A library that provides functionalities needed for the diaspora* federation protocol**
4
+ **master:** [![Build Status master](https://travis-ci.org/diaspora/diaspora_federation.svg?branch=master)](https://travis-ci.org/diaspora/diaspora_federation) |
5
+ **develop:** [![Build Status develop](https://travis-ci.org/diaspora/diaspora_federation.svg?branch=develop)](https://travis-ci.org/diaspora/diaspora_federation)
4
6
 
5
- **master:** [![Build Status master](https://travis-ci.org/SuperTux88/diaspora_federation.svg?branch=master)](https://travis-ci.org/SuperTux88/diaspora_federation)
6
- **develop:** [![Build Status develop](https://travis-ci.org/SuperTux88/diaspora_federation.svg?branch=develop)](https://travis-ci.org/SuperTux88/diaspora_federation)
7
-
8
- [![Code Climate](https://codeclimate.com/github/SuperTux88/diaspora_federation/badges/gpa.svg)](https://codeclimate.com/github/SuperTux88/diaspora_federation)
9
- [![Test Coverage](https://codeclimate.com/github/SuperTux88/diaspora_federation/badges/coverage.svg)](https://codeclimate.com/github/SuperTux88/diaspora_federation/coverage)
10
- [![Dependency Status](https://gemnasium.com/SuperTux88/diaspora_federation.svg)](https://gemnasium.com/SuperTux88/diaspora_federation)
11
- [![Inline docs](https://inch-ci.org/github/SuperTux88/diaspora_federation.svg?branch=master)](https://inch-ci.org/github/SuperTux88/diaspora_federation)
7
+ [![Code Climate](https://codeclimate.com/github/diaspora/diaspora_federation/badges/gpa.svg)](https://codeclimate.com/github/diaspora/diaspora_federation)
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
+ [![Inline docs](https://inch-ci.org/github/diaspora/diaspora_federation.svg?branch=master)](https://inch-ci.org/github/diaspora/diaspora_federation)
12
11
  [![Gem Version](https://badge.fury.io/rb/diaspora_federation.svg)](https://badge.fury.io/rb/diaspora_federation)
13
12
 
14
13
  [Documentation](http://www.rubydoc.info/gems/diaspora_federation/) |
15
- [Bugtracker](https://github.com/SuperTux88/diaspora_federation/issues)
16
-
17
- ## Library
14
+ [Bugtracker](https://github.com/diaspora/diaspora_federation/issues)
18
15
 
19
- The ```diaspora_federation``` gem provides the functionality for de-/serialization and de-/encryption of Entities
20
- in the protocols used for communication among the various installations of Diaspora*
16
+ This repository contains two gems:
21
17
 
22
- ## Rails Engine
18
+ * `diaspora_federation` provides the functionality for de-/serialization and de-/encryption of Entities in the protocols used for communication among the various installations of diaspora\*.
19
+ * `diaspora_federation-rails` is a rails engine that adds the diaspora\* federation protocol to a rails app.
23
20
 
24
- The ```diaspora_federation-rails``` gem is a rails engine that adds the diaspora* federation protocol to a rails app.
25
-
26
- ### Usage
21
+ ## Usage
27
22
 
28
23
  Add the gem to your ```Gemfile```:
29
24
 
@@ -61,22 +56,10 @@ DiasporaFederation.configure do |config|
61
56
  end
62
57
  ```
63
58
 
64
- ## Development
65
-
66
- **!!! This gem is currently under heavy development, so every release can contain breaking changes !!!**
67
-
68
- If you want to help, please contact me, help is welcome.
69
-
70
- After the first stable release, this repo will be moved to the [diaspora organization](https://github.com/diaspora/).
71
-
72
- ## Diaspora
73
-
74
- A privacy-aware, distributed, open source social network
59
+ ## Contributing
75
60
 
76
- Links:
77
- [Project site](https://diasporafoundation.org) |
78
- [Wiki](https://wiki.diasporafoundation.org)
61
+ See [our contribution guide](/CONTRIBUTING.md) for more information on how to contribute to the diaspora\* federation library.
79
62
 
80
63
  ## License
81
64
 
82
- This gem is published under the terms of the "GNU Affero General Public License". See the LICENSE file for the exact wording.
65
+ [GNU Affero General Public License](/LICENSE).
@@ -29,7 +29,7 @@ module DiasporaFederation
29
29
  end
30
30
 
31
31
  def create_magic_envelope(entity)
32
- privkey = DiasporaFederation.callbacks.trigger(:fetch_private_key_by_diaspora_id, entity.author)
32
+ privkey = DiasporaFederation.callbacks.trigger(:fetch_private_key, entity.author)
33
33
  Salmon::MagicEnvelope.new(entity, entity.author).envelop(privkey) if privkey
34
34
  end
35
35
  end
@@ -0,0 +1,2 @@
1
+ # Don't log received xml data.
2
+ Rails.application.config.filter_parameters += [:xml]
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.0.13
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benjamin Neff
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-25 00:00:00.000000000 Z
11
+ date: 2016-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 0.0.13
33
+ version: 0.1.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 0.0.13
40
+ version: 0.1.0
41
41
  description: A rails engine that adds the diaspora* federation protocol to a rails
42
42
  app
43
43
  email:
@@ -53,10 +53,11 @@ files:
53
53
  - app/controllers/diaspora_federation/h_card_controller.rb
54
54
  - app/controllers/diaspora_federation/receive_controller.rb
55
55
  - app/controllers/diaspora_federation/webfinger_controller.rb
56
+ - config/initializers/filter_parameter_logging.rb
56
57
  - config/routes.rb
57
58
  - lib/diaspora_federation/engine.rb
58
59
  - lib/diaspora_federation/rails.rb
59
- homepage: https://github.com/SuperTux88/diaspora_federation
60
+ homepage: https://github.com/diaspora/diaspora_federation
60
61
  licenses:
61
62
  - AGPL 3.0 - http://www.gnu.org/licenses/agpl-3.0.html
62
63
  metadata: {}
@@ -68,7 +69,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
68
69
  requirements:
69
70
  - - "~>"
70
71
  - !ruby/object:Gem::Version
71
- version: '2.0'
72
+ version: '2.1'
72
73
  required_rubygems_version: !ruby/object:Gem::Requirement
73
74
  requirements:
74
75
  - - ">="
@@ -76,7 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
76
77
  version: '0'
77
78
  requirements: []
78
79
  rubyforge_project:
79
- rubygems_version: 2.4.6
80
+ rubygems_version: 2.4.8
80
81
  signing_key:
81
82
  specification_version: 4
82
83
  summary: diaspora* federation rails engine