Browse Source

Rename YAML

remotes/origin/middleman
Pjotr Prins 6 years ago
parent
commit
846816fab7
6 changed files with 9 additions and 9 deletions
  1. +1
    -0
      bin/fetch-geminfo.rb
  2. +1
    -1
      bin/fetch-src.rb
  3. +1
    -1
      bin/rss.rb
  4. +2
    -2
      features/rss-feature.rb
  5. +4
    -5
      scripts/create_website.sh
  6. +0
    -0
      test/data/biogems.yaml

+ 1
- 0
bin/fetch-geminfo.rb View File

@@ -27,6 +27,7 @@ is_biogems = !is_rubygems
ADD = %w{ bio ruby-ensembl-api genfrag eutils dna_sequence_aligner intermine intermine-bio scaffolder biodiversity goruby sequenceserver
}

$stderr.print "# testing!!\n" if is_testing
print "# testing!!\n" if is_testing
print "# rubygems!!\n" if is_rubygems
print "# Generated by #{__FILE__} #{Time.now}\n"


+ 1
- 1
bin/fetch-src.rb View File

@@ -3,7 +3,7 @@
require 'yaml'
DIR='pkg'

fn = './var/bio-projects.yaml'
fn = './var/biogems.yaml'

list = YAML::load(File.read(fn))



+ 1
- 1
bin/rss.rb View File

@@ -8,7 +8,7 @@ require_relative '../lib/biogems/rss.rb'
is_testing = ARGV.index('--test')

# First fetch all information
feed = generate_biogems_rss_feed "./data/bio-projects.yaml", "./etc/blogs.yaml", 50, is_testing
feed = generate_biogems_rss_feed "./data/biogems.yaml", "./etc/blogs.yaml", 50, is_testing

site_news = []
feed.items.each do | item |


+ 2
- 2
features/rss-feature.rb View File

@@ -8,7 +8,7 @@ Given /^I have one rss blog feed configured$/ do
end

When /^I parse the rss feed$/ do
@rss_feed = generate_biogems_rss_feed "test/data/bio-projects.yaml", "test/data/rss/rss-blogs.yaml"
@rss_feed = generate_biogems_rss_feed "test/data/biogems.yaml", "test/data/rss/rss-blogs.yaml"
end

Then /^the resulting rss feed should have the same contents as the rss feed$/ do
@@ -23,7 +23,7 @@ Given /^I have one atom blog feed configured$/ do
end

When /^I parse the atom feed$/ do
@atom_feed = generate_biogems_rss_feed "test/data/bio-projects.yaml", "test/data/rss/atom-blogs.yaml"
@atom_feed = generate_biogems_rss_feed "test/data/biogems.yaml", "test/data/rss/atom-blogs.yaml"
end

Then /^the resulting rss feed should have the same contents as the atom feed$/ do


+ 4
- 5
scripts/create_website.sh View File

@@ -12,7 +12,6 @@
#
#


# Helper functions

## GitHub stats
@@ -34,10 +33,10 @@ print_github_limits
[ $? -ne 0 ] && exit 1

# curl http://github.com/api/v2/json/issues/list/pjotrp/bioruby-affy/open
echo "Fetching data/bio-projects.yaml"
bundle exec ./bin/fetch-geminfo.rb $* > ./data/bio-projects.yaml1
echo "Fetching data/biogems.yaml"
bundle exec ./bin/fetch-geminfo.rb $* > ./data/biogems.yaml1
[ $? -ne 0 ] && exit 1
sed -e 's/!!null//g' < ./data/bio-projects.yaml1 > ./data/bio-projects.yaml
sed -e 's/!!null//g' < ./data/biogems.yaml1 > ./data/biogems.yaml
[ $? -ne 0 ] && exit 1
echo "Fetching data/ruby-projects.yaml"
# bundle exec ./bin/fetch-geminfo.rb $* --rubygems > ./data/ruby-projects.yaml1
@@ -45,7 +44,7 @@ echo "Fetching data/ruby-projects.yaml"

# Create RSS feed for others to use
echo "Fetching data/rss.xml"
bundle exec ./bin/rss.rb > ./source/rss.xml
bundle exec ./bin/rss.rb $* > ./source/rss.xml
[ $? -ne 0 ] && exit 1

# Generate site


test/data/bio-projects.yaml → test/data/biogems.yaml View File


Loading…
Cancel
Save