mdstyle_linker 0.1.0 → 0.1.1
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.
- checksums.yaml +4 -4
- data/README.md +10 -33
- data/lib/mdstyle_linker/version.rb +1 -1
- data/mdstyle_linker.gemspec +6 -6
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9d580e9f32bb01d29c482aeb0a92d1cbb953fc672f4b16453276a9990900ca86
|
4
|
+
data.tar.gz: 7265c1ee0e605c561479674a9124706b699318f80eafeab7f466d441d9454e83
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 74ad441f240e26ed5434c244b29965fdbd5179fde6f82981cd251498e527cb4ff53c341a73f746811ee783cc480a3d23dfb1c3e287a2fd7a681ae03db0448dcd
|
7
|
+
data.tar.gz: 0c2bf3a46abd272bca2a43390c46c48ce613a631e458ecbebfffe8622d355be37fe570b29064e30e8603626f3f7c2e50ed4153c07eb5c81c7920d0da1f9b6daf
|
data/README.md
CHANGED
@@ -1,43 +1,20 @@
|
|
1
1
|
# MdstyleLinker
|
2
|
-
|
3
|
-
|
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 'mdstyle_linker'
|
13
|
-
```
|
14
|
-
|
15
|
-
And then execute:
|
16
|
-
|
17
|
-
$ bundle
|
18
|
-
|
19
|
-
Or install it yourself as:
|
20
|
-
|
21
|
-
$ gem install mdstyle_linker
|
2
|
+
## what's this
|
3
|
+
generate markdown style link (e.g. `[title](url))` from URL
|
22
4
|
|
23
5
|
## Usage
|
6
|
+
```ruby
|
7
|
+
require "mdstyle_linker"
|
8
|
+
url = "https://github.com/halllllll/mdstyle_linker"
|
9
|
+
MdstyleLinker.mdstyle(url)
|
24
10
|
|
25
|
-
|
26
|
-
|
27
|
-
## Development
|
28
|
-
|
29
|
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. 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).
|
11
|
+
=> "[GitHub - halllllll/mdstyle_linker: generate markdown style link from URL (e.g. \\[title\\](url))](https://github.com/halllllll/mdstyle_linker)"
|
12
|
+
```
|
32
13
|
|
33
14
|
## Contributing
|
34
15
|
|
35
|
-
|
16
|
+
\ 🎉 Welcome ANY. 👐/
|
36
17
|
|
37
18
|
## License
|
38
19
|
|
39
|
-
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
40
|
-
|
41
|
-
## Code of Conduct
|
42
|
-
|
43
|
-
Everyone interacting in the MdstyleLinker project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/mdstyle_linker/blob/master/CODE_OF_CONDUCT.md).
|
20
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/mdstyle_linker.gemspec
CHANGED
@@ -16,12 +16,12 @@ Gem::Specification.new do |spec|
|
|
16
16
|
|
17
17
|
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
18
18
|
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
19
|
+
# if spec.respond_to?(:metadata)
|
20
|
+
# spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
|
21
|
+
# else
|
22
|
+
# raise "RubyGems 2.0 or newer is required to protect against " \
|
23
|
+
# "public gem pushes."
|
24
|
+
# end
|
25
25
|
|
26
26
|
# Specify which files should be added to the gem when it is released.
|
27
27
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|