codelines 0.3 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ec8dc371afa9a60d9883bcd466ea9d1df1a0e4bf
4
- data.tar.gz: 9d6360a85febc79a8892acd01b118081fc62bafe
3
+ metadata.gz: 843063fa2f42788a70dd042bbaae91e8d4038bf1
4
+ data.tar.gz: ece47f3f3b937bc2f93e36f4b3e4ca411c83f1c5
5
5
  SHA512:
6
- metadata.gz: 940c5a6fe214dec266e49dedb258d3217cc0b9de01ee68f87ce5f498848c336ed9c35a3c5400ab2591f50078755039171ea63db7c85d566a17f386122c1de296
7
- data.tar.gz: da79974e92a1e4aa55413cad33c01a5998bb54b68e5e1db850a47d449b4da8af000270664f814295502255b2437ad0803104d30575dbcc80b2290622a44ddaa7
6
+ metadata.gz: a612e0f96991dff5067dfb85647fc457d4074be60df2730235634ce733c371ce76bc13eecbe5745eb449fa06ab4328a18cf3d8118a52c93cefc9cdea51b3fceb
7
+ data.tar.gz: cdfcc5e1ca1ab8da5dc2e55c157b3d27daa94a084601a5784a1eeb39a97796f476707726aaa9a82d089c7e05b9a57a678030023c9fec007c0f336579f339a95c
@@ -13,6 +13,13 @@ module CodeLines
13
13
  class << self
14
14
  attr_reader :adapter
15
15
 
16
+ def adapters
17
+ Dir.glob(File.expand_path('../adapters/*.rb', __FILE__)).sort { |a, b| b <=> a }.map { |f|
18
+ f = File.basename(f).split(?.)[0]
19
+ }
20
+ end
21
+ alias_method :list, :adapters
22
+
16
23
  def setup(adapter, profile)
17
24
  @adapter = adapter.new profile
18
25
  end
@@ -10,6 +10,6 @@
10
10
 
11
11
  module CodeLines
12
12
 
13
- VERSION = '0.3'
13
+ VERSION = '0.3.1'
14
14
 
15
15
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codelines
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.3'
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Giovanni Capuano