Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

need SCRAPERWIKI_USERNAME env, and add files for bundler

  • Loading branch information...
commit fa40fe1892ea50e2030b6f687c03195745b7c1f7 1 parent b9cc252
@tobynet authored
Showing with 20 additions and 1 deletion.
  1. +1 −0  .gitignore
  2. +2 −0  Gemfile
  3. +14 −0 Gemfile.lock
  4. +3 −1 backup_scraperwiki.rb
View
1  .gitignore
@@ -0,0 +1 @@
+.idea
View
2  Gemfile
@@ -0,0 +1,2 @@
+source :rubygems
+gem "grit", "~> 2.4.1"
View
14 Gemfile.lock
@@ -0,0 +1,14 @@
+GEM
+ remote: http://rubygems.org/
+ specs:
+ diff-lcs (1.1.3)
+ grit (2.4.1)
+ diff-lcs (~> 1.1)
+ mime-types (~> 1.15)
+ mime-types (1.17.2)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ grit (~> 2.4.1)
View
4 backup_scraperwiki.rb
@@ -1,10 +1,12 @@
#! /usr/bin/env ruby
+# -*- encoding: utf-8 -*-
+
require 'rubygems'
require 'json'
require 'open-uri'
require 'grit'
-username = 'henare'
+username = ENV['SCRAPERWIKI_USERNAME'] || raise("SCRAPERWIKI_USERNAME not defined!!!! pls, define it.")
repository = File.dirname(__FILE__)
Please sign in to comment.
Something went wrong with that request. Please try again.