refs 1.0.0 → 1.1.0
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.
- data/Changelog +7 -0
- data/README.md +20 -2
- data/lib/refs.rb +1 -1
- data/lib/refs/refs.rb +5 -0
- metadata +4 -5
data/Changelog
ADDED
data/README.md
CHANGED
@@ -1,3 +1,21 @@
|
|
1
|
-
This is a tool that is used for storing references
|
1
|
+
This is a tool that is used for storing references, formatted in
|
2
|
+
Markdown.
|
2
3
|
|
3
|
-
|
4
|
+
## Installation
|
5
|
+
|
6
|
+
gem install refs
|
7
|
+
|
8
|
+
## Usage
|
9
|
+
|
10
|
+
Try `refs -h`
|
11
|
+
|
12
|
+
## Custom Styling
|
13
|
+
|
14
|
+
To use a custom stylesheet for your references, you can put a file
|
15
|
+
called `style.css` in the `~/.refs/` directory.
|
16
|
+
|
17
|
+
## Other
|
18
|
+
|
19
|
+
The references are stored in `~/.refs/` and are stored as Markdown
|
20
|
+
files, you can use Markdown for the formatting and when accessing them,
|
21
|
+
they will be converted to HTML and opened in your default web browser.
|
data/lib/refs.rb
CHANGED
data/lib/refs/refs.rb
CHANGED
@@ -26,6 +26,11 @@ module Refs
|
|
26
26
|
Launchy::Browser.run(File.absolute_path(f))
|
27
27
|
end
|
28
28
|
else
|
29
|
+
if File.exists?("style.css")
|
30
|
+
File.open("#{the_ref}.md", 'w') do |f|
|
31
|
+
f.write('<link rel="stylesheet" href="style.css" />')
|
32
|
+
end
|
33
|
+
end
|
29
34
|
system("#{ENV['EDITOR']} \"#{the_ref}.md\"")
|
30
35
|
exit 0
|
31
36
|
end
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: refs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 1.
|
5
|
+
version: 1.1.0
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Mark Szymanski
|
@@ -10,8 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-04-
|
14
|
-
default_executable:
|
13
|
+
date: 2011-04-04 00:00:00 Z
|
15
14
|
dependencies:
|
16
15
|
- !ruby/object:Gem::Dependency
|
17
16
|
name: maruku
|
@@ -56,6 +55,7 @@ extra_rdoc_files: []
|
|
56
55
|
|
57
56
|
files:
|
58
57
|
- .gitignore
|
58
|
+
- Changelog
|
59
59
|
- Gemfile
|
60
60
|
- Gemfile.lock
|
61
61
|
- README.md
|
@@ -64,7 +64,6 @@ files:
|
|
64
64
|
- lib/refs.rb
|
65
65
|
- lib/refs/refs.rb
|
66
66
|
- refs.gemspec
|
67
|
-
has_rdoc: true
|
68
67
|
homepage: http://github.com/mrman208/refs
|
69
68
|
licenses: []
|
70
69
|
|
@@ -88,7 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
88
87
|
requirements: []
|
89
88
|
|
90
89
|
rubyforge_project: refs
|
91
|
-
rubygems_version: 1.
|
90
|
+
rubygems_version: 1.7.1
|
92
91
|
signing_key:
|
93
92
|
specification_version: 3
|
94
93
|
summary: A simple tool for storing plain text references.
|