jun 0.0.1 → 0.3.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.
Files changed (66) hide show
  1. checksums.yaml +5 -5
  2. data/.rubocop.yml +13 -0
  3. data/Gemfile +3 -1
  4. data/LICENSE.txt +1 -1
  5. data/README.md +18 -20
  6. data/Rakefile +13 -3
  7. data/bin/console +3 -9
  8. data/exe/jun +7 -0
  9. data/jun.gemspec +28 -18
  10. data/lib/jun/action_controller/base.rb +16 -0
  11. data/lib/jun/action_controller/callbacks.rb +46 -0
  12. data/lib/jun/action_controller/metal.rb +22 -0
  13. data/lib/jun/action_controller/redirecting.rb +17 -0
  14. data/lib/jun/action_controller/rendering.rb +84 -0
  15. data/lib/jun/action_dispatch/routing/mapper.rb +54 -0
  16. data/lib/jun/action_dispatch/routing/route_set.rb +112 -0
  17. data/lib/jun/action_dispatch/routing/welcome.html.erb +41 -0
  18. data/lib/jun/action_view/base.rb +26 -0
  19. data/lib/jun/action_view/helpers/url_helper.rb +13 -0
  20. data/lib/jun/action_view/helpers.rb +11 -0
  21. data/lib/jun/active_record/base.rb +52 -0
  22. data/lib/jun/active_record/migration.rb +76 -0
  23. data/lib/jun/active_record/migrator.rb +80 -0
  24. data/lib/jun/active_record/persistence.rb +60 -0
  25. data/lib/jun/active_record/relation.rb +42 -0
  26. data/lib/jun/active_support/core_ext/array/access.rb +27 -0
  27. data/lib/jun/active_support/core_ext/array/conversion.rb +10 -0
  28. data/lib/jun/active_support/core_ext/hash/transformation.rb +19 -0
  29. data/lib/jun/active_support/core_ext/string/access.rb +18 -0
  30. data/lib/jun/active_support/core_ext/string/inflector.rb +119 -0
  31. data/lib/jun/active_support/core_ext.rb +5 -0
  32. data/lib/jun/active_support/dependencies.rb +31 -0
  33. data/lib/jun/application.rb +45 -0
  34. data/lib/jun/cli/commands/base.rb +17 -0
  35. data/lib/jun/cli/commands/db/create.rb +35 -0
  36. data/lib/jun/cli/commands/db/drop.rb +18 -0
  37. data/lib/jun/cli/commands/db/migrate.rb +15 -0
  38. data/lib/jun/cli/commands/db/rollback.rb +15 -0
  39. data/lib/jun/cli/commands/db/schema/dump.rb +24 -0
  40. data/lib/jun/cli/commands/db/schema/load.rb +43 -0
  41. data/lib/jun/cli/commands/db/seed.rb +19 -0
  42. data/lib/jun/cli/commands/generate/migration.rb +27 -0
  43. data/lib/jun/cli/commands/new.rb +62 -0
  44. data/lib/jun/cli/commands/server.rb +17 -0
  45. data/lib/jun/cli/commands/version.rb +13 -0
  46. data/lib/jun/cli/generator_templates/migration.rb.erb +11 -0
  47. data/lib/jun/cli/generator_templates/new_app/Gemfile.erb +9 -0
  48. data/lib/jun/cli/generator_templates/new_app/README.md.erb +3 -0
  49. data/lib/jun/cli/generator_templates/new_app/app/controllers/application_controller.rb.erb +4 -0
  50. data/lib/jun/cli/generator_templates/new_app/app/helpers/application_helper.rb.erb +4 -0
  51. data/lib/jun/cli/generator_templates/new_app/app/models/application_record.rb.erb +4 -0
  52. data/lib/jun/cli/generator_templates/new_app/app/views/layouts/application.html.erb.erb +11 -0
  53. data/lib/jun/cli/generator_templates/new_app/bin/console.erb +8 -0
  54. data/lib/jun/cli/generator_templates/new_app/config/application.rb.erb +12 -0
  55. data/lib/jun/cli/generator_templates/new_app/config/environment.rb.erb +7 -0
  56. data/lib/jun/cli/generator_templates/new_app/config/routes.rb.erb +4 -0
  57. data/lib/jun/cli/generator_templates/new_app/config.ru.erb +6 -0
  58. data/lib/jun/cli/generator_templates/new_app/db/seeds.rb.erb +9 -0
  59. data/lib/jun/cli.rb +33 -0
  60. data/lib/jun/connection_adapters/sqlite_adapter.rb +19 -0
  61. data/lib/jun/version.rb +3 -1
  62. data/lib/jun.rb +50 -2
  63. metadata +129 -24
  64. data/.gitignore +0 -10
  65. data/.rspec +0 -2
  66. 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.1
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: 2016-04-07 00:00:00.000000000 Z
11
+ date: 2022-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: bundler
14
+ name: rack
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.11'
20
- type: :development
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: '1.11'
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: '10.0'
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: '10.0'
96
+ version: '1.21'
41
97
  - !ruby/object:Gem::Dependency
42
- name: rspec
98
+ name: pry
43
99
  requirement: !ruby/object:Gem::Requirement
44
100
  requirements:
45
101
  - - "~>"
46
102
  - !ruby/object:Gem::Version
47
- version: '3.0'
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: '3.0'
55
- description: A simple web framework inspired by Rails, built with the hopes of learning
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
- - zoran1991@gmail.com
59
- executables: []
113
+ - zspesic@gmail.com
114
+ executables:
115
+ - jun
60
116
  extensions: []
61
117
  extra_rdoc_files: []
62
118
  files:
63
- - ".gitignore"
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: '0'
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
- rubyforge_project:
95
- rubygems_version: 2.5.1
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
@@ -1,10 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /Gemfile.lock
4
- /_yardoc/
5
- /coverage/
6
- /doc/
7
- /pkg/
8
- /spec/reports/
9
- /tmp/
10
- .DS_Store
data/.rspec DELETED
@@ -1,2 +0,0 @@
1
- --format documentation
2
- --color
data/.travis.yml DELETED
@@ -1,4 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.3.0
4
- before_install: gem install bundler -v 1.11.2