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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4afb65a5b87dbbbd8203f5e4e10c1647b7db80513e88049c36fa0c454e8df7e2
4
- data.tar.gz: 516a734bc9cfe0801a20b39a007cac0a7125e035d009bdfd95d4fc2f4e6bd9e6
3
+ metadata.gz: 0c66fd583de74af317246ea90218c7306cf0c6d3c82536ce106efaed591cf359
4
+ data.tar.gz: 962f0deece2ca62183537b042de8d647cea406fe80804439ce52b4bf784e1b60
5
5
  SHA512:
6
- metadata.gz: 6a4c714abc6fb36e1f115a92e6dfc75a71d7491ca7afad6dba4b9a97a109134984f88d3577ae5375e037407273646ce65d1dd907acdb02d8fe4841a9d892ef45
7
- data.tar.gz: fb2c37c5fff2a89bfc4f0314942afab7879dfa3eed392b3ca2b6dc6e4cb6dc45980af4a03f4711703cf91386308f43dcf481aa21e3e7c7743f5a49b719dc4781
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.8
1
+ 1.0.0
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.8
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Agustin Pequeno