akainaa 0.1.1 → 0.1.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.
data/img/webui.png DELETED
Binary file
data/sample/.ruby-version DELETED
@@ -1 +0,0 @@
1
- 3.3.0
data/sample/Gemfile DELETED
@@ -1,10 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "sinatra", "~> 4.0"
6
- gem "sinatra-contrib", "~> 4.0"
7
-
8
- gem "puma", "~> 6.4"
9
-
10
- gem "akainaa", path: "../"
data/sample/Gemfile.lock DELETED
@@ -1,48 +0,0 @@
1
- PATH
2
- remote: ..
3
- specs:
4
- akainaa (0.1.0)
5
-
6
- GEM
7
- remote: https://rubygems.org/
8
- specs:
9
- base64 (0.2.0)
10
- multi_json (1.15.0)
11
- mustermann (3.0.0)
12
- ruby2_keywords (~> 0.0.1)
13
- nio4r (2.7.0)
14
- puma (6.4.2)
15
- nio4r (~> 2.0)
16
- rack (3.0.9.1)
17
- rack-protection (4.0.0)
18
- base64 (>= 0.1.0)
19
- rack (>= 3.0.0, < 4)
20
- rack-session (2.0.0)
21
- rack (>= 3.0.0)
22
- ruby2_keywords (0.0.5)
23
- sinatra (4.0.0)
24
- mustermann (~> 3.0)
25
- rack (>= 3.0.0, < 4)
26
- rack-protection (= 4.0.0)
27
- rack-session (>= 2.0.0, < 3)
28
- tilt (~> 2.0)
29
- sinatra-contrib (4.0.0)
30
- multi_json (>= 0.0.2)
31
- mustermann (~> 3.0)
32
- rack-protection (= 4.0.0)
33
- sinatra (= 4.0.0)
34
- tilt (~> 2.0)
35
- tilt (2.3.0)
36
-
37
- PLATFORMS
38
- ruby
39
- x86_64-linux
40
-
41
- DEPENDENCIES
42
- akainaa!
43
- puma (~> 6.4)
44
- sinatra (~> 4.0)
45
- sinatra-contrib (~> 4.0)
46
-
47
- BUNDLED WITH
48
- 2.5.3
data/sample/app.rb DELETED
@@ -1,30 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'sinatra/base'
4
- require 'sinatra/json'
5
- require 'securerandom'
6
-
7
- require_relative './user'
8
- require_relative './notification'
9
- require_relative './util'
10
-
11
- class App < Sinatra::Base
12
- enable :logging
13
-
14
- get '/api/me' do
15
- 1.times { Util.do_something }
16
- 2.times { Util.do_something }
17
- 3.times { Util.do_something }
18
- 4.times { Util.do_something }
19
- 5.times { Util.do_something }
20
- 6.times { Util.do_something }
21
- 7.times { Util.do_something }
22
- 8.times { Util.do_something }
23
- 9.times { Util.do_something }
24
- 10.times { Util.do_something }
25
-
26
- json(
27
- name: "riseshia",
28
- )
29
- end
30
- end
data/sample/config.ru DELETED
@@ -1,10 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'akainaa'
4
-
5
- Akainaa.start(project_dir: File.expand_path(__dir__))
6
-
7
- require_relative 'app'
8
-
9
- use Akainaa::Middleware
10
- run App
@@ -1,9 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Notification
4
- 50.times { nil }
5
-
6
- module_function
7
-
8
- def where(id:) = []
9
- end
data/sample/theme.rb DELETED
@@ -1,10 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Theme
4
- 40.times { nil }
5
- module_function
6
-
7
- def find_by(user_id:)
8
- "light"
9
- end
10
- end
data/sample/user.rb DELETED
@@ -1,15 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative './theme'
4
-
5
- module User
6
- 30.times { nil }
7
- module_function
8
-
9
- def find(id)
10
- {
11
- id: id,
12
- theme: Theme.find_by(user_id: id),
13
- }
14
- end
15
- end
data/sample/util.rb DELETED
@@ -1,7 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Util
4
- module_function
5
-
6
- def do_something = []
7
- end