chr 0.4.14 → 0.4.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/chr/app_builder.rb +4 -6
- data/lib/chr/generators/app_generator.rb +0 -1
- data/lib/chr/version.rb +1 -1
- data/templates/Gemfile.erb +3 -2
- data/templates/carrierwave.rb +10 -9
- data/templates/character_admin_index.html.erb +1 -1
- data/templates/character_admin_layout.html.erb.erb +3 -3
- data/templates/dev.rake +1 -1
- data/templates/devise_overrides_passwords_edit.html.erb +2 -2
- data/templates/devise_overrides_passwords_new.html.erb +2 -2
- data/templates/devise_overrides_sessions_new.html.erb +1 -1
- metadata +2 -3
- data/templates/asset_sync.rb +0 -28
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 912f73cb64614f05ec42f14e83f2503933b7d820
|
4
|
+
data.tar.gz: ea5738b31d01552bac7d3ca9b11fd1bc3d7371e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d002f6906c5e8ce5ff85b556b2599aa59b73ffedbabd0910d482c050526ebb506624963078856f9052e4ac5210021daa2035c6bb0fc237192dd5d578d3322889
|
7
|
+
data.tar.gz: e2747d714fb650826e626f38016916fe5925d93df0459032d4c29032d819ac742624e285635170595c4e521dc10f56593fbbe27d5c67294d3561c1e6856a5e36
|
data/lib/chr/app_builder.rb
CHANGED
@@ -135,11 +135,6 @@ module Chr
|
|
135
135
|
end
|
136
136
|
|
137
137
|
|
138
|
-
def setup_asset_sync
|
139
|
-
copy_file 'asset_sync.rb', 'config/initializers/asset_sync.rb'
|
140
|
-
end
|
141
|
-
|
142
|
-
|
143
138
|
def setup_staging_environment
|
144
139
|
staging_file = 'config/environments/staging.rb'
|
145
140
|
copy_file 'staging.rb', staging_file
|
@@ -282,7 +277,10 @@ module Chr
|
|
282
277
|
|
283
278
|
|
284
279
|
def setup_character_views
|
285
|
-
|
280
|
+
template 'character_admin_layout.html.erb.erb',
|
281
|
+
'app/views/layouts/admin.html.erb',
|
282
|
+
force: true
|
283
|
+
|
286
284
|
copy_file 'character_admin_index.html.erb', 'app/views/admin/index.html.erb'
|
287
285
|
end
|
288
286
|
|
data/lib/chr/version.rb
CHANGED
data/templates/Gemfile.erb
CHANGED
@@ -10,17 +10,18 @@ gem 'puma'
|
|
10
10
|
gem 'recipient_interceptor'
|
11
11
|
gem 'rack-canonical-host'
|
12
12
|
gem 'meta-tags'
|
13
|
-
gem 'asset_sync'
|
14
13
|
gem 'awesome_print'
|
15
14
|
gem 'bson_ext'
|
16
15
|
gem 'mongoid', '~> 5.0.0'
|
16
|
+
gem 'fog'
|
17
|
+
gem 'fog-aws'
|
18
|
+
gem 'carrierwave-mongoid'
|
17
19
|
# This `autoinc` branch supports mongoid 5.0, required by Loft
|
18
20
|
gem 'mongoid-autoinc', github: 'suweller/mongoid-autoinc'
|
19
21
|
gem 'mongosteen'
|
20
22
|
gem 'chr'
|
21
23
|
gem 'ants'
|
22
24
|
gem 'loft'
|
23
|
-
gem 'carrierwave-mongoid'
|
24
25
|
|
25
26
|
group :development do
|
26
27
|
gem 'spring'
|
data/templates/carrierwave.rb
CHANGED
@@ -1,23 +1,24 @@
|
|
1
1
|
CarrierWave.configure do |config|
|
2
|
+
config.cache_dir = "#{Rails.root}/public/uploads/tmp"
|
2
3
|
|
3
4
|
# DEVELOPMENT
|
4
|
-
|
5
|
-
|
5
|
+
if Rails.env.development?
|
6
|
+
config.storage = :file
|
7
|
+
end
|
6
8
|
|
9
|
+
# TEST
|
7
10
|
if Rails.env.test?
|
8
|
-
# TEST
|
9
11
|
config.cache_dir = "#{Rails.root}/public/uploads/tmp/test"
|
10
12
|
config.enable_processing = false
|
11
13
|
|
14
|
+
# PRODUCTION & STAGING
|
12
15
|
elsif Rails.env.production? || Rails.env.staging?
|
13
|
-
|
14
|
-
config.
|
15
|
-
config.fog_directory = ENV.fetch('FOG_DIRECTORY')
|
16
|
+
config.storage = :fog
|
17
|
+
config.fog_directory = ENV.fetch('FOG_DIRECTORY')
|
16
18
|
config.fog_credentials = {
|
17
19
|
provider: 'AWS',
|
18
|
-
aws_access_key_id:
|
20
|
+
aws_access_key_id: ENV.fetch('AWS_ACCESS_KEY_ID'),
|
19
21
|
aws_secret_access_key: ENV.fetch('AWS_SECRET_ACCESS_KEY'),
|
20
22
|
}
|
21
23
|
end
|
22
|
-
|
23
|
-
end
|
24
|
+
end
|
@@ -1,2 +1,2 @@
|
|
1
1
|
<%= javascript_include_tag :admin %>
|
2
|
-
<%= link_to
|
2
|
+
<%= link_to "Sign Out", destroy_admin_session_path, method: :delete, style: "display:none;", class: "menu-logout" %>
|
@@ -8,13 +8,13 @@
|
|
8
8
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
9
9
|
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
10
10
|
|
11
|
-
<%%= display_meta_tags site:
|
11
|
+
<%%= display_meta_tags site: "<%= app_name %>", title: "CMS" %>
|
12
12
|
|
13
13
|
<%%= csrf_meta_tags %>
|
14
|
-
<%%= stylesheet_link_tag :admin, media:
|
14
|
+
<%%= stylesheet_link_tag :admin, media: "all" %>
|
15
15
|
</head>
|
16
16
|
|
17
|
-
<body class=
|
17
|
+
<body class="<%%= body_class %>">
|
18
18
|
<%%= yield %>
|
19
19
|
</body>
|
20
20
|
|
data/templates/dev.rake
CHANGED
@@ -5,7 +5,7 @@ if Rails.env.development? || Rails.env.test?
|
|
5
5
|
desc "Seed data for development environment"
|
6
6
|
task prime: "db:setup" do
|
7
7
|
include FactoryGirl::Syntax::Methods
|
8
|
-
|
8
|
+
Mongoid.purge!
|
9
9
|
Admin.create!(name: 'Admin', email: 'user@example.com', password: 'password')
|
10
10
|
end
|
11
11
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<% set_meta_tags title:
|
1
|
+
<% set_meta_tags title: "Change Password" %>
|
2
2
|
|
3
3
|
<div class='signin-modal'>
|
4
4
|
<h2>Change password</h2>
|
@@ -26,6 +26,6 @@
|
|
26
26
|
<%= devise_error_messages! %>
|
27
27
|
|
28
28
|
<%= f.submit "Change password", tabindex: 3 %>
|
29
|
-
<%= link_to
|
29
|
+
<%= link_to "Sign In", new_session_path(resource_name) %>
|
30
30
|
<% end %>
|
31
31
|
</div>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<% set_meta_tags title:
|
1
|
+
<% set_meta_tags title: "Reset Password" %>
|
2
2
|
|
3
3
|
<div class='signin-modal'>
|
4
4
|
<h2>Forgot your password?</h2>
|
@@ -14,6 +14,6 @@
|
|
14
14
|
<%= devise_error_messages! %>
|
15
15
|
|
16
16
|
<%= f.submit "Reset password", tabindex: 2 %>
|
17
|
-
<%= link_to
|
17
|
+
<%= link_to "Sign In", new_session_path(resource_name) %>
|
18
18
|
<% end %>
|
19
19
|
</div>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Kravets
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2015-11-
|
13
|
+
date: 2015-11-11 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|
@@ -336,7 +336,6 @@ files:
|
|
336
336
|
- templates/application.yml
|
337
337
|
- templates/application_gitignore
|
338
338
|
- templates/application_layout.html.erb.erb
|
339
|
-
- templates/asset_sync.rb
|
340
339
|
- templates/bin_setup.erb
|
341
340
|
- templates/body_class_helper.rb
|
342
341
|
- templates/bundler_audit.rake
|
data/templates/asset_sync.rb
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
AssetSync.configure do |config|
|
2
|
-
config.fog_provider = 'AWS'
|
3
|
-
config.aws_access_key_id = ENV['AWS_ACCESS_KEY_ID']
|
4
|
-
config.aws_secret_access_key = ENV['AWS_SECRET_ACCESS_KEY']
|
5
|
-
config.fog_directory = ENV['FOG_DIRECTORY']
|
6
|
-
# To use AWS reduced redundancy storage.
|
7
|
-
# config.aws_reduced_redundancy = true
|
8
|
-
|
9
|
-
# Invalidate a file on a cdn after uploading files
|
10
|
-
# config.cdn_distribution_id = "12345"
|
11
|
-
# config.invalidate = ['file1.js']
|
12
|
-
|
13
|
-
# Increase upload performance by configuring your region
|
14
|
-
# config.fog_region = 'eu-west-1'
|
15
|
-
#
|
16
|
-
# Don't delete files from the store
|
17
|
-
# config.existing_remote_files = "keep"
|
18
|
-
#
|
19
|
-
# Automatically replace files with their equivalent gzip compressed version
|
20
|
-
# config.gzip_compression = true
|
21
|
-
#
|
22
|
-
# Use the Rails generated 'manifest.yml' file to produce the list of files to
|
23
|
-
# upload instead of searching the assets directory.
|
24
|
-
# config.manifest = true
|
25
|
-
#
|
26
|
-
# Fail silently. Useful for environments such as Heroku
|
27
|
-
# config.fail_silently = true
|
28
|
-
end
|