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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f0622fb3d78fdde2291dddba96eb5ec6dbebc8be9bf32187a6c76374c48a4428
4
- data.tar.gz: 926cbc4d4003bb8c214a4894def1325b596487e0e73c21a0247df10bbf8ad0dd
3
+ metadata.gz: a421d0c4843d47689c5ed6abfee7a62bb80faf138511f040aa66e71b6bc0dead
4
+ data.tar.gz: 23e38c5b9906a6ee8b154dba9457b3b33d0e230c967bfa51c28f641ca80774b1
5
5
  SHA512:
6
- metadata.gz: 5b429ae00a6454f4f110576467bb556913db2b0c870075bff02d1bb7ad0c41ed0eb8e8158727b31c1bac8e1abc90fdf13a1ead4b8ce858b8d154cf1bfa0a67f3
7
- data.tar.gz: 8b41cbcf3c7e1ef59db574885631201fd85ee745b986b9e4bba2b7aacc55d71edfb2ee2422d66a2faf5c93d22c9ab53932e9fe743e6b950c45d8fbc7a6cbee3c
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
@@ -3,6 +3,6 @@
3
3
  module RSGem
4
4
  MAJOR = 0
5
5
  MINOR = 1
6
- PATCH = 0
6
+ PATCH = 1
7
7
  VERSION = [MAJOR, MINOR, PATCH].join('.')
8
8
  end
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.0
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-14 00:00:00.000000000 Z
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