jellyfish 1.3.1 → 1.5.0

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.
data/test/test_log.rb CHANGED
@@ -12,8 +12,9 @@ describe Jellyfish do
12
12
  include Jellyfish
13
13
  get('/log') { log('hi') }
14
14
  get('/log_error'){
15
- log_error(
16
- Muack::API.stub(RuntimeError.new).backtrace{ ['backtrace'] }.object)
15
+ error = RuntimeError.new
16
+ error.set_backtrace(['backtrace'])
17
+ log_error(error)
17
18
  }
18
19
  def self.name
19
20
  'Name'
@@ -22,6 +23,7 @@ describe Jellyfish do
22
23
 
23
24
  def mock_log
24
25
  log = []
26
+ log.singleton_class.send(:public, :puts)
25
27
  mock(log).puts(is_a(String)){ |msg| log << msg }
26
28
  log
27
29
  end
@@ -35,6 +37,6 @@ describe Jellyfish do
35
37
  would "log_error to env['rack.errors']" do
36
38
  log = mock_log
37
39
  get('/log_error', app, 'rack.errors' => log)
38
- log.should.eq ['[Name] #<RuntimeError: RuntimeError> ["backtrace"]']
40
+ log.should.eq ['[Name] #<RuntimeError: RuntimeError> for /log_error ["backtrace"]']
39
41
  end
40
42
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jellyfish
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
- - Lin Jen-Shin (godfat)
8
- autorequire:
7
+ - Lin Jen-Shin (godfat)
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2018-11-11 00:00:00.000000000 Z
10
+ date: 2026-11-22 00:00:00.000000000 Z
12
11
  dependencies: []
13
12
  description: |-
14
13
  Pico web framework for building API-centric web applications.
@@ -18,89 +17,87 @@ description: |-
18
17
 
19
18
  [jellyfish-contrib]: https://github.com/godfat/jellyfish-contrib
20
19
  email:
21
- - godfat (XD) godfat.org
20
+ - godfat (XD) godfat.org
22
21
  executables: []
23
22
  extensions: []
24
23
  extra_rdoc_files: []
25
24
  files:
26
- - ".gitignore"
27
- - ".gitmodules"
28
- - ".travis.yml"
29
- - CHANGES.md
30
- - Gemfile
31
- - LICENSE
32
- - README.md
33
- - Rakefile
34
- - TODO.md
35
- - bench/bench_builder.rb
36
- - config.ru
37
- - jellyfish.gemspec
38
- - lib/jellyfish.rb
39
- - lib/jellyfish/builder.rb
40
- - lib/jellyfish/chunked_body.rb
41
- - lib/jellyfish/json.rb
42
- - lib/jellyfish/normalized_params.rb
43
- - lib/jellyfish/normalized_path.rb
44
- - lib/jellyfish/public/302.html
45
- - lib/jellyfish/public/404.html
46
- - lib/jellyfish/public/500.html
47
- - lib/jellyfish/rewrite.rb
48
- - lib/jellyfish/test.rb
49
- - lib/jellyfish/urlmap.rb
50
- - lib/jellyfish/version.rb
51
- - lib/jellyfish/websocket.rb
52
- - task/README.md
53
- - task/gemgem.rb
54
- - test/rack/test_builder.rb
55
- - test/rack/test_urlmap.rb
56
- - test/sinatra/test_base.rb
57
- - test/sinatra/test_chunked_body.rb
58
- - test/sinatra/test_error.rb
59
- - test/sinatra/test_routing.rb
60
- - test/test_from_readme.rb
61
- - test/test_inheritance.rb
62
- - test/test_listen.rb
63
- - test/test_log.rb
64
- - test/test_misc.rb
65
- - test/test_rewrite.rb
66
- - test/test_threads.rb
67
- - test/test_websocket.rb
68
- homepage: https://github.com/godfat/jellyfish
25
+ - .gitignore
26
+ - .gitlab-ci.yml
27
+ - .gitmodules
28
+ - CHANGES.md
29
+ - Gemfile
30
+ - LICENSE
31
+ - README.md
32
+ - Rakefile
33
+ - TODO.md
34
+ - bench/bench_builder.rb
35
+ - config.ru
36
+ - jellyfish.gemspec
37
+ - lib/jellyfish.rb
38
+ - lib/jellyfish/builder.rb
39
+ - lib/jellyfish/chunked_body.rb
40
+ - lib/jellyfish/json.rb
41
+ - lib/jellyfish/normalized_params.rb
42
+ - lib/jellyfish/normalized_path.rb
43
+ - lib/jellyfish/public/404.html
44
+ - lib/jellyfish/public/500.html
45
+ - lib/jellyfish/rewrite.rb
46
+ - lib/jellyfish/test.rb
47
+ - lib/jellyfish/urlmap.rb
48
+ - lib/jellyfish/version.rb
49
+ - lib/jellyfish/websocket.rb
50
+ - task/README.md
51
+ - task/gemgem.rb
52
+ - test/rack/test_builder.rb
53
+ - test/rack/test_urlmap.rb
54
+ - test/sinatra/test_base.rb
55
+ - test/sinatra/test_chunked_body.rb
56
+ - test/sinatra/test_error.rb
57
+ - test/sinatra/test_routing.rb
58
+ - test/test_from_readme.rb
59
+ - test/test_inheritance.rb
60
+ - test/test_listen.rb
61
+ - test/test_log.rb
62
+ - test/test_misc.rb
63
+ - test/test_rewrite.rb
64
+ - test/test_threads.rb
65
+ - test/test_websocket.rb
66
+ homepage: "https://github.com/godfat/jellyfish"
69
67
  licenses:
