ruby_raider 0.9.8 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/commands/plugin_commands.rb +1 -1
- data/lib/plugin/plugin.rb +6 -10
- 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: 0c66fd583de74af317246ea90218c7306cf0c6d3c82536ce106efaed591cf359
|
4
|
+
data.tar.gz: 962f0deece2ca62183537b042de8d647cea406fe80804439ce52b4bf784e1b60
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 45f9eac127c36eda63c6e8eeda1a57dd47e0a6b3abb460c26898efeb193c5f989db422e2c2c9220c247bd8864783d7fc67adb19c3b12055138ed69936d0f3330
|
7
|
+
data.tar.gz: f94466c813b35eae664643e8fa3124f00d301ad29ebd9e644328e80cb5c1eafe7d20ef04c06a718955c3b85e4824fde35589de4f2fb0e832a50793255dc83b6a
|
data/lib/plugin/plugin.rb
CHANGED
@@ -29,11 +29,7 @@ module RubyRaider
|
|
29
29
|
|
30
30
|
def installed_plugins
|
31
31
|
parsed_gemfile = File.readlines('Gemfile').map { |line| line.sub('gem ', '').strip.delete("'") }
|
32
|
-
parsed_gemfile.select { |line|
|
33
|
-
end
|
34
|
-
|
35
|
-
def available_plugins
|
36
|
-
plugins['plugins']
|
32
|
+
parsed_gemfile.select { |line| plugins.include?(line) }
|
37
33
|
end
|
38
34
|
|
39
35
|
def installed?(plugin_name)
|
@@ -41,13 +37,17 @@ module RubyRaider
|
|
41
37
|
end
|
42
38
|
|
43
39
|
def available?(plugin_name)
|
44
|
-
|
40
|
+
plugins.include?(plugin_name)
|
45
41
|
end
|
46
42
|
|
47
43
|
def camelize(str)
|
48
44
|
str.split('_').collect(&:capitalize).join
|
49
45
|
end
|
50
46
|
|
47
|
+
def plugins
|
48
|
+
['great_axe']
|
49
|
+
end
|
50
|
+
|
51
51
|
private
|
52
52
|
|
53
53
|
def add_plugin_to_gemfile(plugin_name)
|
@@ -66,10 +66,6 @@ module RubyRaider
|
|
66
66
|
installed_plugins.count == 1
|
67
67
|
end
|
68
68
|
|
69
|
-
def plugins
|
70
|
-
@plugins ||= YAML.load_file(File.expand_path('plugins.yml'))
|
71
|
-
end
|
72
|
-
|
73
69
|
def read_gemfile
|
74
70
|
File.readlines('Gemfile')
|
75
71
|
end
|
data/lib/version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
1.0.0
|