Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixes for release.

  • Loading branch information...
commit 53c26a5ad63d55d43ade796fd6cdd212112d0bd1 1 parent e47c763
Gregg Kellogg authored
36  .gemspec
... ...
@@ -0,0 +1,36 @@
  1
+#!/usr/bin/env ruby -rubygems
  2
+# -*- encoding: utf-8 -*-
  3
+
  4
+Gem::Specification.new do |gem|
  5
+  gem.version            = File.read('VERSION').chomp
  6
+  gem.date               = File.mtime('VERSION').strftime('%Y-%m-%d')
  7
+
  8
+  gem.name = "json-ld"
  9
+  gem.homepage = "http://rdf.rubyforge.org/json-ld"
  10
+  gem.license            = 'Public Domain' if gem.respond_to?(:license=)
  11
+  gem.summary = "JSON-LD reader/writer for Ruby."
  12
+  gem.description        = gem.summary
  13
+  gem.rubyforge_project  = 'json-ld'
  14
+
  15
+  gem.authors            = ['Gregg Kellogg']
  16
+  gem.email              = 'public-rdf-ruby@w3.org'
  17
+
  18
+  gem.platform           = Gem::Platform::RUBY
  19
+  gem.files              = %w(AUTHORS README UNLICENSE VERSION) + Dir.glob('lib/**/*.rb')
  20
+  #gem.bindir             = %q(bin)
  21
+  #gem.executables        = %w(json_ld)
  22
+  #gem.default_executable = gem.executables.first
  23
+  gem.require_paths      = %w(lib)
  24
+  gem.extensions         = %w()
  25
+  gem.test_files         = %w()
  26
+  gem.has_rdoc           = false
  27
+
  28
+  gem.required_ruby_version      = '>= 1.8.1'
  29
+  gem.requirements               = []
  30
+  gem.add_runtime_dependency     'rdf',             '~> 0.4.0'
  31
+  gem.add_runtime_dependency     'json',             '>= 1.5.1'
  32
+  gem.add_development_dependency 'yard' ,           '>= 0.6.0'
  33
+  gem.add_development_dependency 'rspec',           '>= 2.5.0'
  34
+  gem.add_development_dependency 'rdf-spec',        '~> 0.4.0'
  35
+  gem.post_install_message       = nil
  36
+end
1  .gitignore
... ...
@@ -1,2 +1,3 @@
1 1
 /.yardoc/
2 2
 /doc/
  3
+/*.gem
16  Rakefile
@@ -2,6 +2,18 @@ require 'rubygems'
2 2
 
3 3
 task :default => [ :spec ]
4 4
 
  5
+namespace :gem do
  6
+  desc "Build the json-ld-#{File.read('VERSION').chomp}.gem file"
  7
+  task :build do
  8
+    sh "gem build .gemspec"
  9
+  end
  10
+
  11
+  desc "Release the json-ld-#{File.read('VERSION').chomp}.gem file"
  12
+  task :release do
  13
+    sh "gem push json-ld-#{File.read('VERSION').chomp}.gem"
  14
+  end
  15
+end
  16
+
5 17
 require 'rspec/core/rake_task'
6 18
 desc 'Run specifications'
7 19
 RSpec::Core::RakeTask.new(:spec) do |spec|
@@ -20,6 +32,8 @@ RSpec::Core::RakeTask.new("doc:spec") do |spec|
20 32
 end
21 33
 
22 34
 require 'yard'
23  
-YARD::Rake::YardocTask.new
  35
+namespace :doc do
  36
+  YARD::Rake::YardocTask.new
  37
+end
24 38
 
25 39
 task :default => :spec
37  json-ld.gemspec
... ...
@@ -1,37 +0,0 @@
1  
-#!/usr/bin/env ruby -rubygems
2  
-# -*- encoding: utf-8 -*-
3  
-
4  
-Gem::Specification.new do |s|
5  
-  gem.version            = File.read('VERSION').chomp
6  
-  gem.date               = File.mtime('VERSION').strftime('%Y-%m-%d')
7  
-
8  
-  gem.name = "json-ld"
9  
-  gem.homepage = "http://rdf.rubyforge.org/json-ld"
10  
-  gem.license            = 'Public Domain' if gem.respond_to?(:license=)
11  
-  gem.summary = "JSON-LD reader/writer for Ruby."
12  
-  gem.description        = gem.summary
13  
-  gem.rubyforge_project  = 'json-ld'
14  
-
15  
-  gem.authors            = ['Gregg Kellogg']
16  
-  gem.email              = 'public-rdf-ruby@w3.org'
17  
-
18  
-  gem.platform           = Gem::Platform::RUBY
19  
-  gem.files              = %w(AUTHORS CREDITS README UNLICENSE VERSION) + Dir.glob('lib/**/*.rb')
20  
-  gem.bindir             = %q(bin)
21  
-  gem.executables        = %w(json_ld)
22  
-  gem.default_executable = gem.executables.first
23  
-  gem.require_paths      = %w(lib)
24  
-  gem.extensions         = %w()
25  
-  gem.test_files         = %w()
26  
-  gem.has_rdoc           = false
27  
-
28  
-  gem.required_ruby_version      = '>= 1.8.1'
29  
-  gem.requirements               = []
30  
-  gem.add_runtime_dependency     'rdf',             '~> 0.4.0'
31  
-  gem.add_runtime_dependency     'json',             '>= 1.5.1'
32  
-  gem.add_development_dependency 'nokogiri' ,       '>= 1.4.4'
33  
-  gem.add_development_dependency 'yard' ,           '>= 0.6.0'
34  
-  gem.add_development_dependency 'rspec',           '>= 2.5.0'
35  
-  gem.add_development_dependency 'rdf-spec',        '~> 0.4.0'
36  
-  gem.post_install_message       = nil
37  
-end
1  json-ld.gemspec

0 notes on commit 53c26a5

Please sign in to comment.
Something went wrong with that request. Please try again.