crazy_render 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.all-contributorsrc +155 -0
- data/.gitignore +17 -0
- data/.gitmodules +4 -0
- data/.rspec +2 -0
- data/CHANGELOG.md +107 -0
- data/Gemfile +4 -0
- data/LICENSE +21 -0
- data/README.md +481 -0
- data/Rakefile +6 -0
- data/app/views/render_async/_render_async.html.erb +40 -0
- data/app/views/render_async/_request_jquery.js.erb +90 -0
- data/app/views/render_async/_request_vanilla.js.erb +103 -0
- data/bin/console +14 -0
- data/bin/integration-tests +13 -0
- data/bin/setup +8 -0
- data/lib/render_async/configuration.rb +10 -0
- data/lib/render_async/engine.rb +5 -0
- data/lib/render_async/version.rb +3 -0
- data/lib/render_async/view_helper.rb +56 -0
- data/lib/render_async.rb +24 -0
- data/render_async.gemspec +27 -0
- metadata +108 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 3a443dd574ef624de8dc95824dc8591c56fb77ba835d35d84d0702277b4f88f9
|
4
|
+
data.tar.gz: 4a8d8ddcd15a9636eae85b0fdbe0c9cfe4ae3b9cdc6e5df503d81021180cb83d
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 0f11cea19e5e2022560f110333399c0d71d721ba5b11392f122e894634d3b3003730a028d47921e98f21aaf0b8826146bd9d4aa20dd37bcbae4dc6023b3c42f0
|
7
|
+
data.tar.gz: 3769198fb01940a1b752bf83af3b40a493537eace2294b68315041911d62c13c8ecb9136d166d7799dfece8a7874f9dd2c87d14856d7a796f4264ff7ca289d13
|
data/.all-contributorsrc
ADDED
@@ -0,0 +1,155 @@
|
|
1
|
+
{
|
2
|
+
"projectName": "render_async",
|
3
|
+
"projectOwner": "renderedtext",
|
4
|
+
"files": [
|
5
|
+
"README.md"
|
6
|
+
],
|
7
|
+
"imageSize": 100,
|
8
|
+
"commit": true,
|
9
|
+
"contributors": [
|
10
|
+
{
|
11
|
+
"login": "nikolalsvk",
|
12
|
+
"name": "Nikola Đuza",
|
13
|
+
"avatar_url": "https://avatars2.githubusercontent.com/u/3028124?v=4",
|
14
|
+
"profile": "http://nikoladjuza.me/",
|
15
|
+
"contributions": [
|
16
|
+
"question",
|
17
|
+
"code",
|
18
|
+
"doc",
|
19
|
+
"review"
|
20
|
+
]
|
21
|
+
},
|
22
|
+
{
|
23
|
+
"login": "colinxfleming",
|
24
|
+
"name": "Colin",
|
25
|
+
"avatar_url": "https://avatars0.githubusercontent.com/u/3866868?v=4",
|
26
|
+
"profile": "http://www.colinxfleming.com",
|
27
|
+
"contributions": [
|
28
|
+
"code",
|
29
|
+
"doc",
|
30
|
+
"example"
|
31
|
+
]
|
32
|
+
},
|
33
|
+
{
|
34
|
+
"login": "kaspergrubbe",
|
35
|
+
"name": "Kasper Grubbe",
|
36
|
+
"avatar_url": "https://avatars2.githubusercontent.com/u/334273?v=4",
|
37
|
+
"profile": "http://kaspergrubbe.com",
|
38
|
+
"contributions": [
|
39
|
+
"code"
|
40
|
+
]
|
41
|
+
},
|
42
|
+
{
|
43
|
+
"login": "sairam",
|
44
|
+
"name": "Sai Ram Kunala",
|
45
|
+
"avatar_url": "https://avatars2.githubusercontent.com/u/163584?v=4",
|
46
|
+
"profile": "https://sairam.xyz/",
|
47
|
+
"contributions": [
|
48
|
+
"doc"
|
49
|
+
]
|
50
|
+
},
|
51
|
+
{
|
52
|
+
"login": "nightsurge",
|
53
|
+
"name": "Josh Arnold",
|
54
|
+
"avatar_url": "https://avatars2.githubusercontent.com/u/3065882?v=4",
|
55
|
+
"profile": "https://github.com/nightsurge",
|
56
|
+
"contributions": [
|
57
|
+
"code",
|
58
|
+
"doc"
|
59
|
+
]
|
60
|
+
},
|
61
|
+
{
|
62
|
+
"login": "SaladFork",
|
63
|
+
"name": "Elad Shahar",
|
64
|
+
"avatar_url": "https://avatars3.githubusercontent.com/u/107798?v=4",
|
65
|
+
"profile": "https://eladshahar.com",
|
66
|
+
"contributions": [
|
67
|
+
"code",
|
68
|
+
"example"
|
69
|
+
]
|
70
|
+
},
|
71
|
+
{
|
72
|
+
"login": "sasharevzin",
|
73
|
+
"name": "Sasha",
|
74
|
+
"avatar_url": "https://avatars3.githubusercontent.com/u/232392?v=4",
|
75
|
+
"profile": "http://www.revzin.co.il",
|
76
|
+
"contributions": [
|
77
|
+
"code",
|
78
|
+
"doc"
|
79
|
+
]
|
80
|
+
},
|
81
|
+
{
|
82
|
+
"login": "elsurudo",
|
83
|
+
"name": "Ernest Surudo",
|
84
|
+
"avatar_url": "https://avatars3.githubusercontent.com/u/50223?v=4",
|
85
|
+
"profile": "http://elsurudo.com",
|
86
|
+
"contributions": [
|
87
|
+
"code"
|
88
|
+
]
|
89
|
+
},
|
90
|
+
{
|
91
|
+
"login": "krainboltgreene",
|
92
|
+
"name": "Kurtis Rainbolt-Greene",
|
93
|
+
"avatar_url": "https://avatars1.githubusercontent.com/u/334809?v=4",
|
94
|
+
"profile": "https://kurtis.rainbolt-greene.online",
|
95
|
+
"contributions": [
|
96
|
+
"code"
|
97
|
+
]
|
98
|
+
},
|
99
|
+
{
|
100
|
+
"login": "schneems",
|
101
|
+
"name": "Richard Schneeman",
|
102
|
+
"avatar_url": "https://avatars2.githubusercontent.com/u/59744?v=4",
|
103
|
+
"profile": "https://www.schneems.com",
|
104
|
+
"contributions": [
|
105
|
+
"doc"
|
106
|
+
]
|
107
|
+
},
|
108
|
+
{
|
109
|
+
"login": "richardvenneman",
|
110
|
+
"name": "Richard Venneman",
|
111
|
+
"avatar_url": "https://avatars1.githubusercontent.com/u/75705?v=4",
|
112
|
+
"profile": "https://www.cityspotters.com",
|
113
|
+
"contributions": [
|
114
|
+
"doc"
|
115
|
+
]
|
116
|
+
},
|
117
|
+
{
|
118
|
+
"login": "filipewl",
|
119
|
+
"name": "Filipe W. Lima",
|
120
|
+
"avatar_url": "https://avatars3.githubusercontent.com/u/381395?v=4",
|
121
|
+
"profile": "https://github.com/filipewl",
|
122
|
+
"contributions": [
|
123
|
+
"doc"
|
124
|
+
]
|
125
|
+
},
|
126
|
+
{
|
127
|
+
"login": "eclemens",
|
128
|
+
"name": "Jesús Eduardo Clemens Chong",
|
129
|
+
"avatar_url": "https://avatars0.githubusercontent.com/u/3135638?v=4",
|
130
|
+
"profile": "https://github.com/eclemens",
|
131
|
+
"contributions": [
|
132
|
+
"code"
|
133
|
+
]
|
134
|
+
},
|
135
|
+
{
|
136
|
+
"login": "reneklacan",
|
137
|
+
"name": "René Klačan",
|
138
|
+
"avatar_url": "https://avatars3.githubusercontent.com/u/1935686?v=4",
|
139
|
+
"profile": "https://github.com/reneklacan",
|
140
|
+
"contributions": [
|
141
|
+
"code"
|
142
|
+
]
|
143
|
+
},
|
144
|
+
{
|
145
|
+
"login": "gil27",
|
146
|
+
"name": "Gil Gomes",
|
147
|
+
"avatar_url": "https://avatars1.githubusercontent.com/u/1313442?v=4",
|
148
|
+
"profile": "http://gilgomes.com.br",
|
149
|
+
"contributions": [
|
150
|
+
"doc"
|
151
|
+
]
|
152
|
+
}
|
153
|
+
],
|
154
|
+
"repoType": "github"
|
155
|
+
}
|
data/.gitignore
ADDED
data/.gitmodules
ADDED
data/.rspec
ADDED
data/CHANGELOG.md
ADDED
@@ -0,0 +1,107 @@
|
|
1
|
+
### 2.1.0 (2019/5/6)
|
2
|
+
|
3
|
+
* [#77](https://github.com/renderedtext/render_async/pull/77): Call render_async logic every N seconds - [@nikolalsvk](https://github.com/nikolalsvk).
|
4
|
+
* [#76](https://github.com/renderedtext/render_async/pull/76): Retry render_async on failure - [@nikolalsvk](https://github.com/nikolalsvk).
|
5
|
+
|
6
|
+
### 2.0.2 (2019/1/4)
|
7
|
+
|
8
|
+
* [#74](https://github.com/renderedtext/render_async/pull/74): Remove bundler as a dependency - [@nikolalsvk](https://github.com/nikolalsvk).
|
9
|
+
|
10
|
+
### 2.0.1 (2018/12/10)
|
11
|
+
|
12
|
+
* [#69](https://github.com/renderedtext/render_async/pull/69): Adding CHANGELOG.md - [@gil27](https://github.com/gil27).
|
13
|
+
* [#66](https://github.com/renderedtext/render_async/pull/66): Adding support for Turbolinks 5+ - [@eclemens](https://github.com/eclemens).
|
14
|
+
* [#65](https://github.com/renderedtext/render_async/pull/65): Invalid jQuery Promise method name - [@eclemens](https://github.com/eclemens).
|
15
|
+
|
16
|
+
### 2.0.0 (2018/10/06)
|
17
|
+
|
18
|
+
* [#64](https://github.com/renderedtext/render_async/pull/64): Document new features - [@nikolalsvk](https://github.com/nikolalsvk).
|
19
|
+
* [#63](https://github.com/renderedtext/render_async/pull/63): Configure gem - [@nikolalsvk](https://github.com/nikolalsvk).
|
20
|
+
* [#62](https://github.com/renderedtext/render_async/pull/62): Handle request errorss - [@nikolalsvk](https://github.com/nikolalsvk).
|
21
|
+
* [#61](https://github.com/renderedtext/render_async/pull/61): Add option to pass in container_class and container_id - [@nikolalsvk](https://github.com/nikolalsvk).
|
22
|
+
* [#60](https://github.com/renderedtext/render_async/pull/60): Support event creation in IE - [@nikolalsvk](https://github.com/nikolalsvk).
|
23
|
+
|
24
|
+
### 1.3.0 (2018/10/06)
|
25
|
+
|
26
|
+
* [#58](https://github.com/renderedtext/render_async/pull/58): Tune different method requests - [@nikolalsvk](https://github.com/nikolalsvk).
|
27
|
+
* [#52](https://github.com/renderedtext/render_async/pull/52): Configurable AJAX method, headers and body - [@reneklacan](https://github.com/reneklacan).
|
28
|
+
* [#54](https://github.com/renderedtext/render_async/pull/54): Add recipe for using with respond_to/format.js - [@filipewl](https://github.com/filipewl).
|
29
|
+
* [#50](https://github.com/renderedtext/render_async/pull/50): Add Turbolinks usage note- [@richardvenneman](https://github.com/richardvenneman).
|
30
|
+
|
31
|
+
### 1.2.0 (2018/01/25)
|
32
|
+
|
33
|
+
* [#49](https://github.com/renderedtext/render_async/pull/49): Pass in html_element_name - [@nikolalsvk](https://github.com/nikolalsvk).
|
34
|
+
* [#48](https://github.com/renderedtext/render_async/pull/48): Move JS code to a partial - [@nikolalsvk](https://github.com/nikolalsvk).
|
35
|
+
* [#47](https://github.com/renderedtext/render_async/pull/47): Trigger request when document is ready - [@nikolalsvk](https://github.com/nikolalsvk).
|
36
|
+
* [#36](https://github.com/renderedtext/render_async/pull/36): Update README with instructions for nested async - [@SaladFork](https://github.com/SaladFork).
|
37
|
+
* [#41](https://github.com/renderedtext/render_async/pull/41): Only bother when the dom is actually ready to be changed - [@krainboltgreene](https://github.com/nikolalsvk).
|
38
|
+
* [#43](https://github.com/renderedtext/render_async/pull/43): [ci skip] Get more Open Source Helpers - [@schneems](https://github.com/schneems).
|
39
|
+
* [#42](https://github.com/renderedtext/render_async/pull/42): Integration tests - [@nikolalsvk](https://github.com/nikolalsvk).
|
40
|
+
|
41
|
+
### 1.1.3 (2017/11/23)
|
42
|
+
|
43
|
+
* [#40](https://github.com/renderedtext/render_async/pull/40): Replace render_async's container with the response data - [@nikolalsvk](https://github.com/nikolalsvk).
|
44
|
+
|
45
|
+
### 1.1.2 (2017/11/17)
|
46
|
+
|
47
|
+
* [#35](https://github.com/renderedtext/render_async/pull/35): Fix async without jQuery - [@SaladFork](https://github.com/SaladFork).
|
48
|
+
* [#33](https://github.com/renderedtext/render_async/pull/33): Don't html-escape the path when outputting JS - [@elsurudo](https://github.com/elsurudo).
|
49
|
+
* [#31](https://github.com/renderedtext/render_async/pull/31): Allow `render_async_cache` to take a placeholder - [@elsurudo](https://github.com/elsurudo).
|
50
|
+
|
51
|
+
### 1.1.1 (2017/10/14)
|
52
|
+
|
53
|
+
* [#29](https://github.com/renderedtext/render_async/pull/29): Use jQuery if available - [@nikolalsvk](https://github.com/nikolalsvk).
|
54
|
+
|
55
|
+
### 1.1.0 (2017/10/14)
|
56
|
+
|
57
|
+
* [Fix event name explanation](https://github.com/renderedtext/render_async/commit/bd1ebb7011be6868dce9da76c5db9ca1133ec71d) - [@nikolalsvk](https://github.com/nikolalsvk).
|
58
|
+
* [#22](https://github.com/renderedtext/render_async/pull/22): Dispatch JS Event when AJAX is finished- [@nikolalsvk](https://github.com/nikolalsvk).
|
59
|
+
|
60
|
+
### 1.0.1 (2017/10/14)
|
61
|
+
|
62
|
+
* [#28](https://github.com/renderedtext/render_async/pull/28): Make vanilla JS more readable - [@nikolalsvk](https://github.com/nikolalsvk).
|
63
|
+
* [#25](https://github.com/renderedtext/render_async/pull/25): Convert to vanilla js - [@sasharevzin](https://github.com/sasharevzin).
|
64
|
+
* [#27](https://github.com/renderedtext/render_async/pull/27): Add turbolinks recipe - [@colinxfleming](https://github.com/colinxfleming).
|
65
|
+
* [#23](https://github.com/renderedtext/render_async/pull/23): Test placeholder - [@nikolalsvk](https://github.com/nikolalsvk).
|
66
|
+
* [#21](https://github.com/renderedtext/render_async/pull/21): Add specs for render_async_cache - [@nikolalsvk](https://github.com/nikolalsvk).
|
67
|
+
|
68
|
+
### 1.0.0 (2017/09/21)
|
69
|
+
|
70
|
+
* [#20](https://github.com/renderedtext/render_async/pull/20): Rename block to placeholder - [@nikolalsvk](https://github.com/nikolalsvk).
|
71
|
+
|
72
|
+
### 0.4.1 (2017/09/07)
|
73
|
+
|
74
|
+
* [#19](https://github.com/renderedtext/render_async/pull/19): Fix replace with - [@nikolalsvk](https://github.com/nikolalsvk).
|
75
|
+
|
76
|
+
### 0.4.0 (2017/09/07)
|
77
|
+
|
78
|
+
* [#18](https://github.com/renderedtext/render_async/pull/18): Use replaceWith instead of html - [@nikolalsvk](https://github.com/nikolalsvk).
|
79
|
+
|
80
|
+
### 0.3.3 (2017/09/04)
|
81
|
+
|
82
|
+
* [#17](https://github.com/renderedtext/render_async/pull/17): Prepare and test caching - [@nikolalsvk](https://github.com/nikolalsvk).
|
83
|
+
* [#16](https://github.com/renderedtext/render_async/pull/16): Improvements and fixes for cached view - [@nightsurge](https://github.com/nightsurge).
|
84
|
+
* [#15](https://github.com/renderedtext/render_async/pull/15): Add all contributors - [@nikolalsvk](https://github.com/nikolalsvk).
|
85
|
+
* [#14](https://github.com/renderedtext/render_async/pull/14): Add view caching support - [@nightsurge](https://github.com/nightsurge).
|
86
|
+
|
87
|
+
### 0.2.3 (2017/07/11)
|
88
|
+
|
89
|
+
* [#10](https://github.com/renderedtext/render_async/pull/10): Adjust to use javascript_tag and take html_options - [@colinxfleming](https://github.com/colinxfleming).
|
90
|
+
|
91
|
+
### 0.1.3 (2017/06/28)
|
92
|
+
|
93
|
+
* [#9](https://github.com/renderedtext/render_async/pull/9): Use commit history from kaspergrubbe/render_async - [@nikolalsvk](https://github.com/nikolalsvk).
|
94
|
+
* [#7](https://github.com/renderedtext/render_async/pull/7): Update README badges - [@nikolalsvk](https://github.com/nikolalsvk).
|
95
|
+
* [#5](https://github.com/renderedtext/render_async/pull/5): Update README.md - [@nikolalsvk](https://github.com/nikolalsvk).
|
96
|
+
* [#4](https://github.com/renderedtext/render_async/pull/4): Update installation info - [@nikolalsvk](https://github.com/nikolalsvk).
|
97
|
+
* [#3](https://github.com/renderedtext/render_async/pull/3): Allow push to rubygems.org - [@nikolalsvk](https://github.com/nikolalsvk).
|
98
|
+
* [#2](https://github.com/renderedtext/render_async/pull/2): Remove railtie and engine files - [@nikolalsvk](https://github.com/nikolalsvk).
|
99
|
+
* [#1](https://github.com/renderedtext/render_async/pull/1): Use commit history from kaspergrubbe/render_async - [@nikolalsvk](https://github.com/nikolalsvk).
|
100
|
+
|
101
|
+
### 0.0.2 (2013/08/23)
|
102
|
+
|
103
|
+
* It is now safe to call the method render_async instead of render_asynk (Billetto namespace issue) - [@kaspergrubbe](https://github.com/kaspergrubbe)
|
104
|
+
|
105
|
+
### 0.0.1 (2013/08/23)
|
106
|
+
|
107
|
+
* Add a webpage description to the Gemspec - [@kaspergrubbe](https://github.com/kaspergrubbe)
|
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2016 Rendered Text
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|