decaporg / jekyll-decap-cms Goto Github PK
View Code? Open in Web Editor NEWA starter template for Jekyll and Decap CMS
A starter template for Jekyll and Decap CMS
I am unable to run the commands on my computer. I may not have the correct versions of Ruby or Gems, but Im not sure. Here are my details
Mac OS
macOS Mojave 10.14
Ruby Version
ruby 2.3.7p456 (2018-03-28 revision 63024) [universal.x86_64-darwin18]
Ruby Gem Version
3.0.6
When I run bundle install
, I get this:
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.
Fetching gem metadata from https://rubygems.org/...........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Using public_suffix 4.0.1
Using addressable 2.7.0
Using bundler 2.0.2
Using colorator 1.1.0
Using concurrent-ruby 1.1.5
Using eventmachine 1.2.7
Fetching http_parser.rb 0.6.0
Installing http_parser.rb 0.6.0 with native extensions
Errno::EACCES: Permission denied @ rb_sysopen - /Users/mikelevy/Web
Stuff/repos/jekyll-netlify-boilerplate/vendor/bundle/ruby/2.3.0/gems/http_parser.rb-0.6.0/.gitignore
An error occurred while installing http_parser.rb (0.6.0), and
Bundler cannot continue.
Make sure that `gem install http_parser.rb -v '0.6.0' --source
'https://rubygems.org/'` succeeds before bundling.
In Gemfile:
jekyll was resolved to 3.8.6, which depends on
em-websocket was resolved to 0.5.1, which depends on
http_parser.rb
When I try to upload images in the CMS, after using the one-click deploy with Netlify button, I initially get the following error: "Failed to persist media: API_Error"
In the console, the problem is always listed as a 401 GET error, with one of two error messages:
"This endpoint requires a Bearer token"
"Access to endpoint not allowed: this part of Github's API has been restricted"
The images appear to be successfully uploading to the git repo. After the image upload triggers a new deploy of the website, the images also show up in the media gallery on the backend/admin view of the website.
Maybe it is getting ignored when committing?
I found this warning message after forking the repo.
We found a potential security vulnerability in one of your dependencies.
The yajl-ruby dependency defined in Gemfile.lock has a known high severity security vulnerability in version range < 1.3.1 and should be updated.
Add WYSIWYG editor in body editor in admin page.
Github detected a security vulnerability. See screenshot below:
The dependency in question: https://github.com/ffi/ffi
https://nvd.nist.gov/vuln/detail/CVE-2018-1000201
Please update to ffi ~> 1.9.24
I couldn't figure out how to get past some auth issues I was having until I changed the default repo:
in config.yml. Please add a section to the README on changing the defaults.
I am registered to Netlify and run several websites there.
I attempted to use the deploy, followed the procedure. Once I am on netlify website, the build fails. Going back to github it shows that the newly created repo is empty.
As a result, running bundle install
will result in error, Could not find celluloid-0.16.1 in any of the sources
To workaround run, bundle update celluloid
~v2.5 to ~v3.5
23:32 john@john:~/git/jekyll-netlify-cms(master)$ bundle exec jekyll server --watch
Configuration file: /home/john/repos/git/jekyll-netlify-cms/_config.yml
Source: /home/john/repos/git/jekyll-netlify-cms
Destination: /home/john/repos/git/jekyll-netlify-cms/_site
Generating...
ERROR: YOUR SITE COULD NOT BE BUILT:
------------------------------------
Invalid date '0000-00-00': Post '/vendor/bundle/ruby/2.3.0/gems/jekyll-2.5.3/lib/site_template/_posts/0000-00-00-welcome-to-jekyll.markdown.erb' does not have a valid date in the filename.
OK let's hack the date:
23:33 john@john:~/git/jekyll-netlify-cms(master)$ mv vendor/bundle/ruby/2.3.0/gems/jekyll-2.5.3/lib/site_template/_posts/0000-00-00-welcome-to-jekyll.markdown.erb vendor/bundle/ruby/2.3.0/gems/jekyll-2.5.3/lib/site_template/_posts/2017-01-01-welcome-to-jekyll.markdown.erb
23:33 john@john:~/git/jekyll-netlify-cms(master)$ bundle exec jekyll server --watchConfiguration file: /home/john/repos/git/jekyll-netlify-cms/_config.yml
Source: /home/john/repos/git/jekyll-netlify-cms
Destination: /home/john/repos/git/jekyll-netlify-cms/_site
Generating...
ERROR: YOUR SITE COULD NOT BE BUILT:
------------------------------------
Invalid date '<%= Time.now.strftime('%Y-%m-%d %H:%M:%S') %>': Post '/vendor/bundle/ruby/2.3.0/gems/jekyll-2.5.3/lib/site_template/_posts/2017-01-01-welcome-to-jekyll.markdown.erb' does not have a valid date in the YAML front matter.
Oh, the template expects to be parsed first. Why's that not happening?
Hello!
When running bundle install
, it appears that yajl-ruby 1.2.1 is having some trouble being installed and prevents the bundler operation from continuing further. First time I ran this, I checked my ruby version: ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-darwin16]
. I then tried changing my version to 2.3.3
instead to see if this would change anything and still got this very long message. Any ideas?
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /Users/chris/.rvm/gems/ruby-2.4.0/gems/yajl-ruby-1.2.1/ext/yajl
/Users/chris/.rvm/rubies/ruby-2.4.0/bin/ruby -r ./siteconf20170829-6350-13a9klw.rb extconf.rb
creating Makefile
current directory: /Users/chris/.rvm/gems/ruby-2.4.0/gems/yajl-ruby-1.2.1/ext/yajl
make "DESTDIR=" clean
current directory: /Users/chris/.rvm/gems/ruby-2.4.0/gems/yajl-ruby-1.2.1/ext/yajl
make "DESTDIR="
compiling yajl.c
compiling yajl_alloc.c
compiling yajl_buf.c
compiling yajl_encode.c
compiling yajl_ext.c
yajl_ext.c:42:19: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
int len = RARRAY_LEN(wrapper->builderStack);
~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/chris/.rvm/rubies/ruby-2.4.0/include/ruby-2.4.0/ruby/ruby.h:1022:23: note: expanded from macro 'RARRAY_LEN'
#define RARRAY_LEN(a) rb_array_len(a)
^~~~~~~~~~~~~~~
yajl_ext.c:47:19: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
int len = RARRAY_LEN(wrapper->builderStack);
~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/chris/.rvm/rubies/ruby-2.4.0/include/ruby-2.4.0/ruby/ruby.h:1022:23: note: expanded from macro 'RARRAY_LEN'
#define RARRAY_LEN(a) rb_array_len(a)
^~~~~~~~~~~~~~~
yajl_ext.c:83:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
len = RARRAY_LEN(wrapper->builderStack);
~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/chris/.rvm/rubies/ruby-2.4.0/include/ruby-2.4.0/ruby/ruby.h:1022:23: note: expanded from macro 'RARRAY_LEN'
#define RARRAY_LEN(a) rb_array_len(a)
^~~~~~~~~~~~~~~
yajl_ext.c:201:19: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32]
len = RSTRING_LEN(str);
~ ^~~~~~~~~~~~~~~~
/Users/chris/.rvm/rubies/ruby-2.4.0/include/ruby-2.4.0/ruby/ruby.h:976:6: note: expanded from macro 'RSTRING_LEN'
RSTRING_EMBED_LEN(str) : \
^~~~~~~~~~~~~~~~~~~~~~
/Users/chris/.rvm/rubies/ruby-2.4.0/include/ruby-2.4.0/ruby/ruby.h:972:6: note: expanded from macro 'RSTRING_EMBED_LEN'
(long)((RBASIC(str)->flags >> RSTRING_EMBED_LEN_SHIFT) & \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
yajl_ext.c:201:19: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32]
len = RSTRING_LEN(str);
~ ^~~~~~~~~~~~~~~~
/Users/chris/.rvm/rubies/ruby-2.4.0/include/ruby-2.4.0/ruby/ruby.h:977:28: note: expanded from macro 'RSTRING_LEN'
RSTRING(str)->as.heap.len)
~~~~~~~~~~~~~~~~~~~~~~^~~
yajl_ext.c:209:19: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32]
len = RSTRING_LEN(obj);
~ ^~~~~~~~~~~~~~~~
/Users/chris/.rvm/rubies/ruby-2.4.0/include/ruby-2.4.0/ruby/ruby.h:976:6: note: expanded from macro 'RSTRING_LEN'
RSTRING_EMBED_LEN(str) : \
^~~~~~~~~~~~~~~~~~~~~~
/Users/chris/.rvm/rubies/ruby-2.4.0/include/ruby-2.4.0/ruby/ruby.h:972:6: note: expanded from macro 'RSTRING_EMBED_LEN'
(long)((RBASIC(str)->flags >> RSTRING_EMBED_LEN_SHIFT) & \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
yajl_ext.c:209:19: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32]
len = RSTRING_LEN(obj);
~ ^~~~~~~~~~~~~~~~
/Users/chris/.rvm/rubies/ruby-2.4.0/include/ruby-2.4.0/ruby/ruby.h:977:28: note: expanded from macro 'RSTRING_LEN'
RSTRING(str)->as.heap.len)
~~~~~~~~~~~~~~~~~~~~~~^~~
yajl_ext.c:217:23: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32]
len = RSTRING_LEN(str);
~ ^~~~~~~~~~~~~~~~
/Users/chris/.rvm/rubies/ruby-2.4.0/include/ruby-2.4.0/ruby/ruby.h:976:6: note: expanded from macro 'RSTRING_LEN'
RSTRING_EMBED_LEN(str) : \
^~~~~~~~~~~~~~~~~~~~~~
/Users/chris/.rvm/rubies/ruby-2.4.0/include/ruby-2.4.0/ruby/ruby.h:972:6: note: expanded from macro 'RSTRING_EMBED_LEN'
(long)((RBASIC(str)->flags >> RSTRING_EMBED_LEN_SHIFT) & \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
yajl_ext.c:217:23: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32]
len = RSTRING_LEN(str);
~ ^~~~~~~~~~~~~~~~
/Users/chris/.rvm/rubies/ruby-2.4.0/include/ruby-2.4.0/ruby/ruby.h:977:28: note: expanded from macro 'RSTRING_LEN'
RSTRING(str)->as.heap.len)
~~~~~~~~~~~~~~~~~~~~~~^~~
yajl_ext.c:223:23: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32]
len = RSTRING_LEN(str);
~ ^~~~~~~~~~~~~~~~
/Users/chris/.rvm/rubies/ruby-2.4.0/include/ruby-2.4.0/ruby/ruby.h:976:6: note: expanded from macro 'RSTRING_LEN'
RSTRING_EMBED_LEN(str) : \
^~~~~~~~~~~~~~~~~~~~~~
/Users/chris/.rvm/rubies/ruby-2.4.0/include/ruby-2.4.0/ruby/ruby.h:972:6: note: expanded from macro 'RSTRING_EMBED_LEN'
(long)((RBASIC(str)->flags >> RSTRING_EMBED_LEN_SHIFT) & \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
yajl_ext.c:223:23: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32]
len = RSTRING_LEN(str);
~ ^~~~~~~~~~~~~~~~
/Users/chris/.rvm/rubies/ruby-2.4.0/include/ruby-2.4.0/ruby/ruby.h:977:28: note: expanded from macro 'RSTRING_LEN'
RSTRING(str)->as.heap.len)
~~~~~~~~~~~~~~~~~~~~~~^~~
yajl_ext.c:492:15: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32]
len = RSTRING_LEN(input);
~ ^~~~~~~~~~~~~~~~~~
/Users/chris/.rvm/rubies/ruby-2.4.0/include/ruby-2.4.0/ruby/ruby.h:976:6: note: expanded from macro 'RSTRING_LEN'
RSTRING_EMBED_LEN(str) : \
^~~~~~~~~~~~~~~~~~~~~~
/Users/chris/.rvm/rubies/ruby-2.4.0/include/ruby-2.4.0/ruby/ruby.h:972:6: note: expanded from macro 'RSTRING_EMBED_LEN'
(long)((RBASIC(str)->flags >> RSTRING_EMBED_LEN_SHIFT) & \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
yajl_ext.c:492:15: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32]
len = RSTRING_LEN(input);
~ ^~~~~~~~~~~~~~~~~~
/Users/chris/.rvm/rubies/ruby-2.4.0/include/ruby-2.4.0/ruby/ruby.h:977:28: note: expanded from macro 'RSTRING_LEN'
RSTRING(str)->as.heap.len)
~~~~~~~~~~~~~~~~~~~~~~^~~
yajl_ext.c:498:19: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32]
len = RSTRING_LEN(parsed);
~ ^~~~~~~~~~~~~~~~~~~
/Users/chris/.rvm/rubies/ruby-2.4.0/include/ruby-2.4.0/ruby/ruby.h:976:6: note: expanded from macro 'RSTRING_LEN'
RSTRING_EMBED_LEN(str) : \
^~~~~~~~~~~~~~~~~~~~~~
/Users/chris/.rvm/rubies/ruby-2.4.0/include/ruby-2.4.0/ruby/ruby.h:972:6: note: expanded from macro 'RSTRING_EMBED_LEN'
(long)((RBASIC(str)->flags >> RSTRING_EMBED_LEN_SHIFT) & \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
yajl_ext.c:498:19: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32]
len = RSTRING_LEN(parsed);
~ ^~~~~~~~~~~~~~~~~~~
/Users/chris/.rvm/rubies/ruby-2.4.0/include/ruby-2.4.0/ruby/ruby.h:977:28: note: expanded from macro 'RSTRING_LEN'
RSTRING(str)->as.heap.len)
~~~~~~~~~~~~~~~~~~~~~~^~~
yajl_ext.c:538:15: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32]
len = RSTRING_LEN(chunk);
~ ^~~~~~~~~~~~~~~~~~
/Users/chris/.rvm/rubies/ruby-2.4.0/include/ruby-2.4.0/ruby/ruby.h:976:6: note: expanded from macro 'RSTRING_LEN'
RSTRING_EMBED_LEN(str) : \
^~~~~~~~~~~~~~~~~~~~~~
/Users/chris/.rvm/rubies/ruby-2.4.0/include/ruby-2.4.0/ruby/ruby.h:972:6: note: expanded from macro 'RSTRING_EMBED_LEN'
(long)((RBASIC(str)->flags >> RSTRING_EMBED_LEN_SHIFT) & \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
yajl_ext.c:538:15: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32]
len = RSTRING_LEN(chunk);
~ ^~~~~~~~~~~~~~~~~~
/Users/chris/.rvm/rubies/ruby-2.4.0/include/ruby-2.4.0/ruby/ruby.h:977:28: note: expanded from macro 'RSTRING_LEN'
RSTRING(str)->as.heap.len)
~~~~~~~~~~~~~~~~~~~~~~^~~
yajl_ext.c:881:22: error: use of undeclared identifier 'rb_cFixnum'
rb_define_method(rb_cFixnum, "to_json", rb_yajl_json_ext_fixnum_to_json, -1);
^
17 warnings and 1 error generated.
make: *** [yajl_ext.o] Error 1
make failed, exit code 2
Gem files will remain installed in /Users/chris/.rvm/gems/ruby-2.4.0/gems/yajl-ruby-1.2.1 for inspection.
Results logged to /Users/chris/.rvm/gems/ruby-2.4.0/extensions/x86_64-darwin-16/2.4.0/yajl-ruby-1.2.1/gem_make.out
An error occurred while installing yajl-ruby (1.2.1), and Bundler cannot continue.
Make sure that `gem install yajl-ruby -v '1.2.1'` succeeds before bundling.
In Gemfile:
jekyll was resolved to 2.5.3, which depends on
pygments.rb was resolved to 0.6.3, which depends on
yajl-ruby
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.