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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6c1a7fe0cb0777d62d399186270fd11a4965ed77
4
- data.tar.gz: 24f12fd53135a6dc7a5ebbfaa8b73a39af9b5e1d
3
+ metadata.gz: d025ce1cde7d307ac23919e459e703f06702b9ad
4
+ data.tar.gz: 9d0239c076fcae84235b78ce35398cb8fe26a808
5
5
  SHA512:
6
- metadata.gz: a38f837ac9dab05e34edbee772b98ca12959bed7851ad0ca7f8537eabc768cc5f5cac5a053c00605a3d72ace70c7520bd5bc0b1cda7a5dcd765f16193c5e65d6
7
- data.tar.gz: 5db0e5eaf38682d447786a4950cc1e65b893052e5fe52b76016f4a5dc464ea82e059896df07f2144e79dbd13c023e2c13ccf4ce63bd1bb0254869e9ccfa2539a
6
+ metadata.gz: 5b0e0c3e6599dd4f74efe555dc4271b5d51c1d0b1a07a0079e095055ff53d2cb57befa0f048a9e7d44ab1bad2108fcca3b975fb0e38d98d0456eebc6d43a6c4c
7
+ data.tar.gz: db588993939e6b722c3f5e968e1cbcd816cdd5100b6a553bab9252a2d67e7b38d2f536bc394ae2fe9e04babf59de8858b56d3f4ca6f38afa58ff692eb83fa07f
@@ -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.
@@ -1,5 +1,5 @@
1
1
  module ServiceWorker
2
2
  module Rails
3
- VERSION = "0.3.0"
3
+ VERSION = "0.3.1"
4
4
  end
5
5
  end
@@ -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.0
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-02 00:00:00.000000000 Z
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.2.3
149
+ rubygems_version: 2.5.1
149
150
  signing_key:
150
151
  specification_version: 4
151
152
  summary: ServiceWorker for Rails 3+