aktion_cap 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/.travis.yml ADDED
@@ -0,0 +1,6 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.9.2
4
+ - 1.9.3
5
+ - rbx-19mode
6
+ script: script/travis
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # v0.1.2
2
+
3
+ * Fix a bug with stage being used outside of the cap instance
4
+
1
5
  # v0.1.1
2
6
 
3
7
  * Remove harded stages in config/deploy.rb
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # AktionCap
2
2
 
3
+ [![Build Status](https://travis-ci.org/AktionLab/aktion_cap.png)](https://travis-ci.org/AktionLab/atkion_cap)
4
+
3
5
  A metagem for use with capistrano. It includes capistrano with multistage extension, rvm integration and rake tasks to make capistrano management simpler.
4
6
 
5
7
  ## Installation
data/Rakefile CHANGED
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env rake
2
2
  require "bundler/gem_tasks"
3
- load "tasks/test.rake"
3
+ load "./lib/tasks/test.rake"
@@ -62,7 +62,7 @@ set :application, '#{opts[:application]}'
62
62
  set :repository, '#{opts[:repository]}'
63
63
  set :scm, :#{opts[:scm]}
64
64
  set :deploy_via, :remote_cache
65
- set :deploy_to, "/var/www/\#{application}/\#{stage}"
65
+ set(:deploy_to) {"/var/www/\#{application}/\#{stage}"}
66
66
  set :rvm_type, :user
67
67
  set :use_sudo, false
68
68
 
@@ -1,3 +1,3 @@
1
1
  module AktionCap
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -4,7 +4,7 @@ run "echo > Gemfile"
4
4
 
5
5
  add_source :rubygems
6
6
  gem 'rails'
7
- gem 'aktion_cap', path: '..'
7
+ gem 'aktion_cap', :path => '..'
8
8
 
9
9
  run "bundle install"
10
10
 
@@ -12,7 +12,6 @@ run "rm public/index.html"
12
12
  run "rm -rf doc"
13
13
  run "rm README.rdoc"
14
14
  run "rm -rf app/assets"
15
- run "echo \"\\n\\n\\n\\n\\n\\n\\n\" > spec/capify_responses"
16
15
 
17
16
  rakefile 'clean.rake' do
18
17
  <<-TASK
data/script/travis ADDED
@@ -0,0 +1,4 @@
1
+ #!/bin/sh
2
+
3
+ rake test:setup
4
+ bundle exec rspec spec
data/spec/capify_spec.rb CHANGED
@@ -66,7 +66,7 @@ describe 'capify' do
66
66
  it { should be_a_file_that_exists }
67
67
  it { should contain_content "set :stages, %w(production)" }
68
68
  it { should contain_content "set :application, 'dummy'" }
69
- it { should contain_content "set :repository, 'git@github.com:AktionLab/aktion_cap'" }
69
+ it { should contain_content "set :repository, '#{`git config --local remote.origin.url`.strip}'" }
70
70
  it { should contain_content "set :scm, :git" }
71
71
  it { should contain_content "ssh_options[:username] = 'deployer'" }
72
72
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aktion_cap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -69,6 +69,7 @@ files:
69
69
  - .gitignore
70
70
  - .rspec
71
71
  - .rvmrc
72
+ - .travis.yml
72
73
  - CHANGELOG.md
73
74
  - Gemfile
74
75
  - LICENSE
@@ -81,6 +82,7 @@ files:
81
82
  - lib/aktion_cap/version.rb
82
83
  - lib/dummy_rails_template.rb
83
84
  - lib/tasks/test.rake
85
+ - script/travis
84
86
  - spec/capify_spec.rb
85
87
  - spec/fixtures/custom_capify_responses
86
88
  - spec/fixtures/default_capify_responses
@@ -99,7 +101,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
99
101
  version: '0'
100
102
  segments:
101
103
  - 0
102
- hash: 1872119278476282222
104
+ hash: 4255480165344263648
103
105
  required_rubygems_version: !ruby/object:Gem::Requirement
104
106
  none: false
105
107
  requirements:
@@ -108,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
108
110
  version: '0'
109
111
  segments:
110
112
  - 0
111
- hash: 1872119278476282222
113
+ hash: 4255480165344263648
112
114
  requirements: []
113
115
  rubyforge_project:
114
116
  rubygems_version: 1.8.24