diff --git a/flipper-active_record.gemspec b/flipper-active_record.gemspec index ad2f28837..df6cf40db 100644 --- a/flipper-active_record.gemspec +++ b/flipper-active_record.gemspec @@ -1,5 +1,6 @@ # -*- encoding: utf-8 -*- require File.expand_path('../lib/flipper/version', __FILE__) +require File.expand_path('../lib/flipper/metadata', __FILE__) flipper_active_record_files = lambda do |file| file =~ /active_record/ @@ -22,6 +23,7 @@ Gem::Specification.new do |gem| gem.name = 'flipper-active_record' gem.require_paths = ['lib'] gem.version = Flipper::VERSION + gem.metadata = Flipper::METADATA gem.add_dependency 'flipper', "~> #{Flipper::VERSION}" gem.add_dependency 'activerecord', '>= 3.2', '< 6' diff --git a/flipper-active_support_cache_store.gemspec b/flipper-active_support_cache_store.gemspec index 0b048b868..500fc8d18 100644 --- a/flipper-active_support_cache_store.gemspec +++ b/flipper-active_support_cache_store.gemspec @@ -1,5 +1,6 @@ # -*- encoding: utf-8 -*- require File.expand_path('../lib/flipper/version', __FILE__) +require File.expand_path('../lib/flipper/metadata', __FILE__) flipper_active_support_cache_store_files = lambda do |file| file =~ /active_support_cache_store/ @@ -18,6 +19,7 @@ Gem::Specification.new do |gem| gem.name = 'flipper-active_support_cache_store' gem.require_paths = ['lib'] gem.version = Flipper::VERSION + gem.metadata = Flipper::METADATA gem.add_dependency 'flipper', "~> #{Flipper::VERSION}" gem.add_dependency 'activesupport', '>= 3.2', '< 6' diff --git a/flipper-api.gemspec b/flipper-api.gemspec index cb18a9d48..c7a9c48c5 100644 --- a/flipper-api.gemspec +++ b/flipper-api.gemspec @@ -1,5 +1,6 @@ # -*- encoding: utf-8 -*- require File.expand_path('../lib/flipper/version', __FILE__) +require File.expand_path('../lib/flipper/metadata', __FILE__) flipper_api_files = lambda do |file| file =~ %r{(flipper)[\/-]api} @@ -17,6 +18,7 @@ Gem::Specification.new do |gem| gem.name = 'flipper-api' gem.require_paths = ['lib'] gem.version = Flipper::VERSION + gem.metadata = Flipper::METADATA gem.add_dependency 'rack', '>= 1.4', '< 3' gem.add_dependency 'flipper', "~> #{Flipper::VERSION}" diff --git a/flipper-cloud.gemspec b/flipper-cloud.gemspec index bdc200dc9..505f8b973 100644 --- a/flipper-cloud.gemspec +++ b/flipper-cloud.gemspec @@ -1,5 +1,6 @@ # -*- encoding: utf-8 -*- require File.expand_path('../lib/flipper/version', __FILE__) +require File.expand_path('../lib/flipper/metadata', __FILE__) flipper_cloud_files = lambda do |file| file =~ /cloud/ @@ -21,6 +22,7 @@ Gem::Specification.new do |gem| gem.name = 'flipper-cloud' gem.require_paths = ['lib'] gem.version = Flipper::VERSION + gem.metadata = Flipper::METADATA gem.add_dependency 'flipper', "~> #{Flipper::VERSION}" end diff --git a/flipper-dalli.gemspec b/flipper-dalli.gemspec index e3e467b6c..c5c804923 100644 --- a/flipper-dalli.gemspec +++ b/flipper-dalli.gemspec @@ -1,5 +1,6 @@ # -*- encoding: utf-8 -*- require File.expand_path('../lib/flipper/version', __FILE__) +require File.expand_path('../lib/flipper/metadata', __FILE__) flipper_dalli_files = lambda do |file| file =~ /dalli/ @@ -18,6 +19,7 @@ Gem::Specification.new do |gem| gem.name = 'flipper-dalli' gem.require_paths = ['lib'] gem.version = Flipper::VERSION + gem.metadata = Flipper::METADATA gem.add_dependency 'flipper', "~> #{Flipper::VERSION}" gem.add_dependency 'dalli', '>= 2.0', '< 3' diff --git a/flipper-mongo.gemspec b/flipper-mongo.gemspec index eab67dc3c..01aeab6b3 100644 --- a/flipper-mongo.gemspec +++ b/flipper-mongo.gemspec @@ -1,5 +1,6 @@ # -*- encoding: utf-8 -*- require File.expand_path('../lib/flipper/version', __FILE__) +require File.expand_path('../lib/flipper/metadata', __FILE__) flipper_mongo_files = lambda do |file| file =~ /mongo/ @@ -18,6 +19,7 @@ Gem::Specification.new do |gem| gem.name = 'flipper-mongo' gem.require_paths = ['lib'] gem.version = Flipper::VERSION + gem.metadata = Flipper::METADATA gem.add_dependency 'flipper', "~> #{Flipper::VERSION}" gem.add_dependency 'mongo', '~> 2.0' diff --git a/flipper-redis.gemspec b/flipper-redis.gemspec index c0a036939..eed15ce7a 100644 --- a/flipper-redis.gemspec +++ b/flipper-redis.gemspec @@ -1,5 +1,6 @@ # -*- encoding: utf-8 -*- require File.expand_path('../lib/flipper/version', __FILE__) +require File.expand_path('../lib/flipper/metadata', __FILE__) flipper_redis_files = lambda do |file| file =~ /redis/ @@ -18,6 +19,7 @@ Gem::Specification.new do |gem| gem.name = 'flipper-redis' gem.require_paths = ['lib'] gem.version = Flipper::VERSION + gem.metadata = Flipper::METADATA gem.add_dependency 'flipper', "~> #{Flipper::VERSION}" gem.add_dependency 'redis', '>= 2.2', '< 4.1.0' diff --git a/flipper-rollout.gemspec b/flipper-rollout.gemspec index 77692c3c0..5580f6444 100644 --- a/flipper-rollout.gemspec +++ b/flipper-rollout.gemspec @@ -1,5 +1,6 @@ # -*- encoding: utf-8 -*- require File.expand_path('../lib/flipper/version', __FILE__) +require File.expand_path('../lib/flipper/metadata', __FILE__) flipper_rollout_files = lambda do |file| file =~ /rollout/ @@ -18,6 +19,7 @@ Gem::Specification.new do |gem| gem.name = 'flipper-rollout' gem.require_paths = ['lib'] gem.version = Flipper::VERSION + gem.metadata = Flipper::METADATA gem.add_dependency 'flipper', "~> #{Flipper::VERSION}" gem.add_dependency 'redis', '>= 2.2', '< 4.1.0' diff --git a/flipper-sequel.gemspec b/flipper-sequel.gemspec index 07bde5d78..77410ddf9 100644 --- a/flipper-sequel.gemspec +++ b/flipper-sequel.gemspec @@ -1,5 +1,6 @@ # -*- encoding: utf-8 -*- require File.expand_path('../lib/flipper/version', __FILE__) +require File.expand_path('../lib/flipper/metadata', __FILE__) flipper_sequel_files = ->(file) { file =~ /sequel/ } @@ -19,6 +20,7 @@ Gem::Specification.new do |gem| gem.name = 'flipper-sequel' gem.require_paths = ['lib'] gem.version = Flipper::VERSION + gem.metadata = Flipper::METADATA gem.add_dependency 'flipper', "~> #{Flipper::VERSION}" gem.add_dependency 'sequel', '>= 4.0.0', '< 5' diff --git a/flipper-ui.gemspec b/flipper-ui.gemspec index cab77e9c0..5522b5922 100644 --- a/flipper-ui.gemspec +++ b/flipper-ui.gemspec @@ -1,5 +1,6 @@ # -*- encoding: utf-8 -*- require File.expand_path('../lib/flipper/version', __FILE__) +require File.expand_path('../lib/flipper/metadata', __FILE__) flipper_ui_files = lambda do |file| file =~ %r{(docs|examples|flipper)[\/-]ui} @@ -18,6 +19,7 @@ Gem::Specification.new do |gem| gem.name = 'flipper-ui' gem.require_paths = ['lib'] gem.version = Flipper::VERSION + gem.metadata = Flipper::METADATA gem.add_dependency 'rack', '>= 1.4', '< 3' gem.add_dependency 'rack-protection', '>= 1.5.3', '< 2.1.0' diff --git a/flipper.gemspec b/flipper.gemspec index 35a3488b2..05eedfaf3 100644 --- a/flipper.gemspec +++ b/flipper.gemspec @@ -1,5 +1,6 @@ # -*- encoding: utf-8 -*- require File.expand_path('../lib/flipper/version', __FILE__) +require File.expand_path('../lib/flipper/metadata', __FILE__) plugin_files = [] plugin_test_files = [] @@ -34,4 +35,5 @@ Gem::Specification.new do |gem| gem.name = 'flipper' gem.require_paths = ['lib'] gem.version = Flipper::VERSION + gem.metadata = Flipper::METADATA end diff --git a/lib/flipper/metadata.rb b/lib/flipper/metadata.rb new file mode 100644 index 000000000..88df56e82 --- /dev/null +++ b/lib/flipper/metadata.rb @@ -0,0 +1,5 @@ +module Flipper + METADATA = { + 'changelog_uri' => 'https://github.com/jnunemaker/flipper/blob/master/Changelog.md', + }.freeze +end