Merge branch 'master' of github.com:diaspora/diaspora
This commit is contained in:
commit
0e2c20d817
8 changed files with 42 additions and 1 deletions
1
Gemfile
1
Gemfile
|
|
@ -45,6 +45,7 @@ group :test, :development do
|
||||||
gem 'factory_girl_rails'
|
gem 'factory_girl_rails'
|
||||||
gem 'ruby-debug19' if RUBY_VERSION.include? "1.9"
|
gem 'ruby-debug19' if RUBY_VERSION.include? "1.9"
|
||||||
gem 'ruby-debug' if RUBY_VERSION.include? "1.8"
|
gem 'ruby-debug' if RUBY_VERSION.include? "1.8"
|
||||||
|
gem 'launchy'
|
||||||
end
|
end
|
||||||
|
|
||||||
group :test do
|
group :test do
|
||||||
|
|
|
||||||
|
|
@ -139,6 +139,7 @@ GEM
|
||||||
childprocess (0.1.3)
|
childprocess (0.1.3)
|
||||||
ffi (~> 0.6.3)
|
ffi (~> 0.6.3)
|
||||||
columnize (0.3.1)
|
columnize (0.3.1)
|
||||||
|
configuration (1.1.0)
|
||||||
crack (0.1.8)
|
crack (0.1.8)
|
||||||
cucumber (0.9.2)
|
cucumber (0.9.2)
|
||||||
builder (~> 2.1.2)
|
builder (~> 2.1.2)
|
||||||
|
|
@ -180,6 +181,9 @@ GEM
|
||||||
i18n (0.4.1)
|
i18n (0.4.1)
|
||||||
json (1.4.6)
|
json (1.4.6)
|
||||||
json_pure (1.4.6)
|
json_pure (1.4.6)
|
||||||
|
launchy (0.3.7)
|
||||||
|
configuration (>= 0.0.5)
|
||||||
|
rake (>= 0.8.1)
|
||||||
linecache (0.43)
|
linecache (0.43)
|
||||||
mail (2.2.7)
|
mail (2.2.7)
|
||||||
activesupport (>= 2.3.6)
|
activesupport (>= 2.3.6)
|
||||||
|
|
@ -308,6 +312,7 @@ DEPENDENCIES
|
||||||
factory_girl_rails
|
factory_girl_rails
|
||||||
haml
|
haml
|
||||||
json
|
json
|
||||||
|
launchy
|
||||||
magent!
|
magent!
|
||||||
mini_fb
|
mini_fb
|
||||||
mini_magick
|
mini_magick
|
||||||
|
|
|
||||||
|
|
@ -4,3 +4,4 @@ end
|
||||||
|
|
||||||
include_recipe "centos::image_magick"
|
include_recipe "centos::image_magick"
|
||||||
include_recipe "centos::mongo_db"
|
include_recipe "centos::mongo_db"
|
||||||
|
include_recipe "common::main"
|
||||||
|
|
|
||||||
|
|
@ -7,5 +7,9 @@ execute "refresh yum" do
|
||||||
end
|
end
|
||||||
|
|
||||||
execute "install mongo" do
|
execute "install mongo" do
|
||||||
command "yum install -y mongo-stable"
|
command "yum install -y mongo-stable-server"
|
||||||
|
end
|
||||||
|
|
||||||
|
execute "make the data directory" do
|
||||||
|
command "mkdir -p /data/db"
|
||||||
end
|
end
|
||||||
|
|
|
||||||
14
chef/cookbooks/common/recipes/daemontools.rb
Normal file
14
chef/cookbooks/common/recipes/daemontools.rb
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
execute "get the daemontools repo" do
|
||||||
|
command "mkdir -p /package/admin && cd /package/admin && git clone git://github.com/MikeSofaer/daemontools.git daemontools-0.76 || true"
|
||||||
|
end
|
||||||
|
|
||||||
|
execute "compile daemontools" do
|
||||||
|
command "cd /package/admin/daemontools-0.76 && ./package/install"
|
||||||
|
end
|
||||||
|
|
||||||
|
execute "mongo run" do
|
||||||
|
command "mkdir -p /service/mongo && echo '#!/bin/sh' > /service/mongo/run && echo 'exec /usr/bin/mongod' >> /service/mongo/run"
|
||||||
|
end
|
||||||
|
execute "executable" do
|
||||||
|
command "chmod -R 755 /service/mongo"
|
||||||
|
end
|
||||||
1
chef/cookbooks/common/recipes/main.rb
Normal file
1
chef/cookbooks/common/recipes/main.rb
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
include_recipe "common::daemontools"
|
||||||
9
features/posts_message.feature
Normal file
9
features/posts_message.feature
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
@javascript @wip
|
||||||
|
Feature: posting a message
|
||||||
|
|
||||||
|
Scenario: public messages
|
||||||
|
Given I am signed in
|
||||||
|
And I fill in "Post a message to all" with "ohai"
|
||||||
|
And I wait for the "Share" button to appear
|
||||||
|
And I press "Share"
|
||||||
|
Then I should see "ohai" in the main content area
|
||||||
|
|
@ -15,3 +15,9 @@ When /^(.*) in the aspect list$/ do |action|
|
||||||
When action
|
When action
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Then /^I should see "([^\"]*)" in the main content area$/ do |stuff|
|
||||||
|
within("#stream") do
|
||||||
|
Then "I should see #{stuff}"
|
||||||
|
end
|
||||||
|
end
|
||||||
Loading…
Reference in a new issue