inploy 1.9.3 → 1.9.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -124,13 +124,14 @@ end
124
124
  path = '/opt' # default /var/local/apps
125
125
  user = 'dcrec1' # default deploy
126
126
  ssh_opts = '-A' # default empty
127
- branch = 'production' # default master
127
+ branch = 'new_version' # default master
128
+ environment = 'staging' # default production
128
129
  sudo = true # default false
129
130
  cache_dirs = ['public/cache', 'tmp/cache'] # default ['public/cache']
130
131
  skip_steps = ['install_gems', 'clear_cache'] # default []
131
- app_folder = 'project_folder' # default empty
132
+ app_folder = 'project_folder' # default empty
132
133
  login_shell = true # default false
133
- bundler_path = 'another_path' # default ~/.bundle
134
+ bundler_path = 'another_path' # default ~/.bundle
134
135
  </code></pre>
135
136
 
136
137
  h2. SKIP STEPS
data/Rakefile CHANGED
@@ -1,11 +1,11 @@
1
1
  require 'rubygems'
2
2
  require 'rubygems/specification'
3
3
  require 'rake'
4
- require 'rake/gempackagetask'
4
+ require 'rubygems/package_task'
5
5
  require 'rspec/core/rake_task'
6
6
 
7
7
  GEM = "inploy"
8
- GEM_VERSION = "1.9.3"
8
+ GEM_VERSION = "1.9.4"
9
9
  SUMMARY = "Rails and Sinatra deployment made easy"
10
10
  AUTHOR = "Diego Carrion"
11
11
  EMAIL = "dc.rec1@gmail.com"
@@ -30,7 +30,7 @@ RSpec::Core::RakeTask.new :spec do |t|
30
30
  t.rspec_opts = %w(-fp --color)
31
31
  end
32
32
 
33
- Rake::GemPackageTask.new(spec) do |pkg|
33
+ Gem::PackageTask.new(spec) do |pkg|
34
34
  pkg.gem_spec = spec
35
35
  end
36
36
 
@@ -0,0 +1,63 @@
1
+ require 'rubygems'
2
+ require 'rubygems/specification'
3
+ require 'rake'
4
+ require 'rake/gempackagetask'
5
+ require 'rspec/core/rake_task'
6
+
7
+ GEM = "inploy"
8
+ <<<<<<< HEAD
9
+ GEM_VERSION = "1.9.3"
10
+ =======
11
+ GEM_VERSION = "1.9.2"
12
+ >>>>>>> bumped to 1.9.2
13
+ SUMMARY = "Rails and Sinatra deployment made easy"
14
+ AUTHOR = "Diego Carrion"
15
+ EMAIL = "dc.rec1@gmail.com"
16
+ HOMEPAGE = "http://www.diegocarrion.com"
17
+
18
+ spec = Gem::Specification.new do |s|
19
+ s.name = GEM
20
+ s.version = GEM_VERSION
21
+ s.platform = Gem::Platform::RUBY
22
+ s.summary = SUMMARY
23
+ s.files = FileList['lib/**/*','bin/*', '[A-Z]*'].to_a
24
+ s.executables << "inploy"
25
+
26
+ s.author = AUTHOR
27
+ s.email = EMAIL
28
+ s.homepage = HOMEPAGE
29
+
30
+ s.rubyforge_project = GEM # GitHub bug, gem isn't being build when this miss
31
+ end
32
+
33
+ RSpec::Core::RakeTask.new :spec do |t|
34
+ t.rspec_opts = %w(-fp --color)
35
+ end
36
+
37
+ Rake::GemPackageTask.new(spec) do |pkg|
38
+ pkg.gem_spec = spec
39
+ end
40
+
41
+ desc "Install the gem locally"
42
+ task :install => [:package] do
43
+ sh %{sudo gem install pkg/#{GEM}-#{GEM_VERSION}}
44
+ end
45
+
46
+ desc "Create a gemspec file"
47
+ task :make_spec do
48
+ File.open("#{GEM}.gemspec", "w") do |file|
49
+ file.puts spec.to_ruby
50
+ end
51
+ end
52
+
53
+ desc "Run all examples with RCov"
54
+ RSpec::Core::RakeTask.new :spec do |t|
55
+ t.rcov = true
56
+ t.rcov_opts = ['--no-html', '-T', '--exclude', 'spec']
57
+ end
58
+
59
+ desc "Run specs with all the Ruby versions supported"
60
+ task :build do
61
+ system "rvm 1.8.7 specs"
62
+ system "rvm 1.9.2 specs"
63
+ end
@@ -89,7 +89,6 @@ module Inploy
89
89
  return unless install_gems
90
90
  migrate_database
91
91
  update_crontab
92
- clear_cache
93
92
  run "rm -R -f public/assets" if jammit_is_installed?
94
93
  run "RAILS_ENV=#{environment} script/delayed_job restart" if file_exists?("script/delayed_job")
95
94
  rake_if_included "more:parse"
@@ -100,6 +99,7 @@ module Inploy
100
99
  notify_new_relic
101
100
  callback :before_restarting_server
102
101
  restart_server
102
+ clear_cache
103
103
  end
104
104
  end
105
105
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inploy
3
3
  version: !ruby/object:Gem::Version
4
- hash: 53
4
+ hash: 59
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 9
9
- - 3
10
- version: 1.9.3
9
+ - 4
10
+ version: 1.9.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Diego Carrion
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-05-06 00:00:00 -03:00
18
+ date: 2011-08-12 00:00:00 -03:00
19
19
  default_executable:
20
20
  dependencies: []
21
21
 
@@ -46,6 +46,7 @@ files:
46
46
  - Gemfile
47
47
  - Gemfile.lock
48
48
  - Rakefile
49
+ - Rakefile.orig
49
50
  - README.textile
50
51
  has_rdoc: true
51
52
  homepage: http://www.diegocarrion.com
@@ -77,7 +78,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
77
78
  requirements: []
78
79
 
79
80
  rubyforge_project: inploy
80
- rubygems_version: 1.5.3
81
+ rubygems_version: 1.5.0
81
82
  signing_key:
82
83
  specification_version: 3
83
84
  summary: Rails and Sinatra deployment made easy