connection_ninja 0.3.4 → 0.3.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/.gitignore +4 -0
  2. data/Rakefile +39 -10
  3. data/VERSION +1 -0
  4. data/connection_ninja.gemspec +40 -10
  5. metadata +26 -19
data/.gitignore ADDED
@@ -0,0 +1,4 @@
1
+ .DS_Store
2
+ tmp/*
3
+ pkg
4
+ doc
data/Rakefile CHANGED
@@ -1,15 +1,44 @@
1
1
  require 'rubygems'
2
2
  require 'rake'
3
- require 'echoe'
4
3
 
5
- Echoe.new('connection_ninja', '0.3.4') do |p|
6
- p.description = "Inject a new connection to an alternate database into an ActiveRecord Model at runtime"
7
- p.summary = ""
8
- p.url = "http://github.com/cherring/connection_ninja"
9
- p.author = "Chris Herring"
10
- p.email = "chris.herring.iphone@gmail.com"
11
- p.ignore_pattern = ["tmp/*", "script/*"]
12
- p.development_dependencies = []
4
+ begin
5
+ require 'jeweler'
6
+ Jeweler::Tasks.new do |gem|
7
+ gem.name = "connection_ninja"
8
+ gem.summary = %Q{Handle multiple Database conenctions with ActiveRecord Models}
9
+ gem.description = %Q{Handle multiple Database conenctions with ActiveRecord Models}
10
+ gem.email = "chris.herring.iphone@gmail.com"
11
+ gem.homepage = "http://github.com/cherring/connection_ninja"
12
+ gem.authors = ["Chris Herring"]
13
+ gem.add_development_dependency "rspec", ">= 1.2.9"
14
+ end
15
+ Jeweler::GemcutterTasks.new
16
+ rescue LoadError
17
+ puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
13
18
  end
14
19
 
15
- Dir["#{File.dirname(__FILE__)}/tasks/*.rake"].sort.each { |ext| load ext }
20
+ require 'spec/rake/spectask'
21
+ Spec::Rake::SpecTask.new(:spec) do |spec|
22
+ spec.libs << 'lib' << 'spec'
23
+ spec.spec_files = FileList['spec/**/*_spec.rb']
24
+ end
25
+
26
+ Spec::Rake::SpecTask.new(:rcov) do |spec|
27
+ spec.libs << 'lib' << 'spec'
28
+ spec.pattern = 'spec/**/*_spec.rb'
29
+ spec.rcov = true
30
+ end
31
+
32
+ task :spec => :check_dependencies
33
+
34
+ task :default => :spec
35
+
36
+ require 'rake/rdoctask'
37
+ Rake::RDocTask.new do |rdoc|
38
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
39
+
40
+ rdoc.rdoc_dir = 'rdoc'
41
+ rdoc.title = "rangetastic #{version}"
42
+ rdoc.rdoc_files.include('README*')
43
+ rdoc.rdoc_files.include('lib/**/*.rb')
44
+ end
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.3.5
@@ -1,30 +1,60 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
1
4
  # -*- encoding: utf-8 -*-
2
5
 
3
6
  Gem::Specification.new do |s|
4
7
  s.name = %q{connection_ninja}
5
- s.version = "0.3.4"
8
+ s.version = "0.3.5"
6
9
 
7
- s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
11
  s.authors = ["Chris Herring"]
9
- s.date = %q{2009-10-12}
10
- s.description = %q{Inject a new connection to an alternate database into an ActiveRecord Model at runtime}
12
+ s.date = %q{2009-11-24}
13
+ s.description = %q{Handle multiple Database conenctions with ActiveRecord Models}
11
14
  s.email = %q{chris.herring.iphone@gmail.com}
