gyazz-markup 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +21 -0
- data/Gemfile +4 -0
- data/History.txt +6 -0
- data/LICENSE.txt +22 -0
- data/README.md +36 -0
- data/Rakefile +5 -22
- data/bin/gyazz-markup +5 -3
- data/gyazz-markup.gemspec +24 -0
- data/lib/gyazz-markup/markup.rb +5 -6
- data/lib/gyazz-markup/version.rb +3 -0
- data/lib/gyazz-markup.rb +1 -4
- data/test/test_gyazz-markup.rb +59 -5
- data/test/test_helper.rb +5 -3
- metadata +75 -100
- data/.gemtest +0 -0
- data/Manifest.txt +0 -12
- data/README.rdoc +0 -46
- data/script/console +0 -10
- data/script/destroy +0 -14
- data/script/generate +0 -14
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 0aff1fc1d5b6df303b1221c09d509fe654b6ae55
|
4
|
+
data.tar.gz: 80586e91ec5f5d8d34e11ed4b1532ce78a3d5325
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: a0e88fe9b17696df7a54e8d5b1b8ac8d02d0a31ee20e0edfb8c283e0122d28c5a076b77703978d23739f2e42eb8ee6ebeb827953cd57944bda9b959ffda29ad9
|
7
|
+
data.tar.gz: 226f84963e9f90b00874f2e50a51a5b6054a606ee982e22521e3f3ce4b53e414daf93fd3d2a364ddc7d61266ba9e97725173037119f1e6a08a9ef8f806accb9b
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/History.txt
CHANGED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2012-2013 Sho Hashimoto
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
gyazz-markup
|
2
|
+
============
|
3
|
+
convert Gyazz.com syntax to HTML.
|
4
|
+
|
5
|
+
* https://github.com/shokai/gyazz-markup
|
6
|
+
|
7
|
+
|
8
|
+
Installation
|
9
|
+
------------
|
10
|
+
|
11
|
+
% gem install gyazz-markup
|
12
|
+
|
13
|
+
|
14
|
+
Usage
|
15
|
+
-----
|
16
|
+
|
17
|
+
```ruby
|
18
|
+
require 'rubygems'
|
19
|
+
require 'gyazz-markup'
|
20
|
+
puts GyazzMarkup.markup(open("input.txt").read)
|
21
|
+
```
|
22
|
+
|
23
|
+
or
|
24
|
+
|
25
|
+
```ruby
|
26
|
+
puts GyazzMarkup.markup(open("input.txt").read, "shokai")
|
27
|
+
```
|
28
|
+
|
29
|
+
Contributing
|
30
|
+
------------
|
31
|
+
|
32
|
+
1. Fork it
|
33
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
34
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
35
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
36
|
+
5. Create new Pull Request
|
data/Rakefile
CHANGED
@@ -1,25 +1,8 @@
|
|
1
|
-
require
|
2
|
-
|
3
|
-
require 'hoe'
|
4
|
-
require 'fileutils'
|
5
|
-
require './lib/gyazz-markup'
|
6
|
-
|
7
|
-
Hoe.plugin :newgem
|
8
|
-
# Hoe.plugin :website
|
9
|
-
# Hoe.plugin :cucumberfeatures
|
10
|
-
|
11
|
-
# Generate all the Rake tasks
|
12
|
-
# Run 'rake -T' to see list of generated tasks (from gem root directory)
|
13
|
-
$hoe = Hoe.spec 'gyazz-markup' do
|
14
|
-
self.developer 'Sho Hashimoto', 'hashimoto@shokai.org'
|
15
|
-
self.rubyforge_name = self.name # TODO this is default value
|
16
|
-
# self.extra_deps = [['activesupport','>= 2.0.2']]
|
1
|
+
require "bundler/gem_tasks"
|
2
|
+
require "rake/testtask"
|
17
3
|
|
4
|
+
Rake::TestTask.new do |t|
|
5
|
+
t.pattern = "test/test_*.rb"
|
18
6
|
end
|
19
7
|
|
20
|
-
|
21
|
-
Dir['tasks/**/*.rake'].each { |t| load t }
|
22
|
-
|
23
|
-
# TODO - want other tests/tasks run by default? Add them to the list
|
24
|
-
# remove_task :default
|
25
|
-
# task :default => [:spec, :features]
|
8
|
+
task :default => :test
|
data/bin/gyazz-markup
CHANGED
@@ -1,14 +1,16 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# -*- coding: utf-8 -*-
|
3
|
+
$:.unshift File.expand_path '../lib', File.dirname(__FILE__)
|
3
4
|
require 'rubygems'
|
4
|
-
## $:.unshift File.dirname(__FILE__)+'/../lib/'
|
5
5
|
|
6
6
|
require 'gyazz-markup'
|
7
7
|
|
8
8
|
input, base = ARGV[0..1]
|
9
9
|
unless input
|
10
|
-
STDERR.puts "gyazz-markup
|
11
|
-
STDERR.puts
|
10
|
+
STDERR.puts "== gyazz-markup v#{GyazzMarkup::VERSION}"
|
11
|
+
STDERR.puts
|
12
|
+
STDERR.puts " % gyazz-markup input.txt"
|
13
|
+
STDERR.puts " % gyazz-markup input.txt WIKINAME"
|
12
14
|
exit 1
|
13
15
|
end
|
14
16
|
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'gyazz-markup/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "gyazz-markup"
|
8
|
+
spec.version = GyazzMarkup::VERSION
|
9
|
+
spec.authors = ["Sho Hashimoto"]
|
10
|
+
spec.email = ["hashimoto@shokai.org"]
|
11
|
+
spec.description = %q{convert Gyazz.com syntax to HTML.}
|
12
|
+
spec.summary = spec.description
|
13
|
+
spec.homepage = "https://github.com/shokai/gyazz-markup"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files`.split($/).reject{|i| i == "Gemfile.lock" }
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_development_dependency "bundler", "~> 1.3"
|
22
|
+
spec.add_development_dependency "rake"
|
23
|
+
spec.add_development_dependency "minitest"
|
24
|
+
end
|
data/lib/gyazz-markup/markup.rb
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
|
2
1
|
module GyazzMarkup
|
3
2
|
|
4
3
|
def self.markup(txt, base="test")
|
@@ -23,16 +22,16 @@ module GyazzMarkup
|
|
23
22
|
end
|
24
23
|
|
25
24
|
def self.markup_image(str)
|
26
|
-
pat = /\[{2,3}(https
|
25
|
+
pat = /\[{2,3}(https?:\/\/[^\s]+)\.(png|jpe?g|gif|bmp)\]{2,3}/
|
27
26
|
str !~ pat ? str : str.gsub(pat, "<a href=\"#{$1}.#{$2}\"><img src=\"#{$1}.#{$2}\"></a>")
|
28
27
|
end
|
29
28
|
|
30
29
|
def self.markup_url(str)
|
31
|
-
pat = /\[{2}(https
|
30
|
+
pat = /\[{2}(https?:\/\/[^\s]+)\]{2}/
|
32
31
|
str !~ pat ? str : str.gsub(pat, "<a href=\"#{$1}\">#{$1}</a>")
|
33
32
|
end
|
34
33
|
|
35
|
-
def self.markup_inner_link(str, base='
|
34
|
+
def self.markup_inner_link(str, base='test')
|
36
35
|
pat = /\[{2}(.+)\]{2}/
|
37
36
|
str !~ pat ? str : str.gsub(pat, "<a href=\"http://gyazz.com/#{base}/#{$1}\">#{$1}</a>")
|
38
37
|
end
|
@@ -43,12 +42,12 @@ module GyazzMarkup
|
|
43
42
|
end
|
44
43
|
|
45
44
|
def self.markup_url_with_title(str)
|
46
|
-
pat = /\[{2}(https
|
45
|
+
pat = /\[{2}(https?:\/\/[^\s]+)\s(.+)\]{2}/
|
47
46
|
str !~ pat ? str : str.gsub(pat, "<a href=\"#{$1}\">#{$2}</a>")
|
48
47
|
end
|
49
48
|
|
50
49
|
def self.markup_url_with_image(str)
|
51
|
-
pat = /\[{2}(https
|
50
|
+
pat = /\[{2}(https?:\/\/[^\s]+)\s(https?:\/\/[^\s]+)\.(png|jpe?g|gif|bmp)\]{2}/
|
52
51
|
str !~ pat ? str : str.gsub(pat, "<a href=\"#{$1}\"><img src=\"#{$2}.#{$3}\"></a>")
|
53
52
|
end
|
54
53
|
end
|
data/lib/gyazz-markup.rb
CHANGED
data/test/test_gyazz-markup.rb
CHANGED
@@ -1,11 +1,65 @@
|
|
1
1
|
require File.dirname(__FILE__) + '/test_helper.rb'
|
2
2
|
|
3
|
-
class TestGyazzMarkup <
|
3
|
+
class TestGyazzMarkup < MiniTest::Unit::TestCase
|
4
4
|
|
5
|
-
def
|
5
|
+
def test_markup_image
|
6
|
+
img_url = "http://example.com/foo.png"
|
7
|
+
assert GyazzMarkup::markup_image("[[#{img_url}]]") == "<a href=\"#{img_url}\"><img src=\"#{img_url}\"></a>", 'png image'
|
8
|
+
img_url = "http://example.com/foo.jpg"
|
9
|
+
assert GyazzMarkup::markup_image("[[#{img_url}]]") == "<a href=\"#{img_url}\"><img src=\"#{img_url}\"></a>", 'jpg image'
|
10
|
+
img_url = "http://example.com/foo.jpeg"
|
11
|
+
assert GyazzMarkup::markup_image("[[#{img_url}]]") == "<a href=\"#{img_url}\"><img src=\"#{img_url}\"></a>", 'jpeg image'
|
12
|
+
img_url = "http://example.com/foo.bmp"
|
13
|
+
assert GyazzMarkup::markup_image("[[#{img_url}]]") == "<a href=\"#{img_url}\"><img src=\"#{img_url}\"></a>", 'bmp image'
|
14
|
+
img_url = "http://example.com/foo.gif"
|
15
|
+
assert GyazzMarkup::markup_image("[[#{img_url}]]") == "<a href=\"#{img_url}\"><img src=\"#{img_url}\"></a>", 'gif image'
|
16
|
+
img_url = "http://example.com/foo.baaarrr"
|
17
|
+
assert GyazzMarkup::markup_image("[[#{img_url}]]") != "<a href=\"#{img_url}\"><img src=\"#{img_url}\"></a>", 'not image'
|
6
18
|
end
|
7
|
-
|
8
|
-
def
|
9
|
-
|
19
|
+
|
20
|
+
def test_markup_url
|
21
|
+
url = "http://example.com"
|
22
|
+
assert GyazzMarkup::markup_url("[[#{url}]]") == "<a href=\"#{url}\">#{url}</a>", 'http url'
|
23
|
+
url = "https://example.com"
|
24
|
+
assert GyazzMarkup::markup_url("[[#{url}]]") == "<a href=\"#{url}\">#{url}</a>", 'https url'
|
25
|
+
url = "ftp://example.com"
|
26
|
+
assert GyazzMarkup::markup_url("[[#{url}]]") != "<a href=\"#{url}\">#{url}</a>", 'not url'
|
27
|
+
end
|
28
|
+
|
29
|
+
def test_markup_inner_link
|
30
|
+
assert GyazzMarkup::markup_inner_link("[[foo bar]]") == "<a href=\"http://gyazz.com/test/foo bar\">foo bar</a>", "inner link without gyazz-name"
|
31
|
+
assert GyazzMarkup::markup_inner_link("[[foo bar]]", "baz") == "<a href=\"http://gyazz.com/baz/foo bar\">foo bar</a>", "inner link with gyazz-name"
|
32
|
+
end
|
33
|
+
|
34
|
+
def test_markup_strong
|
35
|
+
assert GyazzMarkup::markup_strong("[[[foo]]]") == "<strong>foo</strong>", "strong"
|
36
|
+
assert GyazzMarkup::markup_strong("[[[foo bar baz]]]") == "<strong>foo bar baz</strong>", "strong with space"
|
10
37
|
end
|
38
|
+
|
39
|
+
def test_markup_url_with_title
|
40
|
+
assert GyazzMarkup::markup_url_with_title("[[http://example.com mypage]]") == "<a href=\"http://example.com\">mypage</a>", "url with title"
|
41
|
+
assert GyazzMarkup::markup_url_with_title("[[http://example.com my page]]") == "<a href=\"http://example.com\">my page</a>", "space in title"
|
42
|
+
end
|
43
|
+
|
44
|
+
def test_markup_url_with_image
|
45
|
+
img_url = "http://example.com/foo.png"
|
46
|
+
url = "http://example.com"
|
47
|
+
assert GyazzMarkup::markup_url_with_image("[[#{url} #{img_url}]]") == "<a href=\"#{url}\"><img src=\"#{img_url}\"></a>", "url with png image"
|
48
|
+
img_url = "http://example.com/foo.jpg"
|
49
|
+
url = "http://example.com"
|
50
|
+
assert GyazzMarkup::markup_url_with_image("[[#{url} #{img_url}]]") == "<a href=\"#{url}\"><img src=\"#{img_url}\"></a>", "url with jpg image"
|
51
|
+
img_url = "http://example.com/foo.jpeg"
|
52
|
+
url = "http://example.com"
|
53
|
+
assert GyazzMarkup::markup_url_with_image("[[#{url} #{img_url}]]") == "<a href=\"#{url}\"><img src=\"#{img_url}\"></a>", "url with jpeg image"
|
54
|
+
img_url = "http://example.com/foo.gif"
|
55
|
+
url = "http://example.com"
|
56
|
+
assert GyazzMarkup::markup_url_with_image("[[#{url} #{img_url}]]") == "<a href=\"#{url}\"><img src=\"#{img_url}\"></a>", "url with gif image"
|
57
|
+
img_url = "http://example.com/foo.bmp"
|
58
|
+
url = "http://example.com"
|
59
|
+
assert GyazzMarkup::markup_url_with_image("[[#{url} #{img_url}]]") == "<a href=\"#{url}\"><img src=\"#{img_url}\"></a>", "url with bmp image"
|
60
|
+
img_url = "http://example.com/foo.baz"
|
61
|
+
url = "http://example.com"
|
62
|
+
assert GyazzMarkup::markup_url_with_image("[[#{url} #{img_url}]]") != "<a href=\"#{url}\"><img src=\"#{img_url}\"></a>", "url with not image"
|
63
|
+
end
|
64
|
+
|
11
65
|
end
|
data/test/test_helper.rb
CHANGED
metadata
CHANGED
@@ -1,127 +1,102 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: gyazz-markup
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 0
|
9
|
-
- 1
|
10
|
-
version: 0.0.1
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.2
|
11
5
|
platform: ruby
|
12
|
-
authors:
|
6
|
+
authors:
|
13
7
|
- Sho Hashimoto
|
14
8
|
autorequire:
|
15
9
|
bindir: bin
|
16
10
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
-
none: false
|
25
|
-
requirements:
|
11
|
+
date: 2013-04-07 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
26
17
|
- - ~>
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
|
29
|
-
segments:
|
30
|
-
- 3
|
31
|
-
- 10
|
32
|
-
version: "3.10"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.3'
|
33
20
|
type: :development
|
34
|
-
version_requirements: *id001
|
35
|
-
- !ruby/object:Gem::Dependency
|
36
|
-
name: newgem
|
37
21
|
prerelease: false
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.3'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
49
34
|
type: :development
|
50
|
-
version_requirements: *id002
|
51
|
-
- !ruby/object:Gem::Dependency
|
52
|
-
name: hoe
|
53
35
|
prerelease: false
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: minitest
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
64
48
|
type: :development
|
65
|
-
|
66
|
-
|
67
|
-
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
description: convert Gyazz.com syntax to HTML.
|
56
|
+
email:
|
68
57
|
- hashimoto@shokai.org
|
69
|
-
executables:
|
58
|
+
executables:
|
70
59
|
- gyazz-markup
|
71
60
|
extensions: []
|
72
|
-
|
73
|
-
|
61
|
+
extra_rdoc_files: []
|
62
|
+
files:
|
63
|
+
- .gitignore
|
64
|
+
- Gemfile
|
74
65
|
- History.txt
|
75
|
-
-
|
76
|
-
- README.
|
77
|
-
files:
|
78
|
-
- History.txt
|
79
|
-
- Manifest.txt
|
80
|
-
- README.rdoc
|
66
|
+
- LICENSE.txt
|
67
|
+
- README.md
|
81
68
|
- Rakefile
|
69
|
+
- bin/gyazz-markup
|
70
|
+
- gyazz-markup.gemspec
|
82
71
|
- lib/gyazz-markup.rb
|
83
72
|
- lib/gyazz-markup/markup.rb
|
84
|
-
-
|
85
|
-
- script/destroy
|
86
|
-
- script/generate
|
73
|
+
- lib/gyazz-markup/version.rb
|
87
74
|
- test/test_gyazz-markup.rb
|
88
75
|
- test/test_helper.rb
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
76
|
+
homepage: https://github.com/shokai/gyazz-markup
|
77
|
+
licenses:
|
78
|
+
- MIT
|
79
|
+
metadata: {}
|
94
80
|
post_install_message:
|
95
|
-
rdoc_options:
|
96
|
-
|
97
|
-
- README.rdoc
|
98
|
-
require_paths:
|
81
|
+
rdoc_options: []
|
82
|
+
require_paths:
|
99
83
|
- lib
|
100
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
none: false
|
111
|
-
requirements:
|
112
|
-
- - ">="
|
113
|
-
- !ruby/object:Gem::Version
|
114
|
-
hash: 3
|
115
|
-
segments:
|
116
|
-
- 0
|
117
|
-
version: "0"
|
84
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - '>='
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '0'
|
89
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
90
|
+
requirements:
|
91
|
+
- - '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
118
94
|
requirements: []
|
119
|
-
|
120
|
-
|
121
|
-
rubygems_version: 1.8.17
|
95
|
+
rubyforge_project:
|
96
|
+
rubygems_version: 2.0.3
|
122
97
|
signing_key:
|
123
|
-
specification_version:
|
124
|
-
summary:
|
125
|
-
test_files:
|
98
|
+
specification_version: 4
|
99
|
+
summary: convert Gyazz.com syntax to HTML.
|
100
|
+
test_files:
|
126
101
|
- test/test_gyazz-markup.rb
|
127
102
|
- test/test_helper.rb
|
data/.gemtest
DELETED
File without changes
|
data/Manifest.txt
DELETED
data/README.rdoc
DELETED
@@ -1,46 +0,0 @@
|
|
1
|
-
= gyazz-markup
|
2
|
-
|
3
|
-
* http://github.com/shokai/gyazz-markup
|
4
|
-
|
5
|
-
== DESCRIPTION:
|
6
|
-
|
7
|
-
markup Gyazz.com syntax.
|
8
|
-
|
9
|
-
== SYNOPSIS:
|
10
|
-
|
11
|
-
require 'rubygems'
|
12
|
-
require 'gyazz-markup'
|
13
|
-
puts GyazzMarkup.markup(open("input.txt").read)
|
14
|
-
|
15
|
-
or
|
16
|
-
|
17
|
-
puts GyazzMarkup.markup(open("input.txt").read, "shokai")
|
18
|
-
|
19
|
-
== INSTALL:
|
20
|
-
|
21
|
-
* gem install gyazz-markup
|
22
|
-
|
23
|
-
== LICENSE:
|
24
|
-
|
25
|
-
(The MIT License)
|
26
|
-
|
27
|
-
Copyright (c) 2012 Sho Hashimoto
|
28
|
-
|
29
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
30
|
-
a copy of this software and associated documentation files (the
|
31
|
-
'Software'), to deal in the Software without restriction, including
|
32
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
33
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
34
|
-
permit persons to whom the Software is furnished to do so, subject to
|
35
|
-
the following conditions:
|
36
|
-
|
37
|
-
The above copyright notice and this permission notice shall be
|
38
|
-
included in all copies or substantial portions of the Software.
|
39
|
-
|
40
|
-
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
41
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
42
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
43
|
-
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
44
|
-
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
45
|
-
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
46
|
-
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/script/console
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# File: script/console
|
3
|
-
irb = RUBY_PLATFORM =~ /(:?mswin|mingw)/ ? 'irb.bat' : 'irb'
|
4
|
-
|
5
|
-
libs = " -r irb/completion"
|
6
|
-
# Perhaps use a console_lib to store any extra methods I may want available in the cosole
|
7
|
-
# libs << " -r #{File.dirname(__FILE__) + '/../lib/console_lib/console_logger.rb'}"
|
8
|
-
libs << " -r #{File.dirname(__FILE__) + '/../lib/gyazz-markup.rb'}"
|
9
|
-
puts "Loading gyazz-markup gem"
|
10
|
-
exec "#{irb} #{libs} --simple-prompt"
|
data/script/destroy
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
|
3
|
-
|
4
|
-
begin
|
5
|
-
require 'rubigen'
|
6
|
-
rescue LoadError
|
7
|
-
require 'rubygems'
|
8
|
-
require 'rubigen'
|
9
|
-
end
|
10
|
-
require 'rubigen/scripts/destroy'
|
11
|
-
|
12
|
-
ARGV.shift if ['--help', '-h'].include?(ARGV[0])
|
13
|
-
RubiGen::Base.use_component_sources! [:rubygems, :newgem, :newgem_theme, :test_unit]
|
14
|
-
RubiGen::Scripts::Destroy.new.run(ARGV)
|
data/script/generate
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
|
3
|
-
|
4
|
-
begin
|
5
|
-
require 'rubigen'
|
6
|
-
rescue LoadError
|
7
|
-
require 'rubygems'
|
8
|
-
require 'rubigen'
|
9
|
-
end
|
10
|
-
require 'rubigen/scripts/generate'
|
11
|
-
|
12
|
-
ARGV.shift if ['--help', '-h'].include?(ARGV[0])
|
13
|
-
RubiGen::Base.use_component_sources! [:rubygems, :newgem, :newgem_theme, :test_unit]
|
14
|
-
RubiGen::Scripts::Generate.new.run(ARGV)
|