remote_ruby 0.1.2 → 0.1.3
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 +5 -5
- data/.gitlab-ci.yml +38 -0
- data/Gemfile +0 -1
- data/lib/remote_ruby/compiler.rb +3 -0
- data/lib/remote_ruby/execution_context.rb +1 -0
- data/lib/remote_ruby/locals_extractor.rb +1 -0
- data/lib/remote_ruby/version.rb +1 -1
- data/remote_ruby.gemspec +1 -5
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 4ca4ae0f79adc6808a812e4e602e6f494ea18cf6
|
4
|
+
data.tar.gz: 5f2c4d145537c60a31d7993ba1460d90804edf76
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 19fefa7fa66cfb83d57985c048ca73201c62c86149dcda365333349da2d452ba722ca662a78b9f3e7873f8e45219f0ae40a236585673f022fcdda6fd2a8e8f3f
|
7
|
+
data.tar.gz: aae7df487861b0cc0185e2df02c767ccd9e980a158aeeaf73c01edd909b5801bc213a414c1073b10e3fe58cd0a7d8e85d30d14b0089621f4c7849ef5e7eac7bb
|
data/.gitlab-ci.yml
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
variables:
|
2
|
+
BUNDLE_APP_CONFIG: '.bundle'
|
3
|
+
|
4
|
+
stages:
|
5
|
+
- build
|
6
|
+
- lint
|
7
|
+
- test
|
8
|
+
|
9
|
+
cache:
|
10
|
+
key: ${CI_COMMIT_REF_SLUG}
|
11
|
+
paths:
|
12
|
+
- vendor/bundle/
|
13
|
+
- .bundle/
|
14
|
+
|
15
|
+
bundle:
|
16
|
+
stage: build
|
17
|
+
script:
|
18
|
+
- bundle config --local path vendor/bundle
|
19
|
+
- bundle config --local jobs $(nproc)
|
20
|
+
- bundle config --local with development test
|
21
|
+
- bundle install
|
22
|
+
- bundle env
|
23
|
+
- ls -la
|
24
|
+
|
25
|
+
rubocop:
|
26
|
+
stage: lint
|
27
|
+
script:
|
28
|
+
- ls -la
|
29
|
+
- ls -la vendor/bundle/ruby/*/gems
|
30
|
+
- bundle exec rubocop
|
31
|
+
dependencies:
|
32
|
+
- bundle
|
33
|
+
|
34
|
+
rspec:
|
35
|
+
stage: test
|
36
|
+
script: bundle exec rspec
|
37
|
+
dependencies:
|
38
|
+
- bundle
|
data/Gemfile
CHANGED
data/lib/remote_ruby/compiler.rb
CHANGED
@@ -18,6 +18,7 @@ module RemoteRuby
|
|
18
18
|
|
19
19
|
def compiled_code
|
20
20
|
return @compiled_code if @compiled_code
|
21
|
+
|
21
22
|
template_file =
|
22
23
|
::RemoteRuby.lib_path('remote_ruby/code_templates/compiler/main.rb.erb')
|
23
24
|
template = ERB.new(File.read(template_file))
|
@@ -26,11 +27,13 @@ module RemoteRuby
|
|
26
27
|
|
27
28
|
def client_locals_base64
|
28
29
|
return @client_locals_base64 if @client_locals_base64
|
30
|
+
|
29
31
|
@client_locals_base64 = {}
|
30
32
|
|
31
33
|
client_locals.each do |name, data|
|
32
34
|
base64_data = process_local(name, data)
|
33
35
|
next if base64_data.nil?
|
36
|
+
|
34
37
|
@client_locals_base64[name] = base64_data
|
35
38
|
end
|
36
39
|
|
data/lib/remote_ruby/version.rb
CHANGED
data/remote_ruby.gemspec
CHANGED
@@ -23,9 +23,5 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.add_runtime_dependency 'colorize', '~> 0.8'
|
24
24
|
spec.add_runtime_dependency 'method_source', '~> 0.9'
|
25
25
|
spec.add_runtime_dependency 'parser', '~> 2.5'
|
26
|
-
|
27
|
-
spec.add_runtime_dependency 'unparser', '~> 0.4.2'
|
28
|
-
else
|
29
|
-
spec.add_runtime_dependency 'unparser', '~> 0.2.6'
|
30
|
-
end
|
26
|
+
spec.add_runtime_dependency 'unparser', '~> 0.2.6'
|
31
27
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: remote_ruby
|
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
|
- Nikita Chernukhin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-02-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colorize
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.
|
61
|
+
version: 0.2.6
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0.
|
68
|
+
version: 0.2.6
|
69
69
|
description: Execute Ruby code on the remote servers from local Ruby script.
|
70
70
|
email:
|
71
71
|
- nuinuhin@gmail.com
|
@@ -74,6 +74,7 @@ extensions: []
|
|
74
74
|
extra_rdoc_files: []
|
75
75
|
files:
|
76
76
|
- ".gitignore"
|
77
|
+
- ".gitlab-ci.yml"
|
77
78
|
- ".rspec"
|
78
79
|
- ".rubocop.yml"
|
79
80
|
- ".travis.yml"
|
@@ -120,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
120
121
|
version: '0'
|
121
122
|
requirements: []
|
122
123
|
rubyforge_project:
|
123
|
-
rubygems_version: 2.
|
124
|
+
rubygems_version: 2.4.5.1
|
124
125
|
signing_key:
|
125
126
|
specification_version: 4
|
126
127
|
summary: Execute Ruby code on the remote servers.
|