async_block 0.1.1 → 0.1.2

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: 4d70c1e318e02f7736120722c8ddbc30f9a56e6e942fae325d1e91b12e4247d5
4
- data.tar.gz: f99cf81d5070831b83d94a0f8d0697379e45ee22c67a0bb2a4013f33ebb334f1
3
+ metadata.gz: 653357932c36a0a35677593156bed71d5863900fce4cfcab1749506655eaa69c
4
+ data.tar.gz: 1607504b955041872c48c1480b447c94f5f4c2a41abf15c3b8a732da28c6ef1d
5
5
  SHA512:
6
- metadata.gz: e82800cefee5fa047163b798bae63b235fea5de4bbb52e418a66bc04c15e1fe56ae4327e92f0b5b905ca5d7a5023f7237551524a1e5a40a10c0a7464e62926f0
7
- data.tar.gz: 8b5d737d3d3a2fba34224579db48fb6550ca60b40e44ede72992d512de63ebe0a641c8597735eab3fcba8faef037e844b12c654db47a1d80321dbdb74fe758ec
6
+ metadata.gz: b249f6e5f400423cae008e87199ffadf5f2b55ac0fc715c1a467914be74a32bd7c4b617bd7fea68a3008c23db5662c3d9804f896d7dc3714854ff8dda2569452
7
+ data.tar.gz: d41663c31c7851a9804f3502d6b826e2244f1fe4d70c36f0c02752ba212d34bb5491a6794f208f768b4fd8c1062d7ba938527885699d7877e1a64805c46a16d3
data/async_block.gemspec CHANGED
@@ -36,7 +36,7 @@ Gem::Specification.new do |spec|
36
36
 
37
37
  # Uncomment to register a new dependency of your gem
38
38
  spec.add_dependency 'activesupport', ['>= 3.0', '< 8.0']
39
- spec.add_dependency 'ruby2ruby', '~> 2.5.0'
39
+ spec.add_dependency 'method_source', '~> 1.0.0'
40
40
 
41
41
  # For more information and examples about making a new gem, check out our
42
42
  # guide at: https://bundler.io/guides/creating_gem.html
@@ -1,8 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'rubygems'
4
- require 'ruby2ruby'
5
- require 'ruby_parser'
4
+ require 'method_source'
6
5
 
7
6
  module AsyncBlock
8
7
  # BlockToSource - converts code block to source string
@@ -23,7 +22,7 @@ module AsyncBlock
23
22
  private
24
23
 
25
24
  def block_to_str
26
- @block&.to_ruby
25
+ @block&.source
27
26
  end
28
27
  end
29
28
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AsyncBlock
4
- VERSION = '0.1.1'
4
+ VERSION = '0.1.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: async_block
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adittya Dey
@@ -31,19 +31,19 @@ dependencies:
31
31
  - !ruby/object:Gem::Version
32
32
  version: '8.0'
33
33
  - !ruby/object:Gem::Dependency
34
- name: ruby2ruby
34
+ name: method_source
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: 2.5.0
39
+ version: 1.0.0
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: 2.5.0
46
+ version: 1.0.0
47
47
  description: |-
48
48
  A usable code block for rails to run your code asynchronusly, "\
49
49
  "this will help in preventing writing of new jobs to run smaller pieces of code.