Skip to content

Commit

Permalink
Gemfile for ultra (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyshields authored Apr 10, 2023
1 parent 46b4784 commit 005fc30
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 28 deletions.
2 changes: 1 addition & 1 deletion lib/mongoid/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Mongoid
VERSION = "9.0.0.alpha"
VERSION = "9.0.0.0.alpha"
end
38 changes: 11 additions & 27 deletions mongoid.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -6,31 +6,24 @@ $:.unshift lib unless $:.include?(lib)
require "mongoid/version"

Gem::Specification.new do |s|
s.name = "mongoid"
s.name = "mongoid-ultra"
s.version = Mongoid::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ["The MongoDB Ruby Team"]
s.email = "dbx-ruby@mongodb.com"
s.authors = ['TableCheck Inc.', 'Durran Jordan', 'The MongoDB Ruby Team']
s.email = "dev@tablecheck.com"
s.homepage = "https://mongoid.org"
s.summary = "Elegant Persistence in Ruby for MongoDB."
s.description = "Mongoid is an ODM (Object Document Mapper) Framework for MongoDB, written in Ruby."
s.summary = "Mongoid: Ultra Edition"
s.description = "Ruby ODM (Object Document Mapper) Framework for MongoDB. Maintained by the community, for the community."
s.license = "MIT"

s.metadata = {
'bug_tracker_uri' => 'https://jira.mongodb.org/projects/MONGOID',
'changelog_uri' => 'https://github.com/mongodb/mongoid/releases',
'bug_tracker_uri' => 'https://github.com/tablecheck/mongoid/issues',
'changelog_uri' => 'https://github.com/tablecheck/mongoid/releases',
'documentation_uri' => 'https://www.mongodb.com/docs/mongoid/',
'homepage_uri' => 'https://mongoid.org/',
'source_code_uri' => 'https://github.com/mongodb/mongoid',
'homepage_uri' => 'https://github.com/tablecheck/mongoid',
'source_code_uri' => 'https://github.com/tablecheck/mongoid',
}

if File.exist?('gem-private_key.pem')
s.signing_key = 'gem-private_key.pem'
s.cert_chain = ['gem-public_cert.pem']
else
warn "[#{s.name}] Warning: No private key present, creating unsigned gem."
end

s.required_ruby_version = ">= 2.6"
s.required_rubygems_version = ">= 1.3.6"

Expand All @@ -41,17 +34,8 @@ Gem::Specification.new do |s|
s.add_dependency("mongo", ['>=2.18.0', '<3.0.0'])
s.add_dependency("concurrent-ruby", ['>= 1.0.5', '< 2.0'])

# The ruby2_keywords gem is recommended for handling argument delegation issues,
# especially if support for 2.6 or prior is required.
# See https://www.ruby-lang.org/en/news/2019/12/12/separation-of-positional-and-keyword-arguments-in-ruby-3-0/#delegation
#
# We have a bunch of complex delegation logic, including various method_missings.
# If we try to fix them "right", it will add too much logic. We will have to
# handle different Ruby versions (including minor ones, Ruby 2.6 and 2.7
# behave differently), hash key types (strings vs symbols), ways of passing
# arguments (with curly braces vs without ones).
#
# Therefore, usage of this gem looks like a reasonable solution at the moment.
# The ruby2_keywords gem is used to handling argument delegation issues.
# It can be removed after support for Ruby 2.7 is dropped.
s.add_dependency("ruby2_keywords", "~> 0.0.5")

s.add_development_dependency("bson", ['>=4.14.0', '<5.0.0'])
Expand Down

0 comments on commit 005fc30

Please sign in to comment.