Skip to content

Commit

Permalink
Merge pull request #14 from pikesley/text-plain
Browse files Browse the repository at this point in the history
Text plain
  • Loading branch information
Sam Pikesley committed Dec 2, 2013
2 parents 29440bf + 69a3a9c commit b1444f9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
10 changes: 5 additions & 5 deletions features/pokrovsky.feature
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ GIT_AUTHOR_DATE=2013-02-22
"""
GIT_AUTHOR_DATE=2013-04-17
"""
# And the response should not contain this text:
# """
#GIT_AUTHOR_DATE=2013-06-17
# """
And the response should not contain this text:
"""
GIT_AUTHOR_DATE=2013-06-17
"""
And the response should contain this text:
"""
GIT_AUTHOR_DATE=2013-09-09
"""
"""
2 changes: 1 addition & 1 deletion lib/pokrovsky.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class PokrovskyService < Sinatra::Base
@h = Pokrovsky::Historiograph.new c.body
@h.user = params[:user]
@h.repo = params[:repo]
@h.to_s
halt 200, {'Content-Type' => 'text/plain'}, @h.to_s
end

run! if app_file == $0
Expand Down
8 changes: 3 additions & 5 deletions lib/pokrovsky/historiograph.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,12 @@ def length
end

def to_s
s = "" "
#!/bin/bash
s = """#!/bin/bash
git init %s
cd %s
touch README.md
git add README.md
" "" % [
""" % [
@repo,
@repo,
@repo
Expand All @@ -62,8 +61,7 @@ def to_s
s << day.to_s
end

s << """
git remote add origin git@github.com:%s/%s.git
s << """git remote add origin git@github.com:%s/%s.git
git pull
git push -u origin master
""" % [
Expand Down

0 comments on commit b1444f9

Please sign in to comment.