rsgem 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rsgem/gem.rb +5 -0
- data/lib/rsgem/tasks/bundle_dependencies.rb +25 -0
- data/lib/rsgem/version.rb +1 -1
- data/lib/rsgem.rb +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a421d0c4843d47689c5ed6abfee7a62bb80faf138511f040aa66e71b6bc0dead
|
4
|
+
data.tar.gz: 23e38c5b9906a6ee8b154dba9457b3b33d0e230c967bfa51c28f641ca80774b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 57b35be169c76d2033c7665a9a1b6b6ec4ef2ccca72860f2215c00a877364c6878a74e3e0094c867124d741582f2c6767b5a7abdc72e4f0b7294831a7899a1a3
|
7
|
+
data.tar.gz: acef7494cdb8735d7ea885b399925b2545b999896c5a5d03e5d6d2245059f1d25460e0513c07f1590f14c1f7a1b2dbb4b602e16dfde0158c32b0ba298befb7ae
|
data/lib/rsgem/gem.rb
CHANGED
@@ -18,6 +18,7 @@ module RSGem
|
|
18
18
|
add_ci_provider
|
19
19
|
clean_gemspec
|
20
20
|
set_bundled_files
|
21
|
+
bundle_dependencies
|
21
22
|
run_rubocop
|
22
23
|
end
|
23
24
|
|
@@ -63,6 +64,10 @@ module RSGem
|
|
63
64
|
Tasks::RunRubocop.new(context: context).run
|
64
65
|
end
|
65
66
|
|
67
|
+
def bundle_dependencies
|
68
|
+
Tasks::BundleDependencies.new(context: context).run
|
69
|
+
end
|
70
|
+
|
66
71
|
def set_bundled_files
|
67
72
|
Tasks::SetBundledFiles.new(context: context).set
|
68
73
|
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module RSGem
|
4
|
+
module Tasks
|
5
|
+
class BundleDependencies
|
6
|
+
attr_reader :context, :output
|
7
|
+
|
8
|
+
def initialize(context:)
|
9
|
+
@context = context
|
10
|
+
end
|
11
|
+
|
12
|
+
def run
|
13
|
+
puts "\tRunning bundle install:"
|
14
|
+
@output = `cd #{context.folder_path} && bundle`
|
15
|
+
puts "\t\t#{last_line}"
|
16
|
+
end
|
17
|
+
|
18
|
+
private
|
19
|
+
|
20
|
+
def last_line
|
21
|
+
@output.split("\n").last
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
data/lib/rsgem/version.rb
CHANGED
data/lib/rsgem.rb
CHANGED
@@ -11,6 +11,7 @@ require 'rsgem/tasks/add_dependency'
|
|
11
11
|
require 'rsgem/tasks/clean_gemfile'
|
12
12
|
require 'rsgem/tasks/ignore_gemfile_lock'
|
13
13
|
require 'rsgem/tasks/clean_gemspec'
|
14
|
+
require 'rsgem/tasks/bundle_dependencies'
|
14
15
|
require 'rsgem/tasks/run_rubocop'
|
15
16
|
require 'rsgem/tasks/set_bundled_files'
|
16
17
|
require 'rsgem/dependencies/base'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rsgem
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juan Manuel Ramallo
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-04-
|
11
|
+
date: 2020-04-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-cli
|
@@ -145,6 +145,7 @@ files:
|
|
145
145
|
- lib/rsgem/support/travis.yml
|
146
146
|
- lib/rsgem/tasks/add_code_analysis.rb
|
147
147
|
- lib/rsgem/tasks/add_dependency.rb
|
148
|
+
- lib/rsgem/tasks/bundle_dependencies.rb
|
148
149
|
- lib/rsgem/tasks/clean_gemfile.rb
|
149
150
|
- lib/rsgem/tasks/clean_gemspec.rb
|
150
151
|
- lib/rsgem/tasks/ignore_gemfile_lock.rb
|