jun 0.0.1 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.rubocop.yml +13 -0
- data/Gemfile +3 -1
- data/LICENSE.txt +1 -1
- data/README.md +18 -20
- data/Rakefile +13 -3
- data/bin/console +3 -9
- data/exe/jun +7 -0
- data/jun.gemspec +28 -18
- data/lib/jun/action_controller/base.rb +16 -0
- data/lib/jun/action_controller/callbacks.rb +46 -0
- data/lib/jun/action_controller/metal.rb +22 -0
- data/lib/jun/action_controller/redirecting.rb +17 -0
- data/lib/jun/action_controller/rendering.rb +84 -0
- data/lib/jun/action_dispatch/routing/mapper.rb +54 -0
- data/lib/jun/action_dispatch/routing/route_set.rb +112 -0
- data/lib/jun/action_dispatch/routing/welcome.html.erb +41 -0
- data/lib/jun/action_view/base.rb +26 -0
- data/lib/jun/action_view/helpers/url_helper.rb +13 -0
- data/lib/jun/action_view/helpers.rb +11 -0
- data/lib/jun/active_record/base.rb +52 -0
- data/lib/jun/active_record/migration.rb +76 -0
- data/lib/jun/active_record/migrator.rb +80 -0
- data/lib/jun/active_record/persistence.rb +60 -0
- data/lib/jun/active_record/relation.rb +42 -0
- data/lib/jun/active_support/core_ext/array/access.rb +27 -0
- data/lib/jun/active_support/core_ext/array/conversion.rb +10 -0
- data/lib/jun/active_support/core_ext/hash/transformation.rb +19 -0
- data/lib/jun/active_support/core_ext/string/access.rb +18 -0
- data/lib/jun/active_support/core_ext/string/inflector.rb +119 -0
- data/lib/jun/active_support/core_ext.rb +5 -0
- data/lib/jun/active_support/dependencies.rb +31 -0
- data/lib/jun/application.rb +45 -0
- data/lib/jun/cli/commands/base.rb +17 -0
- data/lib/jun/cli/commands/db/create.rb +35 -0
- data/lib/jun/cli/commands/db/drop.rb +18 -0
- data/lib/jun/cli/commands/db/migrate.rb +15 -0
- data/lib/jun/cli/commands/db/rollback.rb +15 -0
- data/lib/jun/cli/commands/db/schema/dump.rb +24 -0
- data/lib/jun/cli/commands/db/schema/load.rb +43 -0
- data/lib/jun/cli/commands/db/seed.rb +19 -0
- data/lib/jun/cli/commands/generate/migration.rb +27 -0
- data/lib/jun/cli/commands/new.rb +62 -0
- data/lib/jun/cli/commands/server.rb +17 -0
- data/lib/jun/cli/commands/version.rb +13 -0
- data/lib/jun/cli/generator_templates/migration.rb.erb +11 -0
- data/lib/jun/cli/generator_templates/new_app/Gemfile.erb +9 -0
- data/lib/jun/cli/generator_templates/new_app/README.md.erb +3 -0
- data/lib/jun/cli/generator_templates/new_app/app/controllers/application_controller.rb.erb +4 -0
- data/lib/jun/cli/generator_templates/new_app/app/helpers/application_helper.rb.erb +4 -0
- data/lib/jun/cli/generator_templates/new_app/app/models/application_record.rb.erb +4 -0
- data/lib/jun/cli/generator_templates/new_app/app/views/layouts/application.html.erb.erb +11 -0
- data/lib/jun/cli/generator_templates/new_app/bin/console.erb +8 -0
- data/lib/jun/cli/generator_templates/new_app/config/application.rb.erb +12 -0
- data/lib/jun/cli/generator_templates/new_app/config/environment.rb.erb +7 -0
- data/lib/jun/cli/generator_templates/new_app/config/routes.rb.erb +4 -0
- data/lib/jun/cli/generator_templates/new_app/config.ru.erb +6 -0
- data/lib/jun/cli/generator_templates/new_app/db/seeds.rb.erb +9 -0
- data/lib/jun/cli.rb +33 -0
- data/lib/jun/connection_adapters/sqlite_adapter.rb +19 -0
- data/lib/jun/version.rb +3 -1
- data/lib/jun.rb +50 -2
- metadata +129 -24
- data/.gitignore +0 -10
- data/.rspec +0 -2
- data/.travis.yml +0 -4
metadata
CHANGED
@@ -1,82 +1,188 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jun
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zoran
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-03-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: rack
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
20
|
-
type: :
|
19
|
+
version: '2.2'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '2.2'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: tilt
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '2.0'
|
34
|
+
type: :runtime
|
21
35
|
prerelease: false
|
22
36
|
version_requirements: !ruby/object:Gem::Requirement
|
23
37
|
requirements:
|
24
38
|
- - "~>"
|
25
39
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
40
|
+
version: '2.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: sqlite3
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.4'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.4'
|
27
55
|
- !ruby/object:Gem::Dependency
|
28
56
|
name: rake
|
29
57
|
requirement: !ruby/object:Gem::Requirement
|
30
58
|
requirements:
|
31
59
|
- - "~>"
|
32
60
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
61
|
+
version: '13.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '13.0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: minitest
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '5.0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '5.0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rubocop
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '1.21'
|
34
90
|
type: :development
|
35
91
|
prerelease: false
|
36
92
|
version_requirements: !ruby/object:Gem::Requirement
|
37
93
|
requirements:
|
38
94
|
- - "~>"
|
39
95
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
96
|
+
version: '1.21'
|
41
97
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
98
|
+
name: pry
|
43
99
|
requirement: !ruby/object:Gem::Requirement
|
44
100
|
requirements:
|
45
101
|
- - "~>"
|
46
102
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
103
|
+
version: '0.14'
|
48
104
|
type: :development
|
49
105
|
prerelease: false
|
50
106
|
version_requirements: !ruby/object:Gem::Requirement
|
51
107
|
requirements:
|
52
108
|
- - "~>"
|
53
109
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
55
|
-
description: A simple web framework inspired by Rails
|
56
|
-
more about Rails internals in the process.
|
110
|
+
version: '0.14'
|
111
|
+
description: A simple web framework inspired by Rails. Not meant for production use.
|
57
112
|
email:
|
58
|
-
-
|
59
|
-
executables:
|
113
|
+
- zspesic@gmail.com
|
114
|
+
executables:
|
115
|
+
- jun
|
60
116
|
extensions: []
|
61
117
|
extra_rdoc_files: []
|
62
118
|
files:
|
63
|
-
- ".
|
64
|
-
- ".rspec"
|
65
|
-
- ".travis.yml"
|
119
|
+
- ".rubocop.yml"
|
66
120
|
- Gemfile
|
67
121
|
- LICENSE.txt
|
68
122
|
- README.md
|
69
123
|
- Rakefile
|
70
124
|
- bin/console
|
71
125
|
- bin/setup
|
126
|
+
- exe/jun
|
72
127
|
- jun.gemspec
|
73
128
|
- lib/jun.rb
|
129
|
+
- lib/jun/action_controller/base.rb
|
130
|
+
- lib/jun/action_controller/callbacks.rb
|
131
|
+
- lib/jun/action_controller/metal.rb
|
132
|
+
- lib/jun/action_controller/redirecting.rb
|
133
|
+
- lib/jun/action_controller/rendering.rb
|
134
|
+
- lib/jun/action_dispatch/routing/mapper.rb
|
135
|
+
- lib/jun/action_dispatch/routing/route_set.rb
|
136
|
+
- lib/jun/action_dispatch/routing/welcome.html.erb
|
137
|
+
- lib/jun/action_view/base.rb
|
138
|
+
- lib/jun/action_view/helpers.rb
|
139
|
+
- lib/jun/action_view/helpers/url_helper.rb
|
140
|
+
- lib/jun/active_record/base.rb
|
141
|
+
- lib/jun/active_record/migration.rb
|
142
|
+
- lib/jun/active_record/migrator.rb
|
143
|
+
- lib/jun/active_record/persistence.rb
|
144
|
+
- lib/jun/active_record/relation.rb
|
145
|
+
- lib/jun/active_support/core_ext.rb
|
146
|
+
- lib/jun/active_support/core_ext/array/access.rb
|
147
|
+
- lib/jun/active_support/core_ext/array/conversion.rb
|
148
|
+
- lib/jun/active_support/core_ext/hash/transformation.rb
|
149
|
+
- lib/jun/active_support/core_ext/string/access.rb
|
150
|
+
- lib/jun/active_support/core_ext/string/inflector.rb
|
151
|
+
- lib/jun/active_support/dependencies.rb
|
152
|
+
- lib/jun/application.rb
|
153
|
+
- lib/jun/cli.rb
|
154
|
+
- lib/jun/cli/commands/base.rb
|
155
|
+
- lib/jun/cli/commands/db/create.rb
|
156
|
+
- lib/jun/cli/commands/db/drop.rb
|
157
|
+
- lib/jun/cli/commands/db/migrate.rb
|
158
|
+
- lib/jun/cli/commands/db/rollback.rb
|
159
|
+
- lib/jun/cli/commands/db/schema/dump.rb
|
160
|
+
- lib/jun/cli/commands/db/schema/load.rb
|
161
|
+
- lib/jun/cli/commands/db/seed.rb
|
162
|
+
- lib/jun/cli/commands/generate/migration.rb
|
163
|
+
- lib/jun/cli/commands/new.rb
|
164
|
+
- lib/jun/cli/commands/server.rb
|
165
|
+
- lib/jun/cli/commands/version.rb
|
166
|
+
- lib/jun/cli/generator_templates/migration.rb.erb
|
167
|
+
- lib/jun/cli/generator_templates/new_app/Gemfile.erb
|
168
|
+
- lib/jun/cli/generator_templates/new_app/README.md.erb
|
169
|
+
- lib/jun/cli/generator_templates/new_app/app/controllers/application_controller.rb.erb
|
170
|
+
- lib/jun/cli/generator_templates/new_app/app/helpers/application_helper.rb.erb
|
171
|
+
- lib/jun/cli/generator_templates/new_app/app/models/application_record.rb.erb
|
172
|
+
- lib/jun/cli/generator_templates/new_app/app/views/layouts/application.html.erb.erb
|
173
|
+
- lib/jun/cli/generator_templates/new_app/bin/console.erb
|
174
|
+
- lib/jun/cli/generator_templates/new_app/config.ru.erb
|
175
|
+
- lib/jun/cli/generator_templates/new_app/config/application.rb.erb
|
176
|
+
- lib/jun/cli/generator_templates/new_app/config/environment.rb.erb
|
177
|
+
- lib/jun/cli/generator_templates/new_app/config/routes.rb.erb
|
178
|
+
- lib/jun/cli/generator_templates/new_app/db/seeds.rb.erb
|
179
|
+
- lib/jun/connection_adapters/sqlite_adapter.rb
|
74
180
|
- lib/jun/version.rb
|
75
181
|
homepage: https://github.com/zokioki/jun
|
76
182
|
licenses:
|
77
183
|
- MIT
|
78
184
|
metadata: {}
|
79
|
-
post_install_message:
|
185
|
+
post_install_message:
|
80
186
|
rdoc_options: []
|
81
187
|
require_paths:
|
82
188
|
- lib
|
@@ -84,16 +190,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
84
190
|
requirements:
|
85
191
|
- - ">="
|
86
192
|
- !ruby/object:Gem::Version
|
87
|
-
version:
|
193
|
+
version: 2.6.0
|
88
194
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
89
195
|
requirements:
|
90
196
|
- - ">="
|
91
197
|
- !ruby/object:Gem::Version
|
92
198
|
version: '0'
|
93
199
|
requirements: []
|
94
|
-
|
95
|
-
|
96
|
-
signing_key:
|
200
|
+
rubygems_version: 3.2.32
|
201
|
+
signing_key:
|
97
202
|
specification_version: 4
|
98
203
|
summary: A simple Ruby web framework.
|
99
204
|
test_files: []
|
data/.gitignore
DELETED
data/.rspec
DELETED
data/.travis.yml
DELETED