talkie 0.4.0 → 0.4.1

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: 19391ef511670e2766d436beb451c89f8462a05dcb40c7bcf72cc2355ba966d2
4
- data.tar.gz: a97a9326b6accf256022e17cb44c59150928ea5749fd4d4531298091bee18589
3
+ metadata.gz: 8b44b5f0f44d463227b67cb310e4ef23727b81147d69f693fde787fc94868c74
4
+ data.tar.gz: 94644a2938c0a950065b59d7c7db3916ec42f61e279327d73f34ab78455d7715
5
5
  SHA512:
6
- metadata.gz: '048d1c1fa5250a500d0de6183a63a18d6c57ae4e0a8450102e712cf10d881c85a61e9e3baa23dfbe868a26a7b5db57d3b9abeb3ca270f1e51b06a88d0cf098f7'
7
- data.tar.gz: 2f70533140efb1b44207f31e70e2f8667eb51889f491a0e03d3f1ecca3263ddfb7e65454fc0c3df872e5c1d72e39b94a22ccaae6264a851890ea6f941d96fb1c
6
+ metadata.gz: f09d6a1f46c941f595c2ac044e4399ddefc925f4e579adf5333f3f6034e70ea0f60aa978a601ca062086808473c970d758ee1e8d0a4996feb450b4b15b40d6ef
7
+ data.tar.gz: 578f2ae10a7f3e0c4ed51fb654557f74d2067c9a60832ad3902613caed9bcbe72fb98aabcccc9fa5354e4df20e8f3b06192841c5d56c530eabe19e3f17f35d04
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- talkie (0.4.0)
4
+ talkie (0.4.1)
5
5
  awesome_nested_set (~> 3.1)
6
6
  blueprinter (~> 0.18.0)
7
7
  oj (~> 3.7)
@@ -6,7 +6,9 @@ module Talkie
6
6
 
7
7
  included do
8
8
  delegate :allow?, :comment_form_displayable?, to: :current_permission
9
- helper_method :allow?, :comment_form_displayable?
9
+ if respond_to? :helper_method
10
+ helper_method :allow?, :comment_form_displayable?
11
+ end
10
12
  end
11
13
 
12
14
  protected
@@ -6,7 +6,7 @@ module Talkie
6
6
 
7
7
  initializer 'talkie_helpers.action_controller' do
8
8
  ActiveSupport.on_load :action_controller do
9
- helper Talkie::ApplicationHelper
9
+ ::ActionController::Base.helper Talkie::ApplicationHelper
10
10
  include Talkie::RendererHelper
11
11
  include Talkie::Controller
12
12
  end
@@ -23,7 +23,9 @@ module Talkie
23
23
 
24
24
  included do
25
25
  delegate *DELEGATED_METHODS_TO_COMMENTS_RENDERER, to: :comments_renderer
26
- helper_method *HELPER_METHODS
26
+ if respond_to?(:helper_method)
27
+ helper_method *HELPER_METHODS
28
+ end
27
29
  end
28
30
 
29
31
  protected
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Talkie
4
- VERSION = '0.4.0'
4
+ VERSION = '0.4.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: talkie
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Abraham Kuri
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-09-05 00:00:00.000000000 Z
11
+ date: 2019-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ammeter