2013-05-30 03:46:11 +08:00
|
|
|
|
#encoding: utf-8
|
|
|
|
|
|
|
|
|
|
|
|
require('json')
|
2014-07-22 11:41:53 +08:00
|
|
|
|
|
|
|
|
|
|
# Because of build process, does not necessarily reflect directory path in the
|
|
|
|
|
|
# repository.
|
|
|
|
|
|
package = JSON.parse(File.read('../../package.json'))
|
2013-05-30 03:46:11 +08:00
|
|
|
|
|
|
|
|
|
|
gemspec = Gem::Specification.new do |s|
|
|
|
|
|
|
s.name = 'react-source'
|
|
|
|
|
|
s.version = package['version']
|
2014-10-09 08:27:59 +08:00
|
|
|
|
s.license = 'BSD-3-Clause'
|
2013-05-30 03:46:11 +08:00
|
|
|
|
|
2013-07-24 01:55:04 +08:00
|
|
|
|
s.homepage = 'https://github.com/facebook/react'
|
2013-05-30 03:46:11 +08:00
|
|
|
|
s.summary = 'Ruby bridge to JSX & the React JavaScript library.'
|
|
|
|
|
|
|
|
|
|
|
|
s.authors = ['Paul O’Shannessy']
|
|
|
|
|
|
s.email = ['paul@oshannessy.com']
|
|
|
|
|
|
|
|
|
|
|
|
s.files = Dir[
|
|
|
|
|
|
'build/react.js',
|
|
|
|
|
|
'build/react.min.js',
|
2013-09-28 05:59:42 +08:00
|
|
|
|
'build/react-with-addons.js',
|
|
|
|
|
|
'build/react-with-addons.min.js',
|
2013-05-30 03:46:11 +08:00
|
|
|
|
'build/JSXTransformer.js',
|
|
|
|
|
|
'lib/react/source.rb'
|
|
|
|
|
|
]
|
|
|
|
|
|
end
|