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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1e0fb2cf2225dd489d84591307016aaf6ef3ab76ebe9dbd2ea9c7043f981c7d8
4
- data.tar.gz: 7f4c12fc8879581f0385215faf282c48308ffb4809ee37e63ce70cd8c31bcc6a
3
+ metadata.gz: 057157ebe82e5e0926a7a24eff9a600f7f0fc998e2284a03ce562280cd6c8a0f
4
+ data.tar.gz: 6f86a8e645279b836d7ab8cd5bc665d811f8934c31256f369ae9bf6622192a3b
5
5
  SHA512:
6
- metadata.gz: a7f87036e926bb3eabd765c579f3989b2e5708466971c792ad0d7bc0720c7ffa4d49f13215e030f609837d4a6f25ec48dab41986ee9af28c42b2e9866f2ffb19
7
- data.tar.gz: e42b960f8402c911fdc62a7fb5fa93d9878e9aadda4cc545f8e134631dcf35759122484dabd7db59dfb861f078abb336da56c4bc6edc41e95cd9eebd3ef84cce
6
+ metadata.gz: 0611d5e7f9ce2303b3be175fdfdd9a3de947630ecff8827ac2129946556e97d4215555fb4b9a50be2d4949784045ea9f90a25738f71775e455287a362d2d1668
7
+ data.tar.gz: 1bf0f23483cf6281c5f66b689914b8b26c48830ce5ca0936c83e8053ccc49571db385539d01abbc393536759f316c7edc4b4181df6f9d619f1ec1c3a4185585e
@@ -28,7 +28,7 @@ module RubyRaider
28
28
  desc 'list', 'Lists all the available plugin'
29
29
 
30
30
  def list
31
- pp Plugin.available_plugins
31
+ pp Plugin.plugins
32
32
  end
33
33
  end
34
34
  end
@@ -29,5 +29,5 @@ gem 'rubocop'
29
29
  <%- if rspec? -%>
30
30
  gem 'rubocop-rspec'
31
31
  <%- end -%>
32
- gem 'ruby_raider', '~> 0.9.0'
32
+ gem 'ruby_raider', '~> 1.0.1'
33
33
  <%= ERB.new(File.read(File.expand_path('./partials/automation_gems.tt', __dir__))).result(binding).strip! %>
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| available_plugins.include?(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
- available_plugins.include?(plugin_name)
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.9.9
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") + ['plugins.yml']
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'
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: 0.9.9
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Agustin Pequeno