rocket_cms 0.25.4 → 0.25.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aaa98b0cc165e86120186ecb27dbb49b73e32256adbac3392ce40f0e47b4fb51
4
- data.tar.gz: 81573c5f17f1f57482a74ad1d7be91e362b96f5631dd68376d04a28a350ef6d1
3
+ metadata.gz: 96655d05804f4c89771955899b6cdf7ac4fcc77111c962629cfa2a8d1863ded5
4
+ data.tar.gz: a2c43b4b0061591211c894f098414a8d6e0bf7fe407e046c672aa595b3acfdf2
5
5
  SHA512:
6
- metadata.gz: 90318690e09b3f62c4c4ce0d4069495a40b1fd4f520948210bcc13792a754657570e5702f43d31be874d29054e47ec79c3e4e44046a161533e5541ce3387430c
7
- data.tar.gz: e800d8fcd3ad2f487e9d80c114eac3033af9267bfd58f5293de36da825f124aaf5785d8b53db2e432e9c47d730300713137003557171f0a5cfd4b2b19420b5f6
6
+ metadata.gz: f40a313f644e57f19ea6370f6914ecd0a0cbdb49e4310206bc9f61e24e18cdf93af3d9ccd74524de343165a1bc610925ac0c599a004b5f2e7315b68e877f3e8e
7
+ data.tar.gz: 6a9fd0a50b898c6c9ff7da3d283bbf15f7f85d9718bb14a046d373d1eafdf4997234374012bb665a79d617bd593d793045281500a40b401fba165deaeb018e7a
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rocket_cms (0.25.4)
4
+ rocket_cms (0.25.5)
5
5
  addressable
6
6
  coffee-rails
7
7
  jquery-rails
@@ -3,6 +3,8 @@ set :stage, :production
3
3
  server '<%= domain %>', user: '<%= app_name.downcase %>', roles: %w{web app db}
4
4
 
5
5
  set :rails_env, 'production'
6
+ <% unless port.nil? %>
6
7
  set :unicorn_env, 'production'
7
8
  set :unicorn_rack_env, 'production'
9
+ <% end %>
8
10
 
data/lib/rocket_cms.rb CHANGED
@@ -104,5 +104,3 @@ require 'manual_slug'
104
104
  if defined?(RailsAdmin) && !RocketCMS.light?
105
105
  require 'rocket_cms/nested_set'
106
106
  end
107
-
108
- Thor::Util.load_thorfile(File.expand_path("../tasks/rocket.thor", __FILE__).to_s)
@@ -1,3 +1,3 @@
1
1
  module RocketCMS
2
- VERSION = "0.25.4"
2
+ VERSION = '0.25.5'
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.4
4
+ version: 0.25.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - glebtv
@@ -188,7 +188,6 @@ description: RocketCMS
188
188
  email:
189
189
  - glebtv@gmail.com
190
190
  executables:
191
- - rocket_cms
192
191
  - rocket_cms_capify
193
192
  extensions: []
194
193
  extra_rdoc_files: []
@@ -254,7 +253,6 @@ files:
254
253
  - app/views/shared/_meta.slim
255
254
  - app/views/shared/_obj.slim
256
255
  - app/views/shared/_og.slim
257
- - bin/rocket_cms
258
256
  - bin/rocket_cms_capify
259
257
  - config/locales/en.rocket_admin.yml
260
258
  - config/locales/en.rs.yml
data/bin/rocket_cms DELETED
@@ -1,60 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # encoding: utf-8
3
-
4
- require 'thor'
5
-
6
- module RocketCMS
7
- class Capify < Thor::Group
8
- include Thor::Actions
9
-
10
- no_commands do
11
- def load_env
12
- return if defined?(Rails)
13
- require File.expand_path("../../../config/environment", __FILE__)
14
- end
15
- end
16
-
17
- class_option :mongoid, default: false
18
-
19
- argument :app_name, type: :string
20
- argument :domain, type: :string
21
- argument :port, type: :string, optional: true
22
-
23
- source_root File.expand_path('../../lib/generators/rocket_cms/templates', __FILE__)
24
-
25
- #def app_name
26
- #Rails.application.class.name.split("::")[0]
27
- #end
28
-
29
- def deploy_to
30
- "/data/#{app_name.downcase}/app"
31
- end
32
- def tmp_path
33
- "/data/#{app_name.downcase}/tmp_dump"
34
- end
35
-
36
- desc "Generate Capistrano config"
37
- def capify
38
- if options[:mongoid]
39
- def RocketCMS.mongoid?
40
- true
41
- end
42
- else
43
- def RocketCMS.mongoid?
44
- true
45
- end
46
- end
47
- copy_file "Capfile", "Capfile"
48
- p port
49
- unless port.nil?
50
- template "unicorn.erb", "config/unicorn/production.rb"
51
- end
52
- template "deploy.erb", "config/deploy.rb"
53
- template "production.erb", "config/deploy/production.rb"
54
- template "dl.erb", "lib/tasks/dl.thor"
55
- puts "all ok"
56
- end
57
- end
58
- end
59
-
60
- RocketCMS::Capify.start