Commit d2debc0f by mingyuan

moved unused files

parent 5b24df55
#!/usr/bin/env ruby #!/usr/bin/env ruby
# This command will automatically be run when you run "rails" with Rails gems
# installed from the root of your application.
ENGINE_ROOT = File.expand_path('..', __dir__) ENGINE_ROOT = File.expand_path('..', __dir__)
ENGINE_PATH = File.expand_path('../lib/rails_dingtalk/engine', __dir__) ENGINE_PATH = File.expand_path('../lib/rails_com/engine', __dir__)
APP_PATH = File.expand_path('../test/dummy/config/application', __dir__) APP_PATH = File.expand_path('../test/dummy/config/application', __dir__)
# Set up gems listed in the Gemfile.
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__) ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
require "bundler/setup" if File.exist?(ENV["BUNDLE_GEMFILE"]) require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
require "rails/all" require 'rails_com/all'
require "rails/engine/commands" require 'rails/engine/commands'
#!/usr/bin/env ruby
# frozen_string_literal: true
ENV['RAILS_ENV'] ||= ENV['RACK_ENV'] || 'development'
ENV['NODE_ENV'] ||= ENV['RACK_ENV'] || 'development'
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
require 'pry'
require 'viter'
require_relative '../test/dummy/config/application'
Viter::Exporter.export
APP_ROOT = File.expand_path('../test/dummy', __dir__)
Dir.chdir(APP_ROOT) do
Viter::DevServerRunner.run(ARGV)
end
require "rails_dingtalk/version" require 'rails_dingtalk/engine'
require "rails_dingtalk/engine"
module RailsDingtalk module RailsDingtalk
# Your code goes here...
end end
require 'rails_com'
module RailsDingtalk module RailsDingtalk
class Engine < ::Rails::Engine class Engine < ::Rails::Engine
config.autoload_paths += Dir[
"#{config.root}/app/models/govern"
]
config.generators do |g|
g.rails = {
assets: false,
stylesheets: false,
helper: false
}
g.test_unit = {
fixture: true,
fixture_replacement: :factory_girl
}
g.templates.unshift File.expand_path('lib/templates', RailsCom::Engine.root)
end
end end
end end
module RailsDingtalk
VERSION = '0.1.0'
end
# desc "Explaining what the task does"
# task :rails_dingtalk do
# # Task goes here
# end
Gem::Specification.new do |s|
s.name = 'rails_dingtalk'
s.version = '0.1'
s.authors = ['qinmingyuan']
s.email = ['mingyuan0715@foxmail.com']
s.homepage = 'https://github.com/work-design/rails_dingtalk'
s.summary = 'Summary of RailsDingtalk'
s.description = '钉钉'
s.license = 'MIT'
s.metadata['homepage_uri'] = s.homepage
s.metadata['source_code_uri'] = 'https://github.com/work-design/rails_dingtalk'
s.metadata['changelog_uri'] = 'https://github.com/work-design/rails_dingtalk'
s.files = Dir[
'{app,config,db,lib}/**/*',
'LICENSE',
'Rakefile',
'README.md'
]
s.add_dependency 'rails_com'
end
require_relative "lib/rails_dingtalk/version"
Gem::Specification.new do |spec|
spec.name = "rails_dingtalk"
spec.version = RailsDingtalk::VERSION
spec.authors = ["qinmingyuan"]
spec.email = ["mingyuan0715@foxmail.com"]
spec.homepage = "TODO"
spec.summary = "TODO: Summary of RailsDingtalk."
spec.description = "TODO: Description of RailsDingtalk."
spec.license = "MIT"
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
# to allow pushing to a single host or delete this section to allow pushing to any host.
spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
spec.metadata["homepage_uri"] = spec.homepage
spec.metadata["source_code_uri"] = "TODO: Put your gem's public repo URL here."
spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
spec.files = Dir["{app,config,db,lib}/**/*", "MIT-LICENSE", "Rakefile", "README.md"]
spec.add_dependency "rails", "~> 6.1.4"
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment