notee 0.3.7 → 0.4.0

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.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/notee/application.js +40107 -38738
  3. data/app/controllers/notee/application_controller.rb +22 -2
  4. data/app/controllers/notee/categories_controller.rb +3 -4
  5. data/app/controllers/notee/comments_controller.rb +34 -11
  6. data/app/controllers/notee/images_controller.rb +3 -4
  7. data/app/controllers/notee/notees_controller.rb +2 -4
  8. data/app/controllers/notee/posts_controller.rb +10 -11
  9. data/app/controllers/notee/roles_controller.rb +27 -0
  10. data/app/controllers/notee/statuses_controller.rb +3 -5
  11. data/app/controllers/notee/tokens_controller.rb +1 -5
  12. data/app/controllers/notee/users_controller.rb +19 -12
  13. data/app/models/notee/application_record.rb +5 -0
  14. data/app/models/notee/category.rb +14 -4
  15. data/app/models/notee/comment.rb +1 -1
  16. data/app/models/notee/image.rb +12 -3
  17. data/app/models/notee/post.rb +28 -2
  18. data/app/models/notee/token.rb +15 -2
  19. data/app/models/notee/user.rb +71 -24
  20. data/app/views/notee/partials/_meta.html.erb +25 -0
  21. data/config/routes.rb +11 -9
  22. data/db/migrate/20160809145754_create_notee_users.rb +0 -1
  23. data/lib/notee/configuration.rb +15 -1
  24. data/lib/notee/helpers/notee_helper.rb +9 -0
  25. data/lib/notee/helpers/view_helper.rb +6 -1
  26. data/lib/notee/version.rb +1 -1
  27. data/lib/tasks/notee_tasks.rake +16 -0
  28. data/test/dummy/log/development.log +63 -0
  29. metadata +20 -8
  30. data/app/helpers/notee/categories_helper.rb +0 -4
  31. data/app/helpers/notee/comments_helper.rb +0 -4
  32. data/app/helpers/notee/images_helper.rb +0 -4
  33. data/app/helpers/notee/posts_helper.rb +0 -4
@@ -1,16 +1,38 @@
1
+ # == Schema Information
2
+ #
3
+ # Table name: notee_posts
4
+ #
5
+ # id :integer not null, primary key
6
+ # title :string default("no title")
7
+ # content :text
8
+ # slug :string default("2016-19-26-54")
9
+ # status :integer default(0)
10
+ # category_id :integer default(0)
11
+ # thumbnail_id :integer default(0)
12
+ # published_at :datetime default(Wed, 13 Jul 2016 10:26:54 UTC +00:00)
13
+ # seo_keyword :string default("")
14
+ # seo_description :string default("")
15
+ # created_at :datetime not null
16
+ # updated_at :datetime not null
17
+ #
18
+
1
19
  module Notee
2
20
  class Post < ActiveRecord::Base
3
-
4
21
  # callbacks
5
22
  before_create :set_title
6
23
  before_create :set_slug
7
24
  before_save :set_published_at
25
+ before_save :check_role
8
26
 
9
27
  # relations
10
28
  belongs_to :category
11
- belongs_to :thumbnail, :class_name => Notee::Image, :foreign_key => 'thumbnail_id'
29
+ belongs_to :thumbnail, class_name: Notee::Image, foreign_key: 'thumbnail_id'
30
+
31
+ # accessors
32
+ attr_accessor :editor_id
12
33
 
13
34
  private
35
+
14
36
  def set_title
15
37
  self.title = "no_title#{Notee::Post.count}" unless self.title.present?
16
38
  end
@@ -25,5 +47,9 @@ module Notee
25
47
  self.published_at = Time.now
26
48
  end
27
49
  end
50
+
51
+ def check_role
52
+
53
+ end
28
54
  end
29
55
  end
@@ -1,10 +1,23 @@
1
+ # == Schema Information
2
+ #
3
+ # Table name: notee_tokens
4
+ #
5
+ # id :integer not null, primary key
6
+ # access_token :string not null
7
+ # expires_at :datetime not null
8
+ # created_at :datetime not null
9
+ # updated_at :datetime not null
10
+ #
11
+
1
12
  module Notee
2
13
  class Token < ActiveRecord::Base
3
-
4
14
  # callbacks
5
15
  before_create :generate_access_token
6
16
  before_create :set_expires_at
7
17
 
18
+ # relations
19
+ belongs_to :user
20
+
8
21
  private
9
22
 
10
23
  def generate_access_token
@@ -14,7 +27,7 @@ module Notee
14
27
  end
15
28
 
16
29
  def set_expires_at
17
- self.expires_at = Time.current + (60 * 60 * 24 * 7) #7
30
+ self.expires_at = Time.current + (60 * 60 * 24 * 7) # 7 days
18
31
  end
19
32
  end
20
33
  end
@@ -1,27 +1,74 @@
1
1
  module Notee
2
- class User < ApplicationRecord
3
-
4
- # accessors
5
- attr_accessor :password
6
-
7
- # callback
8
- before_save :encrypt_password
9
-
10
- def sign_in(name_or_email password)
11
- user = self.find_by(name: name_or_email)
12
- user = self.find_by(email: name_or_email) unless user
13
- return false unless user
14
- return false unless user.encrypted_password == encrypt(password)
15
-
16
- return user
17
- end
18
-
19
- def encrypt(password)
20
- return OpenSSL::Digest::MD5.hexdigest(password)
21
- end
22
-
23
- def encrypt_password
24
- self.encrypted_password = encrypt(self.password)
25
- end
2
+ class User < ActiveRecord::Base
3
+ # enums
4
+ enum role: { writer: 0, editor: 10, manager: 20, suspended: 99 }
5
+
6
+ # writer
7
+ # - create: posts, categories, images
8
+ # - update: my posts, my user
9
+ # - delete: my posts (Logical delete)
10
+
11
+ # editor
12
+ # - create: posts, categories, images
13
+ # - update: posts, categories, images, my user
14
+ # - delete: posts, categories, images (Logical delete)
15
+
16
+ # manager
17
+ # - create: posts, categories, images, users
18
+ # - update: posts, categories, images, users
19
+ # - delete: posts, categories, images, users (Logical delete)
20
+
21
+ # suspended
22
+ # all none
23
+
24
+ # root
25
+ # all
26
+
27
+ # accessors
28
+ attr_accessor :file
29
+ attr_accessor :password
30
+ attr_accessor :password_confirm
31
+ attr_accessor :editor_id
32
+
33
+ # callback
34
+ before_save :confirm_password
35
+ before_save :encrypt_password
36
+ before_save :manage_profile_img
37
+
38
+ def sign_in(name_or_email, password)
39
+ user = find_by(name: name_or_email)
40
+ user = find_by(email: name_or_email) unless user
41
+ return false unless user
42
+ return false unless user.encrypted_password == encrypt(password)
43
+
44
+ user
45
+ end
46
+
47
+ def encrypt(password)
48
+ OpenSSL::Digest::MD5.hexdigest(password)
49
+ end
50
+
51
+ def confirm_password
52
+ return false unless password == password_confirm
53
+ end
54
+
55
+ def encrypt_password
56
+ self.encrypted_password = encrypt(password)
57
+ end
58
+
59
+ def manage_profile_img
60
+ return unless file
61
+ return if User.exists?(profile_img: file)
62
+
63
+ image_dir = Rails.root.to_s + '/public/notee/profile/'
64
+ FileUtils.mkdir_p(image_dir) unless FileTest.exist?(image_dir)
65
+ image_name = Time.now.strftime('%Y%m%d%H%M%S') + '--' + SecureRandom.uuid + '.jpg'
66
+ transaction do
67
+ open(image_dir + '/' + image_name, 'wb') do |output|
68
+ output.write(file.read)
69
+ end
70
+ end
71
+ self.profile_img = image_name
72
+ end
26
73
  end
27
74
  end
@@ -0,0 +1,25 @@
1
+
2
+ <!-- Notee Meta Info -->
3
+
4
+ <title><%= meta[:title] %></title>
5
+ <meta name="keywords" content="<%= meta[:keyword] %>"/>
6
+ <meta name="description" content="<%= meta[:description] %>"/>
7
+
8
+ <meta property="og:title" content="<%= meta[:title] %>" />
9
+ <meta property="og:description" content="<%= meta[:description] %>" />
10
+ <meta property="og:url" content="<%= request.url %>" />
11
+ <meta property="og:site_name" content="<%= meta[:title] %>>" />
12
+ <meta property="og:image" content="<%= meta[:og_image] %>" />
13
+
14
+ <!-- Notee Google Analytics -->
15
+
16
+ <script>
17
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
18
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
19
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
20
+ })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
21
+
22
+ ga('create', '<%= ga %>', 'auto');
23
+ ga('send', 'pageview');
24
+
25
+ </script>
@@ -2,15 +2,16 @@ Notee::Engine.routes.draw do
2
2
 
3
3
  root to: 'notees#index'
4
4
 
5
- get 'new' => 'notees#index'
6
- get 'edit/:id' => 'notees#index'
7
- get 'category' => 'notees#index'
8
- get 'image' => 'notees#index'
9
- get 'user' => 'notees#index'
10
- get 'user/new' => 'notees#index'
11
- get 'user/edit/:id' => 'notees#index'
5
+ get 'new' => 'notees#index'
6
+ get 'edit/:id' => 'notees#index'
7
+ get 'categories' => 'notees#index'
8
+ get 'images' => 'notees#index'
9
+ get 'comments' => 'notees#index'
10
+ get 'users' => 'notees#index'
11
+ get 'users/new' => 'notees#index'
12
+ get 'users/edit/:id' => 'notees#index'
12
13
 
13
- post 'secret_published' => 'notees#secret_published'
14
+ # post 'secret_published' => 'notees#secret_published'
14
15
  resources :tokens, only: [:new, :create, :destroy]
15
16
 
16
17
  scope :api, { format: 'json' } do
@@ -19,6 +20,7 @@ Notee::Engine.routes.draw do
19
20
  resources :images, only: [:index, :show, :create, :destroy]
20
21
  resources :categories, only: [:index, :show, :create, :update, :destroy]
21
22
  resources :statuses, only: [:index, :show]
22
- resources :comments, only: [:show, :create]
23
+ resources :comments, only: [:index, :show, :create, :update, :delete]
24
+ resources :roles, only: [:index, :show]
23
25
  end
24
26
  end
@@ -6,7 +6,6 @@ class CreateNoteeUsers < ActiveRecord::Migration
6
6
  t.string :encrypted_password, null: false
7
7
  t.text :profile
8
8
  t.string :profile_img
9
- t.text :sns
10
9
  t.integer :role, null: false
11
10
 
12
11
  t.timestamps null: false
@@ -5,14 +5,26 @@ module Notee
5
5
  :notee_id,
6
6
  :notee_password,
7
7
  :recaptcha_key,
8
- :recaptcha_secret_key
8
+ :recaptcha_secret_key,
9
+ :blog_meta,
10
+ :google_analytics
9
11
  ].freeze
10
12
 
13
+ # root-user
11
14
  DEFAULT_NOTEE_ID = nil
12
15
  DEFAULT_NOTEE_PASSWORD = nil
16
+
17
+ # recaptcha
13
18
  DEFAULT_RECAPTCHA_KEY = nil
14
19
  DEFAULT_RECAPTCHA_SECRET_KEY = nil
15
20
 
21
+ # blog
22
+ DEFAULT_BLOG_META = nil
23
+
24
+ # google-analytics
25
+ DEFAULT_GOOGLE_ANALYTICS = nil
26
+
27
+
16
28
  attr_accessor *VALID_OPTIONS_KEY
17
29
 
18
30
  def configure
@@ -28,6 +40,8 @@ module Notee
28
40
  self.notee_password = DEFAULT_NOTEE_PASSWORD
29
41
  self.recaptcha_key = DEFAULT_RECAPTCHA_KEY
30
42
  self.recaptcha_secret_key = DEFAULT_RECAPTCHA_SECRET_KEY
43
+ self.blog_meta = DEFAULT_BLOG_META
44
+ self.google_analytics = DEFAULT_GOOGLE_ANALYTICS
31
45
  end
32
46
 
33
47
  end
@@ -73,6 +73,15 @@ module Notee
73
73
  @notee_comments = Notee::Post.where(post_id: id)
74
74
  @notee_comments
75
75
  end
76
+
77
+ def notee_set_meta_by_post(post)
78
+ return {
79
+ title: post.title,
80
+ keyword: post.seo_keyword,
81
+ description: post.seo_description,
82
+ og_image: request.base_url + "/notee/" + post.thumbnail.content
83
+ }
84
+ end
76
85
  end
77
86
  end
78
87
  end
@@ -21,7 +21,12 @@ module Notee
21
21
  end
