jinda 0.3.6 → 0.3.7

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 9bec041cf98be98651af512b85110d7264c4cc1b
4
- data.tar.gz: b6d8a3374fd9672f8acacb0558aa357e63e981f0
2
+ SHA256:
3
+ metadata.gz: a5834771d2206ff2c0eee8157d452f6448dcb49a340b46a1de7912b8eabd4786
4
+ data.tar.gz: 403f23869896afa4b199480045a40ba3677294bc4483102762f06c4f9b5ab6be
5
5
  SHA512:
6
- metadata.gz: 46d8b73c75a490d80c2d138730e2f289f46845d80cb7b3a3f689eaa221f118685e8f6813bde6ce89fd68bff07b932a2f3a2e37c13883ad78fe1267ccae9ccd4c
7
- data.tar.gz: f207b175bb3647efed4426c546611d0323ab4ab8714e54d778ef54865f955e266cdd41ced36d2d4728ec9d61dd5e8ad2b971caf7ae0e0d40b8d68d16f737fe7d
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") ? (copy_file "omniauth.rb", "omniauth.rb.bak") : (puts "new omniauth.rb created")}
11
- # inside("config/initializers") {(File.file? "mongoid.rb") ? (copy_file "mongoid.rb", "omniauth.rb.bak") : (puts "new mongoid.rb created")}
12
- (File.file? ".env") ? (copy_file ".env", ".env-bak") : (puts "backup .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
- copy_file "cloudinary.yml","config/cloudinary.yml"
18
- copy_file ".env",".env"
19
- copy_file "dot.rspec",".rspec"
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
- inside("app/views/layouts") {(File.file? "application.html.erb") ? (copy_file 'application.html.erb', 'application.html.erb.bak') : ( puts "no app/views/layout/ application.html.erb")}
59
- inside("app/controllers") {(File.file? "application_controller.rb") ? (copy_file 'application_controller.rb', 'application_controller.rb.bak' ) : ( puts "no app/controller/application_controller.rb")}
60
- inside("app/helpers") {(File.file? "application_helper.rb") ? (copy_file 'application_helper.rb', 'application_helper.rb.bak') : ( puts "no app/helpers/application_helper.rb")}
61
- inside("app/assets/javascripts") {(File.file? "javascripts.js") ? (copy_file 'javascripts.js', 'javascripts.js.bak') : ( puts "no javascript.js")}
62
- inside("app/assets/stylesheets") {(File.file? "javascripts.css") ? (copy_file 'javascripts.css', 'javascripts.css.bak') : ( puts "no javascript.css")}
63
- inside("config/initializers") {(File.file? "omniauth.rb") ? (copy_file 'omniauth.rb', 'omniauth.rb.bak') : (puts "no omniauth.rb")}
64
- # inside("config/initializers") {(File.file? "mongoid.rb") ? (copy_file 'mongoid.rb', 'mongoid.rb.bak') : (puts "no mongoid.rb")}
65
- # inside("config/initializers") {(File.file? "ckeditor.rb") ? (copy_file 'ckeditor.rb ckeditor.rb.bak') : (puts "no ckeditor.rb ")}
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
- copy_file "README.md", "README.md.bak"
99
+ FileUtils.mv "README.md", "README.md.bak"
96
100
  create_file 'README.md', ''
97
- copy_file 'install.sh', 'install.sh'
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
- # copy_file "seeds.rb","db/seeds.rb"
179
+ # FileUtils.cp "db/seeds.rb","db/seeds.rb"
176
180
  end
177
181
 
178
182
 
@@ -36,7 +36,7 @@ app without ActiveRecord
36
36
 
37
37
  ## Add jinda to your Gemfile:
38
38
 
39
- gem 'jinda', '~> 0.3.6'
39
+ gem 'jinda', '~> 0.3.7'
40
40
 
41
41
  For Development (most updated)
42
42
 
@@ -21,7 +21,7 @@
21
21
 
22
22
  %h2 Installation
23
23
  %ul
24
- %li add gem 'jinda', '0.3.6'
24
+ %li add gem 'jinda', '0.3.7'
25
25
  %li bundle
26
26
  %li rails generate jinda:install
27
27
  %li (run all with "sh install.sh" )
@@ -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
data/lib/jinda/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Jinda
2
- VERSION = "0.3.6"
2
+ VERSION = "0.3.7"
3
3
  end
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.6
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-07 00:00:00.000000000 Z
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/dot.rspec
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.5.2.3
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'
@@ -1,2 +0,0 @@
1
- module ApplicationHelper
2
- end
@@ -1,3 +0,0 @@
1
- --require rails_helper
2
- --color
3
- --format doc