jinda 0.4.5 → 0.4.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bc475da4a23373ee9c19c6a1e4f2fc3f10dcfe82d94dc67197651fe3cde8ee3c
4
- data.tar.gz: 58c799c742f34feb2f62d17667fa4da4f4b1ab20913869b44a78a192e1df9c1b
3
+ metadata.gz: 357971599e6c63af919a58e2714be632fcff7f52ce8040e767cc27d0a248abc2
4
+ data.tar.gz: 39f6c6c92f801ad3c133ad90ae77a61369bb0553517e1ec0aa13dfa527ea9566
5
5
  SHA512:
6
- metadata.gz: e1ceffa9eb1a6270e7da0bdf5a8ddd03fb08ad9e07f77e5e4b0947ec065628b29d9c9dac0fc7e840a10a8c348450bbd647484936a675cf24e8706a3c6288f574
7
- data.tar.gz: e70897bac06191c0a1cb6198451a10d6148221bebb37ee30c77c5276ffc3ef708b6243b796030c29514cde351142c8bdae4b470c602300dde9fdba800140ac92
6
+ metadata.gz: 768a3173048292794e5f7c7176ed17ef75c6e243d59adbc76b4a96a87b520e5bfbe30c074dc2772881b90f04d6e24394b911294b4ffe3cfd96b35d83bf747e21
7
+ data.tar.gz: 57c64fb808cb3d7af6173cea3913099ba9c32d86c96427e08f48ecbc579c24a1cc44f910cfdef08c6146311dcac5d1986f66296afb91f4b16e7b4ee93782c4e9
data/README.md CHANGED
@@ -40,7 +40,7 @@ app without ActiveRecord
40
40
 
41
41
  ## Add jinda to your Gemfile:
42
42
 
43
- gem 'jinda', '~> 0.4.4'
43
+ gem 'jinda', '~> 0.4.6'
44
44
 
45
45
  For Development (most updated)
46
46
 
@@ -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', '~> 2.7.0'
20
- gem 'bson', '~> 4.0'
21
- gem 'mongoid', '>= 6.0'
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' # use for jinda/doc
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 'omniauth', '~> 1.8.1'
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', '~> 5.0.0'
33
- gem 'omniauth-google-oauth2', '~> 0.5.3'
34
- gem 'omniauth-rails_csrf_protection'
35
- gem 'dotenv-rails'
36
- gem 'cloudinary'
37
- gem 'kaminari'
38
- gem 'kaminari-mongoid'
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'"
@@ -21,7 +21,6 @@
21
21
  //= require jqm/jinda
22
22
  //= require turbolinks
23
23
  //= require jqm/disable_enter_key.js
24
- //= require ckeditor/init
25
24
  //= require disable_enter_key.js
26
25
  //= require notes.js
27
26
 
@@ -9,5 +9,5 @@
9
9
  <%= f.label :text, "Keywords" %>
10
10
  <%= f.text_field :keywords %>
11
11
  <%= f.label :body, "Body Content" %>
12
- <%= f.cktext_area :body %>
13
- <% end %>
12
+ <%= f.text_area :body %>
13
+ <% end %>
@@ -10,5 +10,5 @@
10
10
  <%= f.label :text, "Keywords" %>
11
11
  <%= f.text_field :keywords %>
12
12
  <%= f.label :body, "Body Content" %>
13
- <%= f.cktext_area :body %>
13
+ <%= f.text_area :body %>
14
14
  <% end %>
@@ -9,5 +9,5 @@
9
9
  <%= f.label :text, "Keywords" %>
10
10
  <%= f.text_field :keywords %>
11
11
  <%= f.label :body, "Body Content" %>
12
- <%= f.cktext_area :body %>
12
+ <%= f.text_area :body %>
13
13
  <% end %>
@@ -21,7 +21,7 @@
21
21
 
22
22
  %h2 Installation
23
23
  %ul
24
- %li add gem 'jinda', '0.4.5'
24
+ %li add gem 'jinda', '0.4.6'
25
25
  %li bundle
26
26
  %li rails generate jinda:install
27
27
  %li (run all with "sh install.sh" )
@@ -6,5 +6,5 @@
6
6
  <%= f.label :title, "Title" %>
7
7
  <%= f.text_field :title, required: true %><Br>
8
8
  <%= f.label :body, "Body Content" %>
9
- <%= f.cktext_area :body, :cols=>50, :rows=>6 ,required: true %>
9
+ <%= f.text_area :body, :cols=>50, :rows=>6 ,required: true %>
10
10
  <% end %>
@@ -8,6 +8,6 @@
8
8
  <%= f.label :title, "Title" %>
9
9
  <%= f.text_field :title %><Br>
10
10
  <%= f.label :body, "Body Content" %>
11
- <%= f.cktext_area :body, :cols=>50, :rows=>6, required: true %>
11
+ <%= f.text_area :body, :cols=>50, :rows=>6, required: true %>
12
12
  <% end %>
13
13
  </div>
@@ -6,5 +6,5 @@
6
6
  <%= f.label :title, "Title" %>
7
7
  <%= f.text_field :title %><Br>
8
8
  <%= f.label :body, "Body Content" %>
9
- <%= f.cktext_area :body, :cols=>50, :rows=>6 %>
9
+ <%= f.text_area :body, :cols=>50, :rows=>6 %>
10
10
  <% end %>
data/lib/jinda/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Jinda
2
- VERSION = "0.4.5"
2
+ VERSION = "0.4.6"
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.4.5
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-01 00:00:00.000000000 Z
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,5 +0,0 @@
1
- class Ckeditor::Asset
2
- include Ckeditor::Orm::Mongoid::AssetBase
3
- include Mongoid::Paperclip
4
- include Ckeditor::Backend::Paperclip
5
- end
@@ -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