22
22
 
23
23
  def notee_comment_box(id)
24
- return render :partial => "notee/partials/comment_box.html.erb", :locals => { :post_id => id, :recaptcha => Notee.recaptcha_key}
24
+ return render :partial => "notee/partials/comment_box.html.erb", :locals => { :post_id => id, :recaptcha => Notee.recaptcha_key }
25
+ end
26
+
27
+ def notee_meta(meta)
28
+ meta ||= Notee.blog_meta
29
+ return render :partial => "notee/partials/meta.html.erb", :locals => { :meta => meta, :ga => Notee.google_analytics }
25
30
  end
26
31
  end
27
32
  end
@@ -1,3 +1,3 @@
1
1
  module Notee
2
- VERSION = "0.3.7"
2
+ VERSION = "0.4.0"
3
3
  end
@@ -60,10 +60,26 @@ require 'notee'
60
60
  # Recommendation using .env for manage id & password
61
61
 
62
62
  Notee.configure do |config|
63
+
64
+ # root-user
63
65
  config.notee_id = "hogehoge"
64
66
  config.notee_password = "hogehoge"
67
+
68
+ # recaptcha
65
69
  config.recaptcha_key = "hogehoge"
66
70
  config.recaptcha_secret_key = "hogehoge"
71
+
72
+ # blog
73
+ config.blog_meta = {
74
+ title: "title",
75
+ url: "http://hogehoge.com",
76
+ keyword: "hoge, hoge, hoge",
77
+ description: "hogehoge",
78
+ og_image: "http://hogehoge.com/hoge.png"
79
+ }
80
+
81
+ # google-analytics
82
+ config.google_analytics = "hogehogehogehoge"
67
83
  end
68
84
  EOC
69
85
 
