ruby_raider 0.9.9 → 1.0.0

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: 0c66fd583de74af317246ea90218c7306cf0c6d3c82536ce106efaed591cf359
4
+ data.tar.gz: 962f0deece2ca62183537b042de8d647cea406fe80804439ce52b4bf784e1b60
5
5
  SHA512:
6
- metadata.gz: a7f87036e926bb3eabd765c579f3989b2e5708466971c792ad0d7bc0720c7ffa4d49f13215e030f609837d4a6f25ec48dab41986ee9af28c42b2e9866f2ffb19
7
- data.tar.gz: e42b960f8402c911fdc62a7fb5fa93d9878e9aadda4cc545f8e134631dcf35759122484dabd7db59dfb861f078abb336da56c4bc6edc41e95cd9eebd3ef84cce
6
+ metadata.gz: 45f9eac127c36eda63c6e8eeda1a57dd47e0a6b3abb460c26898efeb193c5f989db422e2c2c9220c247bd8864783d7fc67adb19c3b12055138ed69936d0f3330
7
+ data.tar.gz: f94466c813b35eae664643e8fa3124f00d301ad29ebd9e644328e80cb5c1eafe7d20ef04c06a718955c3b85e4824fde35589de4f2fb0e832a50793255dc83b6a
@@ -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
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.0
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.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Agustin Pequeno