forked from joelmoss/draftjs_exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
draftjs_exporter.gemspec
38 lines (32 loc) · 1.45 KB
/
draftjs_exporter.gemspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# frozen_string_literal: true
require 'pathname'
ROOT_DIR = Pathname.new('.').expand_path(__dir__)
LIB_DIR = ROOT_DIR.join('lib')
SPEC_DIR = ROOT_DIR.join('spec')
$LOAD_PATH.push(LIB_DIR)
require 'draftjs_exporter/version'
Gem::Specification.new do |s|
s.name = 'draftjs_exporter'
s.version = DraftjsExporter::VERSION
s.licenses = ['MIT']
s.summary = 'Export Draft.js content state into HTML'
s.description = <<-EOS
Draft.js is a framework for building rich text editors. However, it does not support exporting documents at
HTML. This gem is designed to take the raw `ContentState` (output of `convertToRaw`) from Draft.js and convert
it to HTML using Ruby.
EOS
s.authors = ['Theo Cushion']
s.email = '[email protected]'
s.homepage = 'https://github.com/ignitionworks/draftjs_exporter'
s.required_ruby_version = '>= 2.1.0'
s.files = [
ROOT_DIR.join('*.md'),
LIB_DIR.join('**/*.rb'),
SPEC_DIR.join('**/*')
].flat_map { |p| Pathname.glob(p) }.map { |p| p.relative_path_from(ROOT_DIR).to_s }
s.add_runtime_dependency 'nokogiri', '~> 1.6', '>= 1.6.0'
s.add_development_dependency 'rspec', '~> 3.4', '>= 3.4.0'
s.add_development_dependency 'rubocop', '~> 0.40', '>= 0.40.0'
s.add_development_dependency 'codeclimate-test-reporter', '~> 0.5', '>= 0.5.0'
s.add_development_dependency 'simplecov', '~> 0.11', '>= 0.11.0'
end