yield 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +36 -2
  3. data/bin/yield +4 -2
  4. data/lib/yield/version.rb +1 -1
  5. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 33095789491dcaf8af35fed8ba7508907d3d5e04
4
- data.tar.gz: 7fee599e090db934d3781affa101109444345a02
3
+ metadata.gz: d8d791602cc5f874c95782c1d5578b4ce95e1cf0
4
+ data.tar.gz: 0dafa89c8e89067b2ccadd199e70293b80d7dee4
5
5
  SHA512:
6
- metadata.gz: 83665eef2b98a62cd4542625939a7515d1b6466e611546d1f4ae31a0cbdf42380691bed5e765a51595d6564a3df785242d5d4bca39e0d282595a7963a7b207f7
7
- data.tar.gz: 194c8d7daa3bff51a3b35e5cac827d5495b95dce2f3e1381f2bc27f8ed3a296bd201fd40aa4f7f6fb5f5a9bb319655288f106a7cc7c38b1912cfaf83f670d672
6
+ metadata.gz: b7ce56ace95800a23d0d0d8cc33423bb29e3f7b284bb858e7e80e9beeb0c5c9dc370a37f8342e0429f49db78eb8d74d31cd72c4fb394ce64c007f9fc5ee1e675
7
+ data.tar.gz: 2cfad2e74cead35ec8456895c8922fbe9727923ce35ea3ecfb817cb02eddc1aef6880480cbb40e6ca7ff19bd88cfedf8f4c1eb3a47b88e1d909eb862e77b58f0
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # Yield
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/yield.png)](http://badge.fury.io/rb/yield)
4
+
3
5
  Yield is a command line utility that generates a preview of README.md and markdown files using GitHub Flavored Markdown in your browser. It parses your markdown files using [GitHub's Markdown API](http://developer.github.com/v3/markdown/), so you can preview it exactly how it will look on GitHub.
4
6
 
5
7
  ## Installation
@@ -36,12 +38,44 @@ $ yield UPDATES.md
36
38
 
37
39
  Then navigate to [localhost:4000](http://localhost:4000) in your browser to view the preview of the file. You can stop the server by pressing Control+C.
38
40
 
39
- ### Errors
41
+ ## Issues
40
42
 
41
- #### API Rate Limit Exceeded
43
+ ### API Rate Limit Exceeded
42
44
 
43
45
  GitHub's API only allows only 60 unauthenticated requests per hour from a single IP address. If you are hitting this limit, then you must really like yield!
44
46
 
47
+ ### OpenSSL Error
48
+
49
+ You may receive the following OpenSSL error after navigating to [localhost:4000](http://localhost:4000) on Mac OS X 10.8.
50
+
51
+ ```
52
+ OpenSSL::SSL::SSLError at /
53
+ SSL_connect returned=1 errno=0 state=SSLv3 read server key exchange B: bad ecpoint
54
+ ```
55
+
56
+ This error seems to be cause by a hosed installation of OpenSSL on the system. You can resolve this error by running the following commands:
57
+
58
+ ```bash
59
+ $ brew install openssl
60
+ $ brew link openssl --force
61
+ $ rvm reinstall 2.0.0 --with-gcc=gcc
62
+ ```
63
+
64
+ If this does not work for you, see the following links, which address the same issue:
65
+
66
+ * [How to install Ruby 2.0.0 with RVM on OSX 10.8 Mountain Lion](http://scottyv.me/2013/03/How-to-install-ruby-2-0-0-on-OSX-Mountain-Lion/)
67
+ * [“bad ecpoint” SSL error on fresh RVM Ruby 1.9.3 install on OSX Mountain Lion](http://stackoverflow.com/questions/15672133/bad-ecpoint-ssl-error-on-fresh-rvm-ruby-1-9-3-install-on-osx-mountain-lion)
68
+
69
+ ### Windows OpenSSL Error
70
+
71
+ If you receive an OpenSSL "certificate verify failed" error on Windows after launching the gem, the following steps will fix the issue.
72
+
73
+ 1. Download [http://curl.haxx.se/ca/cacert.pem](http://curl.haxx.se/ca/cacert.pem) and save it to C:\cacert.pem.
74
+ 2. Go to Computer -> Advanced Settings -> Environment Variables and create a new System Variable:<br />
75
+ **Variable**: SSL_CERT_FILE<br />
76
+ **Value**: C:\cacert.pem.
77
+ 4. Restart all command prompt windows and reissue the `yield` command.
78
+
45
79
  ## Contributing
46
80
 
47
81
  1. Fork it
data/bin/yield CHANGED
@@ -1,8 +1,10 @@
1
1
  #!/usr/bin/env ruby
2
-
2
+ require 'rbconfig'
3
3
  require_relative '../lib/yield'
4
4
 
5
- `stty -echoctl`
5
+ is_windows = (RbConfig::CONFIG['host_os'] =~ /mswin|mingw|cygwin/)
6
+
7
+ `stty -echoctl` unless is_windows
6
8
 
7
9
  if ARGV.length == 1
8
10
  filename = ARGV[0]
@@ -1,3 +1,3 @@
1
1
  module Yield
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yield
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Casey Scarborough
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-08 00:00:00.000000000 Z
11
+ date: 2013-08-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -120,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
120
120
  version: '0'
121
121
  requirements: []
122
122
  rubyforge_project:
123
- rubygems_version: 2.0.3
123
+ rubygems_version: 2.0.5
124
124
  signing_key:
125
125
  specification_version: 4
126
126
  summary: Yield is a command line utility written in Ruby that allows a user to render