symbiont-ruby 0.3.0 → 0.4.0

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: e48d7a484f586f984a1ddd7bda0bd93680fd4419109eee75de349d0015709b62
4
- data.tar.gz: 61fa02170bf32d34d2044f4a9275f0b5e9f0738dc77dddb2651f80016e9dc24d
3
+ metadata.gz: 3134075bcc91c1d8126473349c79d93d6d6ff02fb0e3d7344695622221539e22
4
+ data.tar.gz: 0ba4de906696650d8d6ba51f6fa8ae4f4ee31389ca1b927467947630426548eb
5
5
  SHA512:
6
- metadata.gz: 46dc861c18751412b0da582ed8bb105d9d91926d81bdd2ed357317b800a3171fc8279c65bfb4387d998ec51568fe595efcfce5c7ccc07072950647d95089146b
7
- data.tar.gz: 8d09fa861bb32b16ce06e66d62b967d0b970d7f69410c1fba8eb83df6f496bb2bdfd75c886188b614b1a7537ecf263c632a1233ce5901f18daebf8aaf5bb66cd
6
+ metadata.gz: 338430c8b9c662b09b81c4666babcd5c0e6b61cd958cb99a19964a506678f322b7234d6e872e3a2130dad3fe3ef41cddeac6b571f992ce42218d0593725c5fba
7
+ data.tar.gz: 9d41afcb7af1619ea4fe65f131c4331deb89fdc88ab99ec49f9634311c30e9348d69cf0fc83808c2e7678bd41967352c18526fcffc0dfc1c3b1b623b8607b8d5
data/.rspec CHANGED
@@ -1,3 +1,3 @@
1
1
  --color
2
- --format=progress
2
+ --format progress
3
3
  --require spec_helper
@@ -1,125 +1,17 @@
1
- require: rubocop-rspec
1
+ inherit_gem:
2
+ armitage-rubocop:
3
+ - lib/rubocop.general.yml
4
+ - lib/rubocop.rspec.yml
2
5
 
3
6
  AllCops:
4
- DisplayCopNames: true
5
- DisplayStyleGuide: true
6
- TargetRubyVersion: 2.4.3
7
+ TargetRubyVersion: 2.5.3
7
8
  Include:
8
- - lib/**/*
9
- - spec/**/*
10
- Exclude:
11
- - bin/**/*
12
- - Gemfile
9
+ - lib/**/*.rb
10
+ - spec/**/*.rb
11
+ - bin/console
13
12
  - Rakefile
13
+ - Gemfile
14
14
  - symbiont-ruby.gemspec
15
15
 
16
- Style/SingleLineMethods:
17
- Exclude:
18
- - spec/**/*
19
-
20
- Style/RescueModifier:
21
- Exclude:
22
- - spec/**/*
23
-
24
- Style/AsciiComments:
25
- Enabled: false
26
-
27
- Style/Alias:
28
- Enabled: false
29
-
30
- Style/GuardClause:
31
- Enabled: false
32
-
33
- Style/DoubleNegation:
34
- Enabled: false
35
-
36
- Style/Documentation:
37
- Enabled: false
38
-
39
- Style/ClassAndModuleChildren:
40
- Enabled: false
41
-
42
- Style/IfUnlessModifier:
43
- Enabled: false
44
-
45
- Style/EmptyCaseCondition:
46
- Enabled: false
47
-
48
- Style/FrozenStringLiteralComment:
49
- Enabled: true
50
-
51
- Style/InverseMethods:
52
- Enabled: false
53
-
54
- Style/ParallelAssignment:
55
- Enabled: false
56
-
57
- Style/CommentedKeyword:
58
- Enabled: false
59
-
60
- Lint/HandleExceptions:
61
- Enabled: false
62
-
63
- Layout/IndentArray:
64
- Enabled: false
65
-
66
- Lint/AmbiguousRegexpLiteral:
67
- Enabled: false
68
-
69
- Lint/UnusedMethodArgument:
70
- Enabled: false
71
-
72
- Naming/FileName:
73
- Enabled: false
74
-
75
- Naming/VariableNumber:
76
- EnforcedStyle: snake_case
77
-
78
16
  Metrics/LineLength:
