Files
visibilityjs/visibilityjs.gemspec
2016-03-03 17:49:04 -08:00

34 lines
1.3 KiB
Ruby

require 'pathname'
package = Pathname(__FILE__).dirname.join('package.json').read
version = package.match(/"version": "([\d\.]+)",/)[1]
Gem::Specification.new do |s|
s.platform = Gem::Platform::RUBY
s.name = 'visibilityjs'
s.version = version
s.summary = 'Wrapper for the Page Visibility API'
s.description = 'Visibility.js allow you to determine whether ' +
'your web page is visible to an user, is hidden in ' +
'background tab or is prerendering. It allows you use ' +
'the page visibility state in JavaScript logic and improve ' +
'browser performance or improve user interface experience.'
s.files = ['lib/visibility.js',
'lib/visibility.core.js',
'lib/visibility.timers.js',
'lib/visibility.fallback.js',
'lib/visibilityjs.rb',
'lib/visibilityjs/railtie.rb',
'LICENSE', 'README.md', 'ChangeLog.md']
s.extra_rdoc_files = ['LICENSE', 'README.md', 'ChangeLog.md']
s.require_path = 'lib'
s.author = 'Andrey Sitnik'
s.email = 'andrey@sitnik.ru'
s.homepage = 'https://github.com/ai/visibilityjs'
s.license = 'MIT'
s.add_dependency 'sprockets', '>= 2'
end