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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e4b16d74767980ee9dee6f68fe6028b9f155e160cca22043e1a2d3772c6158cd
4
- data.tar.gz: b336abd47c05fb18c8bbae000d0704b8faa932034073c4726a04c4d5b17073fa
3
+ metadata.gz: '09ab18d992e870df70b196d5551d63d88890e836c670e728239978e994113090'
4
+ data.tar.gz: 9a318f36720d851b99ae7ad9c48bfd459af34db12b3c74ac4be59af51c52a059
5
5
  SHA512:
6
- metadata.gz: b56b33826665907804b226bb31aa4ae442b41eaa6145ac9304044550ea46fda5ec5a50ed93238db27cbf817818cda540559717cf1c1c4e4467d778bee78d39b1
7
- data.tar.gz: c25377415c2bdff4f98e315b98f1f126eb3101606233bc4e610b9f7bdbd3d32842612a1190053bf87e3ca8ca608b390ffa8a16142ae0ac62333c182a717baa63
6
+ metadata.gz: 9ab3512bf4761eced518c142db41bb4e2d607abdf377a8f53625cdeca09e9d8b86787e28901ffe1604b9e8c4ba0cab604ef7e32da813e168fbd33206ae0edae3
7
+ data.tar.gz: 72e1a304f0dea7c0bb82f3f35d1311f4a9cf628be5ad4ebff7025662f19881025c92faa25090af7bb10f18e3bbb4cfa26bee274784a0f32e67a0f93a9540a8b5
@@ -4,6 +4,11 @@
4
4
 
5
5
  * nothing yet
6
6
 
7
+ ### 2.0.1 - 2018/01/26
8
+
9
+ * bugfixes
10
+ * fixed `wrong number of arguments` when defining apps without scopes
11
+
7
12
  ### 2.0.0 - 2018/01/26
8
13
 
9
14
  * features
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
@@ -17,7 +17,7 @@ module Pwa
17
17
  @apps = []
18
18
  end
19
19
 
20
- def define_app name, scope
20
+ def define_app name, scope = nil
21
21
  self.apps << ::Pwa::App.new(name, scope)
22
22
  end
23
23
 
@@ -1,5 +1,5 @@
1
1
  module Pwa
2
2
 
3
- VERSION = '2.0.0'
3
+ VERSION = '2.0.1'
4
4
 
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pwa
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonas Hübotter