refs 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/Changelog +7 -0
  2. data/README.md +20 -2
  3. data/lib/refs.rb +1 -1
  4. data/lib/refs/refs.rb +5 -0
  5. metadata +4 -5
@@ -0,0 +1,7 @@
1
+ = 1.1.0
2
+
3
+ * Added custom stylesheet functionality
4
+
5
+ = 1.0.0
6
+
7
+ * Inital release
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
- # NOTE IT DOES NOT DO ANYTHING YET
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.
@@ -4,6 +4,6 @@ require 'launchy'
4
4
  require 'refs/refs'
5
5
 
6
6
  module Refs
7
- VERSION = "1.0.0"
7
+ VERSION = "1.1.0"
8
8
  REF_DIR = "#{ENV['HOME']}/.refs/"
9
9
  end
@@ -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.0.0
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-01 00:00:00 -05:00
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.6.2
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.