citrin 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -15,7 +15,7 @@ require 'jeweler'
15
15
  Jeweler::Tasks.new do |gem|
16
16
  # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
17
17
  gem.name = "citrin"
18
- gem.homepage = "http://github.com/servasat/citrin"
18
+ gem.homepage = "http://github.com/firemind/citrin"
19
19
  gem.license = "MIT"
20
20
  gem.summary = %Q{Client for citrin RailsServer management}
21
21
  gem.description = %Q{This Gem helps you manage your citrin RailsServer (http://www.rails-server.ch). It creates Apache Configuration, MySQL Databases and Subversion Repositories.}
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.3
1
+ 0.0.4
data/citrin.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{citrin}
8
- s.version = "0.0.3"
8
+ s.version = "0.0.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = [%q{Mike}]
12
- s.date = %q{2012-01-11}
12
+ s.date = %q{2012-01-13}
13
13
  s.description = %q{This Gem helps you manage your citrin RailsServer (http://www.rails-server.ch). It creates Apache Configuration, MySQL Databases and Subversion Repositories.}
14
14
  s.email = %q{mike@citrin.ch}
15
15
  s.executables = [%q{citrin}]
@@ -40,7 +40,7 @@ Gem::Specification.new do |s|
40
40
  "test/helper.rb",
41
41
  "test/test_citrin.rb"
42
42
  ]
43
- s.homepage = %q{http://github.com/servasat/citrin}
43
+ s.homepage = %q{http://github.com/firemind/citrin}
44
44
  s.licenses = [%q{MIT}]
45
45
  s.require_paths = [%q{lib}]
46
46
  s.rubygems_version = %q{1.8.7}
@@ -19,4 +19,4 @@ rm -r $svn_path
19
19
  rm /etc/apache2/sites-enabled/prod.$name.conf
20
20
  rm /etc/apache2/sites-enabled/dev.$name.conf
21
21
 
22
- service apache2 reload
22
+ sudo service apache2 reload
data/test/test_citrin.rb CHANGED
@@ -1,7 +1,11 @@
1
1
  require 'helper'
2
2
 
3
3
  class TestCitrin < Test::Unit::TestCase
4
- should "probably rename this file and start testing for real" do
5
- flunk "hey buddy, you should probably rename this file and start testing for real"
4
+ should "create webserver config" do
5
+ appname = "citest"
6
+ Citrin::CLI.start("create_webserver", appname)
7
+ assert_true File.exists?("/etc/apache2/sites-enabled/prod.#{appname}.conf")
8
+ statuscode = `curl -sL -w "%{http_code}" "#{appname}.$(hostname).citrin.ch" -o /dev/null`
9
+ assert_equals statuscode, "404"
6
10
  end
7
11
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: citrin
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 3
10
- version: 0.0.3
9
+ - 4
10
+ version: 0.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Mike
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-01-11 00:00:00 Z
18
+ date: 2012-01-13 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: shoulda
@@ -108,7 +108,7 @@ files:
108
108
  - lib/citrin/cli.rb
109
109
  - test/helper.rb
110
110
  - test/test_citrin.rb
111
- homepage: http://github.com/servasat/citrin
111
+ homepage: http://github.com/firemind/citrin
112
112
  licenses:
113
113
  - MIT
114
114
  post_install_message: