rel_nofollow 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: a5fdb7c4818db831e0f509b850ee4d543cce2960
4
+ data.tar.gz: 6a33d7dfb67822bf33907867761231ec23cf0934
5
+ SHA512:
6
+ metadata.gz: 55a7030a93c5d35141f464421bb2121efd57c63016ac9bd3d657f05dc26a0181c02bde63de0e7d8f5d46190903e64074ef380c99b5ffa95f9849cc733da33b55
7
+ data.tar.gz: a1a7c4adc20d0c88e726d72efd0b29680bbe940523a39550b37e0a85b82bc6e80209675e773630f52b762c88cecc0dc73918c793c5bfac247415430cfd36a3c0
data/.gitignore ADDED
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
data/.idea/.name ADDED
@@ -0,0 +1 @@
1
+ rel_nofollow
data/.idea/.rakeTasks ADDED
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Settings><!--This file was automatically generated by Ruby plugin.
3
+ You are allowed to:
4
+ 1. Remove rake task
5
+ 2. Add existing rake tasks
6
+ To add existing rake tasks automatically delete this file and reload the project.
7
+ --><RakeGroup description="" fullCmd="" taksId="rake"><RakeTask description="Build rel_nofollow-0.1.0.gem into the pkg directory" fullCmd="build" taksId="build" /><RakeTask description="Build and install rel_nofollow-0.1.0.gem into system gems" fullCmd="install" taksId="install" /><RakeTask description="Create tag v0.1.0 and build and push rel_nofollow-0.1.0.gem to Rubygems" fullCmd="release" taksId="release" /><RakeGroup description="" fullCmd="" taksId="release"><RakeTask description="" fullCmd="release:guard_clean" taksId="guard_clean" /><RakeTask description="" fullCmd="release:rubygem_push" taksId="rubygem_push" /><RakeTask description="" fullCmd="release:source_control_push" taksId="source_control_push" /></RakeGroup></RakeGroup></Settings>
@@ -0,0 +1,4 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="Encoding" useUTFGuessing="true" native2AsciiForPropertiesFiles="false" />
4
+ </project>
data/.idea/misc.xml ADDED
@@ -0,0 +1,27 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="DaemonCodeAnalyzer">
4
+ <disable_hints />
5
+ </component>
6
+ <component name="DependencyValidationManager">
7
+ <option name="SKIP_IMPORT_STATEMENTS" value="false" />
8
+ </component>
9
+ <component name="Encoding" useUTFGuessing="true" native2AsciiForPropertiesFiles="false" />
10
+ <component name="ProjectLevelVcsManager" settingsEditedManually="false">
11
+ <OptionsSetting value="true" id="Add" />
12
+ <OptionsSetting value="true" id="Remove" />
13
+ <OptionsSetting value="true" id="Checkout" />
14
+ <OptionsSetting value="true" id="Update" />
15
+ <OptionsSetting value="true" id="Status" />
16
+ <OptionsSetting value="true" id="Edit" />
17
+ <ConfirmationsSetting value="0" id="Add" />
18
+ <ConfirmationsSetting value="0" id="Remove" />
19
+ </component>
20
+ <component name="ProjectModuleManager">
21
+ <modules />
22
+ </component>
23
+ <component name="ProjectRootManager" version="2" project-jdk-name="RVM: ruby-1.9.3-p327" project-jdk-type="RUBY_SDK" />
24
+ <component name="RunManager">
25
+ <list size="0" />
26
+ </component>
27
+ </project>
data/.idea/modules.xml ADDED
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/rel_nofollow.iml" filepath="$PROJECT_DIR$/.idea/rel_nofollow.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="RUBY_MODULE" version="4">
3
+ <component name="FacetManager">
4
+ <facet type="gem" name="Ruby Gem">
5
+ <configuration>
6
+ <option name="GEM_APP_ROOT_PATH" value="$MODULE_DIR$" />
7
+ <option name="GEM_APP_TEST_PATH" value="" />
8
+ <option name="GEM_APP_LIB_PATH" value="$MODULE_DIR$/lib" />
9
+ </configuration>
10
+ </facet>
11
+ </component>
12
+ <component name="NewModuleRootManager">
13
+ <content url="file://$MODULE_DIR$" />
14
+ <orderEntry type="inheritedJdk" />
15
+ <orderEntry type="sourceFolder" forTests="false" />
16
+ <orderEntry type="library" scope="PROVIDED" name="rake (v10.4.2, RVM: ruby-1.9.3-p327) [gem]" level="application" />
17
+ </component>
18
+ </module>
@@ -0,0 +1,5 @@
1
+ <component name="DependencyValidationManager">
2
+ <state>
3
+ <option name="SKIP_IMPORT_STATEMENTS" value="false" />
4
+ </state>
5
+ </component>
data/.idea/vcs.xml ADDED
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,193 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ChangeListManager">
4
+ <list default="true" id="60ba4f54-e122-4819-b3a6-9db3de00d264" name="Default" comment="">
5
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.gitignore" />
6
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/CODE_OF_CONDUCT.md" />
7
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/Gemfile" />
8
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/LICENSE.txt" />
9
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/README.md" />
10
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/Rakefile" />
11
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/bin/console" />
12
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.idea/encodings.xml" />
13
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.idea/misc.xml" />
14
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.idea/modules.xml" />
15
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/rel_nofollow.gemspec" />
16
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.idea/rel_nofollow.iml" />
17
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/lib/rel_nofollow.rb" />
18
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.idea/scopes/scope_settings.xml" />
19
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/bin/setup" />
20
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.idea/vcs.xml" />
21
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/lib/rel_nofollow/version.rb" />
22
+ </list>
23
+ <ignored path="rel_nofollow.iws" />
24
+ <ignored path=".idea/workspace.xml" />
25
+ <ignored path=".idea/dataSources.local.xml" />
26
+ <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
27
+ <option name="TRACKING_ENABLED" value="true" />
28
+ <option name="SHOW_DIALOG" value="false" />
29
+ <option name="HIGHLIGHT_CONFLICTS" value="true" />
30
+ <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
31
+ <option name="LAST_RESOLUTION" value="IGNORE" />
32
+ </component>
33
+ <component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
34
+ <component name="CreatePatchCommitExecutor">
35
+ <option name="PATCH_PATH" value="" />
36
+ </component>
37
+ <component name="DaemonCodeAnalyzer">
38
+ <disable_hints />
39
+ </component>
40
+ <component name="FavoritesManager">
41
+ <favorites_list name="rel_nofollow" />
42
+ </component>
43
+ <component name="FileEditorManager">
44
+ <leaf>
45
+ <file leaf-file-name="rel_nofollow.gemspec" pinned="false" current-in-tab="true">
46
+ <entry file="file://$PROJECT_DIR$/rel_nofollow.gemspec">
47
+ <provider selected="true" editor-type-id="text-editor">
48
+ <state vertical-scroll-proportion="0.23106547" vertical-offset="0" max-vertical-offset="779">
49
+ <caret line="12" column="120" selection-start-line="12" selection-start-column="120" selection-end-line="12" selection-end-column="120" />
50
+ <folding />
51
+ </state>
52
+ </provider>
53
+ </entry>
54
+ </file>
55
+ </leaf>
56
+ </component>
57
+ <component name="Git.Settings">
58
+ <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
59
+ </component>
60
+ <component name="IdeDocumentHistory">
61
+ <option name="CHANGED_PATHS">
62
+ <list>
63
+ <option value="$PROJECT_DIR$/rel_nofollow.gemspec" />
64
+ </list>
65
+ </option>
66
+ </component>
67
+ <component name="JsGulpfileManager">
68
+ <detection-done>true</detection-done>
69
+ </component>
70
+ <component name="ProjectFrameBounds">
71
+ <option name="y" value="23" />
72
+ <option name="width" value="1440" />
73
+ <option name="height" value="873" />
74
+ </component>
75
+ <component name="ProjectLevelVcsManager" settingsEditedManually="false">
76
+ <OptionsSetting value="true" id="Add" />
77
+ <OptionsSetting value="true" id="Remove" />
78
+ <OptionsSetting value="true" id="Checkout" />
79
+ <OptionsSetting value="true" id="Update" />
80
+ <OptionsSetting value="true" id="Status" />
81
+ <OptionsSetting value="true" id="Edit" />
82
+ <ConfirmationsSetting value="0" id="Add" />
83
+ <ConfirmationsSetting value="0" id="Remove" />
84
+ </component>
85
+ <component name="ProjectView">
86
+ <navigator currentView="ProjectPane" proportions="" version="1">
87
+ <flattenPackages />
88
+ <showMembers />
89
+ <showModules />
90
+ <showLibraryContents />
91
+ <hideEmptyPackages />
92
+ <abbreviatePackageNames />
93
+ <autoscrollToSource />
94
+ <autoscrollFromSource />
95
+ <sortByType />
96
+ </navigator>
97
+ <panes>
98
+ <pane id="Scope" />
99
+ <pane id="ProjectPane">
100
+ <subPane>
101
+ <PATH>
102
+ <PATH_ELEMENT>
103
+ <option name="myItemId" value="rel_nofollow" />
104
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
105
+ </PATH_ELEMENT>
106
+ </PATH>
107
+ <PATH>
108
+ <PATH_ELEMENT>
109
+ <option name="myItemId" value="rel_nofollow" />
110
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
111
+ </PATH_ELEMENT>
112
+ <PATH_ELEMENT>
113
+ <option name="myItemId" value="rel_nofollow" />
114
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
115
+ </PATH_ELEMENT>
116
+ </PATH>
117
+ </subPane>
118
+ </pane>
119
+ </panes>
120
+ </component>
121
+ <component name="PropertiesComponent">
122
+ <property name="last_opened_file_path" value="$PROJECT_DIR$" />
123
+ <property name="WebServerToolWindowFactoryState" value="false" />
124
+ </component>
125
+ <component name="RunManager">
126
+ <list size="0" />
127
+ </component>
128
+ <component name="ShelveChangesManager" show_recycled="false" />
129
+ <component name="TaskManager">
130
+ <task active="true" id="Default" summary="Default task">
131
+ <changelist id="60ba4f54-e122-4819-b3a6-9db3de00d264" name="Default" comment="" />
132
+ <created>1438029623315</created>
133
+ <option name="number" value="Default" />
134
+ <updated>1438029623315</updated>
135
+ </task>
136
+ <servers />
137
+ </component>
138
+ <component name="ToolWindowManager">
139
+ <frame x="0" y="23" width="1440" height="873" extended-state="6" />
140
+ <editor active="true" />
141
+ <layout>
142
+ <window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
143
+ <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
144
+ <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
145
+ <window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
146
+ <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
147
+ <window_info id="Application Servers" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
148
+ <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.18311875" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
149
+ <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
150
+ <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
151
+ <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
152
+ <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
153
+ <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
154
+ <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
155
+ <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
156
+ <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="SLIDING" type="SLIDING" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
157
+ <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
158
+ <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
159
+ <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
160
+ <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
161
+ </layout>
162
+ </component>
163
+ <component name="Vcs.Log.UiProperties">
164
+ <option name="RECENTLY_FILTERED_USER_GROUPS">
165
+ <collection />
166
+ </option>
167
+ <option name="RECENTLY_FILTERED_BRANCH_GROUPS">
168
+ <collection />
169
+ </option>
170
+ </component>
171
+ <component name="VcsContentAnnotationSettings">
172
+ <option name="myLimit" value="2678400000" />
173
+ </component>
174
+ <component name="VcsManagerConfiguration">
175
+ <option name="myTodoPanelSettings">
176
+ <TodoPanelSettings />
177
+ </option>
178
+ </component>
179
+ <component name="XDebuggerManager">
180
+ <breakpoint-manager />
181
+ <watches-manager />
182
+ </component>
183
+ <component name="editorHistoryManager">
184
+ <entry file="file://$PROJECT_DIR$/rel_nofollow.gemspec">
185
+ <provider selected="true" editor-type-id="text-editor">
186
+ <state vertical-scroll-proportion="0.23106547" vertical-offset="0" max-vertical-offset="779">
187
+ <caret line="12" column="120" selection-start-line="12" selection-start-column="120" selection-end-line="12" selection-end-column="120" />
188
+ <folding />
189
+ </state>
190
+ </provider>
191
+ </entry>
192
+ </component>
193
+ </project>
@@ -0,0 +1,13 @@
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
4
+
5
+ We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion.
6
+
7
+ Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
8
+
9
+ Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
10
+
11
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
12
+
13
+ This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in rel_nofollow.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 Leo
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,41 @@
1
+ # RelNofollow
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/rel_nofollow`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'rel_nofollow'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install rel_nofollow
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/rel_nofollow. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
36
+
37
+
38
+ ## License
39
+
40
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
41
+
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "rel_nofollow"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start
data/bin/setup ADDED
@@ -0,0 +1,7 @@
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+
5
+ bundle install
6
+
7
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,8 @@
1
+ class String
2
+ def add_nofollow
3
+ self.scan(/(\<a href=["'].*?["']\>.*?\<\/a\>)/).flatten.each do |link|
4
+ link.match(/(\<a href=["'](.*?)["']\>(.*?)\<\/a\>)/)
5
+ html.gsub!(link, "<a href='#{$2}' rel='nofollow'>#{$3}</a>" )
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,3 @@
1
+ module RelNofollow
2
+ VERSION = "0.1.0"
3
+ end
@@ -0,0 +1,6 @@
1
+ require "rel_nofollow/version"
2
+ require "rel_nofollow/string"
3
+
4
+ module RelNofollow
5
+ # Your code goes here...
6
+ end
@@ -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 'rel_nofollow/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "rel_nofollow"
8
+ spec.version = RelNofollow::VERSION
9
+ spec.authors = ["Leo"]
10
+ spec.email = ["leo.majowka@gmail.com"]
11
+
12
+ spec.summary = "Add rel=nofollow to links inside an html code in string format"
13
+ spec.description = "Intall the gem and call string.add_nofollow to add rel='nofollow' to all links inside the string"
14
+ spec.homepage = "https://github.com/lmajowka/rel_nofollow"
15
+ spec.license = "MIT"
16
+
17
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
+ spec.bindir = "exe"
19
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
+ spec.require_paths = ["lib"]
21
+
22
+ spec.add_development_dependency "bundler", "~> 1.10"
23
+ spec.add_development_dependency "rake", "~> 10.0"
24
+ end
metadata ADDED
@@ -0,0 +1,94 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rel_nofollow
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Leo
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2015-07-27 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '1.10'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '1.10'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ description: Intall the gem and call string.add_nofollow to add rel='nofollow' to
42
+ all links inside the string
43
+ email:
44
+ - leo.majowka@gmail.com
45
+ executables: []
46
+ extensions: []
47
+ extra_rdoc_files: []
48
+ files:
49
+ - .gitignore
50
+ - .idea/.name
51
+ - .idea/.rakeTasks
52
+ - .idea/encodings.xml
53
+ - .idea/misc.xml
54
+ - .idea/modules.xml
55
+ - .idea/rel_nofollow.iml
56
+ - .idea/scopes/scope_settings.xml
57
+ - .idea/vcs.xml
58
+ - .idea/workspace.xml
59
+ - CODE_OF_CONDUCT.md
60
+ - Gemfile
61
+ - LICENSE.txt
62
+ - README.md
63
+ - Rakefile
64
+ - bin/console
65
+ - bin/setup
66
+ - lib/rel_nofollow.rb
67
+ - lib/rel_nofollow/string.rb
68
+ - lib/rel_nofollow/version.rb
69
+ - rel_nofollow.gemspec
70
+ homepage: https://github.com/lmajowka/rel_nofollow
71
+ licenses:
72
+ - MIT
73
+ metadata: {}
74
+ post_install_message:
75
+ rdoc_options: []
76
+ require_paths:
77
+ - lib
78
+ required_ruby_version: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - '>='
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ required_rubygems_version: !ruby/object:Gem::Requirement
84
+ requirements:
85
+ - - '>='
86
+ - !ruby/object:Gem::Version
87
+ version: '0'
88
+ requirements: []
89
+ rubyforge_project:
90
+ rubygems_version: 2.4.6
91
+ signing_key:
92
+ specification_version: 4
93
+ summary: Add rel=nofollow to links inside an html code in string format
94
+ test_files: []