ruby_raider 0.9.9 → 1.0.1
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/generators/templates/common/gemfile.tt +1 -1
- data/lib/plugin/plugin.rb +6 -10
- data/lib/version +1 -1
- data/ruby_raider.gemspec +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: 057157ebe82e5e0926a7a24eff9a600f7f0fc998e2284a03ce562280cd6c8a0f
|
4
|
+
data.tar.gz: 6f86a8e645279b836d7ab8cd5bc665d811f8934c31256f369ae9bf6622192a3b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0611d5e7f9ce2303b3be175fdfdd9a3de947630ecff8827ac2129946556e97d4215555fb4b9a50be2d4949784045ea9f90a25738f71775e455287a362d2d1668
|
7
|
+
data.tar.gz: 1bf0f23483cf6281c5f66b689914b8b26c48830ce5ca0936c83e8053ccc49571db385539d01abbc393536759f316c7edc4b4181df6f9d619f1ec1c3a4185585e
|
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.1
|
data/ruby_raider.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
|
|
10
10
|
s.homepage = 'https://github.com/RubyRaider/ruby_raider'
|
11
11
|
s.license = 'MIT'
|
12
12
|
s.required_ruby_version = '>= 3.1.0'
|
13
|
-
s.files = `git ls-files -z`.split("\x0")
|
13
|
+
s.files = `git ls-files -z`.split("\x0")
|
14
14
|
s.bindir = 'bin'
|
15
15
|
s.executables << 'raider'
|
16
16
|
s.add_development_dependency 'rake', '~> 13.0.6'
|