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 +4 -4
- data/.gitignore +1 -0
- data/Appraisals +5 -0
- data/Gemfile +1 -1
- data/gemfiles/activerecord_3.2.gemfile +18 -0
- data/gemfiles/activerecord_4.0.gemfile +18 -0
- data/gemfiles/activerecord_4.1.gemfile +18 -0
- data/gemfiles/activerecord_4.2.gemfile +18 -0
- data/lib/jamjar.rb +1 -0
- data/lib/jamjar/model.rb +4 -1
- data/lib/jamjar/version.rb +1 -1
- metadata +7 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ef21afc87146f39f051bb72e207ad489cbf25d1c
|
4
|
+
data.tar.gz: 768fdd1c166fe6b3a21197c172fe6dc99a1000e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b1bb9b7567818c89d2835c24f85645dce48d47c2c9302166a3cdbc37b3342b9b08fb589f9046eb9cbcaa4c9b2017f69da5596019cc66dfdf2a1ebda982357c4
|
7
|
+
data.tar.gz: 5d5d4222e1457ed12c3d7e2e711d7c539938b8901ec97269517924e231edcaa27292e6d29af6dd5aea0d5d1bf9ac55e5f57384d502e036c65b67da267580fdb8
|
data/.gitignore
CHANGED
data/Appraisals
ADDED
data/Gemfile
CHANGED
@@ -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
|
-
|
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)
|
data/lib/jamjar/version.rb
CHANGED
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.
|
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-
|
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
|