Permalink
Browse files

moved version number to a dedicated file

added Rakefile
added License
  • Loading branch information...
unknown
unknown committed Dec 23, 2010
1 parent 85dbef9 commit 89f2d681d6a29afda0ca78154b229d1c224522e8
Showing with 61 additions and 12 deletions.
  1. +8 −11 7digital.gemspec
  2. +20 −0 LICENSE.rdoc
  3. +29 −0 Rakefile
  4. +0 −1 lib/sevendigital.rb
  5. +4 −0 lib/sevendigital/version.rb
View
@@ -1,24 +1,21 @@
# -*- encoding: utf-8 -*-
+
+require File.expand_path('../lib/sevendigital/version', __FILE__)
+
Gem::Specification.new do |s|
s.name = "7digital"
- s.version = '0.0.2'
-
+ s.version = Sevendigital::VERSION
s.authors = ["filip7d"]
s.email = ["filip@7digital.com"]
- s.description = <<DESCRIPTION
-A ruby wrapper for 7digital API
-DESCRIPTION
-
- s.files = Dir.glob("{lib,spec}/**/*") + %w(README.rdoc)
+ s.description = "A ruby wrapper for 7digital API"
+ s.summary = s.description
+ s.files = Dir.glob("{lib}/**/*") + %w(README.rdoc)
+ s.test_files = Dir.glob("{spec}/**/*") + %w(README.rdoc)
s.extra_rdoc_files = ["README.rdoc"]
s.add_dependency('peachy', '>= 0.3.5')
s.add_dependency('will_paginate', '>= 2.3.15')
-
s.homepage = "http://github.com/filip7d/7digital"
s.rdoc_options = ["--main", "README.rdoc"]
s.rubygems_version = "1.3.6"
- s.summary = <<SUMMARY
-A ruby wrapper for 7digital API
-SUMMARY
end
View
@@ -0,0 +1,20 @@
+Copyright (c) 2010 https://github.com/filip7d
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
View
@@ -0,0 +1,29 @@
+%w[rubygems rake rake/clean rake/testtask fileutils].each { |f| require f }
+$LOAD_PATH << File.dirname(__FILE__) + '/lib'
+require 'sevendigital'
+
+require 'bundler'
+Bundler::GemHelper.install_tasks
+
+require 'rubygems'
+require 'spec/rake/spectask'
+require 'rake/rdoctask'
+
+Spec::Rake::SpecTask.new(:spec) do |t|
+ t.spec_files = Dir.glob('spec/**/*_spec.rb')
+ t.spec_opts << '--format specdoc'
+# t.rcov = true
+end
+
+Rake::RDocTask.new do |rdoc|
+ files =['README.rdoc', 'LICENSE.rdoc', 'lib/**/*.rb']
+ rdoc.rdoc_files.add(files)
+ rdoc.main = "README.rdoc" # page to start on
+ rdoc.title = "7digital Docs"
+ rdoc.rdoc_dir = 'doc11/rdoc' # rdoc output folder
+ rdoc.options << '--line-numbers'
+end
+
+Dir['tasks/**/*.rake'].each { |t| load t }
+
+task :default => :spec
View
@@ -2,7 +2,6 @@
module Sevendigital
# :stopdoc:
- VERSION = '0.0.1'
LIBPATH = ::File.expand_path(::File.dirname(__FILE__)) + ::File::SEPARATOR
PATH = ::File.dirname(LIBPATH) + ::File::SEPARATOR
# :startdoc:
@@ -0,0 +1,4 @@
+module Sevendigital
+ # The version of the gem
+ VERSION = '0.0.5'
+end

0 comments on commit 89f2d68

Please sign in to comment.