hibana 0.1.0 → 0.2.1
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 +4 -4
- data/CHANGELOG.md +27 -0
- data/Gemfile.lock +15 -18
- data/LICENSE +21 -0
- data/README.md +42 -2
- data/hibana.gemspec +2 -2
- data/lib/hibana/application.rb +1 -1
- data/lib/hibana/controller.rb +1 -2
- data/lib/hibana/version.rb +1 -1
- metadata +14 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2dd0fdff7aece76494d0f792607ddf1645133122d7fd942f2de62db2c00b059f
|
4
|
+
data.tar.gz: d5f370113936d9e59fe22ed299f39189a353a62395bed2b69bee8fe5231e2c13
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 364eec0456f6100adffcaee2cf84d35d27858dde62e25752e2978997e6efc78b66d5656b3019245aff3d59a45defbb40101b2edd78bc4e6036eb77a1c7c8dea8
|
7
|
+
data.tar.gz: c873edfafaa9609d020a84bbc05ec93c1617a162796c3c1100411c409d62b4afc9971e90156c9f1ffdbba84567dd925746185b9510cf37b4263613fa865c6d19
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
# Changelog
|
2
|
+
|
3
|
+
## Unreleased
|
4
|
+
|
5
|
+
## 0.2.1 - 2022-08-02
|
6
|
+
|
7
|
+
### Changed
|
8
|
+
|
9
|
+
- Require hanami-router 2.0.0.alpha3 (because beta1 requires Ruby 3).
|
10
|
+
|
11
|
+
## 0.2.0 - 2020-11-15
|
12
|
+
|
13
|
+
### Changed
|
14
|
+
|
15
|
+
- Require hanami-router 2.0.0.alpha3 or later versions.
|
16
|
+
|
17
|
+
## 0.1.1 - 2020-09-20
|
18
|
+
|
19
|
+
### Fixed
|
20
|
+
|
21
|
+
- Fix undefined constant error in new rack version.
|
22
|
+
|
23
|
+
## 0.1.0 - 2019-12-24
|
24
|
+
|
25
|
+
### Added
|
26
|
+
|
27
|
+
- Add the 1st implementation.
|
data/Gemfile.lock
CHANGED
@@ -1,31 +1,28 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
hibana (0.1
|
5
|
-
hanami-router
|
4
|
+
hibana (0.2.1)
|
5
|
+
hanami-router (= 2.0.0.alpha3)
|
6
6
|
rack
|
7
7
|
tilt
|
8
8
|
|
9
9
|
GEM
|
10
10
|
remote: https://rubygems.org/
|
11
11
|
specs:
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
http_router (= 0.11.2)
|
12
|
+
hanami-router (2.0.0.alpha3)
|
13
|
+
mustermann (~> 1.0)
|
14
|
+
mustermann-contrib (~> 1.0)
|
16
15
|
rack (~> 2.0)
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
rack (2.
|
16
|
+
hansi (0.2.1)
|
17
|
+
mustermann (1.1.2)
|
18
|
+
ruby2_keywords (~> 0.0.1)
|
19
|
+
mustermann-contrib (1.1.2)
|
20
|
+
hansi (~> 0.2.0)
|
21
|
+
mustermann (= 1.1.2)
|
22
|
+
rack (2.2.4)
|
24
23
|
rake (12.3.3)
|
25
|
-
|
26
|
-
|
27
|
-
url_mount (0.2.1)
|
28
|
-
rack
|
24
|
+
ruby2_keywords (0.0.5)
|
25
|
+
tilt (2.0.11)
|
29
26
|
|
30
27
|
PLATFORMS
|
31
28
|
ruby
|
@@ -35,4 +32,4 @@ DEPENDENCIES
|
|
35
32
|
rake (~> 12.0)
|
36
33
|
|
37
34
|
BUNDLED WITH
|
38
|
-
2.1.
|
35
|
+
2.1.4
|
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2019 Ryo Nakamura
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/README.md
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
# Hibana
|
2
2
|
|
3
|
-
|
3
|
+
[](https://rubygems.org/gems/hibana)
|
4
|
+
|
5
|
+
A small rack-based web application framework.
|
4
6
|
|
5
7
|
## Installation
|
6
8
|
|
@@ -20,7 +22,45 @@ Or install it yourself as:
|
|
20
22
|
|
21
23
|
## Usage
|
22
24
|
|
23
|
-
|
25
|
+
Inherit `Hibana::Application` and run this class as a Rack application.
|
26
|
+
|
27
|
+
The following is an example app using this gem at v0.1.0. See the source code for more information.
|
28
|
+
|
29
|
+
```ruby
|
30
|
+
require 'hibana'
|
31
|
+
require 'rack/static'
|
32
|
+
|
33
|
+
$LOAD_PATH.unshift('lib')
|
34
|
+
require 'my_app/controllers/list_articles'
|
35
|
+
require 'my_app/controllers/show_article'
|
36
|
+
require 'my_app/controllers/show_articles_feed'
|
37
|
+
require 'my_app/controllers/show_sitemap'
|
38
|
+
require 'my_app/controllers/show_top_page'
|
39
|
+
|
40
|
+
module MyApp
|
41
|
+
class Application < ::Hibana::Application
|
42
|
+
route do
|
43
|
+
get '/', to: ::MyApp::Controllers::ShowTopPage
|
44
|
+
get '/articles', to: ::MyApp::Controllers::ListArticles
|
45
|
+
get '/articles/:article_id', to: ::MyApp::Controllers::ShowArticle
|
46
|
+
get '/feed.xml', to: ::MyApp::Controllers::ShowArticlesFeed
|
47
|
+
get '/sitemap.txt', to: ::MyApp::Controllers::ShowSitemap
|
48
|
+
end
|
49
|
+
|
50
|
+
middleware.use(
|
51
|
+
::Rack::Static,
|
52
|
+
root: 'static',
|
53
|
+
urls: %w[
|
54
|
+
/css
|
55
|
+
/favicon.ico
|
56
|
+
/images
|
57
|
+
]
|
58
|
+
)
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
run MyApp::Application
|
63
|
+
```
|
24
64
|
|
25
65
|
## Development
|
26
66
|
|
data/hibana.gemspec
CHANGED
@@ -6,7 +6,7 @@ Gem::Specification.new do |spec|
|
|
6
6
|
spec.authors = ["r7kamura"]
|
7
7
|
spec.email = ["r7kamura@gmail.com"]
|
8
8
|
|
9
|
-
spec.summary = "A small rack-based web framework."
|
9
|
+
spec.summary = "A small rack-based web application framework."
|
10
10
|
spec.homepage = "https://github.com/r7kamura/hibana"
|
11
11
|
spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
|
12
12
|
|
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
22
|
spec.require_paths = ["lib"]
|
23
23
|
|
24
|
-
spec.add_runtime_dependency 'hanami-router'
|
24
|
+
spec.add_runtime_dependency 'hanami-router', '2.0.0.alpha3'
|
25
25
|
spec.add_runtime_dependency 'rack'
|
26
26
|
spec.add_runtime_dependency 'tilt'
|
27
27
|
end
|
data/lib/hibana/application.rb
CHANGED
data/lib/hibana/controller.rb
CHANGED
data/lib/hibana/version.rb
CHANGED
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hibana
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- r7kamura
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-08-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: hanami-router
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 2.0.0.alpha3
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 2.0.0.alpha3
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rack
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -52,7 +52,7 @@ dependencies:
|
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
|
-
description:
|
55
|
+
description:
|
56
56
|
email:
|
57
57
|
- r7kamura@gmail.com
|
58
58
|
executables: []
|
@@ -60,8 +60,10 @@ extensions: []
|
|
60
60
|
extra_rdoc_files: []
|
61
61
|
files:
|
62
62
|
- ".gitignore"
|
63
|
+
- CHANGELOG.md
|
63
64
|
- Gemfile
|
64
65
|
- Gemfile.lock
|
66
|
+
- LICENSE
|
65
67
|
- README.md
|
66
68
|
- Rakefile
|
67
69
|
- bin/console
|
@@ -80,7 +82,7 @@ metadata:
|
|
80
82
|
homepage_uri: https://github.com/r7kamura/hibana
|
81
83
|
source_code_uri: https://github.com/r7kamura/hibana
|
82
84
|
changelog_uri: https://github.com/r7kamura/hibana/blob/master/CHANGELOG
|
83
|
-
post_install_message:
|
85
|
+
post_install_message:
|
84
86
|
rdoc_options: []
|
85
87
|
require_paths:
|
86
88
|
- lib
|
@@ -95,8 +97,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
95
97
|
- !ruby/object:Gem::Version
|
96
98
|
version: '0'
|
97
99
|
requirements: []
|
98
|
-
rubygems_version: 3.
|
99
|
-
signing_key:
|
100
|
+
rubygems_version: 3.3.7
|
101
|
+
signing_key:
|
100
102
|
specification_version: 4
|
101
|
-
summary: A small rack-based web framework.
|
103
|
+
summary: A small rack-based web application framework.
|
102
104
|
test_files: []
|