jamjar 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 961841cf0afeaac3d88c100be19d014a5648ae89
4
- data.tar.gz: e9bc1b79a1143c1a892e2756781dc9d8d36a129c
3
+ metadata.gz: ef21afc87146f39f051bb72e207ad489cbf25d1c
4
+ data.tar.gz: 768fdd1c166fe6b3a21197c172fe6dc99a1000e5
5
5
  SHA512:
6
- metadata.gz: f25c7abd966afd28ec173d88db2764cbb6c098e86a303c2be5f4a7da246bf2f00c2519378a962c76bd41a2ce212f50b4b9be6639f7cce2e2d96c1cbd6e5afa59
7
- data.tar.gz: 346e086a5793f03e2b8bcf53a78d32304f4f1a3569042de1e675c1127a19fcb39cde3e0d51f9de0daada5b8d2b50b0aa1289879caea4e1f3ad2abb2e0ed590f0
6
+ metadata.gz: 1b1bb9b7567818c89d2835c24f85645dce48d47c2c9302166a3cdbc37b3342b9b08fb589f9046eb9cbcaa4c9b2017f69da5596019cc66dfdf2a1ebda982357c4
7
+ data.tar.gz: 5d5d4222e1457ed12c3d7e2e711d7c539938b8901ec97269517924e231edcaa27292e6d29af6dd5aea0d5d1bf9ac55e5f57384d502e036c65b67da267580fdb8
data/.gitignore CHANGED
@@ -12,3 +12,4 @@
12
12
  *.o
13
13
  *.a
14
14
  mkmf.log
15
+ gemfiles/*.lock
data/Appraisals ADDED
@@ -0,0 +1,5 @@
1
+ ["3.2", "4.0", "4.1", "4.2"].each do |ver|
2
+ appraise "activerecord-#{ver}" do
3
+ gem "activerecord", "~> #{ver}", require: "active_record"
4
+ end
5
+ end
data/Gemfile CHANGED
@@ -3,7 +3,7 @@ source 'https://rubygems.org'
3
3
  gemspec
4
4
 
5
5
  gem "bundler"
6
- # gem "appraisal"
6
+ gem "appraisal"
7
7
 
8
8
  gem "rake"
9
9
 
@@ -0,0 +1,18 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "bundler"
6
+ gem "appraisal"
7
+ gem "rake"
8
+ gem "rspec"
9
+ gem "rspec-expect_it"
10
+ gem "fuubar"
11
+ gem "activerecord", "~> 3.2", :require => "active_record"
12
+
13
+ group :tools do
14
+ gem "byebug", :platform => [:ruby_20, :ruby_21]
15
+ gem "debugger", :platform => :ruby_19
16
+ end
17
+
18
+ gemspec :path => "../"
@@ -0,0 +1,18 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "bundler"
6
+ gem "appraisal"
7
+ gem "rake"
8
+ gem "rspec"
9
+ gem "rspec-expect_it"
10
+ gem "fuubar"
11
+ gem "activerecord", "~> 4.0", :require => "active_record"
12
+
13
+ group :tools do
14
+ gem "byebug", :platform => [:ruby_20, :ruby_21]
15
+ gem "debugger", :platform => :ruby_19
16
+ end
17
+
18
+ gemspec :path => "../"
@@ -0,0 +1,18 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "bundler"
6
+ gem "appraisal"
7
+ gem "rake"
8
+ gem "rspec"
9
+ gem "rspec-expect_it"
10
+ gem "fuubar"
11
+ gem "activerecord", "~> 4.1", :require => "active_record"
12
+
13
+ group :tools do
14
+ gem "byebug", :platform => [:ruby_20, :ruby_21]
15
+ gem "debugger", :platform => :ruby_19
16
+ end
17
+
18
+ gemspec :path => "../"
@@ -0,0 +1,18 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "bundler"
6
+ gem "appraisal"
7
+ gem "rake"
8
+ gem "rspec"
9
+ gem "rspec-expect_it"
10
+ gem "fuubar"
11
+ gem "activerecord", "~> 4.2", :require => "active_record"
12
+
13
+ group :tools do
14
+ gem "byebug", :platform => [:ruby_20, :ruby_21]
15
+ gem "debugger", :platform => :ruby_19
16
+ end
17
+
18
+ gemspec :path => "../"
data/lib/jamjar.rb CHANGED
@@ -10,6 +10,7 @@ module JamJar
10
10
  model.table_name = "table_#{@@table_count}"
11
11
  @@table_count += 1
12
12
 
13
+ model.establish_connection adapter: "sqlite3", database: ":memory:"
13
14
  model.connection.create_table(model.table_name)
14
15
  model.class_eval(&Proc.new) if block_given?
15
16
  model
data/lib/jamjar/model.rb CHANGED
@@ -3,7 +3,10 @@ require "active_record"
3
3
  module JamJar
4
4
  class Model < ActiveRecord::Base
5
5
  self.abstract_class = true
6
- establish_connection adapter: :sqlite3, database: ":memory:"
6
+
7
+ def self.name
8
+ "TestModel"
9
+ end
7
10
 
8
11
  def self.column(name, type)
9
12
  self.connection.add_column(self.table_name, name, type)
@@ -1,7 +1,7 @@
1
1
  module JamJar
2
2
  module VERSION
3
3
  MAJOR = 1
4
- MINOR = 0
4
+ MINOR = 1
5
5
  PATCH = 0
6
6
 
7
7
  BETA = nil
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jamjar
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Drake-Brockman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-28 00:00:00.000000000 Z
11
+ date: 2014-12-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -49,10 +49,15 @@ files:
49
49
  - ".gitignore"
50
50
  - ".ruby-gemset"
51
51
  - ".ruby-version"
52
+ - Appraisals
52
53
  - Gemfile
53
54
  - LICENSE
54
55
  - README.md
55
56
  - Rakefile
57
+ - gemfiles/activerecord_3.2.gemfile
58
+ - gemfiles/activerecord_4.0.gemfile
59
+ - gemfiles/activerecord_4.1.gemfile
60
+ - gemfiles/activerecord_4.2.gemfile
56
61
  - jamjar.gemspec
57
62
  - lib/jamjar.rb
58
63
  - lib/jamjar/model.rb