fustigit 0.1.3 → 0.1.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c751ca9b2b4344d7ffdfe8135e75415cc6c56e17
4
- data.tar.gz: 59c43e03ed9c4c51507bf4db11d54c3a47bb7979
3
+ metadata.gz: 964ec3d04e73940b8671a777029aaf1f1cd3b8ee
4
+ data.tar.gz: 06e01972ce77d819da1a917d1a0bca7da6f3cca6
5
5
  SHA512:
6
- metadata.gz: 19fcae6c47cbc194ec192839a64f85bae11d26431d2a2215c56f5314f34f37d406389e49b543a7b72a6bef0dce40a282925860b1bfbd523c8edc0860c9e5630f
7
- data.tar.gz: f52b1964f4dd1fe5ba16000d20eb75172afd0b8ba89951985fadfc8f65ef95a21c77f3cb3e3a83edd946ba710acfc6311ad659441a713dfef5205fbfe6eb9eb8
6
+ metadata.gz: eedc38d0fc5685834c186c8c8917c0a934a11fa28be2e37ce6f3efe40cc3a9604ed71f9adb73e589c90e37b07ad2e97738a8562681d3b0c12631867f74918876
7
+ data.tar.gz: e8e4cc9409423169bdba3671b25c39d11ba623a251057121d9ac0692258a20a61a1e696d5c904633e82b51716b1b9f81f8b44c2a48d3fa06c3afdaf59d4ef35f
@@ -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/UF-0ESZoWXFewi8q"><img src="https://www.debuggex.com/i/UF-0ESZoWXFewi8q.png"></a>
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
  > &#8213; <cite>Ken Thompson</cite>
83
83
 
84
84
  ### Maintainer
data/Rakefile CHANGED
@@ -21,7 +21,7 @@ end
21
21
 
22
22
  desc "Run RuboCop"
23
23
  RuboCop::RakeTask.new(:rubocop) do |task|
24
- task.patterns = ["lib/**/*.rb"]
24
+ task.options << "--display-cop-names"
25
25
  end
26
26
 
27
27
  desc "Run all spec tests and linters"
@@ -1,5 +1,5 @@
1
1
  module Fustigit
2
2
  module Version
3
- VERSION = "0.1.3".freeze
3
+ VERSION = "0.1.4".freeze
4
4
  end
5
5
  end
@@ -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.]+):(?<path>.*)\z}
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]+)://)}
@@ -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 }
@@ -1,8 +1,8 @@
1
1
  require "spec_helper"
2
2
  require "fustigit"
3
3
 
4
- describe URI do
5
- @git_repos = JSON.load(fixture("formats.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.3
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: 2016-07-12 00:00:00.000000000 Z
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.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: