jinda 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -3
- data/lib/generators/jinda/install_generator.rb +11 -10
- data/lib/generators/jinda/templates/app/assets/config/manifest.js +4 -0
- data/lib/generators/jinda/templates/app/assets/javascripts/{application-org.js → application.js} +1 -1
- data/lib/generators/jinda/templates/app/assets/javascripts/{disable_enter_key.js → disable_enter_key.js-org} +0 -0
- data/lib/generators/jinda/templates/app/assets/stylesheets/{application-org.css.scss → application.css} +2 -2
- data/lib/generators/jinda/templates/app/views/jinda/index.html.haml +1 -1
- data/lib/jinda/version.rb +1 -1
- metadata +6 -6
- data/lib/generators/jinda/templates/app/assets/stylesheets/application-org.css +0 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4cb7f6788d0aa3fad4ce0d9eaf1e009f300722759d6b0ee8b00d3b7031eb321f
|
4
|
+
data.tar.gz: 9749137e534dee5922b5d819663e1c0919c3f1c70554afa8a75cd0f289085f19
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ab68ff5f87f44070c6ea77512ca66aa5e177c38fceae95f38d1a7db825e02acda6b1a9d5faca555c6efe0837dc5a6a153d0a505105768e9cc97d190ba9eab6c
|
7
|
+
data.tar.gz: 9fdd89eb551c389c55211e73edef1aa8318d638dbe5a7b437a10a235600975b0afe43b4df17912400481b7363fda3610c9956865e591fedf11d9cca42faf8052
|
data/README.md
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
# Jinda
|
2
2
|
Rails Application Generator using Freemind
|
3
|
-
|
4
3
|
* [jinda](https://github.com/kul1/jinda)
|
5
|
-
-
|
4
|
+
-![Screen Shot 2019-09-07 at 1 00 03 PM](https://user-images.githubusercontent.com/3953832/64478408-f5feb500-d175-11e9-9d07-8b41f3c47924.png)
|
6
5
|
|
7
6
|
## Additional Extension themes also available at
|
8
7
|
* [jinda_adminlte](https://github.com/kul1/jinda_adminlte)
|
@@ -16,7 +15,7 @@ Rails Application Generator using Freemind
|
|
16
15
|
These versions works for sure but others may do.
|
17
16
|
|
18
17
|
* Ruby 2.6.3
|
19
|
-
* Rails 6.0.
|
18
|
+
* Rails 6.0.1
|
20
19
|
* MongoDB 6
|
21
20
|
* Freemind 1.0.1
|
22
21
|
|
@@ -29,6 +28,10 @@ These versions works for sure but others may do.
|
|
29
28
|
|
30
29
|
## Sample Application
|
31
30
|
|
31
|
+
### Sample Jinda in Docker
|
32
|
+
|
33
|
+
* https://github.com/kul1/b-255523-jd
|
34
|
+
|
32
35
|
Supposed we want to create ecommerce web site, first create a Rails
|
33
36
|
app without ActiveRecord
|
34
37
|
|
@@ -15,19 +15,20 @@ module Jinda
|
|
15
15
|
gem 'mongoid-paperclip', require: 'mongoid_paperclip'
|
16
16
|
gem 'meta-tags'
|
17
17
|
gem 'jquery-turbolinks'
|
18
|
-
gem 'mongo', '~> 2.
|
18
|
+
gem 'mongo', '~> 2.7.0'
|
19
19
|
gem 'bson', '~> 4.0'
|
20
|
-
gem 'mongoid',
|
20
|
+
gem 'mongoid', '~> 6.0'
|
21
21
|
gem 'nokogiri' # use for jinda/doc
|
22
|
-
gem 'haml',
|
23
|
-
gem 'haml-rails'
|
22
|
+
gem 'haml', '~> 5.1', '>= 5.1.2'
|
23
|
+
gem 'haml-rails', '~> 1.0'
|
24
24
|
gem 'mail'
|
25
25
|
gem 'prawn'
|
26
26
|
gem 'redcarpet'
|
27
27
|
gem 'bcrypt'
|
28
|
-
gem 'omniauth
|
29
|
-
gem 'omniauth-
|
30
|
-
|
28
|
+
gem 'omniauth', '1.8.1'
|
29
|
+
gem 'omniauth-identity', '1.1.1'
|
30
|
+
gem 'omniauth-facebook', '5.0.0'
|
31
|
+
gem 'omniauth-google-oauth2', '0.5.3'
|
31
32
|
gem 'omniauth-rails_csrf_protection'
|
32
33
|
gem 'dotenv-rails'
|
33
34
|
gem 'cloudinary'
|
@@ -72,9 +73,9 @@ module Jinda
|
|
72
73
|
#
|
73
74
|
# CHECK IF EXISTING CODE THEN REQUIRED MANUAL MIGRATION
|
74
75
|
# If no javascripts.js or css (New application), then can use javascript.js or css from org files.
|
75
|
-
inside("app/assets/javascripts") {(File.file? "application.js") ? ( say "Please include application-org.js in application.js", :red) : (FileUtils.mv 'application-org.js', 'application.js')}
|
76
|
-
inside("app/assets/stylesheets") {(File.file? "application.css") ? ( say "Please include application-org.css in application.css", :red) : (FileUtils.mv 'application-org.css', 'application.css')}
|
77
|
-
inside("app/assets/stylesheets") {(File.file? "application.css.scss") ? ( say "Please include application-org.css.scss in application.css.scss", :red) : (FileUtils.mv 'application-org.css.scss', 'application.css.scss')}
|
76
|
+
# inside("app/assets/javascripts") {(File.file? "application.js") ? ( say "Please include application-org.js in application.js", :red) : (FileUtils.mv 'application-org.js', 'application.js')}
|
77
|
+
# inside("app/assets/stylesheets") {(File.file? "application.css") ? ( say "Please include application-org.css in application.css", :red) : (FileUtils.mv 'application-org.css', 'application.css')}
|
78
|
+
# inside("app/assets/stylesheets") {(File.file? "application.css.scss") ? ( say "Please include application-org.css.scss in application.css.scss", :red) : (FileUtils.mv 'application-org.css.scss', 'application.css.scss')}
|
78
79
|
inside("app/controllers") {(File.file? "application_controller.rb") ? ( say "Pleas merge existing jinda_org/application_controller.rb after this installation", :red) : (FileUtils.mv 'jinda_org/application_controller.rb', 'application_controller.rb')}
|
79
80
|
inside("app/controllers") {(File.file? "admins_controller.rb") ? ( say "Please merge existing jinda_org/admins_controller.rb after this installation", :red) : (FileUtils.mv 'jinda_org/admins_controller.rb', 'admins_controller.rb')}
|
80
81
|
inside("app/controllers") {(File.file? "articles_controller.rb") ? ( say "Please merge existing jinda_org/articles_controller.rb after this installation", :red) : (FileUtils.mv 'jinda_org/articles_controller.rb', 'articles_controller.rb')}
|
File without changes
|
@@ -8,8 +8,8 @@
|
|
8
8
|
* You're free to add application-wide styles to this file and they'll appear at the top of the
|
9
9
|
* compiled file, but it's generally better to create a new file per style scope.
|
10
10
|
*
|
11
|
-
|
12
|
-
|
11
|
+
*= require_tree .
|
12
|
+
*= require_self
|
13
13
|
*= require normalize-rails
|
14
14
|
*/
|
15
15
|
|
data/lib/jinda/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jinda
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Prateep Kul
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-
|
12
|
+
date: 2019-12-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -97,6 +97,7 @@ files:
|
|
97
97
|
- lib/generators/jinda/minitest_generator.rb
|
98
98
|
- lib/generators/jinda/rspec_generator.rb
|
99
99
|
- lib/generators/jinda/templates/README.md
|
100
|
+
- lib/generators/jinda/templates/app/assets/config/manifest.js
|
100
101
|
- lib/generators/jinda/templates/app/assets/images/4dcity-old.ico
|
101
102
|
- lib/generators/jinda/templates/app/assets/images/4dcity.ico
|
102
103
|
- lib/generators/jinda/templates/app/assets/images/account.png
|
@@ -153,10 +154,10 @@ files:
|
|
153
154
|
- lib/generators/jinda/templates/app/assets/images/user.png
|
154
155
|
- lib/generators/jinda/templates/app/assets/images/user_admin_gear.png
|
155
156
|
- lib/generators/jinda/templates/app/assets/images/view_code.png
|
156
|
-
- lib/generators/jinda/templates/app/assets/javascripts/application
|
157
|
+
- lib/generators/jinda/templates/app/assets/javascripts/application.js
|
157
158
|
- lib/generators/jinda/templates/app/assets/javascripts/application.js-jqm
|
158
159
|
- lib/generators/jinda/templates/app/assets/javascripts/cable.js
|
159
|
-
- lib/generators/jinda/templates/app/assets/javascripts/disable_enter_key.js
|
160
|
+
- lib/generators/jinda/templates/app/assets/javascripts/disable_enter_key.js-org
|
160
161
|
- lib/generators/jinda/templates/app/assets/javascripts/iscroll-wrapper.js
|
161
162
|
- lib/generators/jinda/templates/app/assets/javascripts/iscroll.js
|
162
163
|
- lib/generators/jinda/templates/app/assets/javascripts/jinda.js
|
@@ -164,8 +165,7 @@ files:
|
|
164
165
|
- lib/generators/jinda/templates/app/assets/javascripts/jquery.mobile.datebox.js
|
165
166
|
- lib/generators/jinda/templates/app/assets/javascripts/jquery.mobile.splitview.js
|
166
167
|
- lib/generators/jinda/templates/app/assets/stylesheets/app.scss
|
167
|
-
- lib/generators/jinda/templates/app/assets/stylesheets/application
|
168
|
-
- lib/generators/jinda/templates/app/assets/stylesheets/application-org.css.scss
|
168
|
+
- lib/generators/jinda/templates/app/assets/stylesheets/application.css
|
169
169
|
- lib/generators/jinda/templates/app/assets/stylesheets/articles.scss
|
170
170
|
- lib/generators/jinda/templates/app/assets/stylesheets/fonts/sarabun.eot
|
171
171
|
- lib/generators/jinda/templates/app/assets/stylesheets/fonts/sarabun.ttf
|
@@ -1,15 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
-
* listed below.
|
4
|
-
*
|
5
|
-
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, or any plugin's
|
6
|
-
* vendor/assets/stylesheets directory can be referenced here using a relative path.
|
7
|
-
*
|
8
|
-
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
|
9
|
-
* compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
|
10
|
-
* files in this directory. Styles in this file should be added after the last require_* statement.
|
11
|
-
* It is generally better to create a new file per style scope.
|
12
|
-
*
|
13
|
-
*= require_tree .
|
14
|
-
*= require_self
|
15
|
-
*/
|