From fadae1b714efa1e33ed38ddd418450c44b037118 Mon Sep 17 00:00:00 2001 From: Petr Korolev Date: Tue, 18 Nov 2014 15:20:57 +0200 Subject: [PATCH] remove httpparty from gem --- Gemfile | 1 - Gemfile.lock | 5 ----- bin/github_changelog_generator | 3 +-- lib/github_changelog_generator.rb | 6 ++---- 4 files changed, 3 insertions(+), 12 deletions(-) diff --git a/Gemfile b/Gemfile index 9f71d29..6f485e5 100644 --- a/Gemfile +++ b/Gemfile @@ -1,4 +1,3 @@ source 'https://rubygems.org' gem 'github_api' -gem 'httparty' gem 'colorize' \ No newline at end of file diff --git a/Gemfile.lock b/Gemfile.lock index e297bac..065252f 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -16,10 +16,6 @@ GEM nokogiri (~> 1.6.3) oauth2 hashie (3.3.1) - httparty (0.13.2) - json (~> 1.8) - multi_xml (>= 0.5.2) - json (1.8.1) jwt (1.0.0) mini_portile (0.6.1) multi_json (1.10.1) @@ -42,4 +38,3 @@ PLATFORMS DEPENDENCIES colorize github_api - httparty diff --git a/bin/github_changelog_generator b/bin/github_changelog_generator index 8eced2d..d71251d 100755 --- a/bin/github_changelog_generator +++ b/bin/github_changelog_generator @@ -1,5 +1,4 @@ -#!/usr/bin/env ruby +#! /usr/bin/env ruby require 'github_changelog_generator' - GitHubChangelogGenerator::ChangelogGenerator.new.compund_changelog \ No newline at end of file diff --git a/lib/github_changelog_generator.rb b/lib/github_changelog_generator.rb index 8d88957..dffeccc 100755 --- a/lib/github_changelog_generator.rb +++ b/lib/github_changelog_generator.rb @@ -2,7 +2,6 @@ require 'github_api' require 'json' -require 'httparty' require 'colorize' require_relative 'github_changelog_generator/parser' require_relative 'github_changelog_generator/version' @@ -12,7 +11,7 @@ module GitHubChangelogGenerator attr_accessor :options, :all_tags, :github - def initialize() + def initialize @options = Parser.parse_options @@ -372,8 +371,7 @@ module GitHubChangelogGenerator end if __FILE__ == $0 - changelog_generator = ChangelogGenerator.new - changelog_generator.compund_changelog + GitHubChangelogGenerator::ChangelogGenerator.new.compund_changelog end end \ No newline at end of file