publify_core 9.0.0.pre3 → 9.0.0.pre4

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of publify_core might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 65754688dac47ff1c265e861e7d71e8ee11795b3
4
- data.tar.gz: 11d916318fe03f35ba726dd7c713d4ed78c51f7a
3
+ metadata.gz: 713333b28cf5d3665396034e1ec36044c84b1809
4
+ data.tar.gz: af294f20223adc19b805fdfbbe63d76f3cfa9069
5
5
  SHA512:
6
- metadata.gz: cb60a7fdf3aba54771e6ade6ea56b24d82420396e6ffbdafb07262474b3a96a275d8b3d136b5098c6c3270176d4ce9f3808f2be95746691eb59a4d3474e6147f
7
- data.tar.gz: ef03364bf180833752b6607d253a9b077dd897d1298ffe06d896d7e41584ba157183a5f83511259ce3ea10899bc69ead6dfbcc3ad1bbd06ac220ee5cf6335fdb
6
+ metadata.gz: b457b5ee74452a85222cd910536586107af41d66588b126ed46184c6c2be13f8c8b9310ca5342db605571958bcd720aaffdbe44935f394bcdc35ca28732a5123
7
+ data.tar.gz: 9e85b9161a21aae6f917d347897f55b51db74d080c5ab95efef5eab0824e6f8c88eec990ef957fa8b61d63374af5bde3fd68d5dc15336ee0b2646f6245bcaf59
data/.gitignore ADDED
@@ -0,0 +1,13 @@
1
+ .bundle/
2
+ Gemfile.lock
3
+ log/*.log
4
+ pkg/
5
+ spec/dummy/.sass-cache
6
+ spec/dummy/config/secret.token
7
+ spec/dummy/db/*.sqlite3
8
+ spec/dummy/db/*.sqlite3-journal
9
+ spec/dummy/log/*.log
10
+ spec/dummy/public/files/
11
+ spec/dummy/public/uploads/
12
+ spec/dummy/tmp/
13
+ spec/examples.txt
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --color
2
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,84 @@
1
+ # Default style guide 'https://github.com/bbatsov/ruby-style-guide'.
2
+
3
+ AllCops:
4
+ Exclude:
5
+ - 'bin/**/*'
6
+ - 'config/**/*'
7
+ - 'db/**/*'
8
+ - 'tmp/**/*'
9
+ - 'spec/dummy/**/*'
10
+ - 'vendor/**/*'
11
+
12
+ Rails:
13
+ Enabled: true
14
+
15
+ # Allow if (foo = get_foo) style
16
+ Lint/AssignmentInCondition:
17
+ AllowSafeAssignment: true
18
+
19
+ # Documenting all classes is not common in Rails projects.
20
+ Style/Documentation:
21
+ Enabled: false
22
+
23
+ # Provides more information, while still being displayable in modern wide-screen.
24
+ # TODO: Re-enable once linelength has been fixed everywhere.
25
+ # Metrics/LineLength:
26
+ # Max: 120
27
+
28
+ # Allow the use of 'and' 'or' in control structures.
29
+ Style/AndOr:
30
+ EnforcedStyle: conditionals
31
+
32
+ # Allow multiple Hash parameters to look similar
33
+ Style/BracesAroundHashParameters:
34
+ EnforcedStyle: context_dependent
35
+
36
+ Style/ClassAndModuleChildren:
37
+ Enabled: false
38
+
39
+ Style/CollectionMethods:
40
+ Enabled: true
41
+
42
+ # Place . on the previous line
43
+ Style/DotPosition:
44
+ EnforcedStyle: trailing
45
+
46
+ # This cop doesn't detect use of break yet
47
+ Style/EachWithObject:
48
+ Enabled: false
49
+
50
+ # Do not use unnecessary spacing.
51
+ Style/ExtraSpacing:
52
+ Enabled: true
53
+
54
+ # Allows format strings with: format, sprintf or percent.
55
+ Style/FormatString:
56
+ Enabled: false
57
+
58
+ # TODO: Re-enable and fix offenses
59
+ Style/GuardClause:
60
+ Enabled: false
61
+
62
+ # Multi-line operations should be simply indented. Aligning them makes it even
63
+ # harder to keep a sane line length.
64
+ Style/MultilineMethodCallIndentation:
65
+ EnforcedStyle: indented
66
+
67
+ # Multi-line operations should be simply indented. Aligning them makes it even
68
+ # harder to keep a sane line length.
69
+ Style/MultilineOperationIndentation:
70
+ EnforcedStyle: indented
71
+
72
+ # TODO: Re-enable?
73
+ Style/NumericPredicate:
74
+ Enabled: false
75
+
76
+ # Always use raise to raise exceptions
77
+ Style/SignalException:
78
+ EnforcedStyle: only_raise
79
+
80
+ # Allow meaningful names for single-line reduce etc.
81
+ Style/SingleLineBlockParams:
82
+ Enabled: false
83
+
84
+ inherit_from: .rubocop_todo.yml
data/.rubocop_todo.yml ADDED
@@ -0,0 +1,148 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config`
3
+ # on 2016-11-13 14:02:48 +0100 using RuboCop version 0.45.0.
4
+ # The point is for the user to remove these configuration records
5
+ # one by one as the offenses are removed from the code base.
6
+ # Note that changes in the inspected code, or installation of new
7
+ # versions of RuboCop, may require this file to be generated again.
8
+
9
+ # Offense count: 1
10
+ Lint/AmbiguousRegexpLiteral:
11
+ Exclude:
12
+ - 'spec/models/comment_spec.rb'
13
+
14
+ # Offense count: 2
15
+ Lint/Eval:
16
+ Exclude:
17
+ - 'lib/publify_plugins.rb'
18
+
19
+ # Offense count: 70
20
+ Metrics/AbcSize:
21
+ Max: 61
22
+
23
+ # Offense count: 1
24
+ # Configuration parameters: CountComments.
25
+ Metrics/BlockLength:
26
+ Max: 44
27
+
28
+ # Offense count: 10
29
+ # Configuration parameters: CountComments.
30
+ Metrics/ClassLength:
31
+ Max: 241
32
+
33
+ # Offense count: 15
34
+ Metrics/CyclomaticComplexity:
35
+ Max: 17
36
+
37
+ # Offense count: 730
38
+ # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives.
39
+ # URISchemes: http, https
40
+ Metrics/LineLength:
41
+ Max: 263
42
+
43
+ # Offense count: 56
44
+ # Configuration parameters: CountComments.
45
+ Metrics/MethodLength:
46
+ Max: 37
47
+
48
+ # Offense count: 1
49
+ # Configuration parameters: CountComments.
50
+ Metrics/ModuleLength:
51
+ Max: 201
52
+
53
+ # Offense count: 1
54
+ # Configuration parameters: CountKeywordArgs.
55
+ Metrics/ParameterLists:
56
+ Max: 6
57
+
58
+ # Offense count: 7
59
+ Metrics/PerceivedComplexity:
60
+ Max: 17
61
+
62
+ # Offense count: 2
63
+ # Configuration parameters: Include.
64
+ # Include: app/models/**/*.rb
65
+ Rails/HasAndBelongsToMany:
66
+ Exclude:
67
+ - 'app/models/article.rb'
68
+ - 'app/models/tag.rb'
69
+
70
+ # Offense count: 71
71
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
72
+ # SupportedStyles: strict, flexible
73
+ Rails/TimeZone:
74
+ Enabled: false
75
+
76
+ # Offense count: 8
77
+ Style/AccessorMethodName:
78
+ Exclude:
79
+ - 'app/controllers/admin/content_controller.rb'
80
+ - 'app/controllers/admin/pages_controller.rb'
81
+ - 'app/controllers/comments_controller.rb'
82
+ - 'app/controllers/trackbacks_controller.rb'
83
+ - 'app/models/content.rb'
84
+ - 'spec/models/blog_spec.rb'
85
+
86
+ # Offense count: 7
87
+ Style/ClassVars:
88
+ Exclude:
89
+ - 'app/controllers/admin/base_controller.rb'
90
+ - 'app/models/feedback.rb'
91
+ - 'lib/email_notify.rb'
92
+ - 'lib/publify_plugins.rb'
93
+ - 'lib/text_filter_plugin.rb'
94
+
95
+ # Offense count: 1
96
+ # Configuration parameters: AllowedVariables.
97
+ Style/GlobalVars:
98
+ Exclude:
99
+ - 'lib/publify_core.rb'
100
+
101
+ # Offense count: 2
102
+ # Cop supports --auto-correct.
103
+ # Configuration parameters: MaxLineLength.
104
+ Style/IfUnlessModifier:
105
+ Exclude:
106
+ - 'spec/controllers/base_controller_spec.rb'
107
+ - 'spec/models/page_cache_spec.rb'
108
+
109
+ # Offense count: 1
110
+ Style/MethodMissing:
111
+ Exclude:
112
+ - 'lib/stateful.rb'
113
+
114
+ # Offense count: 1
115
+ # Cop supports --auto-correct.
116
+ Style/MutableConstant:
117
+ Exclude:
118
+ - 'lib/publify_core/version.rb'
119
+
120
+ # Offense count: 6
121
+ # Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist.
122
+ # NamePrefix: is_, has_, have_
123
+ # NamePrefixBlacklist: is_, has_, have_
124
+ # NameWhitelist: is_a?
125
+ Style/PredicateName:
126
+ Exclude:
127
+ - 'spec/**/*'
128
+ - 'app/helpers/authors_helper.rb'
129
+ - 'app/models/article.rb'
130
+ - 'app/models/blog.rb'
131
+ - 'app/models/user.rb'
132
+ - 'lib/spam_protection.rb'
133
+ - 'lib/stateful.rb'
134
+
135
+ # Offense count: 12
136
+ # Cop supports --auto-correct.
137
+ # Configuration parameters: EnforcedStyle, SupportedStyles, AllowInnerSlashes.
138
+ # SupportedStyles: slashes, percent_r, mixed
139
+ Style/RegexpLiteral:
140
+ Exclude:
141
+ - 'app/models/blog.rb'
142
+ - 'app/models/note.rb'
143
+ - 'app/models/ping.rb'
144
+ - 'app/models/redirect.rb'
145
+ - 'lib/format.rb'
146
+ - 'lib/spam_protection.rb'
147
+ - 'lib/text_filter_plugin.rb'
148
+ - 'spec/models/content_spec.rb'
data/.travis.yml ADDED
@@ -0,0 +1,25 @@
1
+ sudo: false
2
+ language: ruby
3
+ cache: bundler
4
+ rvm:
5
+ - 2.3.1
6
+ - 2.3.3
7
+ - 2.4.0-preview3
8
+ matrix:
9
+ allow_failures:
10
+ - rvm: 2.4.0-preview3
11
+ branches:
12
+ only:
13
+ - master
14
+
15
+ addons:
16
+ code_climate:
17
+ repo_token: 8850bccc6911d74965627b1fafe753beb368fab00d33de0c7576c6598fc1220e
18
+
19
+ notifications:
20
+ webhooks:
21
+ urls:
22
+ - http://publify_hook.ookook.fr/travisci
23
+ on_success: always
24
+ on_failure: never
25
+ on_start: never
data/CHANGELOG.md ADDED
@@ -0,0 +1,19 @@
1
+ # Changelog
2
+
3
+ ## 9.0.0.pre4
4
+
5
+ * Ensure theme files are part of the gem.
6
+
7
+ ## 9.0.0.pre3
8
+
9
+ * Update to Rails 5.0
10
+ * Remove page caching since the released version of actionpack-page_caching is
11
+ incompatible with Rails 5.
12
+
13
+ ## 9.0.0.pre2
14
+
15
+ * Ensure PublifyCore::VERSION is available (mvz)
16
+
17
+ ## 9.0.0.pre1
18
+
19
+ * Initial pre-release of Publify Core as a separate gem.
data/Gemfile ADDED
@@ -0,0 +1,17 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Declare your gem's dependencies in publify_core.gemspec.
4
+ # Bundler will treat runtime dependencies like base dependencies, and
5
+ # development dependencies will be added by default to the :development group.
6
+ gemspec
7
+
8
+ # Declare any dependencies that are still in development here instead of in
9
+ # your gemspec. These might include edge Rails or gems from your path or
10
+ # Git. Remember to move these dependencies to your gemspec before releasing
11
+ # your gem to rubygems.org.
12
+
13
+ # To use a debugger
14
+ # gem 'byebug', group: [:development, :test]
15
+
16
+ gem 'launchy', '~> 2.4', group: :test
17
+ gem 'pry', '~> 0.10.3', group: [:development, :test]
File without changes
File without changes
File without changes
data/app/helpers/.keep ADDED
File without changes
data/app/mailers/.keep ADDED
File without changes
data/app/models/.keep ADDED
File without changes
File without changes
data/app/views/.keep ADDED
File without changes
@@ -1,3 +1,3 @@
1
1
  module PublifyCore
2
- VERSION = '9.0.0.pre3'
2
+ VERSION = '9.0.0.pre4'
3
3
  end
data/lib/publify_core.rb CHANGED
@@ -32,10 +32,6 @@ require 'text_filter_plugin'
32
32
  require 'theme'
33
33
  require 'transforms'
34
34
 
35
- # TODO: Handle this differently than with a global variable
36
- # define default secret token to avoid information duplication
37
- $default_token = '08aac1f2d29e54c90efa24a4aefef843ab62da7a2610d193bc0558a50254c7debac56b48ffd0b5990d6ed0cbecc7dc08dce1503b6b864d580758c3c46056729a'
38
-
39
35
  module PublifyCore
40
36
  Theme.register_themes File.join(Engine.root, 'themes')
41
37
 
@@ -0,0 +1,55 @@
1
+ $LOAD_PATH.push File.expand_path('../lib', __FILE__)
2
+
3
+ # Maintain your gem's version:
4
+ require 'publify_core/version'
5
+
6
+ # Describe your gem and declare its dependencies:
7
+ Gem::Specification.new do |s|
8
+ s.name = 'publify_core'
9
+ s.version = PublifyCore::VERSION
10
+ s.authors = ['Matijs van Zuijlen', 'Yannick François',
11
+ 'Thomas Lecavellier', 'Frédéric de Villamil']
12
+ s.email = ['matijs@matijs.net']
13
+ s.homepage = 'https://publify.co'
14
+ s.summary = 'Core engine for the Publify blogging system.'
15
+ s.description = 'Core engine for the Publify blogging system, formerly known as Typo.'
16
+ s.license = 'MIT'
17
+
18
+ s.files = `git ls-files -z`.split("\x0").
19
+ reject { |f| f.match(%r{^(bin|spec)/}) }
20
+
21
+ s.required_ruby_version = '>= 2.1.0'
22
+
23
+ s.add_dependency 'rails', '~> 5.0.0'
24
+ s.add_dependency 'RedCloth', '~> 4.3.1'
25
+ s.add_dependency 'activerecord-session_store', '~> 1.0.0'
26
+ s.add_dependency 'akismet', '~> 2.0'
27
+ s.add_dependency 'bluecloth', '~> 2.1'
28
+ s.add_dependency 'bootstrap-sass', '~> 3.3.6'
29
+ s.add_dependency 'cancancan', '~> 1.14'
30
+ s.add_dependency 'carrierwave', '~> 0.11.2'
31
+ s.add_dependency 'devise', '~> 4.2.0'
32
+ s.add_dependency 'devise-i18n', '~> 1.1.0'
33
+ s.add_dependency 'dynamic_form', '~> 1.1.4'
34
+ s.add_dependency 'feedjira', '~> 2.0.0'
35
+ s.add_dependency 'fog-aws', '~> 0.12.0'
36
+ s.add_dependency 'jquery-rails', '~> 4.2.1'
37
+ s.add_dependency 'jquery-ui-rails', '~> 5.0.2'
38
+ s.add_dependency 'kaminari', '~> 0.17.0'
39
+ s.add_dependency 'mini_magick', '~> 4.2'
40
+ s.add_dependency 'rails-timeago', '~> 2.0'
41
+ s.add_dependency 'rails_autolink', '~> 1.1.0'
42
+ s.add_dependency 'recaptcha', '~> 4.0.0'
43
+ s.add_dependency 'rubypants', '~> 0.6.0'
44
+ s.add_dependency 'sass-rails', '~> 5.0'
45
+ s.add_dependency 'twitter', '~> 5.16.0'
46
+ s.add_dependency 'uuidtools', '~> 2.1.1'
47
+
48
+ s.add_development_dependency 'sqlite3'
49
+ s.add_development_dependency 'rspec-rails', '~> 3.5.2'
50
+ s.add_development_dependency 'capybara', '~> 2.7'
51
+ s.add_development_dependency 'factory_girl_rails', '~> 4.6'
52
+ s.add_development_dependency 'rubocop', '~> 0.45.0'
53
+ s.add_development_dependency 'i18n-tasks', '~> 0.9.1'
54
+ s.add_development_dependency 'rails-controller-testing', '~> 1.0.1'
55
+ end
@@ -0,0 +1,4 @@
1
+ #### Plain theme for Publify
2
+
3
+ Plain is a theme for Publify consisting only of the default templates and a
4
+ sprinkle of CSS to make it look nice.
Binary file
@@ -0,0 +1,57 @@
1
+ /* Fonts and colors */
2
+ body {
3
+ font-family: sans-serif;
4
+ }
5
+ h1 a, h2 a {
6
+ text-decoration: none;
7
+ color: black;
8
+ }
9
+ h1 a:hover, h2 a:hover {
10
+ text-decoration: underline;
11
+ }
12
+ div.header, div.footer {
13
+ text-align: center;
14
+ }
15
+ #errors {
16
+ border: red 1px solid;
17
+ border-radius: 0.5rem;
18
+ background-color: #f88;
19
+ padding: 1rem;
20
+ }
21
+
22
+ /*
23
+ * Simple horizontal layout based on a 20 4 20 4 20 grid
24
+ */
25
+ div.container {
26
+ max-width: 44rem;
27
+ margin-left: auto;
28
+ margin-right: auto;
29
+ }
30
+ div.sidebar {
31
+ max-width: 20rem;
32
+ display: inline-block;
33
+ }
34
+ div.content, div.sidebar {
35
+ margin-bottom: 2rem;
36
+ }
37
+
38
+ @media(min-width: 68rem) {
39
+ div.container {
40
+ max-width: 68rem;
41
+ }
42
+ div.content {
43
+ width: 44rem;
44
+ float: left;
45
+ }
46
+ div.sidebar {
47
+ margin-left: 4rem;
48
+ }
49
+ }
50
+ div.footer {
51
+ clear: both;
52
+ }
53
+
54
+ /* Admin tools */
55
+ .admintools {
56
+ float: right;
57
+ }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: publify_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.0.0.pre3
4
+ version: 9.0.0.pre4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matijs van Zuijlen
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2016-11-26 00:00:00.000000000 Z
14
+ date: 2016-11-27 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rails
@@ -454,6 +454,13 @@ executables: []
454
454
  extensions: []
455
455
  extra_rdoc_files: []
456
456
  files:
457
+ - ".gitignore"
458
+ - ".rspec"
459
+ - ".rubocop.yml"
460
+ - ".rubocop_todo.yml"
461
+ - ".travis.yml"
462
+ - CHANGELOG.md
463
+ - Gemfile
457
464
  - MIT-LICENSE
458
465
  - README.rdoc
459
466
  - Rakefile
@@ -500,11 +507,13 @@ files:
500
507
  - app/assets/stylesheets/lightbox.css
501
508
  - app/assets/stylesheets/publify.css.scss
502
509
  - app/assets/stylesheets/publify_admin.css.scss
510
+ - app/assets/stylesheets/publify_core/.keep
503
511
  - app/assets/stylesheets/rss.css
504
512
  - app/assets/stylesheets/sidebar_admin.css.scss
505
513
  - app/assets/stylesheets/tagmanager.css
506
514
  - app/assets/stylesheets/user-styles.css
507
515
  - app/assets/stylesheets/widearea.css
516
+ - app/controllers/.keep
508
517
  - app/controllers/accounts_controller.rb
509
518
  - app/controllers/admin/base_controller.rb
510
519
  - app/controllers/admin/content_controller.rb
@@ -528,6 +537,7 @@ files:
528
537
  - app/controllers/authors_controller.rb
529
538
  - app/controllers/base_controller.rb
530
539
  - app/controllers/comments_controller.rb
540
+ - app/controllers/concerns/.keep
531
541
  - app/controllers/content_controller.rb
532
542
  - app/controllers/feedback_controller.rb
533
543
  - app/controllers/notes_controller.rb
@@ -538,6 +548,7 @@ files:
538
548
  - app/controllers/theme_controller.rb
539
549
  - app/controllers/trackbacks_controller.rb
540
550
  - app/controllers/xml_controller.rb
551
+ - app/helpers/.keep
541
552
  - app/helpers/admin/base_helper.rb
542
553
  - app/helpers/admin/feedback_helper.rb
543
554
  - app/helpers/articles_helper.rb
@@ -545,7 +556,9 @@ files:
545
556
  - app/helpers/base_helper.rb
546
557
  - app/helpers/blog_helper.rb
547
558
  - app/helpers/xml_helper.rb
559
+ - app/mailers/.keep
548
560
  - app/mailers/notification_mailer.rb
561
+ - app/models/.keep
549
562
  - app/models/ability.rb
550
563
  - app/models/archives_sidebar.rb
551
564
  - app/models/article.rb
@@ -553,6 +566,7 @@ files:
553
566
  - app/models/article/states.rb
554
567
  - app/models/blog.rb
555
568
  - app/models/comment.rb
569
+ - app/models/concerns/.keep
556
570
  - app/models/config_manager.rb
557
571
  - app/models/content.rb
558
572
  - app/models/content_base.rb
@@ -579,6 +593,7 @@ files:
579
593
  - app/services/migrator.rb
580
594
  - app/services/title_builder.rb
581
595
  - app/uploaders/resource_uploader.rb
596
+ - app/views/.keep
582
597
  - app/views/accounts/confirm.html.erb
583
598
  - app/views/admin/content/_article_list.html.erb
584
599
  - app/views/admin/content/_form.html.erb
@@ -820,6 +835,10 @@ files:
820
835
  - lib/text_filter_plugin.rb
821
836
  - lib/theme.rb
822
837
  - lib/transforms.rb
838
+ - publify_core.gemspec
839
+ - themes/plain/about.markdown
840
+ - themes/plain/preview.png
841
+ - themes/plain/stylesheets/theme.css
823
842
  homepage: https://publify.co
824
843
  licenses:
825
844
  - MIT