...
 
Commits (2)
......@@ -358,15 +358,18 @@ class GemDeps(object):
fetch_url = api_url + '?' + parameters
a = urlopen(url=fetch_url)
serialized = json.loads(a.read().decode('utf-8'))
latest_gem = self.smallest_satisfiable(serialized, gem)
dependency_list = []
for dependency in latest_gem['dependencies']:
n = GemfileParser.Dependency()
n.name = dependency[0]
n.requirement = dependency[1].split(',')
dependency_list.append(n)
print n.name, n.requirement
return dependency_list
if serialized:
latest_gem = self.smallest_satisfiable(serialized, gem)
dependency_list = []
for dependency in latest_gem['dependencies']:
n = GemfileParser.Dependency()
n.name = dependency[0]
n.requirement = dependency[1].split(',')
dependency_list.append(n)
print n.name, n.requirement
return dependency_list
else:
return []
def smallest_satisfiable(self, serialized, gem):
'''
......