fustigit 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/README.md +5 -5
- data/Rakefile +1 -1
- data/lib/fustigit/version.rb +1 -1
- data/lib/uri/triplets.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- data/spec/uri/fustigit_spec.rb +2 -2
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 964ec3d04e73940b8671a777029aaf1f1cd3b8ee
|
4
|
+
data.tar.gz: 06e01972ce77d819da1a917d1a0bca7da6f3cca6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eedc38d0fc5685834c186c8c8917c0a934a11fa28be2e37ce6f3efe40cc3a9604ed71f9adb73e589c90e37b07ad2e97738a8562681d3b0c12631867f74918876
|
7
|
+
data.tar.gz: e8e4cc9409423169bdba3671b25c39d11ba623a251057121d9ac0692258a20a61a1e696d5c904633e82b51716b1b9f81f8b44c2a48d3fa06c3afdaf59d4ef35f
|
data/CHANGELOG.md
CHANGED
@@ -3,9 +3,15 @@ All notable changes to this project will be documented in this file.
|
|
3
3
|
This project attempts to adhere to [Semantic Versioning](http://semver.org/).
|
4
4
|
This changelog attempts to adhere to [Keep a CHANGELOG](http://keepachangelog.com/).
|
5
5
|
|
6
|
+
## [0.1.4] - 06 March 2017
|
7
|
+
### Added
|
8
|
+
- Fixed a missing '-' in the regex pattern that defined the parts of a triplet
|
9
|
+
- Numerous Rubocop related fixups
|
10
|
+
|
6
11
|
## [0.1.3] - 07 July 2016
|
7
12
|
### Added
|
8
13
|
- Triplets#split method returns the expected array of values for parsed triplets
|
14
|
+
|
9
15
|
### Changed
|
10
16
|
- Improved Triplets#triplet? functionality
|
11
17
|
|
@@ -23,3 +29,9 @@ This changelog attempts to adhere to [Keep a CHANGELOG](http://keepachangelog.co
|
|
23
29
|
### Added
|
24
30
|
- Initial release
|
25
31
|
- README covers usage, licensing, and rationale
|
32
|
+
|
33
|
+
[0.1.4]: https://github.com/mckern/fustigit/compare/0.1.3...0.1.4
|
34
|
+
[0.1.3]: https://github.com/mckern/fustigit/compare/0.1.2...0.1.3
|
35
|
+
[0.1.2]: https://github.com/mckern/fustigit/compare/0.1.1...0.1.2
|
36
|
+
[0.1.1]: https://github.com/mckern/fustigit/compare/0.1.0...0.1.1
|
37
|
+
[0.1.0]: https://github.com/mckern/fustigit/tree/0.1.0
|
data/README.md
CHANGED
@@ -14,9 +14,9 @@ Fustigit will let you "parse" SCP-like address triplets using Ruby's baked-in [U
|
|
14
14
|
|
15
15
|
### What's a Triplet?
|
16
16
|
|
17
|
-
<a href="https://www.debuggex.com/r/
|
17
|
+
<a href="https://www.debuggex.com/r/NtHqyDI9LUz-UMia"><img src="readme/railroad-diagram.jpg"></a>
|
18
18
|
|
19
|
-
A triplet is a format for specifying a remote resource, much like a URI. It looks like this:
|
19
|
+
A triplet is a format for specifying a remote resource, much like a URI. It looks like this:
|
20
20
|
|
21
21
|
# The username is optional but the hostname and pathname are not
|
22
22
|
<username>@<hostname>:<pathname>
|
@@ -59,7 +59,7 @@ URI::InvalidURIError: bad URI(is not URI?): git@github.com:mckern/fustigit.git [
|
|
59
59
|
=> "mckern/fustigit.git"
|
60
60
|
>> uri.to_s
|
61
61
|
=> "git@github.com:mckern/fustigit.git"
|
62
|
-
>>
|
62
|
+
>>
|
63
63
|
```
|
64
64
|
|
65
65
|
### How (does it work)?
|
@@ -76,9 +76,9 @@ In the spirit of Jordan Sissel (a hero to admins and operations people everywher
|
|
76
76
|
|
77
77
|
### License
|
78
78
|
|
79
|
-
Fustigate is licensed under the Apache License, Version 2.0.
|
79
|
+
Fustigate is licensed under the Apache License, Version 2.0.
|
80
80
|
|
81
|
-
> "When in doubt, use brute force."
|
81
|
+
> "When in doubt, use brute force."
|
82
82
|
> ― <cite>Ken Thompson</cite>
|
83
83
|
|
84
84
|
### Maintainer
|
data/Rakefile
CHANGED
data/lib/fustigit/version.rb
CHANGED
data/lib/uri/triplets.rb
CHANGED
@@ -54,7 +54,7 @@ end
|
|
54
54
|
# they're passed.
|
55
55
|
module TripletInterruptus
|
56
56
|
# Determine if a string can be teased apart into URI-like components
|
57
|
-
TRIPLET = %r{\A(?:(?<userinfo>.+)[@]+)?(?<host>[\w
|
57
|
+
TRIPLET = %r{\A(?:(?<userinfo>.+)[@]+)?(?<host>[\w.-]+):(?<path>.*)\z}
|
58
58
|
|
59
59
|
# Determine if a string is prefixed with a URI scheme like http:// or ssh://
|
60
60
|
SCHEME = %r{\A(?:(?<scheme>[a-z]+)://)}
|
data/spec/spec_helper.rb
CHANGED
@@ -2,12 +2,12 @@ require "bundler/setup"
|
|
2
2
|
require "minitest/spec"
|
3
3
|
require "minitest/autorun"
|
4
4
|
require "minitest/reporters"
|
5
|
-
require "simplecov"
|
6
5
|
require "json"
|
7
6
|
|
8
7
|
Minitest::Reporters.use! Minitest::Reporters::DefaultReporter.new
|
9
8
|
|
10
9
|
if ENV["COVERAGE"]
|
10
|
+
require "simplecov"
|
11
11
|
SimpleCov.start do
|
12
12
|
# exclude common Bundler locations
|
13
13
|
%w(.bundle vendor).each { |dir| add_filter dir }
|
data/spec/uri/fustigit_spec.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
require "spec_helper"
|
2
2
|
require "fustigit"
|
3
3
|
|
4
|
-
describe URI do
|
5
|
-
@git_repos = JSON.
|
4
|
+
describe URI do # rubocop:disable Metrics/BlockLength
|
5
|
+
@git_repos = JSON.parse(fixture("formats.json"))
|
6
6
|
@git_repos["URIs"].each do |protocol, repos|
|
7
7
|
repos.each do |repo|
|
8
8
|
describe %(#parse takes given URI "#{repo}") do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fustigit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan McKern
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-03-06 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: '"Parse" SCP-like address triplets with the Standard Ruby URI Library.'
|
14
14
|
email: ryan@orangefort.com
|
@@ -49,7 +49,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
49
49
|
version: '0'
|
50
50
|
requirements: []
|
51
51
|
rubyforge_project:
|
52
|
-
rubygems_version: 2.6.
|
52
|
+
rubygems_version: 2.6.10
|
53
53
|
signing_key:
|
54
54
|
specification_version: 3
|
55
55
|
summary: Use URI to "parse" SCP-like triplets
|
@@ -57,4 +57,3 @@ test_files:
|
|
57
57
|
- Rakefile
|
58
58
|
- spec/spec_helper.rb
|
59
59
|
- spec/uri/fustigit_spec.rb
|
60
|
-
has_rdoc:
|