Skip to content

Commit

Permalink
Add script to install gems
Browse files Browse the repository at this point in the history
  • Loading branch information
deanishe committed Dec 24, 2017
1 parent 380db2d commit 0445c7a
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/cpjs/node_modules/

# Created by https://www.gitignore.io/api/python,sublimetext,vim

Expand Down
6 changes: 0 additions & 6 deletions src/lib/cite/Gemfile

This file was deleted.

14 changes: 14 additions & 0 deletions src/lib/cite/install-gems.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/zsh

set -e

here="$( cd "$( dirname "$0" )"; pwd )"

gem install -N -f -i "$here" -v '1.0.0' 'namae'
gem install -N -f -i "$here" -v '1.4.5' 'csl'
gem install -N -f -i "$here" -v '1.0.7' 'citeproc'
gem install -N -f -i "$here" -v '1.1.8' 'citeproc-ruby'
gem install -N -f -i "$here" -v '1.4.0' 'unicode_utils'

command rm -rf "${here}/gems/namae-0.*"
command rm -rf "${here}/doc" "${here}/build_info" "${here}/cache" "${here}/specifications" "${here}/"*.gem
3 changes: 2 additions & 1 deletion src/lib/zothero/styles.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,8 @@ def cite(self, entry, style, bibliography=False, locale=None):

log.debug('[styles] locale=%r', locale)
log.debug('[styles] style=%r', style)
log.debug('[styles] csl=%r', [entry.csl])
log.debug('[styles] csl=%r', entry.csl)
# log.debug('[styles] json=%s', entry.csljson)

return cite.generate([entry.csl], style.path, bibliography, locale)

Expand Down

0 comments on commit 0445c7a

Please sign in to comment.