70
- - Apache-2.0
68
+ - Apache-2.0
71
69
  metadata: {}
72
- post_install_message:
73
70
  rdoc_options: []
74
71
  require_paths:
75
- - lib
72
+ - lib
76
73
  required_ruby_version: !ruby/object:Gem::Requirement
77
74
  requirements:
78
- - - ">="
79
- - !ruby/object:Gem::Version
80
- version: '0'
75
+ -
76
+ - ">="
77
+ - !ruby/object:Gem::Version
78
+ version: "0"
81
79
  required_rubygems_version: !ruby/object:Gem::Requirement
82
80
  requirements:
83
- - - ">="
84
- - !ruby/object:Gem::Version
85
- version: '0'
81
+ -
82
+ - ">="
83
+ - !ruby/object:Gem::Version
84
+ version: "0"
86
85
  requirements: []
87
- rubyforge_project:
88
- rubygems_version: 2.7.8
89
- signing_key:
86
+ rubygems_version: 4.1.0
90
87
  specification_version: 4
91
88
  summary: Pico web framework for building API-centric web applications.
92
89
  test_files:
93
- - test/rack/test_builder.rb
94
- - test/rack/test_urlmap.rb
95
- - test/sinatra/test_base.rb
96
- - test/sinatra/test_chunked_body.rb
97
- - test/sinatra/test_error.rb
98
- - test/sinatra/test_routing.rb
99
- - test/test_from_readme.rb
100
- - test/test_inheritance.rb
101
- - test/test_listen.rb
102
- - test/test_log.rb
103
- - test/test_misc.rb
104
- - test/test_rewrite.rb
105
- - test/test_threads.rb
106
- - test/test_websocket.rb
90
+ - test/rack/test_builder.rb
91
+ - test/rack/test_urlmap.rb
92
+ - test/sinatra/test_base.rb
93
+ - test/sinatra/test_chunked_body.rb
94
+ - test/sinatra/test_error.rb
95
+ - test/sinatra/test_routing.rb
96
+ - test/test_from_readme.rb
97
+ - test/test_inheritance.rb
98
+ - test/test_listen.rb
99
+ - test/test_log.rb
100
+ - test/test_misc.rb
101
+ - test/test_rewrite.rb
102
+ - test/test_threads.rb
103
+ - test/test_websocket.rb
data/.travis.yml DELETED
@@ -1,18 +0,0 @@
1
- sudo: false
2
- language: ruby
3
-
4
- install: 'gem install bundler; bundle install --retry=3'
5
- script: 'ruby -vr bundler/setup -S rake test'
6
-
7
- matrix:
8
- include:
9
- - rvm: 2.3
10
- - rvm: 2.4
11
- - rvm: 2.5
12
- - rvm: ruby-head
13
- - rvm: jruby
14
- env: JRUBY_OPTS=--debug
15
- - rvm: rbx
16
-
17
- allow_failures:
18
- - rvm: rbx
@@ -1,10 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5
- <meta http-equiv="refresh" content="0;URL='VAR_URL'">
6
- </head>
7
- <body>
8
- <h1>Jellyfish found: VAR_URL</h1>
9
- </body>
10
- </html>