anchorrb 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CONTRIBUTING.md +41 -0
- data/Gemfile +13 -0
- data/Gemfile.lock +166 -0
- data/Guardfile +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +2 -0
- data/Rakefile +46 -0
- data/coverage/.last_run.json +5 -0
- data/coverage/.resultset.json +22 -0
- data/coverage/.resultset.json.lock +0 -0
- data/coverage/assets/0.10.0/application.css +799 -0
- data/coverage/assets/0.10.0/application.js +1707 -0
- data/coverage/assets/0.10.0/colorbox/border.png +0 -0
- data/coverage/assets/0.10.0/colorbox/controls.png +0 -0
- data/coverage/assets/0.10.0/colorbox/loading.gif +0 -0
- data/coverage/assets/0.10.0/colorbox/loading_background.png +0 -0
- data/coverage/assets/0.10.0/favicon_green.png +0 -0
- data/coverage/assets/0.10.0/favicon_red.png +0 -0
- data/coverage/assets/0.10.0/favicon_yellow.png +0 -0
- data/coverage/assets/0.10.0/loading.gif +0 -0
- data/coverage/assets/0.10.0/magnify.png +0 -0
- data/coverage/assets/0.10.0/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/coverage/assets/0.10.0/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/coverage/assets/0.10.0/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/coverage/assets/0.10.0/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/coverage/assets/0.10.0/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/coverage/assets/0.10.0/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/coverage/assets/0.10.0/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/coverage/assets/0.10.0/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/coverage/assets/0.10.0/smoothness/images/ui-icons_222222_256x240.png +0 -0
- data/coverage/assets/0.10.0/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
- data/coverage/assets/0.10.0/smoothness/images/ui-icons_454545_256x240.png +0 -0
- data/coverage/assets/0.10.0/smoothness/images/ui-icons_888888_256x240.png +0 -0
- data/coverage/assets/0.10.0/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/coverage/index.html +178 -0
- data/lib/anchorrb.rb +13 -0
- data/lib/version.rb +6 -0
- data/scripts/bump_version +46 -0
- data/scripts/check_flay +30 -0
- data/scripts/check_flog +31 -0
- data/scripts/git_hooks/pre-commit +16 -0
- data/scripts/git_hooks/pre-push +9 -0
- data/scripts/release +8 -0
- data/spec/anchorrb_spec.rb +13 -0
- data/spec/spec_helper.rb +13 -0
- data/spec/spec_helper_simplecov.rb +9 -0
- metadata +217 -0
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/coverage/index.html
ADDED
@@ -0,0 +1,178 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html xmlns='http://www.w3.org/1999/xhtml'>
|
3
|
+
<head>
|
4
|
+
<title>Code coverage for Anchorrb</title>
|
5
|
+
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
6
|
+
<script src='./assets/0.10.0/application.js' type='text/javascript'></script>
|
7
|
+
<link href='./assets/0.10.0/application.css' media='screen, projection, print' rel='stylesheet' type='text/css'>
|
8
|
+
<link rel="shortcut icon" type="image/png" href="./assets/0.10.0/favicon_green.png" />
|
9
|
+
<link rel="icon" type="image/png" href="./assets/0.10.0/favicon.png" />
|
10
|
+
</head>
|
11
|
+
|
12
|
+
<body>
|
13
|
+
<div id="loading">
|
14
|
+
<img src="./assets/0.10.0/loading.gif" alt="loading"/>
|
15
|
+
</div>
|
16
|
+
<div id="wrapper" style="display:none;">
|
17
|
+
<div class="timestamp">Generated <abbr class="timeago" title="2015-11-03T22:31:13+01:00">2015-11-03T22:31:13+01:00</abbr></div>
|
18
|
+
<ul class="group_tabs"></ul>
|
19
|
+
|
20
|
+
<div id="content">
|
21
|
+
<div class="file_list_container" id="AllFiles">
|
22
|
+
<h2>
|
23
|
+
<span class="group_name">All Files</span>
|
24
|
+
(<span class="covered_percent"><span class="green">100.0%</span></span>
|
25
|
+
covered at
|
26
|
+
<span class="covered_strength">
|
27
|
+
<span class="yellow">
|
28
|
+
1.0
|
29
|
+
</span>
|
30
|
+
</span> hits/line)
|
31
|
+
</h2>
|
32
|
+
<a name="AllFiles"></a>
|
33
|
+
<div>
|
34
|
+
<b>1</b> files in total.
|
35
|
+
<b>9</b> relevant lines.
|
36
|
+
<span class="green"><b>9</b> lines covered</span> and
|
37
|
+
<span class="red"><b>0</b> lines missed </span>
|
38
|
+
</div>
|
39
|
+
<table class="file_list">
|
40
|
+
<thead>
|
41
|
+
<tr>
|
42
|
+
<th>File</th>
|
43
|
+
<th>% covered</th>
|
44
|
+
<th>Lines</th>
|
45
|
+
<th>Relevant Lines</th>
|
46
|
+
<th>Lines covered</th>
|
47
|
+
<th>Lines missed</th>
|
48
|
+
<th>Avg. Hits / Line</th>
|
49
|
+
</tr>
|
50
|
+
</thead>
|
51
|
+
<tbody>
|
52
|
+
|
53
|
+
<tr>
|
54
|
+
<td class="strong"><a href="#850e5732a20d6a71cc5edc4b4371dfdc79584368" class="src_link" title="lib/anchorrb.rb">lib/anchorrb.rb</a></td>
|
55
|
+
<td class="green strong">100.0 %</td>
|
56
|
+
<td>13</td>
|
57
|
+
<td>9</td>
|
58
|
+
<td>9</td>
|
59
|
+
<td>0</td>
|
60
|
+
<td>1.0</td>
|
61
|
+
</tr>
|
62
|
+
|
63
|
+
</tbody>
|
64
|
+
</table>
|
65
|
+
</div>
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
</div>
|
70
|
+
|
71
|
+
<div id="footer">
|
72
|
+
Generated by <a href="http://github.com/colszowka/simplecov">simplecov</a> v0.10.0
|
73
|
+
and simplecov-html v0.10.0<br/>
|
74
|
+
using RSpec
|
75
|
+
</div>
|
76
|
+
|
77
|
+
<div class="source_files">
|
78
|
+
|
79
|
+
<div class="source_table" id="850e5732a20d6a71cc5edc4b4371dfdc79584368">
|
80
|
+
<div class="header">
|
81
|
+
<h3>lib/anchorrb.rb</h3>
|
82
|
+
<h4><span class="green">100.0 %</span> covered</h4>
|
83
|
+
<div>
|
84
|
+
<b>9</b> relevant lines.
|
85
|
+
<span class="green"><b>9</b> lines covered</span> and
|
86
|
+
<span class="red"><b>0</b> lines missed.</span>
|
87
|
+
</div>
|
88
|
+
</div>
|
89
|
+
|
90
|
+
<pre>
|
91
|
+
<ol>
|
92
|
+
|
93
|
+
<li class="never" data-hits="" data-linenumber="1">
|
94
|
+
|
95
|
+
|
96
|
+
<code class="ruby"># Ruby transcription of:</code>
|
97
|
+
</li>
|
98
|
+
|
99
|
+
<li class="never" data-hits="" data-linenumber="2">
|
100
|
+
|
101
|
+
|
102
|
+
<code class="ruby"># https://github.com/bryanbraun/anchorjs/blob/master/anchor.js</code>
|
103
|
+
</li>
|
104
|
+
|
105
|
+
<li class="covered" data-hits="1" data-linenumber="3">
|
106
|
+
<span class="hits">1</span>
|
107
|
+
|
108
|
+
<code class="ruby">class AnchorRb</code>
|
109
|
+
</li>
|
110
|
+
|
111
|
+
<li class="covered" data-hits="1" data-linenumber="4">
|
112
|
+
<span class="hits">1</span>
|
113
|
+
|
114
|
+
<code class="ruby"> def self.convert(rough_text)</code>
|
115
|
+
</li>
|
116
|
+
|
117
|
+
<li class="covered" data-hits="1" data-linenumber="5">
|
118
|
+
<span class="hits">1</span>
|
119
|
+
|
120
|
+
<code class="ruby"> unsafe_chars = %r{[\\\[\]\+\$\?& ,:;=@"{}#|^~`\%!./()*]}</code>
|
121
|
+
</li>
|
122
|
+
|
123
|
+
<li class="covered" data-hits="1" data-linenumber="6">
|
124
|
+
<span class="hits">1</span>
|
125
|
+
|
126
|
+
<code class="ruby"> tidy_text = rough_text.delete("'")</code>
|
127
|
+
</li>
|
128
|
+
|
129
|
+
<li class="covered" data-hits="1" data-linenumber="7">
|
130
|
+
<span class="hits">1</span>
|
131
|
+
|
132
|
+
<code class="ruby"> tidy_text = tidy_text.gsub(unsafe_chars, '-')</code>
|
133
|
+
</li>
|
134
|
+
|
135
|
+
<li class="covered" data-hits="1" data-linenumber="8">
|
136
|
+
<span class="hits">1</span>
|
137
|
+
|
138
|
+
<code class="ruby"> tidy_text = tidy_text.gsub(/-{2,}/, '-')</code>
|
139
|
+
</li>
|
140
|
+
|
141
|
+
<li class="covered" data-hits="1" data-linenumber="9">
|
142
|
+
<span class="hits">1</span>
|
143
|
+
|
144
|
+
<code class="ruby"> tidy_text = tidy_text[0, 64]</code>
|
145
|
+
</li>
|
146
|
+
|
147
|
+
<li class="covered" data-hits="1" data-linenumber="10">
|
148
|
+
<span class="hits">1</span>
|
149
|
+
|
150
|
+
<code class="ruby"> tidy_text = tidy_text.gsub(/^-+|-+$/, '')</code>
|
151
|
+
</li>
|
152
|
+
|
153
|
+
<li class="covered" data-hits="1" data-linenumber="11">
|
154
|
+
<span class="hits">1</span>
|
155
|
+
|
156
|
+
<code class="ruby"> tidy_text.downcase</code>
|
157
|
+
</li>
|
158
|
+
|
159
|
+
<li class="never" data-hits="" data-linenumber="12">
|
160
|
+
|
161
|
+
|
162
|
+
<code class="ruby"> end</code>
|
163
|
+
</li>
|
164
|
+
|
165
|
+
<li class="never" data-hits="" data-linenumber="13">
|
166
|
+
|
167
|
+
|
168
|
+
<code class="ruby">end</code>
|
169
|
+
</li>
|
170
|
+
|
171
|
+
</ol>
|
172
|
+
</pre>
|
173
|
+
</div>
|
174
|
+
|
175
|
+
</div>
|
176
|
+
</div>
|
177
|
+
</body>
|
178
|
+
</html>
|
data/lib/anchorrb.rb
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
# Ruby transcription of:
|
2
|
+
# https://github.com/bryanbraun/anchorjs/blob/master/anchor.js
|
3
|
+
class AnchorRb
|
4
|
+
def self.convert(rough_text)
|
5
|
+
unsafe_chars = %r{[\\\[\]\+\$\?& ,:;=@"{}#|^~`\%!./()*]}
|
6
|
+
tidy_text = rough_text.delete("'")
|
7
|
+
tidy_text = tidy_text.gsub(unsafe_chars, '-')
|
8
|
+
tidy_text = tidy_text.gsub(/-{2,}/, '-')
|
9
|
+
tidy_text = tidy_text[0, 64]
|
10
|
+
tidy_text = tidy_text.gsub(/^-+|-+$/, '')
|
11
|
+
tidy_text.downcase
|
12
|
+
end
|
13
|
+
end
|
data/lib/version.rb
ADDED
@@ -0,0 +1,46 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
require_relative '../lib/version.rb'
|
3
|
+
|
4
|
+
class BumpVersion
|
5
|
+
def initialize(*args)
|
6
|
+
@type = args[0]
|
7
|
+
if !valid_type?(@type)
|
8
|
+
puts "Invalid bump type: #{@type}"
|
9
|
+
exit 1
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
def valid_type?(type)
|
14
|
+
%w(major minor patch).include?(type)
|
15
|
+
end
|
16
|
+
|
17
|
+
def bump(current_version, type)
|
18
|
+
major, minor, patch = current_version.split('.').map(&:to_i)
|
19
|
+
if type == 'major'
|
20
|
+
major += 1
|
21
|
+
minor = 0
|
22
|
+
patch = 0
|
23
|
+
end
|
24
|
+
if type == 'minor'
|
25
|
+
minor += 1
|
26
|
+
patch = 0
|
27
|
+
end
|
28
|
+
patch += 1 if type == 'patch'
|
29
|
+
"#{major}.#{minor}.#{patch}"
|
30
|
+
end
|
31
|
+
|
32
|
+
def run
|
33
|
+
old_version = AnchorRbVersion.to_s
|
34
|
+
new_version = bump(old_version, @type)
|
35
|
+
|
36
|
+
script_dir = File.expand_path(File.dirname(__FILE__))
|
37
|
+
file = File.join(script_dir, '../lib/version.rb')
|
38
|
+
old_content = File.read(file)
|
39
|
+
new_content = old_content.gsub(old_version, new_version)
|
40
|
+
File.write(file, new_content)
|
41
|
+
|
42
|
+
`git add #{file}`
|
43
|
+
`git commit -m "chore(bump): Version bump to #{new_version}"`
|
44
|
+
end
|
45
|
+
end
|
46
|
+
BumpVersion.new(*ARGV).run
|
data/scripts/check_flay
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
MAX_SCORE = 45
|
4
|
+
|
5
|
+
flay_lines = `flay -s ./lib/`.split("\n")
|
6
|
+
|
7
|
+
errors = []
|
8
|
+
flay_lines.each_with_index do |line, index|
|
9
|
+
# Skip header
|
10
|
+
next if index < 2
|
11
|
+
|
12
|
+
pattern = /^ *(.*): (.*)/
|
13
|
+
matches = line.match(pattern)
|
14
|
+
next if matches.nil?
|
15
|
+
score = matches[1].to_f
|
16
|
+
|
17
|
+
next if score < MAX_SCORE
|
18
|
+
errors << {
|
19
|
+
score: score,
|
20
|
+
file: matches[2]
|
21
|
+
}
|
22
|
+
end
|
23
|
+
|
24
|
+
exit 0 if errors.size == 0
|
25
|
+
|
26
|
+
puts 'Flay test failed:'
|
27
|
+
errors.sort_by { |a| a[:score] }.each do |error|
|
28
|
+
puts "#{error[:score]} / #{MAX_SCORE} in #{error[:file]}"
|
29
|
+
end
|
30
|
+
exit 1
|
data/scripts/check_flog
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
MAX_SCORE = 45
|
4
|
+
|
5
|
+
flog_lines = `flog ./lib/`.split("\n")
|
6
|
+
|
7
|
+
errors = []
|
8
|
+
flog_lines.each_with_index do |line, index|
|
9
|
+
# Skip header
|
10
|
+
next if index < 3
|
11
|
+
|
12
|
+
pattern = /^ *(.*): (.*) (.*):[0-9]*/
|
13
|
+
matches = line.match(pattern)
|
14
|
+
next if matches.nil?
|
15
|
+
score = matches[1].to_f
|
16
|
+
|
17
|
+
next if score < MAX_SCORE
|
18
|
+
errors << {
|
19
|
+
score: score,
|
20
|
+
method: matches[2],
|
21
|
+
file: matches[3]
|
22
|
+
}
|
23
|
+
end
|
24
|
+
|
25
|
+
exit 0 if errors.size == 0
|
26
|
+
|
27
|
+
puts 'Flog test failed:'
|
28
|
+
errors.sort_by { |a| a[:score] }.each do |error|
|
29
|
+
puts "#{error[:score]} / #{MAX_SCORE}: #{error[:method]} in #{error[:file]}"
|
30
|
+
end
|
31
|
+
exit 1
|
@@ -0,0 +1,16 @@
|
|
1
|
+
#!/usr/bin/env bash
|
2
|
+
|
3
|
+
# Succeed fast if we did not change any ruby file
|
4
|
+
if ! git status --short | grep -q '\.rb$'; then
|
5
|
+
exit 0
|
6
|
+
fi
|
7
|
+
|
8
|
+
# Do not commit any focused or excluded tests
|
9
|
+
if grep --color -r 'spec' -E -e '^( |\t)*(fit|fdescribe|xit|xdescribe)'; then
|
10
|
+
echo '✘ You have focused and/or skipped tests'
|
11
|
+
exit 1
|
12
|
+
fi
|
13
|
+
|
14
|
+
# Match style guide
|
15
|
+
rubocop -F './lib/' './spec' || exit 1
|
16
|
+
|
data/scripts/release
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe(AnchorRb) do
|
4
|
+
describe 'convert' do
|
5
|
+
it 'is compatible with anchorjs v2.0' do
|
6
|
+
input = " ⚡ Don't forget: URL fragments should be i18n-friendly"\
|
7
|
+
', hyphenated, short, and clean.'
|
8
|
+
expected = '⚡-dont-forget-url-fragments-should-be-i18n-friendly'\
|
9
|
+
'-hyphenated'
|
10
|
+
expect(AnchorRb.convert(input)).to eq expected
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
if ENV['TRAVIS']
|
2
|
+
require 'coveralls'
|
3
|
+
Coveralls.wear!
|
4
|
+
end
|
5
|
+
|
6
|
+
require 'awesome_print'
|
7
|
+
require_relative './spec_helper_simplecov.rb'
|
8
|
+
require_relative '../lib/anchorrb.rb'
|
9
|
+
|
10
|
+
RSpec.configure do |config|
|
11
|
+
config.filter_run(focus: true)
|
12
|
+
config.run_all_when_everything_filtered = true
|
13
|
+
end
|
metadata
ADDED
@@ -0,0 +1,217 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: anchorrb
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Tim Carry
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-11-03 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: awesome_print
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.6'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.6'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: coveralls
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0.8'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0.8'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: flay
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '2.6'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '2.6'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: flog
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '4.3'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '4.3'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: guard-rspec
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '4.6'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '4.6'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: jeweler
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '2.0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '2.0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rspec
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '3.0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '3.0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rubocop
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0.31'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0.31'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: simplecov
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0.10'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0.10'
|
139
|
+
description: Convert any string to be used as a valid HTML anchor
|
140
|
+
email: tim@pixelastic.com
|
141
|
+
executables: []
|
142
|
+
extensions: []
|
143
|
+
extra_rdoc_files:
|
144
|
+
- LICENSE.txt
|
145
|
+
- README.md
|
146
|
+
files:
|
147
|
+
- CONTRIBUTING.md
|
148
|
+
- Gemfile
|
149
|
+
- Gemfile.lock
|
150
|
+
- Guardfile
|
151
|
+
- LICENSE.txt
|
152
|
+
- README.md
|
153
|
+
- Rakefile
|
154
|
+
- coverage/.last_run.json
|
155
|
+
- coverage/.resultset.json
|
156
|
+
- coverage/.resultset.json.lock
|
157
|
+
- coverage/assets/0.10.0/application.css
|
158
|
+
- coverage/assets/0.10.0/application.js
|
159
|
+
- coverage/assets/0.10.0/colorbox/border.png
|
160
|
+
- coverage/assets/0.10.0/colorbox/controls.png
|
161
|
+
- coverage/assets/0.10.0/colorbox/loading.gif
|
162
|
+
- coverage/assets/0.10.0/colorbox/loading_background.png
|
163
|
+
- coverage/assets/0.10.0/favicon_green.png
|
164
|
+
- coverage/assets/0.10.0/favicon_red.png
|
165
|
+
- coverage/assets/0.10.0/favicon_yellow.png
|
166
|
+
- coverage/assets/0.10.0/loading.gif
|
167
|
+
- coverage/assets/0.10.0/magnify.png
|
168
|
+
- coverage/assets/0.10.0/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png
|
169
|
+
- coverage/assets/0.10.0/smoothness/images/ui-bg_flat_75_ffffff_40x100.png
|
170
|
+
- coverage/assets/0.10.0/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png
|
171
|
+
- coverage/assets/0.10.0/smoothness/images/ui-bg_glass_65_ffffff_1x400.png
|
172
|
+
- coverage/assets/0.10.0/smoothness/images/ui-bg_glass_75_dadada_1x400.png
|
173
|
+
- coverage/assets/0.10.0/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png
|
174
|
+
- coverage/assets/0.10.0/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png
|
175
|
+
- coverage/assets/0.10.0/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png
|
176
|
+
- coverage/assets/0.10.0/smoothness/images/ui-icons_222222_256x240.png
|
177
|
+
- coverage/assets/0.10.0/smoothness/images/ui-icons_2e83ff_256x240.png
|
178
|
+
- coverage/assets/0.10.0/smoothness/images/ui-icons_454545_256x240.png
|
179
|
+
- coverage/assets/0.10.0/smoothness/images/ui-icons_888888_256x240.png
|
180
|
+
- coverage/assets/0.10.0/smoothness/images/ui-icons_cd0a0a_256x240.png
|
181
|
+
- coverage/index.html
|
182
|
+
- lib/anchorrb.rb
|
183
|
+
- lib/version.rb
|
184
|
+
- scripts/bump_version
|
185
|
+
- scripts/check_flay
|
186
|
+
- scripts/check_flog
|
187
|
+
- scripts/git_hooks/pre-commit
|
188
|
+
- scripts/git_hooks/pre-push
|
189
|
+
- scripts/release
|
190
|
+
- spec/anchorrb_spec.rb
|
191
|
+
- spec/spec_helper.rb
|
192
|
+
- spec/spec_helper_simplecov.rb
|
193
|
+
homepage: https://github.com/pixelastic/anchorrb
|
194
|
+
licenses:
|
195
|
+
- MIT
|
196
|
+
metadata: {}
|
197
|
+
post_install_message:
|
198
|
+
rdoc_options: []
|
199
|
+
require_paths:
|
200
|
+
- lib
|
201
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
202
|
+
requirements:
|
203
|
+
- - ">="
|
204
|
+
- !ruby/object:Gem::Version
|
205
|
+
version: '0'
|
206
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
207
|
+
requirements:
|
208
|
+
- - ">="
|
209
|
+
- !ruby/object:Gem::Version
|
210
|
+
version: '0'
|
211
|
+
requirements: []
|
212
|
+
rubyforge_project:
|
213
|
+
rubygems_version: 2.4.8
|
214
|
+
signing_key:
|
215
|
+
specification_version: 4
|
216
|
+
summary: Ruby port of anchorjs
|
217
|
+
test_files: []
|