appscrolls 0.11.1 → 0.11.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -8,6 +8,10 @@
8
8
 
9
9
  * `sidekiq` - correctly create the app/workers directory
10
10
 
11
+ ### v0.11.2
12
+
13
+ * `redis` - use integer for redis database number [thx @mperham]
14
+
11
15
  ## v0.10
12
16
 
13
17
  * `puma` - added basic support for Puma; also Cloud Foundry will use Puma automatically
@@ -72,13 +72,21 @@ after_everything do
72
72
  run "mkdir -p deploy"
73
73
  run "cp #{project_name}.war deploy/"
74
74
  end
75
- run "vmc _#{@vmc_version}_ push #{project_name} --runtime #{@cf_ruby_runtime} --path . --no-start"
76
- run "vmc _#{@vmc_version}_ env-add #{project_name} BUNDLE_WITHOUT=assets:test:development"
77
- run "vmc _#{@vmc_version}_ start #{project_name}"
75
+ run_vmc "push #{project_name} --runtime #{@cf_ruby_runtime} --path . --no-start"
76
+ run_vmc "env-add #{project_name} BUNDLE_WITHOUT=assets:test:development"
77
+ run_vmc "start #{project_name}"
78
+ end
79
+
80
+ def vmc
81
+ "vmc _#{@vmc_version}_"
82
+ end
83
+
84
+ def run_vmc(command)
85
+ run "#{vmc} #{command}"
78
86
  end
79
87
 
80
88
  def cf_delete_app(name)
81
- run %Q{vmc _#{@vmc_version}_ apps | grep "\\b#{name}\\b" && vmc _#{@vmc_version}_ delete #{name}}
89
+ run %Q{#{vmc} apps | grep " #{name} " && #{vmc} delete #{name}}
82
90
  end
83
91
 
84
92
  def cf_standalone_command(key, name, command, services={})
@@ -5,9 +5,9 @@ gem "sinatra", ">= 1.3.0", require: false
5
5
 
6
6
  initializer "sidekiq.rb", <<-RUBY
7
7
  if $redis_config[:password]
8
- redis_url = "redis://:\#{$redis_config[:password]}@\#{$redis_config[:host]}:\#{$redis_config[:port]}/sidekiq"
8
+ redis_url = "redis://:\#{$redis_config[:password]}@\#{$redis_config[:host]}:\#{$redis_config[:port]}/0"
9
9
  else
10
- redis_url = "redis://\#{$redis_config[:host]}:\#{$redis_config[:port]}/sidekiq"
10
+ redis_url = "redis://\#{$redis_config[:host]}:\#{$redis_config[:port]}/0"
11
11
  end
12
12
  Rails.logger.info "Setting sidekiq redis: \#{{ url: redis_url, namespace: 'sidekiq' }.inspect}"
13
13
  Sidekiq.redis = { url: redis_url, namespace: 'sidekiq' }
@@ -40,7 +40,7 @@ after_everything do
40
40
  services = $cf_manifest["applications"]["."]["services"]
41
41
  manifest_file = cf_standalone_command("worker", worker_name, "bundle exec sidekiq -e production", services)
42
42
  cf_delete_app worker_name
43
- run "vmc _#{@vmc_version}_ push #{worker_name} --runtime #{@cf_ruby_runtime} --path . --manifest #{manifest_file}"
43
+ run_vmc "push #{worker_name} --path . --manifest #{manifest_file}"
44
44
  end
45
45
  end
46
46
 
data/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module AppScrollsScrolls
2
- VERSION = "0.11.1"
2
+ VERSION = "0.11.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appscrolls
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.1
4
+ version: 0.11.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -308,7 +308,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
308
308
  version: '0'
309
309
  segments:
310
310
  - 0
311
- hash: -4522320187037032621
311
+ hash: -2129944534686319540
312
312
  required_rubygems_version: !ruby/object:Gem::Requirement
313
313
  none: false
314
314
  requirements:
@@ -317,7 +317,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
317
317
  version: '0'
318
318
  segments:
319
319
  - 0
320
- hash: -4522320187037032621
320
+ hash: -2129944534686319540
321
321
  requirements: []
322
322
  rubyforge_project:
323
323
  rubygems_version: 1.8.25