flannel 0.1.2 → 0.1.3
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/VERSION.yml +3 -3
- data/bin/quilt-it +31 -0
- data/flannel.gemspec +4 -2
- metadata +6 -4
data/VERSION.yml
CHANGED
data/bin/quilt-it
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
$LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', 'lib')
|
4
|
+
require 'flannel'
|
5
|
+
|
6
|
+
module Flannel
|
7
|
+
class QuiltIt
|
8
|
+
def self.run! *args
|
9
|
+
args.each do|a|
|
10
|
+
if File.exists?(a)
|
11
|
+
contents = IO.read(a)
|
12
|
+
|
13
|
+
doc = Flannel::quilt contents
|
14
|
+
file_n_path = "#{strip_extension(a)}.html"
|
15
|
+
File.open(file_n_path, 'w') {|f| f.write(doc) }
|
16
|
+
else
|
17
|
+
puts "Can't find #{a}."
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
return 1
|
22
|
+
end
|
23
|
+
|
24
|
+
def self.strip_extension name
|
25
|
+
return name unless name[-8..-1] == '.flannel'
|
26
|
+
name[0..-9]
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
exit Flannel::QuiltIt.run!(*ARGV)
|
data/flannel.gemspec
CHANGED
@@ -5,12 +5,13 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{flannel}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Jamal Hansen"]
|
12
|
-
s.date = %q{2010-01-
|
12
|
+
s.date = %q{2010-01-10}
|
13
13
|
s.email = %q{jamal.hansen@gmail.com}
|
14
|
+
s.executables = ["quilt-it~", "quilt-it"]
|
14
15
|
s.extra_rdoc_files = [
|
15
16
|
"LICENSE",
|
16
17
|
"README.rdoc"
|
@@ -22,6 +23,7 @@ Gem::Specification.new do |s|
|
|
22
23
|
"README.rdoc",
|
23
24
|
"Rakefile",
|
24
25
|
"VERSION.yml",
|
26
|
+
"bin/quilt-it",
|
25
27
|
"features/external_link.feature",
|
26
28
|
"features/feed.feature",
|
27
29
|
"features/fixtures/devlicious.rss",
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flannel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jamal Hansen
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-01-
|
12
|
+
date: 2010-01-10 00:00:00 -06:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -34,8 +34,9 @@ dependencies:
|
|
34
34
|
version:
|
35
35
|
description:
|
36
36
|
email: jamal.hansen@gmail.com
|
37
|
-
executables:
|
38
|
-
|
37
|
+
executables:
|
38
|
+
- quilt-it~
|
39
|
+
- quilt-it
|
39
40
|
extensions: []
|
40
41
|
|
41
42
|
extra_rdoc_files:
|
@@ -48,6 +49,7 @@ files:
|
|
48
49
|
- README.rdoc
|
49
50
|
- Rakefile
|
50
51
|
- VERSION.yml
|
52
|
+
- bin/quilt-it
|
51
53
|
- features/external_link.feature
|
52
54
|
- features/feed.feature
|
53
55
|
- features/fixtures/devlicious.rss
|