Skip to content

Commit

Permalink
Rubocop cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
lacostej committed Feb 21, 2020
1 parent c2e7dc3 commit b17ef19
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/u3d_core/update_checker/changelog.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,12 @@ def show_changes(gem_name, current_version, update_gem_command: "bundle update")

def to_version(tag_name)
tag_name = tag_name[1..-1] if tag_name[0] == 'v'
tag_name
end

def releases(gem_name)
url = "https://api.github.com/repos/DragonBox/#{gem_name}/releases"
JSON.parse(U3d::Utils::page_content(url))
JSON.parse(U3d::Utils.page_content(url))
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/u3d_core/update_checker/update_checker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def self.ensure_rubygems_source
end

def self.fetch_latest(gem_name)
JSON.parse(U3d::Utils::page_content(generate_fetch_url(gem_name)))["version"]
JSON.parse(U3d::Utils.page_content(generate_fetch_url(gem_name)))["version"]
end

def self.generate_fetch_url(gem_name)
Expand Down

0 comments on commit b17ef19

Please sign in to comment.