chr 0.4.14 → 0.4.15

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
  SHA1:
3
- metadata.gz: 8e17c570888d2652d32bce1a7735271077be4209
4
- data.tar.gz: a751e96a3132dd42d96990fb32b2380f84039477
3
+ metadata.gz: 912f73cb64614f05ec42f14e83f2503933b7d820
4
+ data.tar.gz: ea5738b31d01552bac7d3ca9b11fd1bc3d7371e5
5
5
  SHA512:
6
- metadata.gz: bd8018b063db8d922b99215764de74064919f0f68a9473d72df5edae7be18378b2f4ae641e195da163460669a587774689bd285b8a875587bac6d2306f1d4d3d
7
- data.tar.gz: c05d08fdd10382d47fa18c3396d5dcc38437e03ebc23a8814d772b0ad26653e3a57f9476a95f8fc56394535fd907e54635d0ca60a18dd4e011de3077a6d8838f
6
+ metadata.gz: d002f6906c5e8ce5ff85b556b2599aa59b73ffedbabd0910d482c050526ebb506624963078856f9052e4ac5210021daa2035c6bb0fc237192dd5d578d3322889
7
+ data.tar.gz: e2747d714fb650826e626f38016916fe5925d93df0459032d4c29032d819ac742624e285635170595c4e521dc10f56593fbbe27d5c67294d3561c1e6856a5e36
@@ -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
- copy_file 'character_admin_layout.html.erb', 'app/views/layouts/admin.html.erb'
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
 
@@ -80,7 +80,6 @@ module Chr
80
80
  build :enable_rack_canonical_host
81
81
  build :enable_rack_deflater
82
82
  build :setup_asset_host
83
- build :setup_asset_sync
84
83
  end
85
84
 
86
85
 
@@ -1,5 +1,5 @@
1
1
  module Chr
2
2
  RAILS_VERSION = "~> 4.2.4"
3
3
  RUBY_VERSION = IO.read("#{File.dirname(__FILE__)}/../../.ruby-version").strip
4
- VERSION = "0.4.14"
4
+ VERSION = "0.4.15"
5
5
  end
@@ -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'
@@ -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
- config.storage = :file
5
- config.cache_dir = "#{Rails.root}/public/uploads/tmp"
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
- # PRODUCTION & STAGING
14
- config.storage = :fog
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: ENV.fetch('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 'Sign Out', destroy_admin_session_path, method: :delete, style: 'display:none;', class: 'menu-logout' %>
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: '<%= app_name %>', title: 'CMS' %>
11
+ <%%= display_meta_tags site: "<%= app_name %>", title: "CMS" %>
12
12
 
13
13
  <%%= csrf_meta_tags %>
14
- <%%= stylesheet_link_tag :admin, media: 'all' %>
14
+ <%%= stylesheet_link_tag :admin, media: "all" %>
15
15
  </head>
16
16
 
17
- <body class='<%= body_class %>'>
17
+ <body class="<%%= body_class %>">
18
18
  <%%= yield %>
19
19
  </body>
20
20
 
@@ -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: 'CMS — Change Password' %>
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 'Sign In', new_session_path(resource_name) %>
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: 'CMS — Reset Password' %>
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 'Sign In', new_session_path(resource_name) %>
17
+ <%= link_to "Sign In", new_session_path(resource_name) %>
18
18
  <% end %>
19
19
  </div>
@@ -1,4 +1,4 @@
1
- <% set_meta_tags title: 'CMS — Sing in' %>
1
+ <% set_meta_tags title: "Sing in" %>
2
2
 
3
3
  <div class='signin-modal'>
4
4
  <h2>Sign in</h2>
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.14
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-04 00:00:00.000000000 Z
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
@@ -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