2
0
Fork 0
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:
Sam 2013-11-20 14:38:21 +11:00
parent a468d6cfb0
commit 8278fdb9dd
1748 changed files with 181 additions and 404 deletions

View file

@ -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

View file

@ -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

View file

@ -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.

View file

@ -1,3 +0,0 @@
# Discourse Emoji Gem

Adds Emoji support to discourse. Thanks to the gemoji gem for the assets.

View file

@ -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

View file

@ -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

View file

@ -1,2 +0,0 @@
require 'discourse_emoji/version'
require 'discourse_emoji/engine' if defined?(Rails) && (!Rails.env.test?)

View file

@ -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

View file

@ -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

View file

@ -1,3 +0,0 @@
module DiscourseEmoji
VERSION = "0.0.1"
end

View file

@ -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

View file

@ -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


View file

@ -1 +0,0 @@
unicode/1f44d.png

View file

@ -1 +0,0 @@
unicode/1f44e.png

View file

@ -1 +0,0 @@
unicode/1f4af.png

View file

@ -1 +0,0 @@
unicode/1f522.png

View file

@ -1 +0,0 @@
unicode/1f3b1.png

View file

@ -1 +0,0 @@
unicode/1f170.png

View file

@ -1 +0,0 @@
unicode/1f18e.png

View file

@ -1 +0,0 @@
unicode/1f524.png

View file

@ -1 +0,0 @@
unicode/1f521.png

View file

@ -1 +0,0 @@
unicode/1f251.png

View file

@ -1 +0,0 @@
unicode/1f6a1.png

View file

@ -1 +0,0 @@
unicode/2708.png

View file

@ -1 +0,0 @@
unicode/23f0.png

View file

@ -1 +0,0 @@
unicode/1f47d.png

View file

@ -1 +0,0 @@
unicode/1f691.png

View file

@ -1 +0,0 @@
unicode/2693.png

View file

@ -1 +0,0 @@
unicode/1f47c.png

View file

@ -1 +0,0 @@
unicode/1f4a2.png

View file

@ -1 +0,0 @@
unicode/1f620.png

View file

@ -1 +0,0 @@
unicode/1f627.png

View file

@ -1 +0,0 @@
unicode/1f41c.png

View file

@ -1 +0,0 @@
unicode/1f34e.png

View file

@ -1 +0,0 @@
unicode/2652.png

View file

@ -1 +0,0 @@
unicode/2648.png

View file

@ -1 +0,0 @@
unicode/25c0.png

View file

@ -1 +0,0 @@
unicode/23ec.png

View file

@ -1 +0,0 @@
unicode/23eb.png

View file

@ -1 +0,0 @@
unicode/2b07.png

View file

@ -1 +0,0 @@
unicode/1f53d.png

View file

@ -1 +0,0 @@
unicode/25b6.png

View file

@ -1 +0,0 @@
unicode/2935.png

View file

@ -1 +0,0 @@
unicode/2934.png

View file

@ -1 +0,0 @@
unicode/2b05.png

View file

@ -1 +0,0 @@
unicode/2199.png

View file

@ -1 +0,0 @@
unicode/2198.png

View file

@ -1 +0,0 @@
unicode/27a1.png

View file

@ -1 +0,0 @@
unicode/21aa.png

View file

@ -1 +0,0 @@
unicode/2b06.png

View file

@ -1 +0,0 @@
unicode/2195.png

View file

@ -1 +0,0 @@
unicode/1f53c.png

View file

@ -1 +0,0 @@
unicode/2196.png

View file

@ -1 +0,0 @@
unicode/2197.png

View file

@ -1 +0,0 @@
unicode/1f503.png

View file

@ -1 +0,0 @@
unicode/1f504.png

View file

@ -1 +0,0 @@
unicode/1f3a8.png

View file

@ -1 +0,0 @@
unicode/1f69b.png

View file

@ -1 +0,0 @@
unicode/1f632.png

View file

@ -1 +0,0 @@
unicode/1f45f.png

View file

@ -1 +0,0 @@
unicode/1f3e7.png

View file

@ -1 +0,0 @@
unicode/1f171.png

View file

@ -1 +0,0 @@
unicode/1f476.png

View file

@ -1 +0,0 @@
unicode/1f37c.png

View file

@ -1 +0,0 @@
unicode/1f424.png

View file

@ -1 +0,0 @@
unicode/1f6bc.png

View file

@ -1 +0,0 @@
unicode/1f519.png

View file

@ -1 +0,0 @@
unicode/1f6c4.png

View file

@ -1 +0,0 @@
unicode/1f388.png

View file

@ -1 +0,0 @@
unicode/2611.png

View file

@ -1 +0,0 @@
unicode/1f38d.png

View file

@ -1 +0,0 @@
unicode/1f34c.png

View file

@ -1 +0,0 @@
unicode/203c.png

View file

@ -1 +0,0 @@
unicode/1f3e6.png

View file

@ -1 +0,0 @@
unicode/1f4ca.png

View file

@ -1 +0,0 @@
unicode/1f488.png

View file

@ -1 +0,0 @@
unicode/26be.png

View file

@ -1 +0,0 @@
unicode/1f3c0.png

View file

@ -1 +0,0 @@
unicode/1f6c0.png

View file

@ -1 +0,0 @@
unicode/1f6c1.png

View file

@ -1 +0,0 @@
unicode/1f50b.png

View file

@ -1 +0,0 @@
unicode/1f43b.png

View file

@ -1 +0,0 @@
unicode/1f41d.png

View file

@ -1 +0,0 @@
unicode/1f37a.png

View file

@ -1 +0,0 @@
unicode/1f37b.png

View file

@ -1 +0,0 @@
unicode/1f41e.png

View file

@ -1 +0,0 @@
unicode/1f530.png

View file

@ -1 +0,0 @@
unicode/1f514.png

View file

@ -1 +0,0 @@
unicode/1f371.png

View file

@ -1 +0,0 @@
unicode/1f6b4.png

View file

@ -1 +0,0 @@
unicode/1f6b2.png

View file

@ -1 +0,0 @@
unicode/1f459.png

View file

@ -1 +0,0 @@
unicode/1f426.png

View file

@ -1 +0,0 @@
unicode/1f382.png

View file

@ -1 +0,0 @@
unicode/26ab.png

View file

@ -1 +0,0 @@
unicode/1f0cf.png

View file

@ -1 +0,0 @@
unicode/2b1b.png

View file

@ -1 +0,0 @@
unicode/25fc.png

View file

@ -1 +0,0 @@
unicode/2712.png

Some files were not shown because too many files have changed in this diff Show more