active_table 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -64,6 +64,7 @@ module ActiveTable
64
64
  connection.rename_table(temp_table_name, @table[:name])
65
65
  when [true, false]
66
66
  db_truncate_and_copy_tables(@table[:name], temp_table_name)
67
+ db_drop_table(temp_table_name)
67
68
  when [true, true]
68
69
  db_drop_table(temp_table_name)
69
70
  end
@@ -1,3 +1,3 @@
1
1
  module ActiveTable
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
@@ -120,6 +120,7 @@ describe "a model created with active_table" do
120
120
  end
121
121
 
122
122
  @connection.execute("SELECT * FROM awesome_models").size.should == 1
123
+ @connection.table_exists?("awesome_models__temp").should be_false
123
124
  end
124
125
  end
125
126
 
metadata CHANGED
@@ -1,37 +1,56 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: active_table
3
- version: !ruby/object:Gem::Version
4
- version: 0.1.4
3
+ version: !ruby/object:Gem::Version
4
+ hash: 17
5
5
  prerelease:
6
+ segments:
7
+ - 0
8
+ - 1
9
+ - 5
10
+ version: 0.1.5
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - Case Commons LLC
9
14
  autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
- date: 2011-08-15 00:00:00.000000000Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
17
+
18
+ date: 2011-09-15 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
15
21
  name: activerecord
16
- requirement: &2161615920 !ruby/object:Gem::Requirement
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
17
24
  none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ hash: 9
29
+ segments:
30
+ - 2
31
+ - 3
32
+ - 5
21
33
  version: 2.3.5
22
34
  - - <
23
- - !ruby/object:Gem::Version
35
+ - !ruby/object:Gem::Version
36
+ hash: 63
37
+ segments:
38
+ - 4
39
+ - 0
40
+ - 0
24
41
  version: 4.0.0
25
42
  type: :runtime
26
- prerelease: false
27
- version_requirements: *2161615920
43
+ version_requirements: *id001
28
44
  description: Dynamically-populated ActiveRecord models based on static data
29
- email:
45
+ email:
30
46
  - casecommons-dev@googlegroups.com
31
47
  executables: []
48
+
32
49
  extensions: []
50
+
33
51
  extra_rdoc_files: []
34
- files:
52
+
53
+ files:
35
54
  - .gitignore
36
55
  - Gemfile
37
56
  - README.md
@@ -49,28 +68,37 @@ files:
49
68
  - spec/spec_helper.rb
50
69
  homepage: https://github.com/Casecommons/active_table
51
70
  licenses: []
71
+
52
72
  post_install_message:
53
73
  rdoc_options: []
54
- require_paths:
74
+
75
+ require_paths:
55
76
  - lib
56
- required_ruby_version: !ruby/object:Gem::Requirement
77
+ required_ruby_version: !ruby/object:Gem::Requirement
57
78
  none: false
58
- requirements:
59
- - - ! '>='
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- required_rubygems_version: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ hash: 3
83
+ segments:
84
+ - 0
85
+ version: "0"
86
+ required_rubygems_version: !ruby/object:Gem::Requirement
63
87
  none: false
64
- requirements:
65
- - - ! '>='
66
- - !ruby/object:Gem::Version
67
- version: '0'
88
+ requirements:
89
+ - - ">="
90
+ - !ruby/object:Gem::Version
91
+ hash: 3
92
+ segments:
93
+ - 0
94
+ version: "0"
68
95
  requirements: []
96
+
69
97
  rubyforge_project: active_table
70
- rubygems_version: 1.8.6
98
+ rubygems_version: 1.8.10
71
99
  signing_key:
72
100
  specification_version: 3
73
101
  summary: Dynamically-populated ActiveRecord models based on static data
74
- test_files:
102
+ test_files:
75
103
  - spec/active_table_spec.rb
76
104
  - spec/spec_helper.rb