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 +4 -4
- data/lib/generators/templates/common/gemfile.tt +1 -1
- data/lib/plugin/plugin.rb +2 -0
- data/lib/version +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a7e1ec6ab47d77bbaf9c4ae1a80d95e654beee05c8f4a17c9ddae5ad8ddde322
|
4
|
+
data.tar.gz: dbdf3dbd2f4765a520f82f9370ac0ae9aa8b896a4d3283005f15d18f4eed7dc9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94a00ae0f789ce71cf24264973c9686908a7873754b04f9badea0193d40a947103363c7138ad9d1423d8340f28d453b4cfc2dc05fef08c3494dfa957d241834b
|
7
|
+
data.tar.gz: 04aedff969426005f7527819bfefe0e0aa0a6dbe0291e6c3f81e04a5b42a1eb0ebc078dea9215e5ecb0d579f960a47fb93a149e5c274976595f7002c6dc6a1b5
|
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.
|
1
|
+
1.0.4
|