phcpress 0.9.7 → 0.10.8

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
  SHA1:
3
- metadata.gz: 14c727a8b9795efaf3eabd3ae8e0c13014ba5e98
4
- data.tar.gz: 3510fc3789f824d72988833740a0371e966178b1
3
+ metadata.gz: db3e4bfe438c030fed78cf06a30211cd1e3496d0
4
+ data.tar.gz: f8f73eb78b98f1b7bd2e8f3d487cfa798d626909
5
5
  SHA512:
6
- metadata.gz: c86fe36f30b3a5850ea8a279d096063339c60d83c3f1ec1a04a03ea0a130dc752b85725b1dece9a7dc481ec43f27f1e6348135832ed8b1eb08d7bc601b49586c
7
- data.tar.gz: 802ed8216e2dfaccf55a88cdb7e18319ea2150d1b70840d688be7d400c246c4947131598e1f176893fa58c4f30b348ef955d47f70972a569a58d574bf35a8ea4
6
+ metadata.gz: 2a5779847a2dd4b555e73795f6b8cd14a7a4543be1914365a3dbcfc8a4511565fcbfd2eed46ecd7579460e69b4f4f1ac48b41e067ee1d2af230c13fd274b4e62
7
+ data.tar.gz: b7d661552338853e8abf4a5c8e2d8736454920a7e7d61c7193a43bc6d123f6b885055b5175570770f7b41d87b51bfd03afc8131eebdd5b8b44f6c8fcad6021a7
@@ -5,3 +5,6 @@
5
5
  // Load Standard
6
6
  @import "bootstrap";
7
7
  @import "font-awesome";
8
+
9
+ // Load Custom
10
+ @import "custom";
@@ -0,0 +1,4 @@
1
+ // Main Container Margin
2
+ .container {
3
+ padding-top: 40px;
4
+ }
@@ -2,9 +2,8 @@
2
2
 
3
3
  class Phcpress::PstimageUploader < CarrierWave::Uploader::Base
4
4
 
5
- # Include RMagick or MiniMagick support:
6
- # include CarrierWave::RMagick
7
- # include CarrierWave::MiniMagick
5
+ # Include MiniMagick
6
+ include CarrierWave::MiniMagick
8
7
 
9
8
  # Storage Type
10
9
  storage :file
@@ -15,9 +14,14 @@ class Phcpress::PstimageUploader < CarrierWave::Uploader::Base
15
14
  "uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"
16
15
  end
17
16
 
17
+ # White List of Safe Extension
18
+ def extension_white_list
19
+ %w(jpg jpeg gif png)
20
+ end
21
+
18
22
  # Hash filenames
19
23
  def filename
20
- "#{secure_token}.#{file.extension}" if original_filename.present?
24
+ "#{secure_token}.#{file.extension}" if original_filename.present?
21
25
  end
22
26
 
23
27
  protected
@@ -28,30 +32,4 @@ class Phcpress::PstimageUploader < CarrierWave::Uploader::Base
28
32
  model.instance_variable_get(var) or model.instance_variable_set(var, SecureRandom.uuid)
29
33
  end
30
34
 
31
- # Process files as they are uploaded:
32
- # process :scale => [200, 300]
33
- #
34
- # def scale(width, height)
35
- # # do something
36
- # end
37
-
38
- # Create different versions of your uploaded files:
39
- # version :thumb do
40
- # process :resize_to_fit => [50, 50]
41
- # end
42
-
43
- # Add a white list of extensions which are allowed to be uploaded.
44
- # For images you might use something like this:
45
- # def extension_white_list
46
- # %w(jpg jpeg gif png)
47
- # end
48
-
49
- # Override the filename of the uploaded files:
50
- # Avoid using model.id or version_name here, see uploader/store.rb for details.
51
- # def filename
52
- # "something.jpg" if original_filename
53
- # end
54
-
55
-
56
-
57
35
  end
