Permalink
Browse files

Added Ruby 1.8 compatibility

  • Loading branch information...
1 parent 8c853f3 commit eccdd6af52a1243a3d9628686412b4bb52798531 @sorich87 committed Mar 27, 2013
Showing with 10 additions and 2 deletions.
  1. +2 −0 Gemfile
  2. +4 −0 Gemfile.lock
  3. +2 −0 lib/github-to-bitbucket-issues.rb
  4. +2 −2 lib/github-to-bitbucket-issues/export.rb
View
@@ -1,5 +1,7 @@
source 'https://rubygems.org'
+gem 'backports'
gem 'octokit'
gem 'rubyzip'
+gem 'json_pure'
View
@@ -2,11 +2,13 @@ GEM
remote: https://rubygems.org/
specs:
addressable (2.3.3)
+ backports (3.1.1)
faraday (0.8.7)
multipart-post (~> 1.1)
faraday_middleware (0.9.0)
faraday (>= 0.7.4, < 0.9)
hashie (2.0.3)
+ json_pure (1.7.7)
multi_json (1.7.2)
multipart-post (1.2.0)
netrc (0.7.7)
@@ -23,5 +25,7 @@ PLATFORMS
ruby
DEPENDENCIES
+ backports
+ json_pure
octokit
rubyzip
@@ -1,2 +1,4 @@
+require 'backports/1.9.3'
+
require_relative 'github-to-bitbucket-issues/export'
@@ -79,11 +79,11 @@ def download_all_of(type, options = {})
end
def downloader(type)
- Object.const_get("GTBI::Downloaders::#{type.capitalize}")
+ Object.const_get("GTBI").const_get("Downloaders").const_get(type.capitalize)
end
def formatter(type)
- Object.const_get("GTBI::Formatters::#{type.capitalize}")
+ Object.const_get("GTBI").const_get("Formatters").const_get(type.capitalize)
end
def generate_archive

0 comments on commit eccdd6a

Please sign in to comment.