Skip to content

Commit ae9a3cb

Browse files
committed
sample gemspec test files
Signed-off-by: rpotter12 <rohitpotter12@gmail.com>
1 parent 88466bd commit ae9a3cb

5 files changed

Lines changed: 170 additions & 5 deletions

File tree

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# encoding: UTF-8
2+
require File.expand_path('../lib/cocoapods/gem_version', __FILE__)
3+
require 'date'
4+
5+
Gem::Specification.new do |s|
6+
s.name = "cocoapods"
7+
s.version = Pod::VERSION
8+
s.date = Date.today
9+
s.license = "MIT"
10+
s.email = ["eloy.de.enige@gmail.com", "fabiopelosin@gmail.com", "kyle@fuller.li", "segiddins@segiddins.me"]
11+
s.homepage = "https://github.com/CocoaPods/CocoaPods"
12+
s.authors = ["Eloy Duran", "Fabio Pelosin", "Kyle Fuller", "Samuel Giddins"]
13+
14+
s.summary = "The Cocoa library package manager."
15+
s.description = "CocoaPods manages library dependencies for your Xcode project.\n\n" \
16+
"You specify the dependencies for your project in one easy text file. " \
17+
"CocoaPods resolves dependencies between libraries, fetches source " \
18+
"code for the dependencies, and creates and maintains an Xcode " \
19+
"workspace to build your project.\n\n" \
20+
"Ultimately, the goal is to improve discoverability of, and engagement " \
21+
"in, third party open-source libraries, by creating a more centralized " \
22+
"ecosystem."
23+
24+
s.files = Dir["lib/**/*.rb"] + %w{ bin/pod bin/sandbox-pod README.md LICENSE CHANGELOG.md }
25+
26+
s.executables = %w{ pod sandbox-pod }
27+
s.require_paths = %w{ lib }
28+
29+
# Link with the version of CocoaPods-Core
30+
s.add_runtime_dependency 'cocoapods-core', "= #{Pod::VERSION}"
31+
32+
s.add_runtime_dependency 'claide', '>= 1.0.2', '< 2.0'
33+
s.add_runtime_dependency 'cocoapods-deintegrate', '>= 1.0.3', '< 2.0'
34+
s.add_runtime_dependency 'cocoapods-downloader', '>= 1.2.2', '< 2.0'
35+
s.add_runtime_dependency 'cocoapods-plugins', '>= 1.0.0', '< 2.0'
36+
s.add_runtime_dependency 'cocoapods-search', '>= 1.0.0', '< 2.0'
37+
s.add_runtime_dependency 'cocoapods-trunk', '>= 1.4.0', '< 2.0'
38+
s.add_runtime_dependency 'cocoapods-try', '>= 1.1.0', '< 2.0'
39+
s.add_runtime_dependency 'molinillo', '~> 0.6.6'
40+
s.add_runtime_dependency 'xcodeproj', '>= 1.14.0', '< 2.0'
41+
42+
## Version 5 needs Ruby 2.2, so we specify an upper bound to stay compatible with system ruby
43+
s.add_runtime_dependency 'activesupport', '>= 4.0.2', '< 5'
44+
s.add_runtime_dependency 'colored2', '~> 3.1'
45+
s.add_runtime_dependency 'escape', '~> 0.0.4'
46+
s.add_runtime_dependency 'fourflusher', '>= 2.3.0', '< 3.0'
47+
s.add_runtime_dependency 'gh_inspector', '~> 1.0'
48+
s.add_runtime_dependency 'nap', '~> 1.0'
49+
s.add_runtime_dependency 'ruby-macho', '~> 1.4'
50+
51+
s.add_runtime_dependency 'addressable', '~> 2.6'
52+
53+
s.add_development_dependency 'bacon', '~> 1.1'
54+
s.add_development_dependency 'bundler', '~> 1.3'
55+
s.add_development_dependency 'rake', '~> 10.0'
56+
57+
## Make sure you can build the gem on older versions of RubyGems too:
58+
s.rubygems_version = "1.6.2"
59+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
60+
s.required_ruby_version = '>= 2.0.0'
61+
s.specification_version = 3 if s.respond_to? :specification_version
62+
end
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# -*- encoding: utf-8 -*-
2+
$:.push File.expand_path("../lib", __FILE__)
3+
require "github/version"
4+
5+
Gem::Specification.new do |s|
6+
s.name = "github"
7+
s.version = GitHub::VERSION
8+
s.platform = Gem::Platform::RUBY
9+
s.authors = ['Chris Wanstrath', 'Kevin Ballard', 'Scott Chacon', 'Dr Nic Williams']
10+
s.email = ["drnicwilliams@gmail.com"]
11+
s.homepage = "https://github.com/defunkt/github-gem"
12+
s.summary = "The official `github` command line helper for simplifying your GitHub experience."
13+
s.description = "The official `github` command line helper for simplifying your GitHub experience."
14+
15+
s.rubyforge_project = "github"
16+
17+
s.files = `git ls-files`.split("\n")
18+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
19+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
20+
s.require_paths = ["lib"]
21+
22+
s.add_dependency "text-hyphen", "1.0.0"
23+
s.add_dependency "text-format", "1.0.0"
24+
s.add_dependency "highline", "~> 1.6"
25+
s.add_dependency "json_pure", "~> 1.5.1"
26+
s.add_dependency "launchy", "~> 2.0.2"
27+
28+
s.add_development_dependency "rake"
29+
s.add_development_dependency "rspec", "~>1.3.1"
30+
s.add_development_dependency "activerecord", "~>3.0.0"
31+
end
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Gem::Specification.new do |s|
2+
s.name = %q{mecab-ruby}
3+
s.version = '0.99'
4+
s.author = 'Taku Kudo'
5+
s.date = '2011-12-24'
6+
s.description = "Ruby bindings for MeCab, a morphological analyzer."
7+
s.email = 'taku@chasen.org'
8+
s.extensions = [ 'extconf.rb' ]
9+
s.files = [ 'AUTHORS', 'BSD', 'COPYING', 'GPL', 'LGPL',
10+
'MeCab_wrap.cpp', 'README', 'bindings.html',
11+
'extconf.rb', 'mecab-ruby.gemspec', 'test.rb' ]
12+
s.has_rdoc = false
13+
s.homepage = 'http://mecab.sourceforge.net/'
14+
s.summary = 'Ruby bindings for MeCab.'
15+
end
16+
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# encoding: utf-8
2+
# frozen_string_literal: true
3+
4+
require File.expand_path('../lib/parser/version', __FILE__)
5+
6+
Gem::Specification.new do |spec|
7+
spec.name = 'parser'
8+
spec.version = Parser::VERSION
9+
spec.authors = ['whitequark']
10+
spec.email = ['whitequark@whitequark.org']
11+
spec.description = 'A Ruby parser written in pure Ruby.'
12+
spec.summary = spec.description
13+
spec.homepage = 'https://github.com/whitequark/parser'
14+
spec.license = 'MIT'
15+
16+
spec.metadata = {
17+
'bug_tracker_uri' => 'https://github.com/whitequark/parser/issues',
18+
'changelog_uri' => "https://github.com/whitequark/parser/blob/v#{spec.version}/CHANGELOG.md",
19+
'documentation_uri' => "https://www.rubydoc.info/gems/parser/#{spec.version}",
20+
'source_code_uri' => "https://github.com/whitequark/parser/tree/v#{spec.version}"
21+
}
22+
23+
spec.files = `git ls-files`.split + %w(
24+
lib/parser/lexer.rb
25+
lib/parser/ruby18.rb
26+
lib/parser/ruby19.rb
27+
lib/parser/ruby20.rb
28+
lib/parser/ruby21.rb
29+
lib/parser/ruby22.rb
30+
lib/parser/ruby23.rb
31+
lib/parser/ruby24.rb
32+
lib/parser/ruby25.rb
33+
lib/parser/ruby26.rb
34+
lib/parser/ruby27.rb
35+
lib/parser/ruby28.rb
36+
lib/parser/macruby.rb
37+
lib/parser/rubymotion.rb
38+
)
39+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
40+
spec.test_files = spec.files.grep(%r{^test/})
41+
spec.require_paths = ['lib']
42+
43+
spec.required_ruby_version = '>= 2.0.0'
44+
45+
spec.add_dependency 'ast', '~> 2.4.0'
46+
47+
spec.add_development_dependency 'bundler', '>= 1.15', '< 3.0.0'
48+
spec.add_development_dependency 'rake', '~> 13.0.1'
49+
spec.add_development_dependency 'racc', '= 1.4.15'
50+
spec.add_development_dependency 'cliver', '~> 0.3.2'
51+
52+
spec.add_development_dependency 'yard'
53+
spec.add_development_dependency 'kramdown'
54+
55+
spec.add_development_dependency 'minitest', '~> 5.10'
56+
spec.add_development_dependency 'simplecov', '~> 0.15.1'
57+
58+
spec.add_development_dependency 'gauntlet'
59+
end

tests/packagedcode/data/rubygems/gemspec/rubocop.gemspec

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,9 @@ Gem::Specification.new do |s|
1111
s.platform = Gem::Platform::RUBY
1212
s.required_ruby_version = '>= 2.2.0'
1313
s.authors = ['Bozhidar Batsov', 'Jonas Arvidsson', 'Yuji Nakayama']
14-
s.description = <<-DESCRIPTION
15-
Automatic Ruby code style checking tool.
16-
Aims to enforce the community-driven Ruby Style Guide.
17-
DESCRIPTION
14+
s.description = "Automatic Ruby code style checking tool. Aims to enforce the community-driven Ruby Style Guide."
1815

19-
s.email = 'rubocop@googlegroups.com'
16+
s.email = ['rubocop@googlegroups.com']
2017
s.files = `git ls-files assets bin config lib LICENSE.txt README.md`
2118
.split($RS)
2219
s.bindir = 'exe'

0 commit comments

Comments
 (0)