jinda 0.3.6 → 0.3.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/generators/jinda/config_generator.rb +6 -6
- data/lib/generators/jinda/install_generator.rb +16 -12
- data/lib/generators/jinda/templates/README.md +1 -1
- data/lib/generators/jinda/templates/app/views/jinda/index.html.haml +1 -1
- data/lib/generators/jinda/templates/{cloudinary.yml → config/cloudinary.yml} +0 -0
- data/lib/generators/jinda/templates/{seeds.rb → db/seeds.rb} +1 -1
- data/lib/generators/jinda/templates/{.env → dot/dot.env} +0 -0
- data/lib/jinda/version.rb +1 -1
- metadata +6 -8
- data/lib/generators/jinda/templates/app/helpers/application_helper.rb.bak +0 -2
- data/lib/generators/jinda/templates/dot.rspec +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: a5834771d2206ff2c0eee8157d452f6448dcb49a340b46a1de7912b8eabd4786
|
4
|
+
data.tar.gz: 403f23869896afa4b199480045a40ba3677294bc4483102762f06c4f9b5ab6be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d29eb8690fea2a2a90d4573c332ac77a1e9bdcbe350e23bfb99905f2cb497dae10f7dbf9a7a5bab3a76ed8e6b50046d013ea97be9b565e3334c4607b4dc310c
|
7
|
+
data.tar.gz: f720463986c7e4fb67dad96b1c080e98307f87f95eba7f8fdf2a254c5d0be455caefe3a0afcab35f3495c45543c81fde1ac24281ab026ab5a7baf6e80ea15153
|
@@ -7,16 +7,16 @@ module Jinda
|
|
7
7
|
desc "Backup Files"
|
8
8
|
def backup_files
|
9
9
|
st=" "
|
10
|
-
# inside("config/initializers") {(File.file? "omniauth.rb") ? (
|
11
|
-
# inside("config/initializers") {(File.file? "mongoid.rb") ? (
|
12
|
-
(File.file? ".env") ? (
|
10
|
+
# inside("config/initializers") {(File.file? "omniauth.rb") ? (FileUtils.mv "omniauth.rb", "omniauth.rb.bak") : (puts "new omniauth.rb created")}
|
11
|
+
# inside("config/initializers") {(File.file? "mongoid.rb") ? (FileUtils.mv "mongoid.rb", "omniauth.rb.bak") : (puts "new mongoid.rb created")}
|
12
|
+
(File.file? ".env") ? (FileUtils.mv ".env", ".env-bak") : (puts "backup .env")
|
13
13
|
end
|
14
14
|
|
15
15
|
desc "gen_image_store"
|
16
16
|
def gen_image_store
|
17
|
-
|
18
|
-
|
19
|
-
|
17
|
+
# FileUtils.cp "cloudinary.yml","config/cloudinary.yml"
|
18
|
+
# FileUtils.cp "dot.env",".env"
|
19
|
+
# FileUtils.cp "dot.rspec",".rspec"
|
20
20
|
empty_directory "upload" # create upload directory just in case
|
21
21
|
end
|
22
22
|
desc "Set up omniauth config"
|
@@ -54,17 +54,21 @@ module Jinda
|
|
54
54
|
end
|
55
55
|
|
56
56
|
def setup_app
|
57
|
-
# inside("public") { run "mv index.html index.html.bak" }
|
58
|
-
|
59
|
-
inside("app/
|
60
|
-
inside("app/
|
61
|
-
inside("app/
|
62
|
-
inside("app/assets/
|
63
|
-
inside("
|
64
|
-
|
65
|
-
# inside("config/initializers") {(File.file? "
|
57
|
+
# inside("public") { run "FileUtils.mv index.html index.html.bak" }
|
58
|
+
inside("db") {(File.file? "seeds.rb") ? (FileUtils.mv "seeds.rb", "seeds.rb.bak") : ( puts "no seeds.rb")}
|
59
|
+
inside("app/views/layouts") {(File.file? "application.html.erb") ? (FileUtils.mv 'application.html.erb', 'application.html.erb.bak') : ( puts "no app/views/layout/ application.html.erb")}
|
60
|
+
inside("app/controllers") {(File.file? "application_controller.rb") ? (FileUtils.mv 'application_controller.rb', 'application_controller.rb.bak' ) : ( puts "no app/controller/application_controller.rb")}
|
61
|
+
inside("app/helpers") {(File.file? "application_helper.rb") ? (FileUtils.mv 'application_helper.rb', 'application_helper.rb.bak') : ( puts "no app/helpers/application_helper.rb")}
|
62
|
+
inside("app/assets/javascripts") {(File.file? "javascripts.js") ? (FileUtils.mv 'javascripts.js', 'javascripts.js.bak') : ( puts "no javascript.js")}
|
63
|
+
inside("app/assets/stylesheets") {(File.file? "javascripts.css") ? (FileUtils.mv 'javascripts.css', 'javascripts.css.bak') : ( puts "no javascript.css")}
|
64
|
+
inside("config/initializers") {(File.file? "omniauth.rb") ? (FileUtils.mv 'omniauth.rb', 'omniauth.rb.bak') : (puts "no omniauth.rb")}
|
65
|
+
# inside("config/initializers") {(File.file? "mongoid.rb") ? (FileUtils.mv 'mongoid.rb', 'mongoid.rb.bak') : (puts "no mongoid.rb")}
|
66
|
+
# inside("config/initializers") {(File.file? "ckeditor.rb") ? (FileUtils.mv 'ckeditor.rb ckeditor.rb.bak') : (puts "no ckeditor.rb ")}
|
66
67
|
directory "app"
|
67
68
|
directory "spec"
|
69
|
+
directory "db"
|
70
|
+
directory "config"
|
71
|
+
directory "dot"
|
68
72
|
end
|
69
73
|
# routes created each line as reversed order button up in routes
|
70
74
|
def setup_routes
|
@@ -92,9 +96,9 @@ module Jinda
|
|
92
96
|
end
|
93
97
|
|
94
98
|
def setup_env
|
95
|
-
|
99
|
+
FileUtils.mv "README.md", "README.md.bak"
|
96
100
|
create_file 'README.md', ''
|
97
|
-
|
101
|
+
# FileUtils.mv 'install.sh', 'install.sh'
|
98
102
|
inject_into_file 'config/application.rb', :after => 'require "active_resource/railtie"' do
|
99
103
|
"\nrequire 'mongoid/railtie'\n"
|
100
104
|
"\nrequire 'rexml/document'\n"
|
@@ -172,7 +176,7 @@ Mongoid::Config.belongs_to_required_by_default = false
|
|
172
176
|
end
|
173
177
|
end
|
174
178
|
def gen_user
|
175
|
-
#
|
179
|
+
# FileUtils.cp "db/seeds.rb","db/seeds.rb"
|
176
180
|
end
|
177
181
|
|
178
182
|
|
File without changes
|
@@ -1,6 +1,6 @@
|
|
1
1
|
unless Identity.where(code:"admin").exists?
|
2
2
|
identity= Identity.create :code => "admin", :email => "admin@test.com", :password => "secret",
|
3
3
|
:password_confirmation => "secret"
|
4
|
-
User.create :provider => "identity", :uid => identity.id.to_s, :code => identity.code,
|
4
|
+
Jinda::User.create :provider => "identity", :uid => identity.id.to_s, :code => identity.code,
|
5
5
|
:email => identity.email, :role => "M,A,D"
|
6
6
|
end
|
File without changes
|
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.3.
|
4
|
+
version: 0.3.7
|
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-08-
|
12
|
+
date: 2019-08-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -184,7 +184,6 @@ files:
|
|
184
184
|
- lib/generators/jinda/install_generator.rb
|
185
185
|
- lib/generators/jinda/minitest_generator.rb
|
186
186
|
- lib/generators/jinda/rspec_generator.rb
|
187
|
-
- lib/generators/jinda/templates/.env
|
188
187
|
- lib/generators/jinda/templates/README.md
|
189
188
|
- lib/generators/jinda/templates/app/assets/config/manifest.js
|
190
189
|
- lib/generators/jinda/templates/app/assets/images/4dcity-old.ico
|
@@ -311,7 +310,6 @@ files:
|
|
311
310
|
- lib/generators/jinda/templates/app/controllers/users_controller.rb
|
312
311
|
- lib/generators/jinda/templates/app/helpers/admins_helper.rb
|
313
312
|
- lib/generators/jinda/templates/app/helpers/application_helper.rb
|
314
|
-
- lib/generators/jinda/templates/app/helpers/application_helper.rb.bak
|
315
313
|
- lib/generators/jinda/templates/app/helpers/articles_helper.rb
|
316
314
|
- lib/generators/jinda/templates/app/helpers/basic_helper.rb
|
317
315
|
- lib/generators/jinda/templates/app/helpers/comments_helper.rb
|
@@ -417,8 +415,9 @@ files:
|
|
417
415
|
- lib/generators/jinda/templates/app/views/users/index.haml
|
418
416
|
- lib/generators/jinda/templates/app/views/users/pwd/enter.html.erb
|
419
417
|
- lib/generators/jinda/templates/app/views/users/user/enter_user.html.erb
|
420
|
-
- lib/generators/jinda/templates/cloudinary.yml
|
421
|
-
- lib/generators/jinda/templates/
|
418
|
+
- lib/generators/jinda/templates/config/cloudinary.yml
|
419
|
+
- lib/generators/jinda/templates/db/seeds.rb
|
420
|
+
- lib/generators/jinda/templates/dot/dot.env
|
422
421
|
- lib/generators/jinda/templates/install.sh
|
423
422
|
- lib/generators/jinda/templates/jinda.yml
|
424
423
|
- lib/generators/jinda/templates/public/404.html
|
@@ -427,7 +426,6 @@ files:
|
|
427
426
|
- lib/generators/jinda/templates/public/assets/images/logo.png
|
428
427
|
- lib/generators/jinda/templates/public/favicon.ico
|
429
428
|
- lib/generators/jinda/templates/public/robots.txt
|
430
|
-
- lib/generators/jinda/templates/seeds.rb
|
431
429
|
- lib/generators/jinda/templates/spec/controllers/sessions_controller_spec.rb
|
432
430
|
- lib/generators/jinda/templates/spec/features/userlogins_spec.rb
|
433
431
|
- lib/generators/jinda/templates/spec/models/user_spec.rb
|
@@ -465,7 +463,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
465
463
|
version: '0'
|
466
464
|
requirements: []
|
467
465
|
rubyforge_project:
|
468
|
-
rubygems_version: 2.
|
466
|
+
rubygems_version: 2.7.6.2
|
469
467
|
signing_key:
|
470
468
|
specification_version: 4
|
471
469
|
summary: 'Rails workflow from mind map: Freemind'
|