Sha256: b8ca1fdcfe0bc6e2c14dc577a1e253922830dc0a533983294bf2329130601ab6

Contents?: true

Size: 1.91 KB

Versions: 4

Compression:

Stored size: 1.91 KB

Contents

# coding: utf-8
lib = File.expand_path("../lib", __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require "git_trend/version"

def install_message
  s = ""
  s << "\xf0\x9f\x8d\xba  " if or_over_mac_os_lion?
  s << "Thanks for installing!"
end

def or_over_mac_os_lion?
  return false unless RUBY_PLATFORM =~ /darwin/

  macos_full_version = `/usr/bin/sw_vers -productVersion`.chomp
  macos_version = macos_full_version[/10\.\d+/]
  macos_version >= "10.7" # 10.7 is lion
end

Gem::Specification.new do |spec|
  spec.name          = "git-trend"
  spec.version       = GitTrend::VERSION
  spec.authors       = ["rochefort"]
  spec.email         = ["terasawan@gmail.com"]
  spec.summary       = "CLI-Based tool that show Trending repository on github"
  spec.description   = spec.summary
  spec.homepage      = "https://github.com/rochefort/git-trend"
  spec.license       = "MIT"

  spec.files         = `git ls-files -z`.split("\x0")
  spec.bindir        = "exe"
  spec.executables   = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
  spec.test_files    = spec.files.grep(%r{^(test|spec|features)/})
  spec.require_paths = ["lib"]

  spec.post_install_message = install_message

  spec.add_dependency "addressable", "~> 2.5.0"
  spec.add_dependency "mb_string",   "~> 0.1.7"
  spec.add_dependency "mechanize",   "~> 2.7.4"
  spec.add_dependency "thor",        "~> 0.19.1"
  spec.add_dependency "unicode-display_width", "~> 1.1.1"

  spec.add_development_dependency "bundler", "~> 1.6"
  spec.add_development_dependency "rake",    "~> 11.3.0"

  spec.add_development_dependency "rspec",     "~> 3.5.0"
  spec.add_development_dependency "simplecov", "~> 0.12.0"
  spec.add_development_dependency "safe_yaml", "~> 1.0.4" # for Ruby2.2.0
  spec.add_development_dependency "webmock",   "~> 2.1.0"

  spec.add_development_dependency "coveralls", "~> 0.8.15"
  spec.add_development_dependency "codeclimate-test-reporter", "~> 1.0.0"
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
git-trend-1.1.4 git-trend.gemspec
git-trend-1.1.3 git-trend.gemspec
git-trend-1.1.2 git-trend.gemspec
git-trend-1.1.1 git-trend.gemspec