mirror of
https://github.com/discourse/discourse.git
synced 2025-09-12 21:10:47 +08:00
relocate emoji plugin, stop pre-compiling assets
This commit is contained in:
parent
a468d6cfb0
commit
8278fdb9dd
1748 changed files with 181 additions and 404 deletions
13
vendor/gems/discourse_emoji/Gemfile
vendored
13
vendor/gems/discourse_emoji/Gemfile
vendored
|
@ -1,13 +0,0 @@
|
|||
source 'https://rubygems.org'
|
||||
|
||||
group :test do
|
||||
gem 'rails'
|
||||
gem 'rspec'
|
||||
gem 'mocha'
|
||||
end
|
||||
|
||||
# TODO: We need our own gem server
|
||||
gem 'discourse_plugin', path: '../discourse_plugin'
|
||||
|
||||
# Specify your gem's dependencies in rails_multisite.gemspec
|
||||
gemspec
|
111
vendor/gems/discourse_emoji/Gemfile.lock
vendored
111
vendor/gems/discourse_emoji/Gemfile.lock
vendored
|
@ -1,111 +0,0 @@
|
|||
PATH
|
||||
remote: .
|
||||
specs:
|
||||
discourse_emoji (0.0.1)
|
||||
|
||||
PATH
|
||||
remote: ../discourse_plugin
|
||||
specs:
|
||||
discourse_plugin (0.0.1)
|
||||
|
||||
GEM
|
||||
remote: https://rubygems.org/
|
||||
specs:
|
||||
actionmailer (3.2.8)
|
||||
actionpack (= 3.2.8)
|
||||
mail (~> 2.4.4)
|
||||
actionpack (3.2.8)
|
||||
activemodel (= 3.2.8)
|
||||
activesupport (= 3.2.8)
|
||||
builder (~> 3.0.0)
|
||||
erubis (~> 2.7.0)
|
||||
journey (~> 1.0.4)
|
||||
rack (~> 1.4.0)
|
||||
rack-cache (~> 1.2)
|
||||
rack-test (~> 0.6.1)
|
||||
sprockets (~> 2.1.3)
|
||||
activemodel (3.2.8)
|
||||
activesupport (= 3.2.8)
|
||||
builder (~> 3.0.0)
|
||||
activerecord (3.2.8)
|
||||
activemodel (= 3.2.8)
|
||||
activesupport (= 3.2.8)
|
||||
arel (~> 3.0.2)
|
||||
tzinfo (~> 0.3.29)
|
||||
activeresource (3.2.8)
|
||||
activemodel (= 3.2.8)
|
||||
activesupport (= 3.2.8)
|
||||
activesupport (3.2.8)
|
||||
i18n (~> 0.6)
|
||||
multi_json (~> 1.0)
|
||||
arel (3.0.2)
|
||||
builder (3.0.3)
|
||||
diff-lcs (1.1.3)
|
||||
erubis (2.7.0)
|
||||
hike (1.2.1)
|
||||
i18n (0.6.1)
|
||||
journey (1.0.4)
|
||||
json (1.7.5)
|
||||
mail (2.4.4)
|
||||
i18n (>= 0.4.0)
|
||||
mime-types (~> 1.16)
|
||||
treetop (~> 1.4.8)
|
||||
metaclass (0.0.1)
|
||||
mime-types (1.19)
|
||||
mocha (0.12.7)
|
||||
metaclass (~> 0.0.1)
|
||||
multi_json (1.3.6)
|
||||
polyglot (0.3.3)
|
||||
rack (1.4.1)
|
||||
rack-cache (1.2)
|
||||
rack (>= 0.4)
|
||||
rack-ssl (1.3.2)
|
||||
rack
|
||||
rack-test (0.6.2)
|
||||
rack (>= 1.0)
|
||||
rails (3.2.8)
|
||||
actionmailer (= 3.2.8)
|
||||
actionpack (= 3.2.8)
|
||||
activerecord (= 3.2.8)
|
||||
activeresource (= 3.2.8)
|
||||
activesupport (= 3.2.8)
|
||||
bundler (~> 1.0)
|
||||
railties (= 3.2.8)
|
||||
railties (3.2.8)
|
||||
actionpack (= 3.2.8)
|
||||
activesupport (= 3.2.8)
|
||||
rack-ssl (~> 1.3.2)
|
||||
rake (>= 0.8.7)
|
||||
rdoc (~> 3.4)
|
||||
thor (>= 0.14.6, < 2.0)
|
||||
rake (0.9.2.2)
|
||||
rdoc (3.12)
|
||||
json (~> 1.4)
|
||||
rspec (2.11.0)
|
||||
rspec-core (~> 2.11.0)
|
||||
rspec-expectations (~> 2.11.0)
|
||||
rspec-mocks (~> 2.11.0)
|
||||
rspec-core (2.11.1)
|
||||
rspec-expectations (2.11.3)
|
||||
diff-lcs (~> 1.1.3)
|
||||
rspec-mocks (2.11.3)
|
||||
sprockets (2.1.3)
|
||||
hike (~> 1.2)
|
||||
rack (~> 1.0)
|
||||
tilt (~> 1.1, != 1.3.0)
|
||||
thor (0.16.0)
|
||||
tilt (1.3.3)
|
||||
treetop (1.4.10)
|
||||
polyglot
|
||||
polyglot (>= 0.3.1)
|
||||
tzinfo (0.3.33)
|
||||
|
||||
PLATFORMS
|
||||
ruby
|
||||
|
||||
DEPENDENCIES
|
||||
discourse_emoji!
|
||||
discourse_plugin!
|
||||
mocha
|
||||
rails
|
||||
rspec
|
14
vendor/gems/discourse_emoji/LICENSE
vendored
14
vendor/gems/discourse_emoji/LICENSE
vendored
|
@ -1,14 +0,0 @@
|
|||
octocat, squirrel, shipit
|
||||
Copyright (c) 2012 GitHub Inc. All rights reserved.
|
||||
|
||||
bowtie, neckbeard
|
||||
Copyright (c) 2012 37signals, LLC. All rights reserved.
|
||||
|
||||
feelsgood, finnadie, goberserk, godmode, hurtrealbad, rage 1-4, suspect
|
||||
Copyright (c) 2012 id Software. All rights reserved.
|
||||
|
||||
trollface
|
||||
Copyright (c) 2012 whynne@deviantart. All rights reserved.
|
||||
|
||||
All other images
|
||||
Copyright (c) 2012 Apple Inc. All rights reserved.
|
3
vendor/gems/discourse_emoji/README.md
vendored
3
vendor/gems/discourse_emoji/README.md
vendored
|
@ -1,3 +0,0 @@
|
|||
# Discourse Emoji Gem
|
||||
|
||||
Adds Emoji support to discourse. Thanks to the gemoji gem for the assets.
|
7
vendor/gems/discourse_emoji/Rakefile
vendored
7
vendor/gems/discourse_emoji/Rakefile
vendored
|
@ -1,7 +0,0 @@
|
|||
#!/usr/bin/env rake
|
||||
require "bundler/gem_tasks"
|
||||
require "rspec/core/rake_task"
|
||||
|
||||
RSpec::Core::RakeTask.new(:test) do |spec|
|
||||
spec.pattern = 'spec/*_spec.rb'
|
||||
end
|
|
@ -1,19 +0,0 @@
|
|||
# -*- encoding: utf-8 -*-
|
||||
require File.expand_path('../lib/discourse_emoji/version', __FILE__)
|
||||
|
||||
Gem::Specification.new do |gem|
|
||||
gem.authors = ["Robin Ward"]
|
||||
gem.email = ["robin.ward@gmail.com"]
|
||||
gem.description = %q{This gem adds emoji support to discourse}
|
||||
gem.summary = %q{This gem adds emoji support to discourse}
|
||||
gem.homepage = ""
|
||||
|
||||
# when this is extracted comment it back in, prd has no .git
|
||||
gem.files = Dir['README*','LICENSE','lib/**/*.rb']
|
||||
|
||||
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
||||
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
||||
gem.name = "discourse_emoji"
|
||||
gem.require_paths = ["lib"]
|
||||
gem.version = DiscourseEmoji::VERSION
|
||||
end
|
|
@ -1,2 +0,0 @@
|
|||
require 'discourse_emoji/version'
|
||||
require 'discourse_emoji/engine' if defined?(Rails) && (!Rails.env.test?)
|
|
@ -1,17 +0,0 @@
|
|||
require 'discourse_emoji/plugin'
|
||||
|
||||
module DiscourseEmoji
|
||||
class Engine < Rails::Engine
|
||||
|
||||
engine_name 'discourse_emoji'
|
||||
|
||||
initializer "discourse_emoji.configure_rails_initialization" do |app|
|
||||
|
||||
app.config.after_initialize do
|
||||
DiscoursePluginRegistry.setup(DiscourseEmoji::Plugin)
|
||||
Post.white_listed_image_classes << "emoji"
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
end
|
|
@ -1,15 +0,0 @@
|
|||
require 'discourse_plugin'
|
||||
|
||||
module DiscourseEmoji
|
||||
|
||||
class Plugin < DiscoursePlugin
|
||||
|
||||
def setup
|
||||
# Add our Assets
|
||||
register_js('discourse_emoji',
|
||||
server_side: File.expand_path('../../../vendor/assets/javascripts/discourse_emoji.js', __FILE__))
|
||||
register_css('discourse_emoji')
|
||||
end
|
||||
|
||||
end
|
||||
end
|
|
@ -1,3 +0,0 @@
|
|||
module DiscourseEmoji
|
||||
VERSION = "0.0.1"
|
||||
end
|
24
vendor/gems/discourse_emoji/spec/plugin_spec.rb
vendored
24
vendor/gems/discourse_emoji/spec/plugin_spec.rb
vendored
|
@ -1,24 +0,0 @@
|
|||
require 'spec_helper'
|
||||
require 'discourse_emoji/plugin'
|
||||
require 'ostruct'
|
||||
|
||||
describe DiscourseEmoji::Plugin do
|
||||
|
||||
let(:registry) { stub_everything }
|
||||
let(:plugin) { DiscourseEmoji::Plugin.new(registry) }
|
||||
|
||||
context '.setup' do
|
||||
|
||||
it 'registers its js' do
|
||||
plugin.expects(:register_js).with('discourse_emoji', any_parameters)
|
||||
plugin.setup
|
||||
end
|
||||
|
||||
it 'registers its css' do
|
||||
plugin.expects(:register_css).with('discourse_emoji')
|
||||
plugin.setup
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
end
|
13
vendor/gems/discourse_emoji/spec/spec_helper.rb
vendored
13
vendor/gems/discourse_emoji/spec/spec_helper.rb
vendored
|
@ -1,13 +0,0 @@
|
|||
require 'rubygems'
|
||||
require 'rails'
|
||||
|
||||
ENV["RAILS_ENV"] ||= 'test'
|
||||
|
||||
RSpec.configure do |config|
|
||||
|
||||
config.mock_framework = :mocha
|
||||
config.color_enabled = true
|
||||
|
||||
end
|
||||
|
||||
|
|
@ -1 +0,0 @@
|
|||
unicode/1f44d.png
|
|
@ -1 +0,0 @@
|
|||
unicode/1f44e.png
|
|
@ -1 +0,0 @@
|
|||
unicode/1f4af.png
|
|
@ -1 +0,0 @@
|
|||
unicode/1f522.png
|
|
@ -1 +0,0 @@
|
|||
unicode/1f3b1.png
|
|
@ -1 +0,0 @@
|
|||
unicode/1f170.png
|
|
@ -1 +0,0 @@
|
|||
unicode/1f18e.png
|
|
@ -1 +0,0 @@
|
|||
unicode/1f524.png
|
|
@ -1 +0,0 @@
|
|||
unicode/1f521.png
|
|
@ -1 +0,0 @@
|
|||
unicode/1f251.png
|
|
@ -1 +0,0 @@
|
|||
unicode/1f6a1.png
|
|
@ -1 +0,0 @@
|
|||
unicode/2708.png
|
|
@ -1 +0,0 @@
|
|||
unicode/23f0.png
|
|
@ -1 +0,0 @@
|
|||
unicode/1f47d.png
|
|
@ -1 +0,0 @@
|
|||
unicode/1f691.png
|
|
@ -1 +0,0 @@
|
|||
unicode/2693.png
|
|
@ -1 +0,0 @@
|
|||
unicode/1f47c.png
|
|
@ -1 +0,0 @@
|
|||
unicode/1f4a2.png
|
|
@ -1 +0,0 @@
|
|||
unicode/1f620.png
|
|
@ -1 +0,0 @@
|
|||
unicode/1f627.png
|
|
@ -1 +0,0 @@
|
|||
unicode/1f41c.png
|
|
@ -1 +0,0 @@
|
|||
unicode/1f34e.png
|
|
@ -1 +0,0 @@
|
|||
unicode/2652.png
|
|
@ -1 +0,0 @@
|
|||
unicode/2648.png
|
|
@ -1 +0,0 @@
|
|||
unicode/25c0.png
|
|
@ -1 +0,0 @@
|
|||
unicode/23ec.png
|
|
@ -1 +0,0 @@
|
|||
unicode/23eb.png
|
|
@ -1 +0,0 @@
|
|||
unicode/2b07.png
|
|
@ -1 +0,0 @@
|
|||
unicode/1f53d.png
|
|
@ -1 +0,0 @@
|
|||
unicode/25b6.png
|
|
@ -1 +0,0 @@
|
|||
unicode/2935.png
|
|
@ -1 +0,0 @@
|
|||
unicode/2934.png
|
|
@ -1 +0,0 @@
|
|||
unicode/2b05.png
|
|
@ -1 +0,0 @@
|
|||
unicode/2199.png
|
|
@ -1 +0,0 @@
|
|||
unicode/2198.png
|
|
@ -1 +0,0 @@
|
|||
unicode/27a1.png
|
|
@ -1 +0,0 @@
|
|||
unicode/21aa.png
|
|
@ -1 +0,0 @@
|
|||
unicode/2b06.png
|
|
@ -1 +0,0 @@
|
|||
unicode/2195.png
|
|
@ -1 +0,0 @@
|
|||
unicode/1f53c.png
|
|
@ -1 +0,0 @@
|
|||
unicode/2196.png
|
|
@ -1 +0,0 @@
|
|||
unicode/2197.png
|
|
@ -1 +0,0 @@
|
|||
unicode/1f503.png
|
|
@ -1 +0,0 @@
|
|||
unicode/1f504.png
|
|
@ -1 +0,0 @@
|
|||
unicode/1f3a8.png
|
|
@ -1 +0,0 @@
|
|||
unicode/1f69b.png
|
|
@ -1 +0,0 @@
|
|||
unicode/1f632.png
|
|
@ -1 +0,0 @@
|
|||
unicode/1f45f.png
|
|
@ -1 +0,0 @@
|
|||
unicode/1f3e7.png
|
|
@ -1 +0,0 @@
|
|||
unicode/1f171.png
|
|
@ -1 +0,0 @@
|
|||
unicode/1f476.png
|
|
@ -1 +0,0 @@
|
|||
unicode/1f37c.png
|
|
@ -1 +0,0 @@
|
|||
unicode/1f424.png
|
|
@ -1 +0,0 @@
|
|||
unicode/1f6bc.png
|
|
@ -1 +0,0 @@
|
|||
unicode/1f519.png
|
|
@ -1 +0,0 @@
|
|||
unicode/1f6c4.png
|
|
@ -1 +0,0 @@
|
|||
unicode/1f388.png
|
|
@ -1 +0,0 @@
|
|||
unicode/2611.png
|
|
@ -1 +0,0 @@
|
|||
unicode/1f38d.png
|
|
@ -1 +0,0 @@
|
|||
unicode/1f34c.png
|
|
@ -1 +0,0 @@
|
|||
unicode/203c.png
|
|
@ -1 +0,0 @@
|
|||
unicode/1f3e6.png
|
|
@ -1 +0,0 @@
|
|||
unicode/1f4ca.png
|
|
@ -1 +0,0 @@
|
|||
unicode/1f488.png
|
|
@ -1 +0,0 @@
|
|||
unicode/26be.png
|
|
@ -1 +0,0 @@
|
|||
unicode/1f3c0.png
|
|
@ -1 +0,0 @@
|
|||
unicode/1f6c0.png
|
|
@ -1 +0,0 @@
|
|||
unicode/1f6c1.png
|
|
@ -1 +0,0 @@
|
|||
unicode/1f50b.png
|
|
@ -1 +0,0 @@
|
|||
unicode/1f43b.png
|
|
@ -1 +0,0 @@
|
|||
unicode/1f41d.png
|
|
@ -1 +0,0 @@
|
|||
unicode/1f37a.png
|
|
@ -1 +0,0 @@
|
|||
unicode/1f37b.png
|
|
@ -1 +0,0 @@
|
|||
unicode/1f41e.png
|
|
@ -1 +0,0 @@
|
|||
unicode/1f530.png
|
|
@ -1 +0,0 @@
|
|||
unicode/1f514.png
|
|
@ -1 +0,0 @@
|
|||
unicode/1f371.png
|
|
@ -1 +0,0 @@
|
|||
unicode/1f6b4.png
|
|
@ -1 +0,0 @@
|
|||
unicode/1f6b2.png
|
|
@ -1 +0,0 @@
|
|||
unicode/1f459.png
|
|
@ -1 +0,0 @@
|
|||
unicode/1f426.png
|
|
@ -1 +0,0 @@
|
|||
unicode/1f382.png
|
|
@ -1 +0,0 @@
|
|||
unicode/26ab.png
|
|
@ -1 +0,0 @@
|
|||
unicode/1f0cf.png
|
|
@ -1 +0,0 @@
|
|||
unicode/2b1b.png
|
|
@ -1 +0,0 @@
|
|||
unicode/25fe.png
|
|
@ -1 +0,0 @@
|
|||
unicode/25fc.png
|
|
@ -1 +0,0 @@
|
|||
unicode/2712.png
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue