pwa 4.0.5 → 4.0.6
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 +4 -4
- data/LICENSE +0 -0
- data/README.md +23 -54
- data/app/controllers/pwa/apps_controller.rb +0 -0
- data/app/views/mozaic/pwa/_manifest.html.erb +0 -0
- data/app/views/mozaic/pwa/_theme.html.erb +0 -0
- data/app/views/pwa/apps/manifest.json.erb +0 -0
- data/app/views/pwa/apps/offline.html.erb +0 -0
- data/config/routes.rb +0 -0
- data/lib/generators/pwa/app_generator.rb +0 -0
- data/lib/generators/pwa/install_generator.rb +0 -0
- data/lib/generators/templates/app/manifest.json.erb +0 -0
- data/lib/generators/templates/app/offline.html.erb +0 -0
- data/lib/generators/templates/install/initializer.rb +0 -0
- data/lib/generators/templates/install/service-worker.js +0 -0
- data/lib/pwa.rb +0 -0
- data/lib/pwa/app.rb +0 -0
- data/lib/pwa/configuration.rb +0 -0
- data/lib/pwa/engine.rb +0 -0
- data/lib/pwa/railtie.rb +0 -0
- data/lib/pwa/version.rb +1 -1
- metadata +8 -9
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a71848a66620e661bb8491f628e5638c990a59a88694a02810b25b84764b2cda
|
|
4
|
+
data.tar.gz: e7ff34d6cf877f49fa4a7ee802e1f90d807b1cdb0c30a930c0ee2dc22a3d3e63
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3042a35bf648a5e6691a4eb08d973ed84f290ab2bdba3f12461665ee7b32924dc8ffa59a68a4417db06da4bd5493dd7f14c5af003fc83caeb54c2047c4081031
|
|
7
|
+
data.tar.gz: 341c9edbc5d86a4d9ee02f39e4502556e2a03424feab9c3d7d25d89788eed4b974f1f7742a6551ff8729b09b0ecbee7846069b11d7f3f2c4e426fc56389d5ba4
|
data/LICENSE
CHANGED
|
File without changes
|
data/README.md
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
# Progressive Web Apps for Rails
|
|
2
2
|
|
|
3
|
-
[](https://badge.fury.io/rb/pwa) <img src="https://travis-ci.org/jonhue/pwa.svg?branch=master" />
|
|
4
|
-
|
|
5
3
|
This gem only provides a foundation upon which you can build your Progressive Web App. It simplifies adding a service worker and a manifest to your app, so that it can be recognized as an PWA and as such accessed without a network connection.
|
|
6
4
|
|
|
7
5
|
[Google](https://developers.google.com/web/progressive-web-apps/) defines Progressive Web Apps as:
|
|
@@ -23,19 +21,17 @@ If a PWA is not enough and you want to bring your Web App into the store - check
|
|
|
23
21
|
|
|
24
22
|
* [Installation](#installation)
|
|
25
23
|
* [Usage](#usage)
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
24
|
+
* [Quick start](#quick-start)
|
|
25
|
+
* [Apps](#apps)
|
|
26
|
+
* [Manifest](#manifest)
|
|
27
|
+
* [Offline pages](#offline-pages)
|
|
28
|
+
* [Themes](#themes)
|
|
29
|
+
* [Service worker](#service-worker)
|
|
30
|
+
* [Styles](#styles)
|
|
33
31
|
* [Configuration](#configuration)
|
|
34
|
-
* [
|
|
32
|
+
* [Release](#release)
|
|
35
33
|
* [Contributing](#contributing)
|
|
36
|
-
|
|
37
|
-
* [Semantic versioning](#semantic-versioning)
|
|
38
|
-
* [License](#license)
|
|
34
|
+
* [Semantic versioning](#semantic-versioning)
|
|
39
35
|
|
|
40
36
|
---
|
|
41
37
|
|
|
@@ -77,7 +73,7 @@ Now define your app:
|
|
|
77
73
|
|
|
78
74
|
```ruby
|
|
79
75
|
Pwa.configure do |config|
|
|
80
|
-
|
|
76
|
+
config.define_app 'App'
|
|
81
77
|
end
|
|
82
78
|
```
|
|
83
79
|
|
|
@@ -91,8 +87,8 @@ Now add the `pwa-rails` NPM package and initialize it:
|
|
|
91
87
|
|
|
92
88
|
```js
|
|
93
89
|
import ProgressiveWebApp from 'pwa-rails';
|
|
94
|
-
document.addEventListener(
|
|
95
|
-
|
|
90
|
+
document.addEventListener('turbolinks:load', () => {
|
|
91
|
+
const progressiveWebApp = new ProgressiveWebApp();
|
|
96
92
|
})
|
|
97
93
|
```
|
|
98
94
|
|
|
@@ -112,8 +108,8 @@ Progressive Web Apps for Rails allows for multiple Progressive Web Apps per Rail
|
|
|
112
108
|
|
|
113
109
|
```ruby
|
|
114
110
|
Pwa.configure do |config|
|
|
115
|
-
|
|
116
|
-
|
|
111
|
+
config.define_app 'Subdomain', ['subdomain.example.com', 'subdomain.lvh.me:3000']
|
|
112
|
+
config.define_app 'Example', ['example.com', 'localhost:3000', 'lvh.me:3000']
|
|
117
113
|
end
|
|
118
114
|
```
|
|
119
115
|
|
|
@@ -163,7 +159,7 @@ To detect whether or not your app is currently being used as a Progressive Web A
|
|
|
163
159
|
|
|
164
160
|
```css
|
|
165
161
|
@media all and (display-mode: standalone) {
|
|
166
|
-
|
|
162
|
+
/* ... */
|
|
167
163
|
}
|
|
168
164
|
```
|
|
169
165
|
|
|
@@ -177,7 +173,7 @@ You can configure Pwa by passing a block to `configure`. This can be done in `co
|
|
|
177
173
|
|
|
178
174
|
```ruby
|
|
179
175
|
Pwa.configure do |config|
|
|
180
|
-
|
|
176
|
+
config.define_app 'App', ['example.com']
|
|
181
177
|
end
|
|
182
178
|
```
|
|
183
179
|
|
|
@@ -185,11 +181,14 @@ end
|
|
|
185
181
|
|
|
186
182
|
---
|
|
187
183
|
|
|
188
|
-
##
|
|
189
|
-
|
|
190
|
-
[Here](https://github.com/jonhue/pwa/projects/1) is the full list of current projects.
|
|
184
|
+
## Release
|
|
191
185
|
|
|
192
|
-
|
|
186
|
+
1. Review breaking changes and deprecations in `CHANGELOG.md`.
|
|
187
|
+
1. Change the version in `package.json` and `lib/pwa/version.rb`.
|
|
188
|
+
1. Reset `CHANGELOG.md`.
|
|
189
|
+
1. Create a pull request to merge the changes into `master`.
|
|
190
|
+
1. After the pull request was merged, create a new release listing the breaking changes and commits on `master` since the last release.
|
|
191
|
+
1. The release workflow will publish the node package to NPM and GPR and the gem to Rubygems and GPR.
|
|
193
192
|
|
|
194
193
|
---
|
|
195
194
|
|
|
@@ -199,36 +198,6 @@ We hope that you will consider contributing to Progressive Web Apps for Rails. P
|
|
|
199
198
|
|
|
200
199
|
[Learn more about contributing to this repository](CONTRIBUTING.md), [Code of Conduct](CODE_OF_CONDUCT.md)
|
|
201
200
|
|
|
202
|
-
### Contributors
|
|
203
|
-
|
|
204
|
-
Give the people some :heart: who are working on this project. See them all at:
|
|
205
|
-
|
|
206
|
-
https://github.com/jonhue/pwa/graphs/contributors
|
|
207
|
-
|
|
208
201
|
### Semantic Versioning
|
|
209
202
|
|
|
210
203
|
Progressive Web Apps for Rails follows Semantic Versioning 2.0 as defined at http://semver.org.
|
|
211
|
-
|
|
212
|
-
## License
|
|
213
|
-
|
|
214
|
-
MIT License
|
|
215
|
-
|
|
216
|
-
Copyright (c) 2018 Jonas Hübotter
|
|
217
|
-
|
|
218
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
219
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
220
|
-
in the Software without restriction, including without limitation the rights
|
|
221
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
222
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
223
|
-
furnished to do so, subject to the following conditions:
|
|
224
|
-
|
|
225
|
-
The above copyright notice and this permission notice shall be included in all
|
|
226
|
-
copies or substantial portions of the Software.
|
|
227
|
-
|
|
228
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
229
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
230
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
231
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
232
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
233
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
234
|
-
SOFTWARE.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/config/routes.rb
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/lib/pwa.rb
CHANGED
|
File without changes
|
data/lib/pwa/app.rb
CHANGED
|
File without changes
|
data/lib/pwa/configuration.rb
CHANGED
|
File without changes
|
data/lib/pwa/engine.rb
CHANGED
|
File without changes
|
data/lib/pwa/railtie.rb
CHANGED
|
File without changes
|
data/lib/pwa/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pwa
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.0.
|
|
4
|
+
version: 4.0.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jonas Hübotter
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2019-12-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: mozaic
|
|
@@ -28,16 +28,16 @@ dependencies:
|
|
|
28
28
|
name: railties
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
|
-
- - "
|
|
31
|
+
- - ">="
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: '5.
|
|
33
|
+
version: '5.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: '5.
|
|
40
|
+
version: '5.0'
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: rspec
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -119,15 +119,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
119
119
|
requirements:
|
|
120
120
|
- - ">="
|
|
121
121
|
- !ruby/object:Gem::Version
|
|
122
|
-
version: '2.
|
|
122
|
+
version: '2.5'
|
|
123
123
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
124
124
|
requirements:
|
|
125
125
|
- - ">="
|
|
126
126
|
- !ruby/object:Gem::Version
|
|
127
127
|
version: '0'
|
|
128
128
|
requirements: []
|
|
129
|
-
|
|
130
|
-
rubygems_version: 2.7.6
|
|
129
|
+
rubygems_version: 3.0.3
|
|
131
130
|
signing_key:
|
|
132
131
|
specification_version: 4
|
|
133
132
|
summary: Progressive Web Apps for Rails
|