Sha256: 73b8e4f77464d5a040f54c90d542f7a41f759946f91449d88b2beee4964c0e2f

Contents?: true

Size: 1.11 KB

Versions: 119

Compression:

Stored size: 1.11 KB

Contents

module Jasmine
  module Core
    class << self
      def path
        File.join(File.dirname(__FILE__), "jasmine-core")
      end

      def js_files
        (["jasmine.js"] + Dir.glob(File.join(path, "*.js"))).map { |f| File.basename(f) }.uniq - boot_files - node_boot_files
      end

      SPEC_TYPES = ["core", "html", "node"]

      def core_spec_files
        spec_files("core")
      end

      def html_spec_files
        spec_files("html")
      end

      def node_spec_files
        spec_files("node")
      end

      def boot_files
        ["boot.js"]
      end

      def node_boot_files
        ["node_boot.js"]
      end

      def boot_dir
        path
      end

      def spec_files(type)
        raise ArgumentError.new("Unrecognized spec type") unless SPEC_TYPES.include?(type)
        (Dir.glob(File.join(path, "spec", type, "*.js"))).map { |f| File.join("spec", type, File.basename(f)) }.uniq
      end

      def css_files
        Dir.glob(File.join(path, "*.css")).map { |f| File.basename(f) }
      end

      def images_dir
        File.join(File.dirname(__FILE__), '../images')
      end

    end
  end
end

Version data entries

119 entries across 103 versions & 4 rubygems

Version Path
optimacms-0.1.61 spec/dummy/node_modules/bootstrap-tagsinput/lib/jasmine/lib/jasmine-core.rb
tdiary-5.2.4 vendor/bundle/ruby/3.1.0/gems/jasmine-core-2.99.2/lib/jasmine-core.rb
tdiary-5.2.3 vendor/bundle/ruby/3.1.0/gems/jasmine-core-2.99.2/lib/jasmine-core.rb
tdiary-5.2.2 vendor/bundle/ruby/3.1.0/gems/jasmine-core-2.99.2/lib/jasmine-core.rb
tdiary-5.2.1 vendor/bundle/ruby/3.1.0/gems/jasmine-core-2.99.2/lib/jasmine-core.rb
tdiary-5.2.0 vendor/bundle/ruby/2.7.0/gems/jasmine-core-2.99.2/lib/jasmine-core.rb
tdiary-5.2.0 vendor/bundle/ruby/3.0.0/gems/jasmine-core-2.99.2/lib/jasmine-core.rb
tdiary-5.1.7 vendor/bundle/ruby/3.0.0/gems/jasmine-core-2.99.2/lib/jasmine-core.rb
tdiary-5.1.7 vendor/bundle/ruby/2.7.0/gems/jasmine-core-2.99.2/lib/jasmine-core.rb
jasmine-core-3.8.0 ./lib/jasmine-core.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/jasmine-core-2.99.2/lib/jasmine-core.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/jasmine-core-2.99.2/lib/jasmine-core.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/tdiary-5.1.4/vendor/bundle/ruby/2.7.0/gems/jasmine-core-2.99.2/lib/jasmine-core.rb
tdiary-5.1.6 vendor/bundle/ruby/3.0.0/gems/jasmine-core-2.99.2/lib/jasmine-core.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/2.7.0/gems/jasmine-core-2.99.2/lib/jasmine-core.rb
jasmine-core-3.7.1 ./lib/jasmine-core.rb
jasmine-core-3.7.0 ./lib/jasmine-core.rb
tdiary-5.1.5 vendor/bundle/ruby/2.7.0/gems/jasmine-core-2.99.2/lib/jasmine-core.rb
tdiary-5.1.5 vendor/bundle/ruby/3.0.0/gems/jasmine-core-2.99.2/lib/jasmine-core.rb
tdiary-5.1.5 vendor/bundle/ruby/3.0.0/gems/tdiary-5.1.4/vendor/bundle/ruby/2.7.0/gems/jasmine-core-2.99.2/lib/jasmine-core.rb