jinda 0.4.5 → 0.4.6
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 +4 -4
- data/README.md +1 -1
- data/lib/generators/jinda/config_generator.rb +0 -13
- data/lib/generators/jinda/install_generator.rb +15 -17
- data/lib/generators/jinda/templates/app/assets/javascripts/application.js-jqm +0 -1
- data/lib/generators/jinda/templates/app/views/articles/edit_article/edit_article.html.erb +2 -2
- data/lib/generators/jinda/templates/app/views/articles/new_article/form_article.html.erb +1 -1
- data/lib/generators/jinda/templates/app/views/articles/xedit_article/edit_article.html.erb +1 -1
- data/lib/generators/jinda/templates/app/views/jinda/index.html.haml +1 -1
- data/lib/generators/jinda/templates/app/views/notes/edit/edit_note.html.erb +1 -1
- data/lib/generators/jinda/templates/app/views/notes/new/new_note.html.erb +1 -1
- data/lib/generators/jinda/templates/app/views/notes/xedit/edit_note.html.erb +1 -1
- data/lib/jinda/version.rb +1 -1
- metadata +2 -5
- data/lib/generators/jinda/templates/app/models/ckeditor/asset.rb +0 -5
- data/lib/generators/jinda/templates/app/models/ckeditor/attachment_file.rb +0 -13
- data/lib/generators/jinda/templates/app/models/ckeditor/picture.rb +0 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 357971599e6c63af919a58e2714be632fcff7f52ce8040e767cc27d0a248abc2
|
4
|
+
data.tar.gz: 39f6c6c92f801ad3c133ad90ae77a61369bb0553517e1ec0aa13dfa527ea9566
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 768a3173048292794e5f7c7176ed17ef75c6e243d59adbc76b4a96a87b520e5bfbe30c074dc2772881b90f04d6e24394b911294b4ffe3cfd96b35d83bf747e21
|
7
|
+
data.tar.gz: 57c64fb808cb3d7af6173cea3913099ba9c32d86c96427e08f48ecbc579c24a1cc44f910cfdef08c6146311dcac5d1986f66296afb91f4b16e7b4ee93782c4e9
|
data/README.md
CHANGED
@@ -43,18 +43,6 @@ module Jinda
|
|
43
43
|
end
|
44
44
|
end
|
45
45
|
|
46
|
-
# gem 'ckeditor', github: 'galetahub/ckeditor'
|
47
|
-
# rails generate ckeditor:install --orm=mongoid --backend=paperclip
|
48
|
-
desc "Set up setup_ckeditor config"
|
49
|
-
def setup_ckeditor
|
50
|
-
initializer "ckeditor.rb" do
|
51
|
-
%q{# gem 'ckeditor', github: 'galetahub/ckeditor'
|
52
|
-
Ckeditor.setup do |config|
|
53
|
-
require 'ckeditor/orm/mongoid'
|
54
|
-
end
|
55
|
-
}
|
56
|
-
end
|
57
|
-
end
|
58
46
|
|
59
47
|
desc "Set up mongoid config"
|
60
48
|
def setup_mongoid
|
@@ -79,7 +67,6 @@ module Jinda
|
|
79
67
|
|
80
68
|
def finish
|
81
69
|
puts " configured omniauth.\n"
|
82
|
-
puts " configured setup_ckeditor.\n"
|
83
70
|
puts " configured Mongoid.\n"
|
84
71
|
puts "\n"
|
85
72
|
puts " To set user/password as admin/secret run:\n"
|
@@ -12,31 +12,31 @@ module Jinda
|
|
12
12
|
gem 'normalize-rails'
|
13
13
|
gem 'font-awesome-rails'
|
14
14
|
gem 'font-awesome-sass', '~> 5.12.0'
|
15
|
-
gem 'ckeditor', github: 'galetahub/ckeditor'
|
16
15
|
gem 'mongoid-paperclip', require: 'mongoid_paperclip'
|
17
16
|
gem 'meta-tags'
|
18
|
-
gem 'jquery-turbolinks'
|
19
|
-
gem 'mongo', '
|
20
|
-
gem 'bson', '
|
21
|
-
gem 'mongoid', '
|
17
|
+
gem 'jquery-turbolinks', '2.1.0'
|
18
|
+
gem 'mongo', '2.11.3'
|
19
|
+
gem 'bson', '4.4.2'
|
20
|
+
gem 'mongoid', '7.1.0.rc0'
|
22
21
|
gem 'turbolinks_render'
|
23
|
-
gem 'nokogiri'
|
22
|
+
gem 'nokogiri', '1.10.9'
|
24
23
|
gem 'haml', '~> 5.1', '>= 5.1.2'
|
25
24
|
gem 'haml-rails', '~> 1.0'
|
26
25
|
gem 'mail'
|
27
26
|
gem 'prawn'
|
28
27
|
gem 'redcarpet'
|
29
28
|
gem 'bcrypt'
|
30
|
-
gem '
|
29
|
+
gem 'oauth2', '1.4.4'
|
30
|
+
gem 'omniauth', '1.9.1'
|
31
|
+
gem 'omniauth-oauth2', '1.6.0'
|
31
32
|
gem 'omniauth-identity', '~> 1.1.1'
|
32
|
-
gem 'omniauth-facebook', '
|
33
|
-
gem 'omniauth-google-oauth2', '
|
34
|
-
gem '
|
35
|
-
gem '
|
36
|
-
gem '
|
37
|
-
gem 'kaminari'
|
38
|
-
gem '
|
39
|
-
gem 'jquery-rails'
|
33
|
+
gem 'omniauth-facebook', '6.0.0'
|
34
|
+
gem 'omniauth-google-oauth2', '0.8.0'
|
35
|
+
gem 'dotenv-rails', '2.7.5'
|
36
|
+
gem 'cloudinary', '1.13.2'
|
37
|
+
gem 'kaminari', '1.2.0'
|
38
|
+
gem 'kaminari-mongoid', '1.0.1'
|
39
|
+
gem 'jquery-rails', '4.3.5'
|
40
40
|
gem_group :development, :test do
|
41
41
|
gem 'rspec'
|
42
42
|
gem 'rspec-rails'
|
@@ -66,7 +66,6 @@ module Jinda
|
|
66
66
|
inside("app/assets/stylesheets") {(File.file? "application.css") ? (FileUtils.mv 'application.css', 'application.css.bak') : ( say "no application.css", :blue)}
|
67
67
|
inside("config/initializers") {(File.file? "omniauth.rb") ? (FileUtils.mv 'omniauth.rb', 'omniauth.rb.bak') : (say "no omniauth.rb", :blue)}
|
68
68
|
# inside("config/initializers") {(File.file? "mongoid.rb") ? (FileUtils.mv 'mongoid.rb', 'mongoid.rb.bak') : (say "no mongoid.rb")}
|
69
|
-
# inside("config/initializers") {(File.file? "ckeditor.rb") ? (FileUtils.mv 'ckeditor.rb ckeditor.rb.bak') : (say "no ckeditor.rb ")}
|
70
69
|
inside("app/assets/config") {(File.file? "manifest.js") ? (FileUtils.mv "manifest.js", "manifest.js-rails") : (puts "backup to manifest.js-rails")}
|
71
70
|
directory "app"
|
72
71
|
directory "spec"
|
@@ -119,7 +118,6 @@ module Jinda
|
|
119
118
|
route "get '/auth/:provider/callback' => 'sessions#create'"
|
120
119
|
route "post '/auth/:provider/callback' => 'sessions#create'"
|
121
120
|
route "\# end jinda method routes"
|
122
|
-
route "mount Ckeditor::Engine => '/ckeditor'"
|
123
121
|
route "post '/jinda/end_form' => 'jinda#end_form'"
|
124
122
|
route "post '/jinda/pending' => 'jinda#index'"
|
125
123
|
route "post '/jinda/init' => 'jinda#init'"
|
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.6
|
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: 2020-03-
|
12
|
+
date: 2020-03-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -240,9 +240,6 @@ files:
|
|
240
240
|
- lib/generators/jinda/templates/app/mailers/user_mailer.rb
|
241
241
|
- lib/generators/jinda/templates/app/models/address.rb
|
242
242
|
- lib/generators/jinda/templates/app/models/article.rb
|
243
|
-
- lib/generators/jinda/templates/app/models/ckeditor/asset.rb
|
244
|
-
- lib/generators/jinda/templates/app/models/ckeditor/attachment_file.rb
|
245
|
-
- lib/generators/jinda/templates/app/models/ckeditor/picture.rb
|
246
243
|
- lib/generators/jinda/templates/app/models/comment.rb
|
247
244
|
- lib/generators/jinda/templates/app/models/identity.rb
|
248
245
|
- lib/generators/jinda/templates/app/models/jinda/doc.rb
|
@@ -1,13 +0,0 @@
|
|
1
|
-
class Ckeditor::AttachmentFile < Ckeditor::Asset
|
2
|
-
has_mongoid_attached_file :data,
|
3
|
-
url: '/ckeditor_assets/attachments/:id/:filename',
|
4
|
-
path: ':rails_root/public/ckeditor_assets/attachments/:id/:filename'
|
5
|
-
|
6
|
-
validates_attachment_presence :data
|
7
|
-
validates_attachment_size :data, less_than: 100.megabytes
|
8
|
-
do_not_validate_attachment_file_type :data
|
9
|
-
|
10
|
-
def url_thumb
|
11
|
-
@url_thumb ||= Ckeditor::Utils.filethumb(filename)
|
12
|
-
end
|
13
|
-
end
|
@@ -1,14 +0,0 @@
|
|
1
|
-
class Ckeditor::Picture < Ckeditor::Asset
|
2
|
-
has_mongoid_attached_file :data,
|
3
|
-
url: '/ckeditor_assets/pictures/:id/:style_:basename.:extension',
|
4
|
-
path: ':rails_root/public/ckeditor_assets/pictures/:id/:style_:basename.:extension',
|
5
|
-
styles: { content: '800>', thumb: '118x100#' }
|
6
|
-
|
7
|
-
validates_attachment_size :data, less_than: 2.megabytes
|
8
|
-
validates_attachment_presence :data
|
9
|
-
validates_attachment_content_type :data, content_type: /\Aimage/
|
10
|
-
|
11
|
-
def url_content
|
12
|
-
url(:content)
|
13
|
-
end
|
14
|
-
end
|