12
- s.extra_rdoc_files = ["CHANGELOG", "README.markdown", "lib/connection_ninja.rb"]
13
- s.files = ["CHANGELOG", "MIT-License", "Manifest", "README.markdown", "Rakefile", "config/database.example.yml", "connection_ninja.gemspec", "lib/connection_ninja.rb", "spec/connection_ninja_spec.rb", "spec/fixtures/models.rb", "spec/fixtures/structure.sql", "spec/spec_helper.rb", "spec/test_helper.rb"]
15
+ s.extra_rdoc_files = [
16
+ "README.markdown"
17
+ ]
18
+ s.files = [
19
+ ".gitignore",
20
+ "CHANGELOG",
21
+ "MIT-License",
22
+ "Manifest",
23
+ "README.markdown",
24
+ "Rakefile",
25
+ "VERSION",
26
+ "config/database.example.yml",
27
+ "connection_ninja.gemspec",
28
+ "lib/connection_ninja.rb",
29
+ "spec/connection_ninja_spec.rb",
30
+ "spec/fixtures/models.rb",
31
+ "spec/fixtures/structure.sql",
32
+ "spec/spec_helper.rb",
33
+ "spec/test_helper.rb"
34
+ ]
14
35
  s.homepage = %q{http://github.com/cherring/connection_ninja}
15
- s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Connection_ninja", "--main", "README.markdown"]
36
+ s.rdoc_options = ["--charset=UTF-8"]
16
37
  s.require_paths = ["lib"]
17
- s.rubyforge_project = %q{connection_ninja}
18
- s.rubygems_version = %q{1.3.4}
19
- s.summary = %q{Inject a new connection to an alternate database into an ActiveRecord Model at runtime}
38
+ s.rubygems_version = %q{1.3.5}
39
+ s.summary = %q{Handle multiple Database conenctions with ActiveRecord Models}
40
+ s.test_files = [
41
+ "spec/connection_ninja_spec.rb",
42
+ "spec/fixtures/models.rb",
43
+ "spec/spec_helper.rb",
44
+ "spec/test_helper.rb"
45
+ ]
20
46
 
21
47
  if s.respond_to? :specification_version then
22
48
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
23
49
  s.specification_version = 3
24
50
 
25
51
  if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
52
+ s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
26
53
  else
54
+ s.add_dependency(%q<rspec>, [">= 1.2.9"])
27
55
  end
28
56
  else
57
+ s.add_dependency(%q<rspec>, [">= 1.2.9"])
29
58
  end
30
59
  end
60
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: connection_ninja
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Herring
@@ -9,26 +9,35 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-10-12 00:00:00 +11:00
12
+ date: 2009-11-24 00:00:00 +11:00
13
13
  default_executable:
14
- dependencies: []
15
-
16
- description: Inject a new connection to an alternate database into an ActiveRecord Model at runtime
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: rspec
17
+ type: :development
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: 1.2.9
24
+ version:
25
+ description: Handle multiple Database conenctions with ActiveRecord Models
17
26
  email: chris.herring.iphone@gmail.com
18
27
  executables: []
19
28
 
20
29
  extensions: []
21
30
 
22
31
  extra_rdoc_files:
23
- - CHANGELOG
24
32
  - README.markdown
25
- - lib/connection_ninja.rb
26
33
  files:
34
+ - .gitignore
27
35
  - CHANGELOG
28
36
  - MIT-License
29
37
  - Manifest
30
38
  - README.markdown
31
39
  - Rakefile
40
+ - VERSION
32
41
  - config/database.example.yml
33
42
  - connection_ninja.gemspec
34
43
  - lib/connection_ninja.rb
@@ -43,12 +52,7 @@ licenses: []
43
52
 
44
53
  post_install_message:
45
54
  rdoc_options:
46
- - --line-numbers
47
- - --inline-source
48
- - --title
49
- - Connection_ninja
50
- - --main
51
- - README.markdown
55
+ - --charset=UTF-8
52
56
  require_paths:
53
57
  - lib
54
58
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -61,14 +65,17 @@ required_rubygems_version: !ruby/object:Gem::Requirement
61
65
  requirements:
62
66
  - - ">="
63
67
  - !ruby/object:Gem::Version
64
- version: "1.2"
68
+ version: "0"
65
69
  version:
66
70
  requirements: []
67
71
 
68
- rubyforge_project: connection_ninja
69
- rubygems_version: 1.3.4
72
+ rubyforge_project:
73
+ rubygems_version: 1.3.5
70
74
  signing_key:
71
75
  specification_version: 3
72
- summary: Inject a new connection to an alternate database into an ActiveRecord Model at runtime
73
- test_files: []
74
-
76
+ summary: Handle multiple Database conenctions with ActiveRecord Models
77
+ test_files:
78
+ - spec/connection_ninja_spec.rb
79
+ - spec/fixtures/models.rb
80
+ - spec/spec_helper.rb
81
+ - spec/test_helper.rb