Searched refs:file_extension (Results 1 - 20 of 20) sorted by relevance

/ontohub/app/models/
H A Dfile_extension_mime_type_mapping.rb2 attr_accessible :file_extension, :mime_type
H A Dontology.rb164 def file_extension method
165 has_versions? ? current_version.file_extension : read_attribute(:file_extension)
169 "#{basepath}#{file_extension}"
/ontohub/app/models/ontology/
H A Dhets_options.rb17 EXTENSIONS_TO_INPUT_TYPES[file_extension] || file_extension_without_dot
21 file_extension[1..-1] if file_extension
H A Dassociations_and_attributes.rb60 :file_extension,
/ontohub/spec/factories/
H A Dontology_factory.rb15 file_extension { '.owl' }
28 file_extension: ontology.file_extension,
43 file_extension: ontology.file_extension
52 file_extension: ontology.file_extension,
63 file_extension: ontology.file_extension
103 file_extension
[all...]
H A Dontology_version_factory.rb5 file_extension { '.owl' }
/ontohub/spec/controllers/
H A Dfiletypes_controller_spec.rb9 let(:file_extension) { '.clif' }
24 it 'should contain the file_extension' do
25 expect(response.body).to include(%{"extension":"#{file_extension}"})
32 let(:file_extension) { '.clif' }
/ontohub/app/serializers/
H A Dontology_version_serializer.rb14 attributes :basepath, :file_extension
H A Dontology_serializer.rb14 attributes :basepath, :file_extension
/ontohub/app/controllers/
H A Dfiletypes_controller.rb25 find_by_mime_type(mime_type).try(:file_extension),
/ontohub/lib/
H A Dontology_saver.rb14 file_extension = File.extname(ontology_version_options.filepath)
15 return unless Ontology.file_extensions.include?(file_extension)
103 file_extension = File.extname(ontology_version_options.filepath)
106 file_extension: file_extension).any?
130 ontology.file_extension = File.extname(filepath)
152 file_extension: File.extname(ontology_version_options.filepath),
H A Dexternal_repository.rb10 file_extension: determine_path(internal_iri, :extension),
/ontohub/app/models/ontology_member/symbol/
H A Dreadability.rb31 self.display_name = label if ontology.file_extension == '.obo' && label
/ontohub/lib/hets/dg/
H A Dnode_evaluation_helper.rb47 file_extension: parent_ontology.file_extension,
61 version.file_extension = ontology.file_extension
H A Dnode_evaluator.rb204 version.file_extension = ontology.file_extension
/ontohub/spec/lib/repository/
H A Ddiff_spec.rb23 let (:file_extension) { filepath_pn.extname[1..-1] }
59 to eq(Mime::Type.lookup_by_extension(file_extension))
96 to eq(Mime::Type.lookup_by_extension(file_extension))
133 to eq(Mime::Type.lookup_by_extension(file_extension))
/ontohub/app/models/proof_status/
H A Dcreation_from_ontology.rb63 basepath: 'proof_statuses', file_extension: '.owl').first
/ontohub/features/step_definitions/
H A Drepository_edit_file_steps.rb7 file_extension: File.extname(ontology.path),
/ontohub/spec/models/ontology_version/
H A Dparsing_spec.rb266 basepath: 'zfmisc_1__t92_zfmisc_1', file_extension: '.p'
/ontohub/db/migrate/
H A D20150715081827_init_schema.rb149 t.string "file_extension", :null => false
391 t.string "file_extension", :limit => 20
451 t.string "file_extension", :limit => 20
1081 mappings.each do |(file_extension, mime_type)|
1083 where(file_extension: file_extension, mime_type: mime_type).

Completed in 19 milliseconds