Skip to content

Commit

Permalink
Add flipper-expressions-schema as separate gem for now
Browse files Browse the repository at this point in the history
  • Loading branch information
bkeepers committed Oct 12, 2023
1 parent 8aa356c commit 6512d63
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 3 deletions.
24 changes: 24 additions & 0 deletions flipper-expressions-schema.gemspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# -*- encoding: utf-8 -*-
require File.expand_path('../lib/flipper/version', __FILE__)
require File.expand_path('../lib/flipper/metadata', __FILE__)

Gem::Specification.new do |gem|
gem.authors = ['John Nunemaker']
gem.email = '[email protected]'
gem.summary = 'ActiveRecord adapter for Flipper'
gem.license = 'MIT'
gem.homepage = 'https://www.flippercloud.io/docs/expressions'

gem.files = [
'lib/flipper-expressions-schema.rb',
'lib/flipper/expression/schema.rb',
'lib/flipper/version.rb',
] + Dir['node_modules/@flippercloud.io/expressions/schemas/*.json']
gem.name = 'flipper-expressions-schema'
gem.require_paths = ['lib']
gem.version = Flipper::VERSION
gem.metadata = Flipper::METADATA

gem.add_dependency 'flipper', "~> #{Flipper::VERSION}"
gem.add_dependency 'json_schemer', '~> 1.0'
end
1 change: 0 additions & 1 deletion flipper.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,4 @@ Gem::Specification.new do |gem|

gem.add_dependency 'concurrent-ruby', '< 2'
gem.add_dependency 'brow', '~> 0.4.1'
gem.add_dependency 'json_schemer', '~> 1.0'
end
1 change: 1 addition & 0 deletions lib/flipper-expressions-schema.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require "flipper/expression/schema"
1 change: 0 additions & 1 deletion lib/flipper/expression.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
require "flipper/expression/builder"
require "flipper/expression/constant"
require "flipper/expression/schema"

module Flipper
class Expression
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
require "json_schemer"
require "flipper-expressions-schema"

RSpec.describe Flipper::Expressions do
RSpec.describe Flipper::Expression::Schema do
let(:schema) { Flipper::Expression::Schema.new }

Flipper::Expression::Schema.examples.each do |name, examples|
Expand Down

0 comments on commit 6512d63

Please sign in to comment.