dbview_cti 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/.travis.yml CHANGED
@@ -6,7 +6,7 @@ rvm:
6
6
  env:
7
7
  - "RAILS_VERSION=3.2.0"
8
8
  - "RAILS_VERSION=4.0.0"
9
- script: bundle exec rspec spec
9
+ script: bundle exec rspec spec/models
10
10
  before_script:
11
11
  - psql -c "CREATE USER cti WITH ENCRYPTED PASSWORD 'cti';" -U postgres
12
12
  - psql -c "CREATE DATABASE dbview_cti_test WITH OWNER cti;" -U postgres
data/README.md CHANGED
@@ -1,4 +1,5 @@
1
1
  # dbview_cti
2
+ [![Build Status](https://travis-ci.org/mvdamme/dbview_cti.png)](https://travis-ci.org/mvdamme/dbview_cti)
2
3
 
3
4
  This gem implements [Class Table Inheritance](http://martinfowler.com/eaaCatalog/classTableInheritance.html) (CTI)
4
5
  for Rails, as an alternative to Single Table Inheritance (STI). The implementation is based on database views.
data/Rakefile CHANGED
@@ -1,4 +1,7 @@
1
1
  #!/usr/bin/env rake
2
+
3
+ require 'rspec/core/rake_task'
4
+
2
5
  begin
3
6
  require 'bundler/setup'
4
7
  rescue LoadError
@@ -20,8 +23,8 @@ RDoc::Task.new(:rdoc) do |rdoc|
20
23
  rdoc.rdoc_files.include('lib/**/*.rb')
21
24
  end
22
25
 
23
-
24
-
26
+ RSpec::Core::RakeTask.new(:spec)
27
+ task :default => :spec
25
28
 
26
29
  Bundler::GemHelper.install_tasks
27
30
 
data/dbview_cti.gemspec CHANGED
@@ -12,6 +12,7 @@ Gem::Specification.new do |s|
12
12
  s.homepage = "https://github.com/mvdamme/dbview_cti"
13
13
  s.summary = "Class Table Inheritance (CTI) for Rails."
14
14
  s.description = "This gem implements Class Table Inheritance (CTI) for Rails using database views."
15
+ s.license = 'MIT'
15
16
 
16
17
  s.files = `git ls-files`.split("\n")
17
18
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
@@ -1,3 +1,3 @@
1
1
  module DBViewCTI
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dbview_cti
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-08-23 00:00:00.000000000 Z
12
+ date: 2013-08-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -182,7 +182,8 @@ files:
182
182
  - spec/models/vehicle_spec.rb
183
183
  - spec/spec_helper.rb
184
184
  homepage: https://github.com/mvdamme/dbview_cti
185
- licenses: []
185
+ licenses:
186
+ - MIT
186
187
  post_install_message:
187
188
  rdoc_options: []
188
189
  require_paths:
@@ -195,7 +196,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
195
196
  version: '0'
196
197
  segments:
197
198
  - 0
198
- hash: -3953511305276262662
199
+ hash: 3838779478172072654
199
200
  required_rubygems_version: !ruby/object:Gem::Requirement
200
201
  none: false
201
202
  requirements:
@@ -204,7 +205,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
204
205
  version: '0'
205
206
  segments:
206
207
  - 0
207
- hash: -3953511305276262662
208
+ hash: 3838779478172072654
208
209
  requirements: []
209
210
  rubyforge_project:
210
211
  rubygems_version: 1.8.25