Sha256: b06ac5b59ef22f0132e9c56a7e4e19873ccf5fadb46d42baba551ca1f7fe2a82

Contents?: true

Size: 517 Bytes

Versions: 15

Compression:

Stored size: 517 Bytes

Contents

module JsonSchemaSpec
  class Tasks

    include Rake::DSL  if defined?(Rake::DSL)

    def initialize(url)
      return  unless defined?(Rake)

      namespace :spec do

        desc "Download JSON schema to `spec/fixtures`"
        task :schema do
          puts "\nDownloading JSON schema to `spec/fixtures`..."
          
          path = "#{Rake.original_dir}/spec/fixtures/schema.yml"
          JsonSchemaSpec.download(path, url)
          
          puts "Finished!\n\n"
        end
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
json_schema_spec-0.1.5 lib/json_schema_spec/tasks.rb
json_schema_spec-0.1.4 lib/json_schema_spec/tasks.rb
json_schema_spec-0.1.3 lib/json_schema_spec/tasks.rb
json_schema_spec-0.1.2 lib/json_schema_spec/tasks.rb
json_schema_spec-0.1.1 lib/json_schema_spec/tasks.rb
json_schema_spec-0.1.0 lib/json_schema_spec/tasks.rb
json_schema_spec-0.0.9 lib/json_schema_spec/tasks.rb
json_schema_spec-0.0.8 lib/json_schema_spec/tasks.rb
json_schema_spec-0.0.7 lib/json_schema_spec/tasks.rb
json_schema_spec-0.0.6 lib/json_schema_spec/tasks.rb
json_schema_spec-0.0.5 lib/json_schema_spec/tasks.rb
json_schema_spec-0.0.4 lib/json_schema_spec/tasks.rb
json_schema_spec-0.0.3 lib/json_schema_spec/tasks.rb
json_schema_spec-0.0.2 lib/json_schema_spec/tasks.rb
json_schema_spec-0.0.1 lib/json_schema_spec/tasks.rb