spryte 0.0.1.pre5 → 0.0.1.pre6

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
  SHA1:
3
- metadata.gz: 9983e23cd6804440e86315e676d3c19d0bfd59fd
4
- data.tar.gz: 0ef5cb5ade8914b7281081823e010c79b613958a
3
+ metadata.gz: 126c3d42d639dbed5eaa77855c64640c3dda9e31
4
+ data.tar.gz: 131f1274b6143f5222910891f5fa162499cd824d
5
5
  SHA512:
6
- metadata.gz: d387ec131a53567386e7bfc02cd98ba7b729798fc7e0cdf4d016bd7c62dfd462b97fd1ef15478885ccfba8113ae663679cfbeeccf1d6cc1866ef14a04bdaa5ac
7
- data.tar.gz: 1174fac0104a623bfb305fd2dc79c2bb37355c31c0aeb97876b161ccb47eeb7e61e0db12a381993474f4f92929e66d20dc7fed01de425d016953e73b54820701
6
+ metadata.gz: eafd4fb50d00e367dc8ff372ad381c19d6016b79d107deeb7073786f01a4c7c1bf02b3b43b9a091f901a6d9f9e3452fda5f77593d43a6577018e22c173d54950
7
+ data.tar.gz: 4a8ba7299fb1a8d00d9103c5d0b8bfeec4e357af85135ea93d5a748db87b0b75d4625fe3ac8c6d6d3d3ff59cb166ea595d0fb28d841a2bc19a4da0b040250de8
@@ -5,7 +5,7 @@ module Spryte
5
5
  extend ActiveSupport::Concern
6
6
 
7
7
  def fallback(to)
8
- match "/(errors/):status", to: "base#error", via: :all, constraints: { status: /\d{3}/ }, defaults: Spryte::Routing::DEFAULTS
8
+ match "/(errors/):status", to: "base#error", via: :all, constraints: { status: /\d{3}/ }, defaults: { format: "json" }
9
9
  match "*path", to: to, via: :all
10
10
  root to: to
11
11
  end
@@ -5,8 +5,8 @@ module Spryte
5
5
  extend ActiveSupport::Concern
6
6
 
7
7
  def version(number, &block)
8
- namespace (v_string = [ "v", number ].join), defaults: Spryte::Routing::DEFAULTS, &block
9
- match "/*path", to: [ v_string, "base#not_found" ].join("/"), via: :all, defaults: Spryte::Routing::DEFAULTS
8
+ namespace (v_string = [ "v", number ].join), defaults: { format: "json" }, &block
9
+ match "/*path", to: [ v_string, "base#not_found" ].join("/"), via: :all, defaults: { format: "json" }
10
10
  end
11
11
 
12
12
  end
@@ -1,6 +1,5 @@
1
1
  module Spryte
2
2
  module Routing
3
- DEFAULTS = { format: "json" }.freeze
4
3
  require "spryte/routing/version_mapper"
5
4
  require "spryte/routing/fallback_mapper"
6
5
  end
@@ -1,6 +1,6 @@
1
1
  module Spryte
2
2
  MAJOR = "0"
3
3
  MINOR = "0"
4
- PATCH = "1.pre5"
4
+ PATCH = "1.pre6"
5
5
  VERSION = [ MAJOR, MINOR, PATCH ].join(".")
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spryte
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.pre5
4
+ version: 0.0.1.pre6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Philip Vieira