79
17
  Max: 120
80
-
81
- Metrics/BlockLength:
82
- Exclude:
83
- - spec/**/*
84
-
85
- Metrics/CyclomaticComplexity:
86
- Max: 10
87
-
88
- Metrics/PerceivedComplexity:
89
- Max: 10
90
-
91
- Metrics/MethodLength:
92
- Max: 20
93
-
94
- RSpec/ContextWording:
95
- Enabled: false
96
-
97
- RSpec/HookArgument:
98
- Enabled: false
99
-
100
- RSpec/NestedGroups:
101
- Max: 6
102
-
103
- RSpec/MessageSpies:
104
- Enabled: false
105
-
106
- RSpec/ExampleLength:
107
- Enabled: false
108
-
109
- RSpec/MultipleExpectations:
110
- Enabled: false
111
-
112
- RSpec/DescribeClass:
113
- Enabled: false
114
-
115
- RSpec/LetSetup:
116
- Enabled: false
117
-
118
- RSpec/AnyInstance:
119
- Enabled: false
120
-
121
- RSpec/MultipleSubjects:
122
- Enabled: false
123
-
124
- RSpec/EmptyLineAfterSubject:
125
- Enabled: false
@@ -1,14 +1,15 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.2.10
4
- - 2.3.7
5
- - 2.4.4
6
- - 2.5.1
3
+ - 2.3.8
4
+ - 2.4.5
5
+ - 2.5.3
7
6
  - ruby-head
8
-
9
7
  sudo: false
10
8
  before_install: gem install bundler
11
9
  cache: bundler
12
10
  script:
13
- - bundle exec rake yardoc
14
- - bundle exec rspec
11
+ - bundle exec rake yardoc
12
+ - bundle exec rspec
13
+ notifications:
14
+ slack:
15
+ secure: cACqAf+YIO1tYOtVf+6APagL8ug04Qm96nfNtEksSY9pmUu4g1Gy9PX4vO/E3CDEtog5OHVr1/iRUMIgNSIV0dGE4TOIL8ll9W2Foxbio/WsUoLQR5+YQdzCWhqaSfH0dhNXDYs8KwtHCyv1MpzFmfCSIZqZ9ajQMdxaCWaoqynult9xljWj8y8re2DLdUoGzWSKev6VL1CJcDC1RqKz42YfEuqPRg99VUKNFYvUotCAKfn5gqOC9g+zKNp9tfHSh9bicgjw9WPC3wL+gHb760eqH9jYPhWGPTz+XHrJlqKLN1oUOF3LLlqgtqmgjaUZq7LEbw9ARJgCYjSRB1Ywpa7VyavBuzByKV5dmcfmAwf2aLVkovzlTN+1qGR3T/qRFnAT6TPPdP7RkaEOvxhIQ/Cxsf4COp1Q0lsleitnOSMRtE6iwG2oYWjSI3PuGC4qkENH+91jyVYoLjE2c5CsQo/l181rt6T0p/uKc4Tze4UOBxryEThDfVsvOlmSrz40tvGrwHDYb4hsNzZBg3QdBjIlN3mxTvU1aZ+Hyj0ZxXDGZhJHP3zvXw0aU/vSN4hfs9FLpCUuTDA5R6vcHC2iQ479L/TWHhDG0t3jdy3vmVcT39zAj9Td2xaeJc90ZJGsLZch3tyY/wUVY4RCzdcD94075GX7EjD2S5+4dG5iSc4=
@@ -1,6 +1,12 @@
1
1
  # Changelog
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
+ ## [0.4.0] 2018-10-25
5
+ ### Changed
6
+ - End of Ruby@2.2;
7
+ - Support for Ruby@2.5.3, Ruby@2.4.5, Ruby@2.3.8;
8
+ - Updated development dependencies;
9
+
4
10
  ## [0.3.0] 2018-06-15
5
11
  ### Added
6
12
  - `Symbiont::Isolator` - proc object isolation layer for delayed invocations;
data/Gemfile CHANGED
@@ -1,6 +1,8 @@
1
- source "https://rubygems.org"
1
+ # frozen_string_literal: true
2
2
 
3
- git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
3
+ source 'https://rubygems.org'
4
+
5
+ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
4
6
 
5
7
  # Specify your gem's dependencies in symbiont-ruby.gemspec
6
8
  gemspec
data/Rakefile CHANGED
@@ -22,7 +22,7 @@ task yardoc: :doc do
22
22
  puts 'YARD COVERAGE [SUCCESS] => 100% documentation coverage!'
23
23
  else
24
24
  failing_code_objects = undocumented_code_objects.map do |code_object|
25
- "- #{code_object.class} => #{code_object.to_s}"
25
+ "- #{code_object.class} => #{code_object}"
26
26
  end.join("\n")
27
27
 
28
28
  abort("YARD COVERAGE [FAILURE] => No documentation found for: \n #{failing_code_objects}")
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
2
3
 
3
4
  require 'bundler/setup'
4
5
  require 'symbiont'
@@ -159,7 +159,7 @@ class Symbiont::Trigger < BasicObject
159
159
  end
160
160
  # :nocov:
161
161
 
162
- # rubocop:disable Layout/SpaceAroundKeyword
162
+ # rubocop:disable Layout/SpaceAroundKeyword, Style/MultipleComparison
163
163
  unless(context_direction == IOK || context_direction == OIK || context_direction == OKI ||
164
164
  context_direction == IKO || context_direction == KOI || context_direction == KIO)
165
165
  ::Kernel.raise(
@@ -168,7 +168,7 @@ class Symbiont::Trigger < BasicObject
168
168
  'You should use one of this: OIK, OKI, IOK, IKO, KOI, KIO.'
169
169
  )
170
170
  end
171
- # rubocop:enable Layout/SpaceAroundKeyword
171
+ # rubocop:enable Layout/SpaceAroundKeyword, Style/MultipleComparison
172
172
 
173
173
  @__closure__ = closure
174
174
  @__context_direction__ = context_direction
@@ -232,7 +232,7 @@ class Symbiont::Trigger < BasicObject
232
232
  #
233
233
  # @api private
234
234
  # @since 0.1.0
235
- def method_missing(method_name, *arguments, &block) # rubocop:disable Style/MethodMissingSuper
235
+ def method_missing(method_name, *arguments, &block)
236
236
  __actual_context__(method_name).send(method_name, *arguments, &block)
237
237
  end
238
238
 
@@ -5,5 +5,5 @@ module Symbiont
5
5
  #
6
6
  # @api public
7
7
  # @since 0.1.0
8
- VERSION = '0.3.0'
8
+ VERSION = '0.4.0'
9
9
  end
@@ -1,11 +1,12 @@
1
1
  # coding: utf-8
2
+ # frozen_string_literal: true
2
3
 
3
- lib = File.expand_path('../lib', __FILE__)
4
+ lib = File.expand_path('lib', __dir__)
4
5
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
6
  require 'symbiont/version'
6
7
 
7
8
  Gem::Specification.new do |spec|
8
- spec.required_ruby_version = '>= 2.2.7'
9
+ spec.required_ruby_version = '>= 2.3.7'
9
10
 
10
11
  spec.name = 'symbiont-ruby'
11
12
  spec.version = Symbiont::VERSION
@@ -21,19 +22,18 @@ Gem::Specification.new do |spec|
21
22
 
22
23
  spec.homepage = 'https://github.com/0exp/symbiont-ruby'
23
24
  spec.license = 'MIT'
