fragmentary 0.1.0 → 0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +26 -0
- data/README.md +314 -69
- data/fragmentary.gemspec +3 -1
- data/lib/fragmentary/config.rb +65 -0
- data/lib/fragmentary/fragment.rb +120 -67
- data/lib/fragmentary/fragments_helper.rb +41 -26
- data/lib/fragmentary/publisher.rb +3 -1
- data/lib/fragmentary/request.rb +1 -16
- data/lib/fragmentary/request_queue.rb +51 -42
- data/lib/fragmentary/session_user.rb +38 -0
- data/lib/fragmentary/subscriber.rb +3 -1
- data/lib/fragmentary/subscription.rb +5 -2
- data/lib/fragmentary/user_session.rb +123 -21
- data/lib/fragmentary/version.rb +1 -1
- data/lib/fragmentary/widget.rb +6 -3
- data/lib/fragmentary/widget_parser.rb +2 -2
- data/lib/fragmentary.rb +11 -0
- metadata +38 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 0005ce07a2de70b95fc9b105b3ab12a7d763fb2ededa0423845bbfc3c0b45e8d
|
4
|
+
data.tar.gz: e2202f4d38a1189ba956e7b88150178e962581ed93e00f3d74fb8144b193055e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1665f0be866246efc7a1ba157d1216f63a39162261a680e6e8542884461c2285137ce350efdd4ed233ee6cb4b88484664ab5b7436a0f84e5fbb80c892ccab7ae
|
7
|
+
data.tar.gz: 0e4d6a8bd99ae54ff6c3715e203cde760382ef9c48a5ee241ae645ce58dd07dcb1d17b819f10771edcf5d5d113016d0d115fd5a08b1218e3060fef0bf57553de
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
### 0.3.0
|
2
|
+
- Updates gem to support Rails 5.x (Rails 4.x and earlier are no longer supported due to Rails API changes).
|
3
|
+
- Adds support for multiple application instances, allowing pre-release application code to be staged for testing.
|
4
|
+
- Fixes a bug in Fragment.set_record_type affecting some application data handlers for fragment classes that are subclassed from another.
|
5
|
+
|
6
|
+
### 0.2.2
|
7
|
+
- Removes validation of the fragment's root_id (only relevant to child fragments); ignore v0.2.1
|
8
|
+
|
9
|
+
### 0.2.1
|
10
|
+
- Fixes a syntax bug in validating a fragment's root_id
|
11
|
+
- Adds README documentation on the use of methods for explicitly retreving user-dependent fragments.
|
12
|
+
- Adds README documentation on the needs_user_id declaration
|
13
|
+
- Deprecates the :template parameter in FragmentsHelper#fragment_builder
|
14
|
+
- Adds minor performance enhancements
|
15
|
+
|
16
|
+
### 0.2.0
|
17
|
+
- Makes the following configurable:
|
18
|
+
- current_user_method - called on current template to obtain the current authenticated user.
|
19
|
+
- user_type_mapping - returns user_type for current user, configurable globally and per fragment class
|
20
|
+
- session_users for background requests, configurable globally and per fragment class
|
21
|
+
- sign-in/sign-out paths for background requests
|
22
|
+
- For root fragments with `needs_record_id`, a declared `record_type` and a defined class method `request_path`, automatically generates internal requests to the specified path when application records of the associated type are created (extracts
|
23
|
+
behavior that was previously handled in the application).
|
24
|
+
- Makes Fragment.requestable? reflect only the existence of a class :request_path
|
25
|
+
- Modifies interface for Fragment.queue_request and Fragment.remove_queued_request
|
26
|
+
- Adds event handlers to subscribers via an anonymous module so that subclasses can access them via `super`
|