Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Ruby 2.7 warnings #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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