async_block 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/async_block.gemspec +2 -1
- data/lib/async_block/block_source_service.rb +4 -2
- data/lib/async_block/version.rb +1 -1
- metadata +18 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb600d9aea0dc5aa6c6bc9aeb579e413b15e4409dfaf47b6b8dc0257395238f1
|
4
|
+
data.tar.gz: ac2c4a35d19e83f0077a722abf3af695472c89137f8f065dc70f5e8dd27fca6b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba243c163cf41d552e7c6c2233f2f625f894e9e7d77ca5e4a397b50fbb02d3184e2e771c4941bde3b1aabb1f9746255b98632cda30e0435ca4a8e7d77eeae0b7
|
7
|
+
data.tar.gz: 5d05946b1c14fafc4b9ddc693bf0116830bee87b66ece564e936228c868ac0c97cc2603c62a2ca928f100eda4d45a7bc9c72aaa72b7af8af90c4b332ecddee04
|
data/async_block.gemspec
CHANGED
@@ -36,7 +36,8 @@ 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 '
|
39
|
+
spec.add_dependency 'ParseTree', '~> 3.0'
|
40
|
+
spec.add_dependency 'ruby2ruby', '~> 2.5.0'
|
40
41
|
|
41
42
|
# For more information and examples about making a new gem, check out our
|
42
43
|
# guide at: https://bundler.io/guides/creating_gem.html
|
@@ -1,7 +1,9 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require 'rubygems'
|
4
|
-
require '
|
4
|
+
require 'parse_tree'
|
5
|
+
require 'parse_tree_extensions'
|
6
|
+
require 'ruby2ruby'
|
5
7
|
|
6
8
|
module AsyncBlock
|
7
9
|
# BlockToSource - converts code block to source string
|
@@ -22,7 +24,7 @@ module AsyncBlock
|
|
22
24
|
private
|
23
25
|
|
24
26
|
def block_to_str
|
25
|
-
@block&.
|
27
|
+
@block&.to_ruby
|
26
28
|
end
|
27
29
|
end
|
28
30
|
|
data/lib/async_block/version.rb
CHANGED
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.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adittya Dey
|
@@ -31,19 +31,33 @@ dependencies:
|
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: '8.0'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
|
-
name:
|
34
|
+
name: ParseTree
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
37
|
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version:
|
39
|
+
version: '3.0'
|
40
|
+
type: :runtime
|
41
|
+
prerelease: false
|
42
|
+
version_requirements: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - "~>"
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '3.0'
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: ruby2ruby
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - "~>"
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: 2.5.0
|
40
54
|
type: :runtime
|
41
55
|
prerelease: false
|
42
56
|
version_requirements: !ruby/object:Gem::Requirement
|
43
57
|
requirements:
|
44
58
|
- - "~>"
|
45
59
|
- !ruby/object:Gem::Version
|
46
|
-
version:
|
60
|
+
version: 2.5.0
|
47
61
|
description: |-
|
48
62
|
A usable code block for rails to run your code asynchronusly, "\
|
49
63
|
"this will help in preventing writing of new jobs to run smaller pieces of code.
|