Class: Importer
- Inherits:
-
Object
- Object
- Importer
- Defined in:
- lib/rails_contributor_genders/importer.rb
Constant Summary collapse
- CONTRIBUTORS_URL =
"http://contributors.rubyonrails.org/".freeze
Instance Method Summary collapse
Instance Method Details
#contributor_names ⇒ Object
7 8 9 10 11 |
# File 'lib/rails_contributor_genders/importer.rb', line 7 def contributor_names doc = Nokogiri::HTML(open(CONTRIBUTORS_URL)) name_elements = doc.css("td.contributor-name") name_elements.map(&:text) end |