@@ -6,7 +6,7 @@ require 'font-awesome-rails'
6
6
 
7
7
  # Load Image Processing
8
8
  require 'carrierwave'
9
- #require 'rmagick'
9
+ require 'mini_magick'
10
10
 
11
11
  module Phcpress
12
12
  class Engine < ::Rails::Engine
@@ -1,3 +1,3 @@
1
1
  module Phcpress
2
- VERSION = "0.9.7"
2
+ VERSION = "0.10.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phcpress
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.7
4
+ version: 0.10.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - BradPotts
@@ -58,6 +58,20 @@ dependencies:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
60
  version: 0.10.0
61
+ - !ruby/object:Gem::Dependency
62
+ name: mini_magick
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - "~>"
66
+ - !ruby/object:Gem::Version
67
+ version: '4.4'
68
+ type: :runtime
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - "~>"
73
+ - !ruby/object:Gem::Version
74
+ version: '4.4'
61
75
  - !ruby/object:Gem::Dependency
62
76
  name: jquery-rails
63
77
  requirement: !ruby/object:Gem::Requirement
@@ -252,9 +266,9 @@ files:
252
266
  - app/assets/javascripts/phcpress/website/pages.js
253
267
  - app/assets/stylesheets/phcpress/application.css.scss
254
268
  - app/assets/stylesheets/phcpress/blog/posts.css
269
+ - app/assets/stylesheets/phcpress/custom.css.scss
255
270
  - app/assets/stylesheets/phcpress/news/posts.css
256
271
  - app/assets/stylesheets/phcpress/website/pages.scss
257
- - app/assets/stylesheets/scaffolds.scss
258
272
  - app/controllers/phcpress/application_controller.rb
259
273
  - app/controllers/phcpress/blog/posts_controller.rb
260
274
  - app/controllers/phcpress/news/posts_controller.rb
@@ -313,7 +327,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
313
327
  version: '0'
314
328
  requirements: []
315
329
  rubyforge_project:
316
- rubygems_version: 2.4.3
330
+ rubygems_version: 2.5.1
317
331
  signing_key:
318
332
  specification_version: 4
319
333
  summary: News & Blog Posts Engine for Ruby on Rails
@@ -1,73 +0,0 @@
1
- body {
2
- background-color: #fff;
3
- color: #333;
4
- font-family: verdana, arial, helvetica, sans-serif;
5
- font-size: 13px;
6
- line-height: 18px;
7
- }
8
-
9
- p, ol, ul, td {
10
- font-family: verdana, arial, helvetica, sans-serif;
11
- font-size: 13px;
12
- line-height: 18px;
13
- }
14
-
15
- pre {
16
- background-color: #eee;
17
- padding: 10px;
18
- font-size: 11px;
19
- }
20
-
21
- a {
22
- color: #000;
23
-
24
- &:visited {
25
- color: #666;
26
- }
27
-
28
- &:hover {
29
- color: #fff;
30
- background-color: #000;
31
- }
32
- }
33
-
34
- div {
35
- &.field, &.actions {
36
- margin-bottom: 10px;
37
- }
38
- }
39
-
40
- #notice {
41
- color: green;
42
- }
43
-
44
- .field_with_errors {
45
- padding: 2px;
46
- background-color: red;
47
- display: table;
48
- }
49
-
50
- #error_explanation {
51
- width: 450px;
52
- border: 2px solid red;
53
- padding: 7px;
54
- padding-bottom: 0;
55
- margin-bottom: 20px;
56
- background-color: #f0f0f0;
57
-
58
- h2 {
59
- text-align: left;
60
- font-weight: bold;
61
- padding: 5px 5px 5px 15px;
62
- font-size: 12px;
63
- margin: -7px;
64
- margin-bottom: 0px;
65
- background-color: #c00;
66
- color: #fff;
67
- }
68
-
69
- ul li {
70
- font-size: 12px;
71
- list-style: square;
72
- }
73
- }