grape-cli-mongodb 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: f40b6b33ff25ba2965ed6f2fcde86846b76de7ba
4
+ data.tar.gz: ea3c2774e479f3a49810b9a39d8b382b64d4ade4
5
+ SHA512:
6
+ metadata.gz: af651b91702eb5602a2613c39482cc3c8a5de7eea4c80c300901aaba0f14e39c98c528613e3016127fe5941b155e645ce67d605c24999f2c341b9bc5f7addfad
7
+ data.tar.gz: d72189d3d928da70932833347009683ea83d3d76d3c39e99afd105319b4b7da8f7aab7cf5f23fa6964cbabbdcbe8a52a4f75f1b27be4553055dbbaa029a99676
data/.gitignore ADDED
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in grape-cli-mongodb.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 ADL
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,41 @@
1
+ # Grape::Cli::Mongodb
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/grape/cli/mongodb`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'grape-cli-mongodb'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install grape-cli-mongodb
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/grape-cli-mongodb.
36
+
37
+
38
+ ## License
39
+
40
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
41
+
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+ task :default => :spec
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "grape/cli/mongodb"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
data/exe/grape ADDED
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ load File.join(File.dirname(__FILE__), '../lib/grape/cli/mongodb.rb')
4
+
5
+ Grape::Cli::Mongodb.execute
@@ -0,0 +1,42 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'grape/cli/mongodb/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "grape-cli-mongodb"
8
+ spec.version = Grape::Cli::Mongodb::VERSION
9
+ spec.authors = ["ADL"]
10
+ spec.email = ["aronlmin@gmail.com"]
11
+
12
+ spec.summary = %q{Quickly bootstrap a grape project with mongodb from the command line}
13
+ spec.description = %q{Grape cli for a mongodb grape api}
14
+ spec.homepage = "https://github.com/aronlmin/grape-cli-mongodb"
15
+ spec.license = "MIT"
16
+
17
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
18
+ f.match(%r{^(test|spec|features)/})
19
+ end
20
+ spec.bindir = "exe"
21
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
+ spec.require_paths = ["lib"]
23
+
24
+ spec.required_ruby_version = '>= 2.4.1'
25
+
26
+ spec.add_development_dependency "bundler", "~> 1.14"
27
+ spec.add_development_dependency "rake", ">= 10.0"
28
+
29
+ spec.add_dependency 'rack', "~> 2.0.3"
30
+ spec.add_dependency 'rack-cors', "~> 1.0.2"
31
+ spec.add_dependency 'rack-contrib', "~> 1.2.0"
32
+ spec.add_dependency 'dotenv', "~> 2.2.1"
33
+ spec.add_dependency 'grape', "~> 1.0.1"
34
+ spec.add_dependency 'grape-entity', "~> 0.6.1"
35
+ spec.add_dependency 'grape_logging', "~> 1.7.0"
36
+ spec.add_dependency 'puma', "~> 3.10.0"
37
+ spec.add_dependency 'mongoid', "~> 6.2.1"
38
+ spec.add_dependency 'sanitize', "~> 4.5.0"
39
+ spec.add_dependency 'kaminari', "~>0.16.3"
40
+ spec.add_dependency 'pry', "~> 0.11.3"
41
+ spec.add_dependency 'tux', "~> 0.3.0"
42
+ end
File without changes
@@ -0,0 +1,5 @@
1
+ # See https://help.github.com/ignore-files/ for more about ignoring files.
2
+ /log
3
+ # misc
4
+ .DS_Store
5
+ .env.development
@@ -0,0 +1,18 @@
1
+ source 'http://rubygems.org'
2
+
3
+ ruby '2.4.1'
4
+
5
+ gem 'rack'
6
+ gem 'rack-cors'
7
+ gem 'rack-contrib'
8
+ gem 'dotenv'
9
+ gem 'grape'
10
+ gem 'grape-entity'
11
+ gem 'grape_logging'
12
+ gem 'puma'
13
+ gem 'mongoid'
14
+ gem 'sanitize'
15
+ gem "kaminari", "~>0.16.3"
16
+ gem 'rake'
17
+ gem 'pry', group: :development
18
+ gem 'tux', group: :development
@@ -0,0 +1,17 @@
1
+ require 'rubygems'
2
+ require 'bundler'
3
+ require 'date'
4
+
5
+ #encoding: UTF-8
6
+
7
+ ## Dependencies
8
+ require 'bundler'
9
+ Bundler.require(:default)
10
+ Dotenv.load("./.env.#{(ENV['RACK_ENV'] || 'development')}")
11
+
12
+ ## Settings
13
+ require './init.rb'
14
+ require './settings.rb'
15
+
16
+ ## Import rake tasks
17
+ Dir.glob('./tasks/*.rake') { |file| load file }
@@ -0,0 +1,3 @@
1
+ ## Database connection
2
+ env = (ENV['RACK_ENV'] || :development)
3
+ Mongoid.load!('./config/mongoid.yml', env)
@@ -0,0 +1,23 @@
1
+ module BOILERPLATE
2
+
3
+ module Entities
4
+
5
+ class Mongoid < Grape::Entity
6
+ format_with(:mongo_id) { |id| id.to_s }
7
+ with_options(format_with: :mongo_id) do
8
+ expose :_id, as: :id
9
+ end
10
+ expose :created_at
11
+ expose :updated_at
12
+ end # class
13
+
14
+ class MongoidBase < Grape::Entity
15
+ format_with(:mongo_id) { |id| id.to_s }
16
+ with_options(format_with: :mongo_id) do
17
+ expose :_id, as: :id
18
+ end
19
+ end
20
+
21
+ end
22
+
23
+ end
@@ -0,0 +1 @@
1
+ Kaminari::Hooks.init
@@ -0,0 +1,14 @@
1
+ development:
2
+ clients:
3
+ default:
4
+ database: boilerplate
5
+ hosts:
6
+ - 127.0.0.1:27017
7
+ use_utc: true
8
+ production:
9
+ clients:
10
+ default:
11
+ database: boilerplate
12
+ hosts:
13
+ - 127.0.0.1:27017
14
+ use_utc: true
@@ -0,0 +1,19 @@
1
+ ## Dependencies
2
+ require 'bundler'
3
+
4
+ Bundler.require :default
5
+ Dotenv.load("./.env.#{(ENV['RACK_ENV'] || 'development')}")
6
+
7
+ ## Main application files
8
+ require './init.rb'
9
+
10
+ ## CORS
11
+ require 'rack/cors'
12
+ use Rack::Cors do
13
+ allow do
14
+ origins '*'
15
+ resource '*', headers: :any, methods: [:get, :post, :options, :put, :delete, :patch]
16
+ end
17
+ end
18
+
19
+ run Rack::Cascade.new [BOILERPLATE::API]
@@ -0,0 +1,118 @@
1
+ module BOILERPLATE
2
+
3
+ require './settings.rb'
4
+
5
+ ## Configuration
6
+ Dir.glob('./config/*.rb') { |file| load file }
7
+
8
+ ## Library
9
+ Dir.glob('./lib/*.rb') { |file| load file }
10
+
11
+ ## Import models
12
+ Dir.glob('./models/*.rb') { |file| load file }
13
+
14
+ ## Import entities
15
+ Dir.glob('./entities/*.rb') { |file| load file }
16
+
17
+
18
+ ## Entity for API error responses
19
+ module ErrorFormatter
20
+ def self.call(message, backtrace, options, env)
21
+ if message.is_a? String
22
+ { status: 'error', error: message }.to_json
23
+ elsif message.is_a? Hash
24
+ status = { status: 'error' }
25
+ (status.merge(message)).to_json
26
+ end
27
+ end
28
+ end
29
+
30
+ class API < Grape::API
31
+ use Rack::JSONP
32
+ content_type :json, 'application/json'
33
+ default_format :json
34
+
35
+ log_file = File.open('./log/logfile.log', 'a')
36
+ log_file.sync = true
37
+ logger Logger.new GrapeLogging::MultiIO.new(STDOUT, log_file)
38
+ use GrapeLogging::Middleware::RequestLogger,
39
+ logger: logger,
40
+ include: [ GrapeLogging::Loggers::RequestHeaders.new ]
41
+
42
+ error_formatter :json, -> (message, backtrace, options, env, original_exception) {
43
+ message = { error_message: message } if message.is_a? String
44
+ { status: 'ERROR', error: message }.to_json
45
+ }
46
+
47
+ rescue_from :all
48
+
49
+ ## Mongoid validation errors
50
+ rescue_from Mongoid::Errors::Validations do |e|
51
+ error!({ error_message: "The #{ e.document.class.to_s } could not be saved.", model_validations: e.document.errors.messages }, 500)
52
+ end
53
+
54
+ ## Grape validation errors
55
+ rescue_from Grape::Exceptions::ValidationErrors do |e|
56
+ error!({ error_message: "Invalid payload. #{ e.message.capitalize }.", resource_validations: e }, 400)
57
+ end
58
+
59
+ helpers do
60
+ def present_pagination(data, **params)
61
+ pagination = {
62
+ page: params[:page] ||= 1,
63
+ per_page: params[:per] ||= 10,
64
+ page_count: data.total_pages
65
+ }
66
+ present pagination, root: 'pagination', with: Grape::Presenters::Presenter
67
+ end
68
+
69
+ def present_data(key, data, options = {})
70
+ response = {}
71
+ d = (data.class.respond_to? :count) ? [data] : data
72
+ d = [] if d.nil?
73
+ response[key] = options[:with].represent(d, options.except(:with))
74
+ present response, options, root: "data", with: Grape::Presenters::Presenter
75
+ end
76
+
77
+ def present_meta(data)
78
+ d = (data.class.respond_to? :count) ? [data] : data
79
+ @http_status = Rack::Utils::HTTP_STATUS_CODES[status]
80
+ @record_count = d.nil? ? 0 : d.size
81
+ @response_time = Time.now - @start_time
82
+ meta = {
83
+ status: @http_status,
84
+ method: @method,
85
+ record_count: @record_count,
86
+ response_time: @response_time
87
+ }
88
+ present meta, with: Grape::Presenters::Presenter
89
+ end
90
+
91
+ def sanitize_user_input(user_input)
92
+ unless user_input.nil?
93
+ input = user_input.is_a?(String) ? user_input.strip : user_input
94
+ Sanitize.fragment(input, Sanitize::Config::RESTRICTED)
95
+ end
96
+ end
97
+
98
+ def logger
99
+ API.logger
100
+ end
101
+ end
102
+
103
+ before do
104
+ @start_time = Time.new
105
+ @access_key = nil
106
+ @method = request.request_method
107
+ end
108
+
109
+ get '/' do
110
+ present :api, {message: 'successfully launched api'}, with: Grape::Presenters::Presenter
111
+ end
112
+
113
+ Dir.glob('./resources/*.rb') { |file| load file }
114
+ # mount BOILERPLATE::Resources::Auth
115
+
116
+ end
117
+
118
+ end
@@ -0,0 +1 @@
1
+ APP_ROOT = File.dirname(__FILE__)
@@ -0,0 +1,7 @@
1
+ module Grape
2
+ module Cli
3
+ module Mongodb
4
+ VERSION = "1.0.1"
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,93 @@
1
+ require "grape/cli/mongodb/version"
2
+ require 'optparse'
3
+ require 'fileutils'
4
+
5
+ module Grape
6
+ module Cli
7
+ module Mongodb
8
+
9
+ def self.execute
10
+ options = {}
11
+
12
+ optparse = OptionParser.new do |opts|
13
+ opts.banner = "Usage: grape [command] \"PROJECT_NAME\" [options]"
14
+
15
+ opts.on( '-h', '--help', 'Display this screen' ) do
16
+ puts opts
17
+ exit
18
+ end
19
+
20
+ options[:project_name] = nil
21
+ opts.on( '-n', '--new PROJECT_NAME', 'Generate New Project' ) do |project|
22
+ options[:project_name] = project.downcase
23
+ end
24
+
25
+ # Define the options, and what they do
26
+ options[:verbose] = false
27
+ opts.on( '-v', '--verbose', 'Output more information' ) do
28
+ options[:verbose] = true
29
+ end
30
+ end
31
+
32
+ # Parse the command-line. the 'parse!' method parses ARGV and removes
33
+ # any options found there, as well as any parameters for
34
+ # the options.
35
+ optparse.parse!
36
+
37
+ if options[:project_name]
38
+ puts "Generating new project #{options[:project_name]}"
39
+ new_project( filepath: Dir.pwd, project: options[:project_name], verbose: options[:verbose] )
40
+ end
41
+ end
42
+
43
+ def self.new_project(filepath: nil, project: nil, verbose: false)
44
+
45
+ boilerplate = File.join( File.dirname(__FILE__), '/boilerplate' )
46
+
47
+ ## Copy the boilerplate directory to the filepath
48
+ FileUtils.cp_r(boilerplate, filepath)
49
+
50
+ ## rename the boilerplate directory to the project name
51
+ FileUtils.mv( "#{filepath}/boilerplate", "#{filepath}/#{project}" )
52
+
53
+ new_path = "#{filepath}/#{project}"
54
+
55
+ until File.directory?(new_path)
56
+ print '.'
57
+ end
58
+
59
+ file_names = ['/init.rb', '/config.ru', '/config/entities.rb']
60
+ file_names.each do |file_name|
61
+ text = File.read( File.join(new_path, file_name) )
62
+ replace_module = text.gsub('BOILERPLATE', project.upcase.gsub('_', ''))
63
+ File.open(File.join(new_path, file_name), 'w') { |file| file.puts replace_module }
64
+ puts "created file ./#{file_name}"
65
+ end
66
+
67
+ config_files = ['/config/mongoid.yml']
68
+ config_files.each do |file_name|
69
+ text = File.read( File.join(new_path, file_name) )
70
+ replace_db = text.gsub( 'boilerplate', project )
71
+ File.open( File.join(new_path, file_name), 'w' ) { |file| file.puts replace_db }
72
+ puts "created file ./#{file_name}"
73
+ end
74
+
75
+ folders_to_make = ['entities', 'lib', 'log', 'bin', 'models', 'resources', 'tasks']
76
+ folders_to_make.each do |folder|
77
+ Dir.mkdir( File.join(new_path, folder) )
78
+ puts "created directory ./#{folder}"
79
+ end
80
+ ## create emty folders
81
+ ## entities
82
+ ## lib
83
+ ## log
84
+ ## bin
85
+ ## models
86
+ ## resources
87
+ ## tasks
88
+
89
+ end
90
+
91
+ end
92
+ end
93
+ end
metadata ADDED
@@ -0,0 +1,277 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: grape-cli-mongodb
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.1
5
+ platform: ruby
6
+ authors:
7
+ - ADL
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2018-02-11 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.14'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.14'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rack
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 2.0.3
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 2.0.3
55
+ - !ruby/object:Gem::Dependency
56
+ name: rack-cors
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 1.0.2
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 1.0.2
69
+ - !ruby/object:Gem::Dependency
70
+ name: rack-contrib
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 1.2.0
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 1.2.0
83
+ - !ruby/object:Gem::Dependency
84
+ name: dotenv
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 2.2.1
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 2.2.1
97
+ - !ruby/object:Gem::Dependency
98
+ name: grape
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: 1.0.1
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: 1.0.1
111
+ - !ruby/object:Gem::Dependency
112
+ name: grape-entity
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: 0.6.1
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: 0.6.1
125
+ - !ruby/object:Gem::Dependency
126
+ name: grape_logging
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: 1.7.0
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: 1.7.0
139
+ - !ruby/object:Gem::Dependency
140
+ name: puma
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: 3.10.0
146
+ type: :runtime
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: 3.10.0
153
+ - !ruby/object:Gem::Dependency
154
+ name: mongoid
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: 6.2.1
160
+ type: :runtime
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "~>"
165
+ - !ruby/object:Gem::Version
166
+ version: 6.2.1
167
+ - !ruby/object:Gem::Dependency
168
+ name: sanitize
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - "~>"
172
+ - !ruby/object:Gem::Version
173
+ version: 4.5.0
174
+ type: :runtime
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - "~>"
179
+ - !ruby/object:Gem::Version
180
+ version: 4.5.0
181
+ - !ruby/object:Gem::Dependency
182
+ name: kaminari
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - "~>"
186
+ - !ruby/object:Gem::Version
187
+ version: 0.16.3
188
+ type: :runtime
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - "~>"
193
+ - !ruby/object:Gem::Version
194
+ version: 0.16.3
195
+ - !ruby/object:Gem::Dependency
196
+ name: pry
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - "~>"
200
+ - !ruby/object:Gem::Version
201
+ version: 0.11.3
202
+ type: :runtime
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - "~>"
207
+ - !ruby/object:Gem::Version
208
+ version: 0.11.3
209
+ - !ruby/object:Gem::Dependency
210
+ name: tux
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - "~>"
214
+ - !ruby/object:Gem::Version
215
+ version: 0.3.0
216
+ type: :runtime
217
+ prerelease: false
218
+ version_requirements: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - "~>"
221
+ - !ruby/object:Gem::Version
222
+ version: 0.3.0
223
+ description: Grape cli for a mongodb grape api
224
+ email:
225
+ - aronlmin@gmail.com
226
+ executables:
227
+ - grape
228
+ extensions: []
229
+ extra_rdoc_files: []
230
+ files:
231
+ - ".gitignore"
232
+ - Gemfile
233
+ - LICENSE.txt
234
+ - README.md
235
+ - Rakefile
236
+ - bin/console
237
+ - bin/setup
238
+ - exe/grape
239
+ - grape-cli-mongodb.gemspec
240
+ - lib/grape/cli/boilerplate/.env.production
241
+ - lib/grape/cli/boilerplate/.gitignore
242
+ - lib/grape/cli/boilerplate/Gemfile
243
+ - lib/grape/cli/boilerplate/Rakefile
244
+ - lib/grape/cli/boilerplate/config.ru
245
+ - lib/grape/cli/boilerplate/config/db.rb
246
+ - lib/grape/cli/boilerplate/config/entities.rb
247
+ - lib/grape/cli/boilerplate/config/kaminari.rb
248
+ - lib/grape/cli/boilerplate/config/mongoid.yml
249
+ - lib/grape/cli/boilerplate/init.rb
250
+ - lib/grape/cli/boilerplate/settings.rb
251
+ - lib/grape/cli/mongodb.rb
252
+ - lib/grape/cli/mongodb/version.rb
253
+ homepage: https://github.com/aronlmin/grape-cli-mongodb
254
+ licenses:
255
+ - MIT
256
+ metadata: {}
257
+ post_install_message:
258
+ rdoc_options: []
259
+ require_paths:
260
+ - lib
261
+ required_ruby_version: !ruby/object:Gem::Requirement
262
+ requirements:
263
+ - - ">="
264
+ - !ruby/object:Gem::Version
265
+ version: 2.4.1
266
+ required_rubygems_version: !ruby/object:Gem::Requirement
267
+ requirements:
268
+ - - ">="
269
+ - !ruby/object:Gem::Version
270
+ version: '0'
271
+ requirements: []
272
+ rubyforge_project:
273
+ rubygems_version: 2.6.11
274
+ signing_key:
275
+ specification_version: 4
276
+ summary: Quickly bootstrap a grape project with mongodb from the command line
277
+ test_files: []