arli 0.3.2 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +13 -0
- data/README.md +48 -46
- data/arli.gemspec +2 -1
- data/exe/arli +0 -1
- data/lib/arli.rb +28 -27
- data/lib/arli/arli_file.rb +51 -8
- data/lib/arli/cli.rb +87 -67
- data/lib/arli/commands/base.rb +17 -66
- data/lib/arli/commands/install.rb +13 -25
- data/lib/arli/commands/search.rb +9 -8
- data/lib/arli/config.rb +16 -0
- data/lib/arli/errors.rb +19 -0
- data/lib/arli/installer.rb +100 -0
- data/lib/arli/installers/zip_file.rb +61 -0
- data/lib/arli/logger.rb +13 -0
- data/lib/arli/parser.rb +63 -40
- data/lib/arli/version.rb +1 -1
- metadata +26 -9
- data/lib/arli/commands/update.rb +0 -26
- data/lib/arli/configuration.rb +0 -4
data/lib/arli/version.rb
CHANGED
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: arli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Konstantin Gredeskoul
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-11-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: arduino-library
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 0.4.1
|
20
20
|
type: :runtime
|
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:
|
26
|
+
version: 0.4.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: colored2
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -94,6 +94,20 @@ dependencies:
|
|
94
94
|
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: archive-zip
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
97
111
|
- !ruby/object:Gem::Dependency
|
98
112
|
name: simplecov
|
99
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -191,8 +205,11 @@ files:
|
|
191
205
|
- lib/arli/commands/base.rb
|
192
206
|
- lib/arli/commands/install.rb
|
193
207
|
- lib/arli/commands/search.rb
|
194
|
-
- lib/arli/
|
195
|
-
- lib/arli/
|
208
|
+
- lib/arli/config.rb
|
209
|
+
- lib/arli/errors.rb
|
210
|
+
- lib/arli/installer.rb
|
211
|
+
- lib/arli/installers/zip_file.rb
|
212
|
+
- lib/arli/logger.rb
|
196
213
|
- lib/arli/parser.rb
|
197
214
|
- lib/arli/version.rb
|
198
215
|
homepage: https://github.com/kigster/arli
|
@@ -215,7 +232,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
215
232
|
version: '0'
|
216
233
|
requirements: []
|
217
234
|
rubyforge_project:
|
218
|
-
rubygems_version: 2.6.
|
235
|
+
rubygems_version: 2.6.13
|
219
236
|
signing_key:
|
220
237
|
specification_version: 4
|
221
238
|
summary: This is a command-line installer of any number of dependent Github projects,
|
data/lib/arli/commands/update.rb
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
require 'json'
|
2
|
-
require 'fileutils'
|
3
|
-
require 'open3'
|
4
|
-
require 'arli'
|
5
|
-
require_relative 'base'
|
6
|
-
|
7
|
-
module Arli
|
8
|
-
module Commands
|
9
|
-
class Update < Base
|
10
|
-
def initialize(options)
|
11
|
-
super(options)
|
12
|
-
self.arli_file = options[:arli_file] ? ArliFile.new(options[:arli_file]) : ArliFile.new
|
13
|
-
end
|
14
|
-
|
15
|
-
def run
|
16
|
-
all_dependencies(command, 'name')
|
17
|
-
end
|
18
|
-
|
19
|
-
def update_dependency(name)
|
20
|
-
cmd = "cd #{name} && git pull --rebase 2>&1"
|
21
|
-
yield(cmd) if block_given?
|
22
|
-
cmd
|
23
|
-
end
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
data/lib/arli/configuration.rb
DELETED