serviceworker-rails 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +23 -0
- data/README.md +4 -0
- data/lib/serviceworker/rails/version.rb +1 -1
- data/lib/serviceworker/railtie.rb +1 -2
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d025ce1cde7d307ac23919e459e703f06702b9ad
|
4
|
+
data.tar.gz: 9d0239c076fcae84235b78ce35398cb8fe26a808
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b0e0c3e6599dd4f74efe555dc4271b5d51c1d0b1a07a0079e095055ff53d2cb57befa0f048a9e7d44ab1bad2108fcca3b975fb0e38d98d0456eebc6d43a6c4c
|
7
|
+
data.tar.gz: db588993939e6b722c3f5e968e1cbcd816cdd5100b6a553bab9252a2d67e7b38d2f536bc394ae2fe9e04babf59de8858b56d3f4ca6f38afa58ff692eb83fa07f
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
### 0.3.1 - 2016-05-03
|
2
|
+
|
3
|
+
* enhancements
|
4
|
+
* add CHANGELOG
|
5
|
+
* bug fixes
|
6
|
+
* ensure railtie adds middleware to stack after config initializers are loaded
|
7
|
+
|
8
|
+
### 0.3.0 - 2016-05-02
|
9
|
+
|
10
|
+
* enhancements
|
11
|
+
* new route matching behavior; similar to Rails-routing style and Rack::Router
|
12
|
+
* add to Travis-CI builds
|
13
|
+
|
14
|
+
### 0.2.0 - 2016-04-25
|
15
|
+
|
16
|
+
* enhancements
|
17
|
+
* routes are now configurable instead of a single-hardcoded path
|
18
|
+
* support custom headers
|
19
|
+
* extract Route and Router classes
|
20
|
+
|
21
|
+
### 0.1.0 - 2016-04-23
|
22
|
+
|
23
|
+
* initial release
|
data/README.md
CHANGED
@@ -59,6 +59,10 @@ config.serviceworker.headers["Service-Worker-Allowed"] = "/"
|
|
59
59
|
config.serviceworker.headers["X-Custom-Header"] = "foobar"
|
60
60
|
```
|
61
61
|
|
62
|
+
### Demo
|
63
|
+
|
64
|
+
Check out the demo application, [Service Worker on Rails](https://serviceworker-rails.herokuapp.com/), to see various examples of using Service Workers in a Rails app.
|
65
|
+
|
62
66
|
## Development
|
63
67
|
|
64
68
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
@@ -9,9 +9,8 @@ module ServiceWorker
|
|
9
9
|
config.serviceworker.routes = ServiceWorker::Router.new
|
10
10
|
config.serviceworker.handler = ServiceWorker::Rails::Handler.new
|
11
11
|
|
12
|
-
initializer "serviceworker-rails.configure_rails_initialization" do
|
12
|
+
initializer "serviceworker-rails.configure_rails_initialization", after: :load_config_initializers do
|
13
13
|
config.serviceworker.logger ||= ::Rails.logger
|
14
|
-
config.serviceworker.routes.draw_default unless config.serviceworker.routes.any?
|
15
14
|
|
16
15
|
app.middleware.use ServiceWorker::Middleware, config.serviceworker
|
17
16
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: serviceworker-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ross Kaffenberger
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -103,6 +103,7 @@ extra_rdoc_files: []
|
|
103
103
|
files:
|
104
104
|
- ".gitignore"
|
105
105
|
- ".travis.yml"
|
106
|
+
- CHANGELOG.md
|
106
107
|
- CODE_OF_CONDUCT.md
|
107
108
|
- Gemfile
|
108
109
|
- Guardfile
|
@@ -145,7 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
145
146
|
version: '0'
|
146
147
|
requirements: []
|
147
148
|
rubyforge_project:
|
148
|
-
rubygems_version: 2.
|
149
|
+
rubygems_version: 2.5.1
|
149
150
|
signing_key:
|
150
151
|
specification_version: 4
|
151
152
|
summary: ServiceWorker for Rails 3+
|