pwa 2.0.0 → 2.0.1
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/CHANGELOG.md +5 -0
- data/README.md +3 -1
- data/lib/generators/templates/install/initializer.rb +1 -1
- data/lib/pwa/configuration.rb +1 -1
- data/lib/pwa/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '09ab18d992e870df70b196d5551d63d88890e836c670e728239978e994113090'
|
4
|
+
data.tar.gz: 9a318f36720d851b99ae7ad9c48bfd459af34db12b3c74ac4be59af51c52a059
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ab3512bf4761eced518c142db41bb4e2d607abdf377a8f53625cdeca09e9d8b86787e28901ffe1604b9e8c4ba0cab604ef7e32da813e168fbd33206ae0edae3
|
7
|
+
data.tar.gz: 72e1a304f0dea7c0bb82f3f35d1311f4a9cf628be5ad4ebff7025662f19881025c92faa25090af7bb10f18e3bbb4cfa26bee274784a0f32e67a0f93a9540a8b5
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -105,13 +105,15 @@ Progressive Web Apps for Rails allows for multiple Progressive Web Apps per Rail
|
|
105
105
|
|
106
106
|
```ruby
|
107
107
|
Pwa.configure do |config|
|
108
|
-
config.define_app 'Example', ['example.com', 'localhost:3000', 'lvh.me:3000']
|
109
108
|
config.define_app 'Subdomain', ['subdomain.example.com', 'subdomain.lvh.me:3000']
|
109
|
+
config.define_app 'Example', ['example.com', 'localhost:3000', 'lvh.me:3000']
|
110
110
|
end
|
111
111
|
```
|
112
112
|
|
113
113
|
**Note:** You can omit the array of URL scopes if you have just one PWA.
|
114
114
|
|
115
|
+
When looking for an app, the first app specified with a matching scope will be used.
|
116
|
+
|
115
117
|
#### Manifest
|
116
118
|
|
117
119
|
The app generator generates a manifest file located in the `app/views/pwa/apps/manifests` directory. It is accessible through `/manifest.json`. You can customize it to your liking.
|
@@ -1,7 +1,7 @@
|
|
1
1
|
Pwa.configure do |config|
|
2
2
|
|
3
3
|
# Define Progressive Web Apps for Rails apps
|
4
|
-
# config.define_app 'Example', ['example.com', 'localhost:3000', 'lvh.me:3000']
|
5
4
|
# config.define_app 'Subdomain', ['subdomain.example.com', 'subdomain.lvh.me:3000']
|
5
|
+
# config.define_app 'Example', ['example.com', 'localhost:3000', 'lvh.me:3000']
|
6
6
|
|
7
7
|
end
|
data/lib/pwa/configuration.rb
CHANGED
data/lib/pwa/version.rb
CHANGED