Skip to content

Commit

Permalink
Update bixby to ~> 2.0
Browse files Browse the repository at this point in the history
This pins bixby to `~> 2.0`, previously
it was not pinned to a specific version.
  • Loading branch information
little9 committed Dec 30, 2019
1 parent 8c23279 commit 9460504
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 22 deletions.
28 changes: 14 additions & 14 deletions app/lib/zizia/metadata_details.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,28 +71,28 @@ def definition_hash_for(field_properties, validators)

def file_definition
{
attribute: 'files',
predicate: 'n/a',
multiple: 'true',
type: 'String',
validator: 'Required, must name a file on the server',
label: 'Items (listed at bottom of page)',
attribute: 'files',
predicate: 'n/a',
multiple: 'true',
type: 'String',
validator: 'Required, must name a file on the server',
label: 'Items (listed at bottom of page)',
csv_header: 'files',
required_on_form: 'true',
required_on_form: 'true',
usage: MetadataUsage.instance.usage['files']
}
end

def visibility_definition
{
attribute: 'visibility',
predicate: 'n/a',
multiple: 'false',
type: 'String',
validator: 'Required, must exist in the application\'s controlled vocabulary for visiblity levels.',
label: 'Visibility',
attribute: 'visibility',
predicate: 'n/a',
multiple: 'false',
type: 'String',
validator: 'Required, must exist in the application\'s controlled vocabulary for visiblity levels.',
label: 'Visibility',
csv_header: 'visibility',
required_on_form: 'true',
required_on_form: 'true',
usage: MetadataUsage.instance.usage['visibility']
}
end
Expand Down
12 changes: 6 additions & 6 deletions lib/zizia/parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,12 @@ def match?(**_opts); end

private

##
# @private Register a new class when inherited
def inherited(subclass)
@@subclasses.unshift subclass
super
end
##
# @private Register a new class when inherited
def inherited(subclass)
@@subclasses.unshift subclass
super
end
end

##
Expand Down
2 changes: 1 addition & 1 deletion spec/zizia/csv_format_validator_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
expect(validator.validate(parser: invalid_parser))
.to contain_exactly a_validator_error
.with(validator: validator.class,
name: CSV::MalformedCSVError)
name: CSV::MalformedCSVError)
end
end
end
2 changes: 1 addition & 1 deletion zizia.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Gem::Specification.new do |gem|
gem.add_dependency 'carrierwave'
gem.add_dependency 'rails-controller-testing'

gem.add_development_dependency 'bixby'
gem.add_development_dependency 'bixby', '~> 2.0'
gem.add_development_dependency 'bootstrap-sass', '~> 3.0'
gem.add_development_dependency 'byebug'
gem.add_development_dependency 'capybara', '~> 2.13'
Expand Down

0 comments on commit 9460504

Please sign in to comment.