summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2012-10-08 10:45:27 +0200
committerAzul <azul@leap.se>2012-10-08 10:45:27 +0200
commitefcf0e5927055d2b86804c84b00c614b38191964 (patch)
tree8195f5ad3f38d6f3725cf91446fef9e2d2920eb3
parentc882d882a6506039bf0f2e4c3a673eb30ae9e58d (diff)
enabling rake gem in engines, using LeapWeb::Version all over the place
-rw-r--r--Gemfile.lock10
-rw-r--r--certs/Rakefile10
-rw-r--r--certs/leap_web_certs.gemspec7
-rw-r--r--core/Rakefile10
-rw-r--r--core/leap_web_core.gemspec9
-rw-r--r--help/Rakefile10
-rw-r--r--help/leap_web_help.gemspec7
-rw-r--r--leap_web.gemspec7
-rw-r--r--lib/leap_web/version.rb2
-rw-r--r--users/Rakefile10
-rw-r--r--users/leap_web_users.gemspec7
11 files changed, 54 insertions, 35 deletions
diff --git a/Gemfile.lock b/Gemfile.lock
index e9994f9..414a5fe 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -1,14 +1,14 @@
PATH
remote: certs
specs:
- leap_web_certs (0.0.4)
- leap_web_core (~> 0.0.1)
+ leap_web_certs (0.1.0)
+ leap_web_core (= 0.1.0)
rails (~> 3.2.8)
PATH
remote: core
specs:
- leap_web_core (0.0.1)
+ leap_web_core (0.1.0)
couchrest (~> 1.1.3)
couchrest_model (~> 2.0.0.beta2)
rails (~> 3.2.8)
@@ -16,12 +16,12 @@ PATH
PATH
remote: users
specs:
- leap_web_users (0.0.1)
+ leap_web_users (0.1.0)
bootstrap-sass (~> 2.0.4)
couchrest_session_store (~> 0.0.1)
haml (~> 3.1.7)
jquery-rails
- leap_web_core (~> 0.0.1)
+ leap_web_core (= 0.1.0)
rails (~> 3.2.8)
ruby-srp (~> 0.1.1)
simple_form
diff --git a/certs/Rakefile b/certs/Rakefile
index dd38158..54ed86d 100644
--- a/certs/Rakefile
+++ b/certs/Rakefile
@@ -1,4 +1,8 @@
#!/usr/bin/env rake
+
+require 'rake/packagetask'
+require 'rubygems/package_task'
+
begin
require 'bundler/setup'
rescue LoadError
@@ -20,8 +24,10 @@ RDoc::Task.new(:rdoc) do |rdoc|
rdoc.rdoc_files.include('lib/**/*.rb')
end
-
-
+spec = eval(File.read('leap_web_certs.gemspec'))
+Gem::PackageTask.new(spec) do |p|
+ p.gem_spec = spec
+end
Bundler::GemHelper.install_tasks
diff --git a/certs/leap_web_certs.gemspec b/certs/leap_web_certs.gemspec
index 28ef392..db5d04f 100644
--- a/certs/leap_web_certs.gemspec
+++ b/certs/leap_web_certs.gemspec
@@ -1,12 +1,11 @@
$:.push File.expand_path("../lib", __FILE__)
-# Maintain your gem's version:
-require "leap_web_certs/version"
+require File.expand_path('../../lib/leap_web/version.rb', __FILE__)
# Describe your gem and declare its dependencies:
Gem::Specification.new do |s|
s.name = "leap_web_certs"
- s.version = LeapWebCerts::VERSION
+ s.version = LeapWeb::VERSION
s.authors = ["Azul"]
s.email = ["azul@leap.se"]
s.homepage = "http://www.leap.se"
@@ -17,7 +16,7 @@ Gem::Specification.new do |s|
s.test_files = Dir["test/**/*"]
s.add_dependency "rails", "~> 3.2.8"
- s.add_dependency "leap_web_core", "~> 0.0.1"
+ s.add_dependency "leap_web_core", LeapWeb::VERSION
s.add_development_dependency "mocha"
diff --git a/core/Rakefile b/core/Rakefile
index 477e34d..3c6539c 100644
--- a/core/Rakefile
+++ b/core/Rakefile
@@ -1,4 +1,8 @@
#!/usr/bin/env rake
+
+require 'rake/packagetask'
+require 'rubygems/package_task'
+
begin
require 'bundler/setup'
rescue LoadError
@@ -20,8 +24,10 @@ RDoc::Task.new(:rdoc) do |rdoc|
rdoc.rdoc_files.include('lib/**/*.rb')
end
-
-
+spec = eval(File.read('leap_web_core.gemspec'))
+Gem::PackageTask.new(spec) do |p|
+ p.gem_spec = spec
+end
Bundler::GemHelper.install_tasks
diff --git a/core/leap_web_core.gemspec b/core/leap_web_core.gemspec
index 709b451..2de7a4a 100644
--- a/core/leap_web_core.gemspec
+++ b/core/leap_web_core.gemspec
@@ -1,19 +1,18 @@
$:.push File.expand_path("../lib", __FILE__)
-# Maintain your gem's version:
-require "leap_web_core/version"
+require File.expand_path('../../lib/leap_web/version.rb', __FILE__)
# Describe your gem and declare its dependencies:
Gem::Specification.new do |s|
s.name = "leap_web_core"
- s.version = LeapWebCore::VERSION
+ s.version = LeapWeb::VERSION
s.authors = ["Azul"]
s.email = ["azul@leap.se"]
s.homepage = "http://www.leap.se"
- s.summary = "Web interface to the leap platform"
+ s.summary = "Web interface to the leap platform - core engine"
s.description = "This web interface provides various administrative tools for the leap platform through plugins. Currently it manages user accounts and certificates."
- s.files = Dir["{app,config,db,lib}/**/*"] + ["MIT-LICENSE", "Rakefile", "Readme.md"]
+ s.files = Dir["{app,config,db,lib}/**/*"] + ["Rakefile", "Readme.md"]
s.test_files = Dir["test/**/*"]
s.add_dependency "rails", "~> 3.2.8"
diff --git a/help/Rakefile b/help/Rakefile
index 9306287..0e73163 100644
--- a/help/Rakefile
+++ b/help/Rakefile
@@ -1,4 +1,8 @@
#!/usr/bin/env rake
+
+require 'rake/packagetask'
+require 'rubygems/package_task'
+
begin
require 'bundler/setup'
rescue LoadError
@@ -20,8 +24,10 @@ RDoc::Task.new(:rdoc) do |rdoc|
rdoc.rdoc_files.include('lib/**/*.rb')
end
-
-
+spec = eval(File.read('leap_web_help.gemspec'))
+Gem::PackageTask.new(spec) do |p|
+ p.gem_spec = spec
+end
Bundler::GemHelper.install_tasks
diff --git a/help/leap_web_help.gemspec b/help/leap_web_help.gemspec
index 19b59d7..7380451 100644
--- a/help/leap_web_help.gemspec
+++ b/help/leap_web_help.gemspec
@@ -1,13 +1,12 @@
$:.push File.expand_path("../lib", __FILE__)
-# Maintain your gem's version:
-require "leap_web_help/version"
require "leap_web_core/dependencies"
+require File.expand_path('../../lib/leap_web/version.rb', __FILE__)
# Describe your gem and declare its dependencies:
Gem::Specification.new do |s|
s.name = "leap_web_help"
- s.version = LeapWebHelp::VERSION
+ s.version = LeapWeb::VERSION
s.authors = ["TODO: Your name"]
s.email = ["TODO: Your email"]
s.homepage = "TODO"
@@ -18,7 +17,7 @@ Gem::Specification.new do |s|
s.test_files = Dir["test/**/*"]
s.add_dependency "rails", "~> 3.2.8"
- s.add_dependency "leap_web_core", "~> 0.0.1"
+ s.add_dependency "leap_web_core", "~> #{LeapWeb::VERSION}"
LeapWebCore::Dependencies.add_ui_gems_to_spec(s)
diff --git a/leap_web.gemspec b/leap_web.gemspec
index 569abc8..cd7a003 100644
--- a/leap_web.gemspec
+++ b/leap_web.gemspec
@@ -1,7 +1,6 @@
$:.push File.expand_path("../lib", __FILE__)
-# Maintain your gem's version:
-require "leap_web/version"
+require 'leap_web/version.rb'
Gem::Specification.new do |s|
s.platform = Gem::Platform::RUBY
@@ -21,6 +20,6 @@ Gem::Specification.new do |s|
s.homepage = 'http://leap.se'
# s.add_dependency 'leap_web_core'
- s.add_dependency 'leap_web_certs'
- s.add_dependency 'leap_web_users'
+ s.add_dependency 'leap_web_certs', LeapWeb::VERSION
+ s.add_dependency 'leap_web_users', LeapWeb::VERSION
end
diff --git a/lib/leap_web/version.rb b/lib/leap_web/version.rb
index ef81e43..bac8655 100644
--- a/lib/leap_web/version.rb
+++ b/lib/leap_web/version.rb
@@ -1,3 +1,3 @@
module LeapWeb
- VERSION = "0.0.1"
+ VERSION = "0.1.0"
end
diff --git a/users/Rakefile b/users/Rakefile
index cf5108e..38da5fc 100644
--- a/users/Rakefile
+++ b/users/Rakefile
@@ -1,4 +1,8 @@
#!/usr/bin/env rake
+
+require 'rake/packagetask'
+require 'rubygems/package_task'
+
begin
require 'bundler/setup'
rescue LoadError
@@ -20,8 +24,10 @@ RDoc::Task.new(:rdoc) do |rdoc|
rdoc.rdoc_files.include('lib/**/*.rb')
end
-
-
+spec = eval(File.read('leap_web_users.gemspec'))
+Gem::PackageTask.new(spec) do |p|
+ p.gem_spec = spec
+end
Bundler::GemHelper.install_tasks
diff --git a/users/leap_web_users.gemspec b/users/leap_web_users.gemspec
index 90aa4df..e68529a 100644
--- a/users/leap_web_users.gemspec
+++ b/users/leap_web_users.gemspec
@@ -1,13 +1,12 @@
$:.push File.expand_path("../lib", __FILE__)
-# Maintain your gem's version:
-require "leap_web_users/version"
require "leap_web_core/dependencies"
+require File.expand_path('../../lib/leap_web/version.rb', __FILE__)
# Describe your gem and declare its dependencies:
Gem::Specification.new do |s|
s.name = "leap_web_users"
- s.version = LeapWebUsers::VERSION
+ s.version = LeapWeb::VERSION
s.authors = ["Azul"]
s.email = ["azul@leap.se"]
s.homepage = "http://www.leap.se"
@@ -18,7 +17,7 @@ Gem::Specification.new do |s|
s.test_files = Dir["test/**/*"]
s.add_dependency "rails", "~> 3.2.8"
- s.add_dependency "leap_web_core", "~> 0.0.1"
+ s.add_dependency "leap_web_core", LeapWeb::VERSION
s.add_dependency "couchrest_session_store", "~> 0.0.1"
s.add_dependency "ruby-srp", "~> 0.1.1"