railsmdb 1.0.0.alpha1 → 1.0.0.alpha3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3c5fc774da8b9ad81904fc662c1845ce3a54569183d019ac896aa67a3359a60e
4
- data.tar.gz: f0e5879e0fea0e817ccc269d74050e6bbef2f60cfe75c7d58d3c6767d6af35c3
3
+ metadata.gz: 6eb8164814d59a0610a04de09f081d39961267ca0957dd0b9991466143f4f495
4
+ data.tar.gz: 412b945f07a57185e1ead998905ea205e82963f3b276e2c00ba23a9f7edd256d
5
5
  SHA512:
6
- metadata.gz: ac54e057125932ef589776d1e18f08cd221725c5660ce75207f8250c76bcf3f18f7e8b88ceec5483c60b2e7479ae4b5e069e8a01f5edbe36b5bc3af143793e3f
7
- data.tar.gz: c68a7050639334ea019bd952784af540d03e57aa9600095b4b4273f2d6eff072250cb03e62fcef6d64f201739ea7eaaea6494f7fa2638fbebd88929fd9ea1dc4
6
+ metadata.gz: fc9c7d6916855578947223bf04d3df2beeef489e933cc4614e0164faafb2680c946cae1cd48fbe17356e1cee9229d807456c791c906cba60a4e75932dd710f2b
7
+ data.tar.gz: 0f4b126dae957abb8c2fa35109b8713bc3b22eb2dec16d470758aa51e44982c4ea7272925a16f54124db3f5179999380fe916c697c0353379362644ae5919767
checksums.yaml.gz.sig CHANGED
Binary file
data/bin/railsmdb ADDED
@@ -0,0 +1,10 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ PROJECT_PATH = File.expand_path('..', __dir__)
5
+ GEMSPEC_PATH = File.join(PROJECT_PATH, 'railsmdb.gemspec')
6
+ LIB_PATH = File.join(PROJECT_PATH, 'lib')
7
+
8
+ $LOAD_PATH.unshift(LIB_PATH) if File.exist?(GEMSPEC_PATH)
9
+
10
+ require 'railsmdb/cli'
@@ -5,7 +5,7 @@ module Railsmdb
5
5
  MAJOR = 1
6
6
  MINOR = 0
7
7
  PATCH = 0
8
- SUFFIX = 'alpha1' # pre-release, alpha, beta, etc.
8
+ SUFFIX = 'alpha3' # pre-release, alpha, beta, etc.
9
9
 
10
10
  STRING = [ MAJOR, MINOR, PATCH, SUFFIX ].compact.join('.')
11
11
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: railsmdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.alpha1
4
+ version: 1.0.0.alpha3
5
5
  platform: ruby
6
6
  authors:
7
7
  - The MongoDB Ruby Team
@@ -35,7 +35,7 @@ cert_chain:
35
35
  wkeAWhd5b+5JS0zgDL4SvGB8/W2IY+y0zELkojBMgJPyrpAWHL/WSsSBMuhyI2Pv
36
36
  xxaBVLklnJJ/qCCOZ3lG2MyVc/Nb0Mmq8ygWNsfwHmKKYuuWcviit0D0Tek=
37
37
  -----END CERTIFICATE-----
38
- date: 2023-09-14 00:00:00.000000000 Z
38
+ date: 2023-09-28 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: rails
@@ -124,13 +124,14 @@ dependencies:
124
124
  description: A CLI for assisting Rails programmers in creating and managing Rails
125
125
  projects that use Mongoid and MongoDB as the datastore.
126
126
  email: dbx-ruby@mongodb.com
127
- executables: []
127
+ executables:
128
+ - railsmdb
128
129
  extensions: []
129
130
  extra_rdoc_files: []
130
131
  files:
131
132
  - LICENSE
132
133
  - README.md
133
- - Rakefile
134
+ - bin/railsmdb
134
135
  - lib/railsmdb/cli.rb
135
136
  - lib/railsmdb/commands.rb
136
137
  - lib/railsmdb/commands/dbconsole/dbconsole_command.rb
@@ -152,13 +153,15 @@ files:
152
153
  - lib/railsmdb/generators/setup/templates/_config/initializers/mongoid.rb.tt
153
154
  - lib/railsmdb/prioritizable.rb
154
155
  - lib/railsmdb/version.rb
155
- homepage: ''
156
+ homepage: https://github.com/mongodb/mongoid-railsmdb
156
157
  licenses:
157
158
  - Apache-2.0
158
159
  metadata:
159
160
  rubygems_mfa_required: 'true'
160
161
  bug_tracker_uri: https://jira.mongodb.org/projects/MONGOID
161
162
  changelog_uri: https://github.com/mongodb/mongoid-railsmdb/releases
163
+ documentation_uri: https://github.com/mongodb/mongoid-railsmdb/blob/v1.0.0.alpha1/README.md
164
+ homepage_uri: https://github.com/mongodb/mongoid-railsmdb
162
165
  source_code_uri: https://github.com/mongodb/mongoid-railsmdb
163
166
  post_install_message:
164
167
  rdoc_options: []
metadata.gz.sig CHANGED
Binary file
data/Rakefile DELETED
@@ -1,65 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # rubocop:disable Metrics/BlockLength
4
-
5
- require 'bundler'
6
- require 'bundler/gem_tasks'
7
- require 'rubygems/package'
8
- require 'rubygems/security'
9
- require 'rspec/core/rake_task'
10
-
11
- require_relative './lib/railsmdb/version'
12
-
13
- def signed_gem?(path_to_gem)
14
- Gem::Package.new(path_to_gem, Gem::Security::HighSecurity).verify
15
- true
16
- rescue Gem::Security::Exception
17
- false
18
- end
19
-
20
- RSpec::Core::RakeTask.new(:spec) do |t|
21
- t.rspec_opts = %w[ -I lib -I spec/support --format documentation ]
22
- end
23
-
24
- task default: %i[ spec ]
25
-
26
- Rake::Task['release'].clear
27
-
28
- desc 'Release railsmdb gem'
29
- task release: %w[ release:require_private_key clobber build release:verify release:tag release:publish ]
30
-
31
- namespace :release do
32
- desc 'Requires the private key to be present'
33
- task :require_private_key do
34
- raise 'No private key present, cannot release' unless File.exist?('gem-private_key.pem')
35
- end
36
-
37
- desc 'Verifies that all built gems in pkg/ are valid'
38
- task :verify do
39
- gems = Dir['pkg/*.gem']
40
- if gems.empty?
41
- puts 'There are no gems in pkg/ to verify'
42
- else
43
- gems.each do |gem|
44
- if signed_gem?(gem)
45
- puts "#{gem} is signed"
46
- else
47
- abort "#{gem} is not signed"
48
- end
49
- end
50
- end
51
- end
52
-
53
- desc 'Creates a new tag for the current version'
54
- task :tag do
55
- system "git tag -a v#{Railsmdb::Version::STRING} -m 'Tagging release: #{Railsmdb::Version::STRING}'"
56
- system "git push upstream v#{Railsmdb::Version::STRING}"
57
- end
58
-
59
- desc 'Publishes the most recently built gem'
60
- task :publish do
61
- system "gem push pkg/railsmdb-#{Railsmdb::Version::STRING}.gem"
62
- end
63
- end
64
-
65
- # rubocop:enable Metrics/BlockLength