@@ -3022,3 +3022,66 @@ rack (2.0.1) lib/rack/handler/webrick.rb:86:in `service'
3022
3022
  Rendered /Users/takujifunao/Hack/01_mine/02_lib/notee/vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.0/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (198.4ms)
3023
3023
  DEPRECATION WARNING: ActiveRecord::Base.raise_in_transactional_callbacks= is deprecated, has no effect and will be removed without replacement. (called from load at /Users/takujifunao/Hack/01_mine/02_lib/notee/vendor/bundle/ruby/2.3.0/bin/rake:23)
3024
3024
  DEPRECATION WARNING: ActiveRecord::Base.raise_in_transactional_callbacks= is deprecated, has no effect and will be removed without replacement. (called from load at /Users/takujifunao/Hack/01_mine/02_lib/notee/vendor/bundle/ruby/2.3.0/bin/rake:23)
3025
+ DEPRECATION WARNING: ActiveRecord::Base.raise_in_transactional_callbacks= is deprecated, has no effect and will be removed without replacement. (called from <module:ActiveRecord> at /Users/takujifunao/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/annotate-2.7.1/lib/annotate/active_record_patch.rb:4)
3026
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
3027
+ DEPRECATION WARNING: ActiveRecord::Base.raise_in_transactional_callbacks= is deprecated, has no effect and will be removed without replacement. (called from <module:ActiveRecord> at /Users/takujifunao/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/annotate-2.7.1/lib/annotate/active_record_patch.rb:4)
3028
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
3029
+ DEPRECATION WARNING: ActiveRecord::Base.raise_in_transactional_callbacks= is deprecated, has no effect and will be removed without replacement. (called from <module:ActiveRecord> at /Users/takujifunao/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/annotate-2.7.1/lib/annotate/active_record_patch.rb:4)
3030
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
3031
+ DEPRECATION WARNING: ActiveRecord::Base.raise_in_transactional_callbacks= is deprecated, has no effect and will be removed without replacement. (called from <module:ActiveRecord> at /Users/takujifunao/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/annotate-2.7.1/lib/annotate/active_record_patch.rb:4)
3032
+ DEPRECATION WARNING: ActiveRecord::Base.raise_in_transactional_callbacks= is deprecated, has no effect and will be removed without replacement. (called from <module:ActiveRecord> at /Users/takujifunao/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/annotate-2.7.1/lib/annotate/active_record_patch.rb:4)
3033
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
3034
+ DEPRECATION WARNING: ActiveRecord::Base.raise_in_transactional_callbacks= is deprecated, has no effect and will be removed without replacement. (called from <module:ActiveRecord> at /Users/takujifunao/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/annotate-2.7.1/lib/annotate/active_record_patch.rb:4)
3035
+ DEPRECATION WARNING: ActiveRecord::Base.raise_in_transactional_callbacks= is deprecated, has no effect and will be removed without replacement. (called from <module:ActiveRecord> at /Users/takujifunao/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/annotate-2.7.1/lib/annotate/active_record_patch.rb:4)
3036
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
3037
+ DEPRECATION WARNING: ActiveRecord::Base.raise_in_transactional_callbacks= is deprecated, has no effect and will be removed without replacement. (called from <module:ActiveRecord> at /Users/takujifunao/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/annotate-2.7.1/lib/annotate/active_record_patch.rb:4)
3038
+ DEPRECATION WARNING: ActiveRecord::Base.raise_in_transactional_callbacks= is deprecated, has no effect and will be removed without replacement. (called from <module:ActiveRecord> at /Users/takujifunao/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/annotate-2.7.1/lib/annotate/active_record_patch.rb:4)
3039
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
3040
+ DEPRECATION WARNING: ActiveRecord::Base.raise_in_transactional_callbacks= is deprecated, has no effect and will be removed without replacement. (called from <module:ActiveRecord> at /Users/takujifunao/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/annotate-2.7.1/lib/annotate/active_record_patch.rb:4)
3041
+ DEPRECATION WARNING: ActiveRecord::Base.raise_in_transactional_callbacks= is deprecated, has no effect and will be removed without replacement. (called from <module:ActiveRecord> at /Users/takujifunao/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/annotate-2.7.1/lib/annotate/active_record_patch.rb:4)
3042
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
3043
+ DEPRECATION WARNING: ActiveRecord::Base.raise_in_transactional_callbacks= is deprecated, has no effect and will be removed without replacement. (called from <module:ActiveRecord> at /Users/takujifunao/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/annotate-2.7.1/lib/annotate/active_record_patch.rb:4)
3044
+ DEPRECATION WARNING: ActiveRecord::Base.raise_in_transactional_callbacks= is deprecated, has no effect and will be removed without replacement. (called from <module:ActiveRecord> at /Users/takujifunao/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/annotate-2.7.1/lib/annotate/active_record_patch.rb:4)
3045
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
3046
+ DEPRECATION WARNING: ActiveRecord::Base.raise_in_transactional_callbacks= is deprecated, has no effect and will be removed without replacement. (called from <module:ActiveRecord> at /Users/takujifunao/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/annotate-2.7.1/lib/annotate/active_record_patch.rb:4)
3047
+ DEPRECATION WARNING: ActiveRecord::Base.raise_in_transactional_callbacks= is deprecated, has no effect and will be removed without replacement. (called from <module:ActiveRecord> at /Users/takujifunao/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/annotate-2.7.1/lib/annotate/active_record_patch.rb:4)
3048
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
3049
+ DEPRECATION WARNING: ActiveRecord::Base.raise_in_transactional_callbacks= is deprecated, has no effect and will be removed without replacement. (called from <module:ActiveRecord> at /Users/takujifunao/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/annotate-2.7.1/lib/annotate/active_record_patch.rb:4)
3050
+ DEPRECATION WARNING: ActiveRecord::Base.raise_in_transactional_callbacks= is deprecated, has no effect and will be removed without replacement. (called from <module:ActiveRecord> at /Users/takujifunao/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/annotate-2.7.1/lib/annotate/active_record_patch.rb:4)
3051
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
3052
+ DEPRECATION WARNING: ActiveRecord::Base.raise_in_transactional_callbacks= is deprecated, has no effect and will be removed without replacement. (called from <module:ActiveRecord> at /Users/takujifunao/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/annotate-2.7.1/lib/annotate/active_record_patch.rb:4)
3053
+ DEPRECATION WARNING: ActiveRecord::Base.raise_in_transactional_callbacks= is deprecated, has no effect and will be removed without replacement. (called from <module:ActiveRecord> at /Users/takujifunao/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/annotate-2.7.1/lib/annotate/active_record_patch.rb:4)
3054
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
3055
+ DEPRECATION WARNING: ActiveRecord::Base.raise_in_transactional_callbacks= is deprecated, has no effect and will be removed without replacement. (called from <module:ActiveRecord> at /Users/takujifunao/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/annotate-2.7.1/lib/annotate/active_record_patch.rb:4)
3056
+ DEPRECATION WARNING: ActiveRecord::Base.raise_in_transactional_callbacks= is deprecated, has no effect and will be removed without replacement. (called from <module:ActiveRecord> at /Users/takujifunao/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/annotate-2.7.1/lib/annotate/active_record_patch.rb:4)
3057
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
3058
+ DEPRECATION WARNING: ActiveRecord::Base.raise_in_transactional_callbacks= is deprecated, has no effect and will be removed without replacement. (called from <module:ActiveRecord> at /Users/takujifunao/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/annotate-2.7.1/lib/annotate/active_record_patch.rb:4)
3059
+ DEPRECATION WARNING: ActiveRecord::Base.raise_in_transactional_callbacks= is deprecated, has no effect and will be removed without replacement. (called from <module:ActiveRecord> at /Users/takujifunao/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/annotate-2.7.1/lib/annotate/active_record_patch.rb:4)
3060
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
3061
+ DEPRECATION WARNING: ActiveRecord::Base.raise_in_transactional_callbacks= is deprecated, has no effect and will be removed without replacement. (called from <module:ActiveRecord> at /Users/takujifunao/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/annotate-2.7.1/lib/annotate/active_record_patch.rb:4)
3062
+ DEPRECATION WARNING: ActiveRecord::Base.raise_in_transactional_callbacks= is deprecated, has no effect and will be removed without replacement. (called from <module:ActiveRecord> at /Users/takujifunao/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/annotate-2.7.1/lib/annotate/active_record_patch.rb:4)
3063
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
3064
+ DEPRECATION WARNING: ActiveRecord::Base.raise_in_transactional_callbacks= is deprecated, has no effect and will be removed without replacement. (called from <module:ActiveRecord> at /Users/takujifunao/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/annotate-2.7.1/lib/annotate/active_record_patch.rb:4)
3065
+ DEPRECATION WARNING: ActiveRecord::Base.raise_in_transactional_callbacks= is deprecated, has no effect and will be removed without replacement. (called from <module:ActiveRecord> at /Users/takujifunao/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/annotate-2.7.1/lib/annotate/active_record_patch.rb:4)
3066
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
3067
+ DEPRECATION WARNING: ActiveRecord::Base.raise_in_transactional_callbacks= is deprecated, has no effect and will be removed without replacement. (called from <module:ActiveRecord> at /Users/takujifunao/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/annotate-2.7.1/lib/annotate/active_record_patch.rb:4)
3068
+ DEPRECATION WARNING: ActiveRecord::Base.raise_in_transactional_callbacks= is deprecated, has no effect and will be removed without replacement. (called from <module:ActiveRecord> at /Users/takujifunao/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/annotate-2.7.1/lib/annotate/active_record_patch.rb:4)
3069
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
3070
+ DEPRECATION WARNING: ActiveRecord::Base.raise_in_transactional_callbacks= is deprecated, has no effect and will be removed without replacement. (called from <module:ActiveRecord> at /Users/takujifunao/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/annotate-2.7.1/lib/annotate/active_record_patch.rb:4)
3071
+ DEPRECATION WARNING: ActiveRecord::Base.raise_in_transactional_callbacks= is deprecated, has no effect and will be removed without replacement. (called from <module:ActiveRecord> at /Users/takujifunao/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/annotate-2.7.1/lib/annotate/active_record_patch.rb:4)
3072
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
3073
+ DEPRECATION WARNING: ActiveRecord::Base.raise_in_transactional_callbacks= is deprecated, has no effect and will be removed without replacement. (called from <module:ActiveRecord> at /Users/takujifunao/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/annotate-2.7.1/lib/annotate/active_record_patch.rb:4)
3074
+ DEPRECATION WARNING: ActiveRecord::Base.raise_in_transactional_callbacks= is deprecated, has no effect and will be removed without replacement. (called from <module:ActiveRecord> at /Users/takujifunao/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/annotate-2.7.1/lib/annotate/active_record_patch.rb:4)
3075
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
3076
+ DEPRECATION WARNING: ActiveRecord::Base.raise_in_transactional_callbacks= is deprecated, has no effect and will be removed without replacement. (called from <module:ActiveRecord> at /Users/takujifunao/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/annotate-2.7.1/lib/annotate/active_record_patch.rb:4)
3077
+ DEPRECATION WARNING: ActiveRecord::Base.raise_in_transactional_callbacks= is deprecated, has no effect and will be removed without replacement. (called from <module:ActiveRecord> at /Users/takujifunao/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/annotate-2.7.1/lib/annotate/active_record_patch.rb:4)
3078
+ ActiveRecord::SchemaMigration Load (1.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
3079
+ DEPRECATION WARNING: ActiveRecord::Base.raise_in_transactional_callbacks= is deprecated, has no effect and will be removed without replacement. (called from <module:ActiveRecord> at /Users/takujifunao/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/annotate-2.7.1/lib/annotate/active_record_patch.rb:4)
3080
+ DEPRECATION WARNING: ActiveRecord::Base.raise_in_transactional_callbacks= is deprecated, has no effect and will be removed without replacement. (called from <module:ActiveRecord> at /Users/takujifunao/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/annotate-2.7.1/lib/annotate/active_record_patch.rb:4)
3081
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
3082
+ DEPRECATION WARNING: ActiveRecord::Base.raise_in_transactional_callbacks= is deprecated, has no effect and will be removed without replacement. (called from <module:ActiveRecord> at /Users/takujifunao/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/annotate-2.7.1/lib/annotate/active_record_patch.rb:4)
3083
+ DEPRECATION WARNING: ActiveRecord::Base.raise_in_transactional_callbacks= is deprecated, has no effect and will be removed without replacement. (called from <module:ActiveRecord> at /Users/takujifunao/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/annotate-2.7.1/lib/annotate/active_record_patch.rb:4)
3084
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
3085
+ DEPRECATION WARNING: ActiveRecord::Base.raise_in_transactional_callbacks= is deprecated, has no effect and will be removed without replacement. (called from <module:ActiveRecord> at /Users/takujifunao/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/annotate-2.7.1/lib/annotate/active_record_patch.rb:4)
3086
+ DEPRECATION WARNING: ActiveRecord::Base.raise_in_transactional_callbacks= is deprecated, has no effect and will be removed without replacement. (called from <module:ActiveRecord> at /Users/takujifunao/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/annotate-2.7.1/lib/annotate/active_record_patch.rb:4)
3087
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: notee
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - takujifunao
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-16 00:00:00.000000000 Z
11
+ date: 2016-10-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rb-readline
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: sqlite3
57
71
  requirement: !ruby/object:Gem::Requirement
@@ -146,14 +160,12 @@ files:
146
160
  - app/controllers/notee/images_controller.rb
147
161
  - app/controllers/notee/notees_controller.rb
148
162
  - app/controllers/notee/posts_controller.rb
163
+ - app/controllers/notee/roles_controller.rb
149
164
  - app/controllers/notee/statuses_controller.rb
150
165
  - app/controllers/notee/tokens_controller.rb
151
166
  - app/controllers/notee/users_controller.rb
152
167
  - app/helpers/notee/application_helper.rb
153
- - app/helpers/notee/categories_helper.rb
154
- - app/helpers/notee/comments_helper.rb
155
- - app/helpers/notee/images_helper.rb
156
- - app/helpers/notee/posts_helper.rb
168
+ - app/models/notee/application_record.rb
157
169
  - app/models/notee/category.rb
158
170
  - app/models/notee/comment.rb
159
171
  - app/models/notee/image.rb
@@ -163,6 +175,7 @@ files:
163
175
  - app/views/layouts/notee/application.html.erb
164
176
  - app/views/notee/notees/index.html.erb
165
177
  - app/views/notee/partials/_comment_box.html.erb
178
+ - app/views/notee/partials/_meta.html.erb
166
179
  - app/views/notee/partials/_secret_published.html.erb
167
180
  - app/views/notee/tokens/new.html.erb
168
181
  - config/routes.rb
@@ -386,7 +399,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
386
399
  version: '0'
387
400
  requirements: []
388
401
  rubyforge_project:
389
- rubygems_version: 2.5.1
402
+ rubygems_version: 2.6.7
390
403
  signing_key:
391
404
  specification_version: 4
392
405
  summary: notee is very simple blogging gem.
@@ -575,4 +588,3 @@ test_files:
575
588
  - test/models/notee/user_test.rb
576
589
  - test/notee_test.rb
577
590
  - test/test_helper.rb
578
- has_rdoc: