anycable-rails 0.4.6 → 0.4.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
2
  SHA1:
3
- metadata.gz: c82adc592d1e855684907386b5db10ffd030c9db
4
- data.tar.gz: db2ea38fabf346c44c025f8be5e808b3a165178f
3
+ metadata.gz: e7b9447d2754976500f75cf5544947ed086b3259
4
+ data.tar.gz: 306070a5d753988544515a876a271ddf7d1032cd
5
5
  SHA512:
6
- metadata.gz: d5524fc251514a9031c39a33256726320b70f118f6df663dc5e6b5985c91b7ca8a6bac4ac11f72aa401e5fd158958d836c160e934343e37efac2179300be68b0
7
- data.tar.gz: 2b96158722685924aae559450d90ac3bb884e2598090314534f99acca75bf3bb6831bd606f9d8198479eea26bf1369d9e5a3c743983b66bb5cf0fc45d2a57cae
6
+ metadata.gz: 2b3cdb613732eeec3f2a6c3c1bea1f14ac9cd4fd2037a026075dc0ddd41b6150abeb21bcc4fdd31f5af1f09a9860b7af60fc1a7de2485a7cff9aca97d335e713
7
+ data.tar.gz: 022af2cb8de1cb703c91e0f7fb8312098b40af99bf819b73088108822121a5c473001a2f5c10f9c6e802fcfb46c4bcb718ae7628fa16c3eb622d3c3558713e92
@@ -5,11 +5,14 @@ AllCops:
5
5
  - 'lib/**/*.rake'
6
6
  - 'spec/**/*.rb'
7
7
  Exclude:
8
+ - '*.gemspec'
8
9
  - 'bin/**/*'
9
10
  - 'spec/dummy/**/*'
10
11
  - 'tmp/**/*'
11
12
  - 'bench/**/*'
12
13
  - 'lib/anycable/rpc/**/*'
14
+ - 'Rakefile'
15
+ - 'Gemfile'
13
16
  DisplayCopNames: true
14
17
  StyleGuideCopsOnly: false
15
18
  TargetRubyVersion: 2.3
@@ -34,6 +37,12 @@ Style/BlockDelimiters:
34
37
  Exclude:
35
38
  - 'spec/**/*.rb'
36
39
 
40
+ Style/PercentLiteralDelimeters:
41
+ Enabled: false
42
+
43
+ Lint/ScriptPermission:
44
+ Enabled: false
45
+
37
46
  Lint/AmbiguousRegexpLiteral:
38
47
  Enabled: false
39
48
 
@@ -1,5 +1,9 @@
1
1
  # Change log
2
2
 
3
+ ## 0.4.7
4
+
5
+ - Minor fixes. ([@palkan][])
6
+
3
7
  ## 0.4.6
4
8
 
5
9
  - Disable mounting default Action Cable server when AnyCable is loaded. ([@palkan][])
@@ -1,4 +1,5 @@
1
1
  # coding: utf-8
2
+
2
3
  lib = File.expand_path('../lib', __FILE__)
3
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
5
  require 'anycable/rails/version'
@@ -1,6 +1,6 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem 'rails', '~> 5.0.0'
4
- gem 'rspec-rails', '~> 3.5.0'
3
+ gem 'rails', '~> 5.0'
4
+ gem 'rspec-rails', '~> 3.5'
5
5
 
6
6
  gemspec path: '..'
@@ -1,2 +1,3 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require "anycable/rails"
@@ -1,6 +1,5 @@
1
1
  # frozen_string_literal: true
2
- lib = File.expand_path("../../../../anycable/lib", __FILE__)
3
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
2
+
4
3
  require "anycable"
5
4
  require "anycable/rails/version"
6
5
 
@@ -17,7 +16,7 @@ module Anycable
17
16
  @logger.warn "Tagged logger is not supported by AnyCable. Skip"
18
17
  end
19
18
 
20
- %i( debug info warn error fatal unknown ).each do |severity|
19
+ %i[debug info warn error fatal unknown].each do |severity|
21
20
  define_method(severity) do |message|
22
21
  @logger.send severity, message
23
22
  end
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require "action_cable/channel"
3
4
 
4
5
  module ActionCable
@@ -66,8 +66,6 @@ module ActionCable
66
66
  else
67
67
  false
68
68
  end
69
- rescue Exception # rubocop:disable Lint/RescueException
70
- false
71
69
  end
72
70
  # rubocop:enable Metrics/MethodLength
73
71
 
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require "action_cable"
3
4
 
4
5
  module ActionCable
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  module Anycable
3
4
  module Rails
4
5
  module ActiveRecord
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  module Anycable
3
4
  module Rails
4
5
  class Engine < ::Rails::Engine # :nodoc:
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  module Anycable
3
4
  module Refinements
4
5
  module Subscriptions # :nodoc:
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  module Anycable
3
4
  module Rails
4
- VERSION = "0.4.6"
5
+ VERSION = "0.4.7"
5
6
  end
6
7
  end
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require "rails/generators/base"
3
4
 
4
5
  class AnycableGenerator < Rails::Generators::Base # :nodoc:
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  # frozen_string_literal: true
3
+
3
4
  require ::File.expand_path('../../config/environment', __FILE__)
4
5
  require "anycable-rails"
5
6
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: anycable-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.6
4
+ version: 0.4.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - palkan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-23 00:00:00.000000000 Z
11
+ date: 2017-09-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails