Sha256: f63b11ded419091aacd19684b9bba0d0bcfc575851eec6ea55ddf8bbe1b24ac6

Contents?: true

Size: 673 Bytes

Versions: 68

Compression:

Stored size: 673 Bytes

Contents

require 'nokogiri'
require_relative '../asf'

module ASF
  class Podlings
    include Enumerable

    def each
      incubator_content = ASF::SVN['asf/incubator/public/trunk/content']
      podlings = Nokogiri::XML(File.read("#{incubator_content}/podlings.xml"))
      podlings.search('podling').map do |node|
        data = {
          name: node['name'],
          status: node['status'],
          description: node.at('description').text,
          mentors: node.search('mentor').map {|mentor| mentor['username']}
        }
        data[:champion] = node.at('champion')['availid'] if node.at('champion')
        yield node['resource'], data
      end
    end
  end
end

Version data entries

68 entries across 68 versions & 1 rubygems

Version Path
whimsy-asf-0.0.28 lib/whimsy/asf/podlings.rb
whimsy-asf-0.0.27 lib/whimsy/asf/podlings.rb
whimsy-asf-0.0.26 lib/whimsy/asf/podlings.rb
whimsy-asf-0.0.25 lib/whimsy/asf/podlings.rb
whimsy-asf-0.0.24 lib/whimsy/asf/podlings.rb
whimsy-asf-0.0.23 lib/whimsy/asf/podlings.rb
whimsy-asf-0.0.22 lib/whimsy/asf/podlings.rb
whimsy-asf-0.0.21 lib/whimsy/asf/podlings.rb
whimsy-asf-0.0.20 lib/whimsy/asf/podlings.rb
whimsy-asf-0.0.19 lib/whimsy/asf/podlings.rb
whimsy-asf-0.0.18 lib/whimsy/asf/podlings.rb
whimsy-asf-0.0.17 lib/whimsy/asf/podlings.rb
whimsy-asf-0.0.16 lib/whimsy/asf/podlings.rb
whimsy-asf-0.0.15 lib/whimsy/asf/podlings.rb
whimsy-asf-0.0.14 lib/whimsy/asf/podlings.rb
whimsy-asf-0.0.13 lib/whimsy/asf/podlings.rb
whimsy-asf-0.0.12 lib/whimsy/asf/podlings.rb
whimsy-asf-0.0.11 lib/whimsy/asf/podlings.rb
whimsy-asf-0.0.10 lib/whimsy/asf/podlings.rb
whimsy-asf-0.0.9 lib/whimsy/asf/podlings.rb