quivjek 0.0.5 → 0.0.6

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: 68438c74131821db40f7c2425d67a2d23b9b5e17
4
- data.tar.gz: 1d3c15f9f6f492458e20b11f1ae38dbb8180e774
3
+ metadata.gz: 495378a161245e782ae43e45d2850b9feb6d782c
4
+ data.tar.gz: 5376ba809df34201290415cbebea1ff4814bc291
5
5
  SHA512:
6
- metadata.gz: 610d80eaee19b08d3323fb8e421d05ebaba596ba4736d724e61d26b6d78c7219c0735ad03deb569e08b435a1a12234fc85d7a50026a564411560308d3e29d3d3
7
- data.tar.gz: 84308240a6bac6c0f8cee05d66572cc3874c3de98f9a784117051d4cb813ef18e801a067b1361126e2d8896be6ce8ab23d4fbe920c56f5b0b940c6b88fb2946d
6
+ metadata.gz: e9bd8d8b2d245b86590b08ff2a820c202c9ebdda9f595497e21fd019c949b6b22ecde8e7370d6ded1e7d6b6ae3dd222cfea7bc2f2415430089c4a558b30c9dc3
7
+ data.tar.gz: b003c303471ece1b4307a211f4bf8505c80d57eba7462918c039362f43ce41ec25dc7b94a682a8bbe29f02f840d2e822ef0727a2405e7aa3701f3a3fcf415de1
data/README.md CHANGED
@@ -51,6 +51,8 @@ Run `jekyll build` and quivjek will automatically copy your Quiver notes to your
51
51
 
52
52
  1. When an image is added to a markdown cell, Quiver renames the file and sets the original file name as the image tag's alt attribute. For example the image `big-claw-puppy-on-wood-floor.jpg` becomes `![big-claw-puppy-on-wood-floor.jpg](quiver-image-url/642370E09A291BC1601CFD68B44A5C16.jpg)`. For SEO purposes quivjek reverses this process by renaming the image to whatever is found in your alt tag. Therefore it is recommended your alt tags are lowercase, slug-ified, unique, and end in the image file extension.
53
53
 
54
+ 1. You can prevent quivjek from running by setting ENV['APP_ENV'] = 'production'
55
+
54
56
  ## Development
55
57
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
56
58
 
data/lib/quivjek.rb CHANGED
@@ -8,8 +8,12 @@ require "front_matter_parser"
8
8
  require "yaml"
9
9
 
10
10
  Jekyll::Hooks.register :site, :after_init do |site|
11
- q = Quivjek.new(site)
12
- q.load_posts_from_quiver
11
+
12
+ if (ENV['APP_ENV'] != 'production')
13
+ q = Quivjek.new(site)
14
+ q.load_posts_from_quiver
15
+ end
16
+
13
17
  end
14
18
 
15
19
  class Quivjek
@@ -1,3 +1,3 @@
1
1
  class Quivjek
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quivjek
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Bjurstrom