Skip to content

Commit

Permalink
Fix Ruby 2.7 warnings
Browse files Browse the repository at this point in the history
Add ruby-2.7.1 to `travis.yml` file
Update yard to latest version
Remove circular dependency on different files
Remove unused variable
  • Loading branch information
miguel-botelho committed Oct 23, 2020
1 parent e03db59 commit 2765b51
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 6 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ rvm:
- 1.9.3
- 2.0.0
- 2.1.0
- 2.7.1
- jruby-19mode
- rbx-19mode
- ruby-head
Expand Down
5 changes: 4 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ GEM
equalizer (~> 0.0.7)
parser (~> 2.1.0)
procto (~> 0.0.2)
yard (0.8.7.3)
yard (0.9.25)

PLATFORMS
java
Expand All @@ -120,3 +120,6 @@ DEPENDENCIES
simplecov-console
uri_template!
yard

BUNDLED WITH
2.1.4
3 changes: 2 additions & 1 deletion lib/uri_template/rfc6570/expression.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
require 'uri_template/rfc6570'

require 'uri_template/rfc6570' unless defined? URITemplate::RFC6570

class URITemplate::RFC6570

Expand Down
3 changes: 1 addition & 2 deletions lib/uri_template/rfc6570/expression/named.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.

require 'uri_template/rfc6570'
require 'uri_template/rfc6570' unless defined? URITemplate::RFC6570

class URITemplate::RFC6570

Expand Down Expand Up @@ -65,7 +65,6 @@ def to_r_source
def expand_partial( vars )
result = []
rest = []
defined = false
@variable_specs.each do | var, expand , max_length |
if vars.key? var
if Utils.def? vars[var]
Expand Down
2 changes: 1 addition & 1 deletion lib/uri_template/rfc6570/expression/unnamed.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.

require 'uri_template/rfc6570'
require 'uri_template/rfc6570' unless defined? URITemplate::RFC6570

class URITemplate::RFC6570::Expression::Unnamed < URITemplate::RFC6570::Expression

Expand Down
2 changes: 1 addition & 1 deletion lib/uri_template/rfc6570/regex_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.

require 'uri_template/rfc6570'
require 'uri_template/rfc6570' unless defined? URITemplate::RFC6570

class URITemplate::RFC6570

Expand Down

0 comments on commit 2765b51

Please sign in to comment.