ruby_raider 1.0.2 → 1.0.4

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: c4b79cdbe23fe8d98b28291b0efa3a5e7fc48c45c93eea5cf4cf2bf292a95510
4
- data.tar.gz: cf8b06ae6e67de9613fa4be51b3eb0bb28b71739a503cbfabfc6a32c79ebb2a1
3
+ metadata.gz: a7e1ec6ab47d77bbaf9c4ae1a80d95e654beee05c8f4a17c9ddae5ad8ddde322
4
+ data.tar.gz: dbdf3dbd2f4765a520f82f9370ac0ae9aa8b896a4d3283005f15d18f4eed7dc9
5
5
  SHA512:
6
- metadata.gz: 0a79ed5939da9fd789e6c3e67c2873c45b1222019640ba65283655d68286e9a96c8dbc8391aa1c18ad6a444870c894e57c769fc0ec74ff1106542a7d28d93875
7
- data.tar.gz: 7c9c7ca6b505e3b3bb0b5717d9618bf635ce0bf25eab9d21e577046f19ca1bfdf538f5500d5dcd669acdd4efcf3c0bb73081c82c3b7c110422409ff18a8b4b64
6
+ metadata.gz: 94a00ae0f789ce71cf24264973c9686908a7873754b04f9badea0193d40a947103363c7138ad9d1423d8340f28d453b4cfc2dc05fef08c3494dfa957d241834b
7
+ data.tar.gz: 04aedff969426005f7527819bfefe0e0aa0a6dbe0291e6c3f81e04a5b42a1eb0ebc078dea9215e5ecb0d579f960a47fb93a149e5c274976595f7002c6dc6a1b5
@@ -29,5 +29,5 @@ gem 'rubocop'
29
29
  <%- if rspec? -%>
30
30
  gem 'rubocop-rspec'
31
31
  <%- end -%>
32
- gem 'ruby_raider', '~> 1.0.1'
32
+ gem 'ruby_raider', '~> 1.0.3'
33
33
  <%= ERB.new(File.read(File.expand_path('./partials/automation_gems.tt', __dir__))).result(binding).strip! %>
data/lib/plugin/plugin.rb CHANGED
@@ -7,6 +7,7 @@ module RubyRaider
7
7
  module Plugin
8
8
  class << self
9
9
  def add_plugin(plugin_name)
10
+ return gemfile_guard unless File.exist?('Gemfile')
10
11
  return pp 'The plugin was not found' unless available?(plugin_name)
11
12
  return pp 'The plugin is already installed' if installed?(plugin_name)
12
13
 
@@ -18,6 +19,7 @@ module RubyRaider
18
19
  end
19
20
 
20
21
  def delete_plugin(plugin_name)
22
+ return gemfile_guard unless File.exist?('Gemfile')
21
23
  return 'The plugin is not installed' unless installed_plugins.include?(plugin_name)
22
24
 
23
25
  pp "Deleting #{plugin_name}..."
data/lib/version CHANGED
@@ -1 +1 @@
1
- 1.0.2
1
+ 1.0.4
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_raider
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Agustin Pequeno