fuel 0.3.26 → 0.3.27
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/fuel/advanced_and_extended.js +683 -0
- data/app/assets/javascripts/fuel/application.js +3 -2
- data/app/assets/javascripts/fuel/wysihtml5x-toolbar.min.js +9 -0
- data/app/assets/stylesheets/fuel/application.css.scss +0 -6
- data/app/assets/stylesheets/fuel/components/_buttons.scss +5 -0
- data/app/assets/stylesheets/fuel/components/_components.scss +2 -1
- data/app/assets/stylesheets/fuel/components/_editor.scss +84 -0
- data/app/assets/stylesheets/fuel/wysihtml.css +133 -0
- data/app/controllers/fuel/admin/posts_controller.rb +1 -0
- data/app/controllers/fuel_controller.rb +12 -0
- data/app/helpers/fuel/posts_helper.rb +7 -0
- data/app/models/fuel/post.rb +5 -1
- data/app/views/fuel/admin/posts/_editor.html.erb +71 -0
- data/app/views/fuel/admin/posts/_form.html.erb +48 -0
- data/app/views/layouts/fuel/application.html.erb +3 -0
- data/lib/fuel.rb +10 -1
- data/lib/fuel/aws.rb +0 -0
- data/lib/fuel/configuration.rb +5 -1
- data/lib/fuel/version.rb +1 -1
- data/lib/generators/templates/fuel.rb +5 -0
- metadata +9 -4
- data/app/assets/javascripts/fuel/rich-text.js +0 -9
data/lib/fuel.rb
CHANGED
@@ -11,12 +11,21 @@ require "paperclip"
|
|
11
11
|
require "bourbon"
|
12
12
|
require "neat"
|
13
13
|
require "pickadate-rails"
|
14
|
-
require "
|
14
|
+
require "aws-sdk"
|
15
|
+
require "jquery-fileupload-rails"
|
16
|
+
require "fuel/aws"
|
15
17
|
|
16
18
|
module Fuel
|
17
19
|
|
18
20
|
def self.configure(&block)
|
19
21
|
block.call(configuration)
|
22
|
+
configure_aws
|
23
|
+
Rails.application.config.assets.precompile += %w( fuel/wysihtml.css )
|
24
|
+
end
|
25
|
+
|
26
|
+
def self.configure_aws
|
27
|
+
AWS.config( access_key_id: configuration.aws_access_key,
|
28
|
+
secret_access_key: configuration.aws_secret_access_key )
|
20
29
|
end
|
21
30
|
|
22
31
|
def self.configuration
|
data/lib/fuel/aws.rb
ADDED
File without changes
|
data/lib/fuel/configuration.rb
CHANGED
@@ -3,7 +3,7 @@ module Fuel
|
|
3
3
|
|
4
4
|
# What kind of comments do you want to add to your blog ? (:active_record, :disqus or :no)
|
5
5
|
attr_accessor :layout, :blog_title, :disqus_name, :twitter, :username, :password, :helpers, :paginates_per,
|
6
|
-
:featured_image_settings, :avatar_settings, :facebook_app_id, :site_name, :blog_description, :tags, :logo
|
6
|
+
:featured_image_settings, :avatar_settings, :facebook_app_id, :site_name, :blog_description, :tags, :logo, :aws_bucket, :aws_access_key, :aws_secret_access_key, :paperclip_defaults
|
7
7
|
|
8
8
|
def initialize
|
9
9
|
@layout = "application"
|
@@ -29,7 +29,11 @@ module Fuel
|
|
29
29
|
@site_name = nil
|
30
30
|
@tags = ["Customize", "These", "Options", "In", "config/initializers/fuel.rb"]
|
31
31
|
@logo = "fuel/logo.svg"
|
32
|
+
@aws_bucket = nil
|
33
|
+
@aws_access_key = nil
|
34
|
+
@aws_secret_access_key = nil
|
32
35
|
end
|
33
36
|
|
37
|
+
|
34
38
|
end
|
35
39
|
end
|
data/lib/fuel/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fuel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.27
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Francis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-06-
|
11
|
+
date: 2015-06-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -179,7 +179,7 @@ dependencies:
|
|
179
179
|
- !ruby/object:Gem::Version
|
180
180
|
version: '0'
|
181
181
|
- !ruby/object:Gem::Dependency
|
182
|
-
name:
|
182
|
+
name: jquery-fileupload-rails
|
183
183
|
requirement: !ruby/object:Gem::Requirement
|
184
184
|
requirements:
|
185
185
|
- - ">="
|
@@ -307,12 +307,13 @@ files:
|
|
307
307
|
- app/assets/images/fuel/icons/navigation-icons.svg
|
308
308
|
- app/assets/images/fuel/logo.svg
|
309
309
|
- app/assets/javascripts/fuel/admin.js.erb
|
310
|
+
- app/assets/javascripts/fuel/advanced_and_extended.js
|
310
311
|
- app/assets/javascripts/fuel/application.js
|
311
312
|
- app/assets/javascripts/fuel/datepicker.js
|
312
313
|
- app/assets/javascripts/fuel/facebook.js
|
313
314
|
- app/assets/javascripts/fuel/posts.js.erb
|
314
|
-
- app/assets/javascripts/fuel/rich-text.js
|
315
315
|
- app/assets/javascripts/fuel/sliding-panel.js
|
316
|
+
- app/assets/javascripts/fuel/wysihtml5x-toolbar.min.js
|
316
317
|
- app/assets/stylesheets/fuel/_page-layout.scss
|
317
318
|
- app/assets/stylesheets/fuel/_post-editor.scss
|
318
319
|
- app/assets/stylesheets/fuel/_post-list.scss
|
@@ -326,6 +327,7 @@ files:
|
|
326
327
|
- app/assets/stylesheets/fuel/components/_buttons.scss
|
327
328
|
- app/assets/stylesheets/fuel/components/_card.scss
|
328
329
|
- app/assets/stylesheets/fuel/components/_components.scss
|
330
|
+
- app/assets/stylesheets/fuel/components/_editor.scss
|
329
331
|
- app/assets/stylesheets/fuel/components/_forms.scss
|
330
332
|
- app/assets/stylesheets/fuel/components/_navbar.scss
|
331
333
|
- app/assets/stylesheets/fuel/components/_navigation-icons.scss
|
@@ -341,6 +343,7 @@ files:
|
|
341
343
|
- app/assets/stylesheets/fuel/settings/variables/_buttons.scss
|
342
344
|
- app/assets/stylesheets/fuel/settings/variables/_colors.scss
|
343
345
|
- app/assets/stylesheets/fuel/settings/variables/_typography.scss
|
346
|
+
- app/assets/stylesheets/fuel/wysihtml.css
|
344
347
|
- app/controllers/fuel/admin/admin_controller.rb
|
345
348
|
- app/controllers/fuel/admin/authors_controller.rb
|
346
349
|
- app/controllers/fuel/admin/posts_controller.rb
|
@@ -358,6 +361,7 @@ files:
|
|
358
361
|
- app/views/fuel/admin/authors/index.html.erb
|
359
362
|
- app/views/fuel/admin/authors/new.html.erb
|
360
363
|
- app/views/fuel/admin/posts/_content.html.erb
|
364
|
+
- app/views/fuel/admin/posts/_editor.html.erb
|
361
365
|
- app/views/fuel/admin/posts/_form.html.erb
|
362
366
|
- app/views/fuel/admin/posts/_post_preview.html.erb
|
363
367
|
- app/views/fuel/admin/posts/_posts.html.erb
|
@@ -389,6 +393,7 @@ files:
|
|
389
393
|
- lib/blog_importer.rb
|
390
394
|
- lib/example_author.rb
|
391
395
|
- lib/fuel.rb
|
396
|
+
- lib/fuel/aws.rb
|
392
397
|
- lib/fuel/configuration.rb
|
393
398
|
- lib/fuel/engine.rb
|
394
399
|
- lib/fuel/version.rb
|