datum 0.8.5 → 0.8.6

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -129,4 +129,12 @@ Datum is still being created and isn't officially *ready*. It's likely that we h
129
129
  Tyemill is a technology company in Seattle, Washington. We make a few line-of-business applications and love Ruby, Rails and Open Source.
130
130
 
131
131
  ## License
132
- MIT License. Copyright 2012 Tyemill LLC. http://tyemill.com
132
+ (The MIT License)
133
+
134
+ Copyright 2012 Tyemill LLC. http://tyemill.com
135
+
136
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
137
+
138
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
139
+
140
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -7,17 +7,21 @@ module Datum
7
7
  end
8
8
 
9
9
  def create
10
- Rake::Task['db:create'].invoke()
10
+ Rake::Task['db:create'].invoke()
11
11
  end
12
12
 
13
13
  def migrate
14
- # Not 100% sure why other methods of connecting are failing...
15
- # Rake::Task['db:create'].invoke()
14
+ ActiveRecord::Base.establish_connection(Rails.env)
16
15
  ActiveRecord::Migrator.migrate "#{@@local_path}/migrate"
17
16
  end
18
17
 
19
18
  def drop
20
- Rake::Task['db:drop'].invoke()
19
+ config = Rails.configuration.database_configuration
20
+ database = config[Rails.env]["database"]
21
+
22
+ #Rake::Task['db:drop'].invoke()
23
+ ActiveRecord::Base.connection.drop_database database rescue nil
24
+
21
25
  end
22
26
 
23
27
  # get into the datum fixtures directory, walk the yml, load into db
@@ -79,7 +79,10 @@ module Datum
79
79
  {:version => "0.8.0"},
80
80
  {:version => "0.8.1"},
81
81
  {:version => "0.8.2"},
82
- {:version => "0.8.3"}])
82
+ {:version => "0.8.3"},
83
+ {:version => "0.8.4"},
84
+ {:version => "0.8.5"},
85
+ {:version => "0.8.6"}])
83
86
  end
84
87
 
85
88
  def exec_test
data/lib/datum/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Datum
2
- VERSION = "0.8.5"
2
+ VERSION = "0.8.6"
3
3
  end
4
4
 
5
5
  ## 0.8.1
@@ -13,4 +13,7 @@ end
13
13
  ## Fixed bug with leftover verification test case.
14
14
  ## 0.8.5
15
15
  ## Fixed bug with pre-existing datum database (verification failed when
16
- ## pre-existing store exists)
16
+ ## pre-existing store exists)
17
+ ## 0.8.6
18
+ ## Fixed migration not observing schema version (regression)
19
+ ## Updated drop to use connection instead of rake task (unreliable)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: datum
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.5
4
+ version: 0.8.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-08-29 00:00:00.000000000 Z
13
+ date: 2012-08-30 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
@@ -106,7 +106,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
106
106
  version: '0'
107
107
  segments:
108
108
  - 0
109
- hash: -2892214173554487123
109
+ hash: -4198607378576782405
110
110
  required_rubygems_version: !ruby/object:Gem::Requirement
111
111
  none: false
112
112
  requirements:
@@ -115,7 +115,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
115
115
  version: '0'
116
116
  segments:
117
117
  - 0
118
- hash: -2892214173554487123
118
+ hash: -4198607378576782405
119
119
  requirements: []
120
120
  rubyforge_project:
121
121
  rubygems_version: 1.8.24