msgr 1.1.0.1.b263 → 1.1.0.1.b285

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: eff341143664febfd04c2903dfff7b6c8049c13251e3e7e0af29a4054aa69953
4
- data.tar.gz: ed47f28cc7c85b24a0e2717ec57547ca74977feb160179545da403938d0141d3
3
+ metadata.gz: 42a8d52e6d7a46d3892ed8caff4eebe89c6706f82bdffc0321840ef784100fae
4
+ data.tar.gz: d31ff2b38df028829cbd974ae0d20b6d0f023f8a81379bb7c2b2dbc635ab7e51
5
5
  SHA512:
6
- metadata.gz: 9b5eb1751efb3ec38fedbf3a895e67bbda0261b05db0879dc0ca937db77ac7d01b8c884847543348d6f49344cb86d1a7383be246dd856a51eaca35a833d5d486
7
- data.tar.gz: 0e34103f8e60bb13521aa20138994264e309e3ef48d29eb51e54b50f0be1bd007eee2538be69e3ff68a8ad7dd0738725711ed12850c960b540c7c11a37c0954c
6
+ metadata.gz: 239b8ab9f5f93cdf8ce19ea6ccf1cb099d1e265791a8083b6c9c6531612cc86d86048254c33a14b2b97c6f374ed1f12abcbbdf69f079c5844d13df2063a049ff
7
+ data.tar.gz: 12a9446166c815c5978717d7ecf6e74aa4e25dc1c63f2b3490ed6d1cc0d12b127925242fe08a38f5f9ec7f442d5b3162c2fd0f026d37feea0a081f672a3c8c16
data/.rubocop.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  AllCops:
2
- TargetRubyVersion: 2.4
2
+ TargetRubyVersion: 2.3
3
3
 
4
4
 
5
5
  Metrics/BlockLength:
data/.travis.yml CHANGED
@@ -1,9 +1,9 @@
1
1
  dist: xenial
2
2
  language: ruby
3
3
  rvm:
4
- - 2.6.1
5
- - 2.5.3
6
- - 2.4.5
4
+ - 2.6.3
5
+ - 2.5.5
6
+ - 2.4.6
7
7
  - 2.3.8
8
8
  gemfile:
9
9
  - gemfiles/Gemfile.rails-5-2
@@ -13,6 +13,8 @@ gemfile:
13
13
  - gemfiles/Gemfile.rails-master
14
14
  before_install:
15
15
  - sudo apt-get install -qy rabbitmq-server
16
+ - echo yes | rvm gemset delete global
17
+ - gem install bundler -v'~>1.0'
16
18
  script:
17
19
  - bundle exec rake spec:msgr
18
20
  - bundle exec rake spec:integration
@@ -20,15 +22,15 @@ jobs:
20
22
  allow_failures:
21
23
  - gemfile: gemfiles/Gemfile.rails-master
22
24
  exclude:
23
- - rvm: 2.6.1
25
+ - rvm: 2.6.3
24
26
  gemfile: gemfiles/Gemfile.rails-4-2
25
- - rvm: 2.4.5
27
+ - rvm: 2.4.6
26
28
  gemfile: gemfiles/Gemfile.rails-master
27
29
  - rvm: 2.3.8
28
30
  gemfile: gemfiles/Gemfile.rails-master
29
31
  include:
30
32
  - stage: Beta release
31
- rvm: 2.6.1
33
+ rvm: 2.6.3
32
34
  script: echo "Deploy to rubygems.org..."
33
35
  deploy:
34
36
  provider: rubygems
data/Gemfile CHANGED
@@ -7,13 +7,16 @@ group :development, :test do
7
7
  gem 'fuubar'
8
8
  gem 'rake'
9
9
  gem 'rspec', '~> 3.0'
10
- gem 'rubocop', '~> 0.50.0'
10
+ gem 'rubocop', '~> 0.69.0'
11
11
  end
12
12
 
13
13
  group :rails do
14
- gem 'rails', '>= 4.2' unless defined?(NO_RAILS_GEM)
14
+ unless defined?(NO_RAILS_GEM)
15
+ gem 'rails', '>= 4.2'
16
+ gem 'sqlite3', '~> 1.3.6'
17
+ end
18
+
15
19
  gem 'rspec-rails', require: false
16
- gem 'sqlite3', '~> 1.3.6'
17
20
  end
18
21
 
19
22
  # Specify your gem's dependencies in acfs.gemspec
@@ -9,6 +9,6 @@ gem 'activesupport', git: 'https://github.com/rails/rails'
9
9
  gem 'bunny', ENV['BUNNY_VERSION'] if ENV['BUNNY_VERSION']
10
10
 
11
11
  group :rails do
12
- gem 'rails', '>= 4.2', git: 'https://github.com/rails/rails', require: 'rails'
13
- gem 'arel', git: 'https://github.com/rails/arel'
12
+ gem 'rails', '>= 5.2', git: 'https://github.com/rails/rails', require: 'rails'
13
+ gem 'sqlite3', '~> 1.4'
14
14
  end
data/lib/msgr/client.rb CHANGED
@@ -138,7 +138,7 @@ module Msgr
138
138
 
139
139
  def sync_publish(payload, opts)
140
140
  begin
141
- payload = MultiJson.dump(payload)
141
+ payload = JSON.dump(payload)
142
142
  opts[:content_type] ||= 'application/json'
143
143
  rescue
144
144
  opts[:content_type] ||= 'application/text'
@@ -1,7 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'bunny'
4
- require 'multi_json'
5
4
 
6
5
  module Msgr
7
6
  # rubocop:disable Metrics/ClassLength
data/lib/msgr/message.rb CHANGED
@@ -13,7 +13,7 @@ module Msgr
13
13
 
14
14
  # rubocop:disable Style/GuardClause
15
15
  if content_type == 'application/json'
16
- @payload = MultiJson.load(payload)
16
+ @payload = JSON.parse(payload)
17
17
  @payload.symbolize_keys! if @payload.respond_to? :symbolize_keys!
18
18
  end
19
19
  end
data/msgr.gemspec CHANGED
@@ -22,7 +22,6 @@ Gem::Specification.new do |spec|
22
22
 
23
23
  spec.add_dependency 'activesupport'
24
24
  spec.add_dependency 'bunny', '>= 1.4', '< 3.0'
25
- spec.add_dependency 'multi_json'
26
25
 
27
26
  spec.add_development_dependency 'bundler'
28
27
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: msgr
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0.1.b263
4
+ version: 1.1.0.1.b285
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Graichen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-18 00:00:00.000000000 Z
11
+ date: 2019-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -44,20 +44,6 @@ dependencies:
44
44
  - - "<"
45
45
  - !ruby/object:Gem::Version
46
46
  version: '3.0'
47
- - !ruby/object:Gem::Dependency
48
- name: multi_json
49
- requirement: !ruby/object:Gem::Requirement
50
- requirements:
51
- - - ">="
52
- - !ruby/object:Gem::Version
53
- version: '0'
54
- type: :runtime
55
- prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- requirements:
58
- - - ">="
59
- - !ruby/object:Gem::Version
60
- version: '0'
61
47
  - !ruby/object:Gem::Dependency
62
48
  name: bundler
63
49
  requirement: !ruby/object:Gem::Requirement