jellyfish 1.2.1 → 1.2.2

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: 968788d7fa1a13e68a134a03948a619f2b09e3fb231208db5967039d0bcbaedf
4
- data.tar.gz: 15e289eafd91bcc1a29ad3a45aae8eb791f5afa4c638bf5d7faec4452ecc8133
3
+ metadata.gz: 40f88cf4d0c350c287fe8ed80e3bd06233e2315039fea6e36f21a10434d99ff1
4
+ data.tar.gz: a9619f0b57d9ad1a277f6913c1782807089c3543bcbda741377664f90fb175f7
5
5
  SHA512:
6
- metadata.gz: 3cf801046630e4fb7752a0c673689b6d4fc137dc33113d740583dd96d2d4c36ad49423b220f4930e1d14e316c8183cc5adac28e6a9240f04f2f443f69ed6a665
7
- data.tar.gz: 499291e4a77a571352ad48ea54c667539d1800d12eaa8299fb8ba4f3dfdfe0cc014e10eb3975a573bb1eceafa5749910d73bdaab1bf37d3543b71c067c8e9cc8
6
+ metadata.gz: 57c9c42a73f08953c5118c1c18cc9703a4528756b167bfb7ff04ef122e939062d8219c1ea5740bcdc9917a770b27715b339680a485ac01dfe9178e0a0409d46c
7
+ data.tar.gz: c79d13a73c40ed4466381b97c93d8d4d2f1a4d11f89f8e2732b6366915ae0db5ffe863c6e20b6186b6cb1ea1eb8b588d59f30be7e68da516b950ea604c35f724
data/CHANGES.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # CHANGES
2
2
 
3
+ ## Jellyfish 1.2.2 -- 2018-09-23
4
+
5
+ ### Bugs fixed
6
+
7
+ * Fixed `Jellyfish::Rewrite`. Should put rewritten path in the front.
8
+
3
9
  ## Jellyfish 1.2.1 -- 2018-07-21
4
10
 
5
11
  ### Bugs fixed
@@ -1,14 +1,14 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: jellyfish 1.2.1 ruby lib
2
+ # stub: jellyfish 1.2.2 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "jellyfish".freeze
6
- s.version = "1.2.1"
6
+ s.version = "1.2.2"
7
7
 
8
8
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
9
9
  s.require_paths = ["lib".freeze]
10
10
  s.authors = ["Lin Jen-Shin (godfat)".freeze]
11
- s.date = "2018-07-21"
11
+ s.date = "2018-09-23"
12
12
  s.description = "Pico web framework for building API-centric web applications.\nFor Rack applications or Rack middleware. Around 250 lines of code.\n\nCheck [jellyfish-contrib][] for extra extensions.\n\n[jellyfish-contrib]: https://github.com/godfat/jellyfish-contrib".freeze
13
13
  s.email = ["godfat (XD) godfat.org".freeze]
14
14
  s.files = [
@@ -2,7 +2,7 @@
2
2
  module Jellyfish
3
3
  class Rewrite < Struct.new(:app, :to)
4
4
  def call env
5
- app.call(env.merge('PATH_INFO' => "#{env['PATH_INFO']}#{to}"))
5
+ app.call(env.merge('PATH_INFO' => "#{to}#{env['PATH_INFO']}"))
6
6
  end
7
7
  end
8
8
  end
@@ -1,4 +1,4 @@
1
1
 
2
2
  module Jellyfish
3
- VERSION = '1.2.1'
3
+ VERSION = '1.2.2'
4
4
  end
@@ -18,7 +18,7 @@ describe Jellyfish::Rewrite do
18
18
  end
19
19
  end
20
20
 
21
- expect(call(app, '/from')).eq '/to'
21
+ expect(call(app, '/from/here')).eq '/to/here'
22
22
  end
23
23
 
24
24
  would 'rewrite and fallback' do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jellyfish
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lin Jen-Shin (godfat)
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-21 00:00:00.000000000 Z
11
+ date: 2018-09-23 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |-
14
14
  Pico web framework for building API-centric web applications.