rocket_cms 0.25.0 → 0.25.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aabd9405b787031dfa64acff7d66f70f38f2ce2a847e8ddc9ddb1f63c808803d
4
- data.tar.gz: 652c66cb6a073c2c79a38d908177de937627ea8ec2931bb1057e0f872c73b1d3
3
+ metadata.gz: f857caa9b097cb30962cabade54f1dfba733a73f94cbd77e3658a5cd282ca719
4
+ data.tar.gz: 1774de5c3b590febd0e2828bf7441a3193941e37f1b4571891890b8a13eb780d
5
5
  SHA512:
6
- metadata.gz: 7fce8c94473f098b2830d19f9d13bb1b9891dbc38bd1616207ace5027337ead463153a451b9dcac447ec9e2095570c8ee5666f1a26894dd4beeae6fe482291dc
7
- data.tar.gz: 6e8cfcb58d1a026adcd45edd3ca7713db97e7641f4aff4e60eae0ebd00e036c5ad425ba7b162747e421bd4d5ce487896a1c8b18925127d698c38fc6d7e673e71
6
+ metadata.gz: 848e9a4f759aad59c3eae2d247da275cae14c7216f9f651d67386c890a8b350fadc851c7ded99ee96e93747dda53b57851cbb6813a1bd32c9d6e12f7edd560f6
7
+ data.tar.gz: 185fe4f1c840908ca1bd00f1879d5140407ec896c69fd90d5d568b769077094a3d217d74808ee354c8ad5cb66898a945dd8efbf311f0db451072be2567d8de53
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rocket_cms (0.25.0)
4
+ rocket_cms (0.25.1)
5
5
  addressable
6
6
  coffee-rails
7
7
  jquery-rails
data/README.md CHANGED
@@ -136,7 +136,7 @@ or
136
136
  gem 'hstore_translate'
137
137
  ```
138
138
 
139
- or
139
+ or
140
140
 
141
141
  ```ruby
142
142
  gem 'jsonb_translate' # requires postgresql 9.4
@@ -150,12 +150,9 @@ gem 'rails_admin_mongoid_localize_field'
150
150
 
151
151
  ### Capistrano generator
152
152
 
153
- rails g rocket_cms:capify data unicorn_port domain_name
153
+ rails g rocket_cms:capify domain_name
154
154
  # (path /data/:user/app/ - rocket science default)
155
155
 
156
- rails g rocket_cms:capify home unicorn_port domain_name
157
- # (path /home/:user/:app_name/)
158
-
159
156
  designed to be used together with our ansible app setup script.
160
157
 
161
158
  ### Documentation
@@ -2,9 +2,8 @@ require 'rails/generators'
2
2
 
3
3
  module RocketCms
4
4
  class CapifyGenerator < Rails::Generators::Base
5
- argument :kind, type: :string
6
- argument :port, type: :string
7
5
  argument :domain, type: :string
6
+ argument :port, type: :string, optional: true
8
7
 
9
8
  source_root File.expand_path('../templates', __FILE__)
10
9
 
@@ -13,24 +12,18 @@ module RocketCms
13
12
  end
14
13
 
15
14
  def deploy_to
16
- if kind == 'data'
17
- "/data/#{app_name.downcase}/app"
18
- else
19
- "/home/#{app_name.downcase}/#{app_name.downcase}"
20
- end
15
+ "/data/#{app_name.downcase}/app"
21
16
  end
22
17
  def tmp_path
23
- if kind == 'data'
24
- "/data/#{app_name.downcase}/tmp_dump"
25
- else
26
- "/home/#{app_name.downcase}/tmp_dump"
27
- end
18
+ "/data/#{app_name.downcase}/tmp_dump"
28
19
  end
29
20
 
30
21
  desc 'RocketCMS capistrano setup generator'
31
22
  def install
32
23
  copy_file "Capfile", "Capfile"
33
- template "unicorn.erb", "config/unicorn/production.rb"
24
+ unless port.nil?
25
+ template "unicorn.erb", "config/unicorn/production.rb"
26
+ end
34
27
  template "deploy.erb", "config/deploy.rb"
35
28
  template "production.erb", "config/deploy/production.rb"
36
29
  template "dl.erb", "lib/tasks/dl.thor"
@@ -1,3 +1,3 @@
1
1
  module RocketCMS
2
- VERSION = "0.25.0"
2
+ VERSION = "0.25.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rocket_cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.25.0
4
+ version: 0.25.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - glebtv