24
- spec.bindir = "bin"
25
- spec.require_paths = ["lib"]
25
+ spec.bindir = 'bin'
26
+ spec.require_paths = ['lib']
26
27
 
27
28
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
28
29
  f.match(%r{^(spec|features)/})
29
30
  end
30
31
 
31
- spec.add_development_dependency 'rspec', '~> 3.7'
32
- spec.add_development_dependency 'rubocop', '~> 0.57'
33
- spec.add_development_dependency 'rubocop-rspec', '~> 1.26'
34
- spec.add_development_dependency 'simplecov', '~> 0.15'
35
- spec.add_development_dependency 'simplecov-json', '~> 0.2'
36
- spec.add_development_dependency 'coveralls', '~> 0.7'
32
+ spec.add_development_dependency 'rspec', '~> 3.8'
33
+ spec.add_development_dependency 'simplecov', '~> 0.16'
34
+ spec.add_development_dependency 'coveralls', '~> 0.8'
35
+ spec.add_development_dependency 'armitage-rubocop', '~> 0.10'
36
+
37
37
  spec.add_development_dependency 'pry'
38
38
  spec.add_development_dependency 'rake'
39
39
  spec.add_development_dependency 'bundler'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: symbiont-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rustam Ibragimov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-15 00:00:00.000000000 Z
11
+ date: 2018-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -16,84 +16,56 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '3.7'
19
+ version: '3.8'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '3.7'
27
- - !ruby/object:Gem::Dependency
28
- name: rubocop
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '0.57'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: '0.57'
41
- - !ruby/object:Gem::Dependency
42
- name: rubocop-rspec
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: '1.26'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: '1.26'
26
+ version: '3.8'
55
27
  - !ruby/object:Gem::Dependency
56
28
  name: simplecov
57
29
  requirement: !ruby/object:Gem::Requirement
58
30
  requirements:
59
31
  - - "~>"
60
32
  - !ruby/object:Gem::Version
61
- version: '0.15'
33
+ version: '0.16'
62
34
  type: :development
63
35
  prerelease: false
64
36
  version_requirements: !ruby/object:Gem::Requirement
65
37
  requirements:
66
38
  - - "~>"
67
39
  - !ruby/object:Gem::Version
68
- version: '0.15'
40
+ version: '0.16'
69
41
  - !ruby/object:Gem::Dependency
70
- name: simplecov-json
42
+ name: coveralls
71
43
  requirement: !ruby/object:Gem::Requirement
72
44
  requirements:
73
45
  - - "~>"
74
46
  - !ruby/object:Gem::Version
75
- version: '0.2'
47
+ version: '0.8'
76
48
  type: :development
77
49
  prerelease: false
78
50
  version_requirements: !ruby/object:Gem::Requirement
79
51
  requirements:
80
52
  - - "~>"
81
53
  - !ruby/object:Gem::Version
82
- version: '0.2'
54
+ version: '0.8'
83
55
  - !ruby/object:Gem::Dependency
84
- name: coveralls
56
+ name: armitage-rubocop
85
57
  requirement: !ruby/object:Gem::Requirement
86
58
  requirements:
87
59
  - - "~>"
88
60
  - !ruby/object:Gem::Version
89
- version: '0.7'
61
+ version: '0.10'
90
62
  type: :development
91
63
  prerelease: false
92
64
  version_requirements: !ruby/object:Gem::Requirement
93
65
  requirements:
94
66
  - - "~>"
95
67
  - !ruby/object:Gem::Version
96
- version: '0.7'
68
+ version: '0.10'
97
69
  - !ruby/object:Gem::Dependency
98
70
  name: pry
99
71
  requirement: !ruby/object:Gem::Requirement
@@ -227,7 +199,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
227
199
  requirements:
228
200
  - - ">="
229
201
  - !ruby/object:Gem::Version
230
- version: 2.2.7
202
+ version: 2.3.7
231
203
  required_rubygems_version: !ruby/object:Gem::Requirement
232
204
  requirements:
233
205
  - - ">="