databasion 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ### 0.2.2
2
+ * [FIXED] Template newline bug.
3
+
1
4
  ### 0.2.1
2
5
  * [FIXED] Tables without an 'id' field weren't updating via the load command and bailing, a dramatic oversight on my part. Databasion now includes the composite primary keys gem for ActiveRecord, and correctly drops and loads master data now.
3
6
 
data/Rakefile CHANGED
@@ -8,9 +8,9 @@ Jeweler::Tasks.new do |gem|
8
8
  gem.email = "mojobojo@gmail.com"
9
9
  gem.homepage = "http://github.com/boj/databasion"
10
10
  gem.authors = ["Brian Jones", "Istpika"]
11
- gem.version = "0.2.1"
11
+ gem.version = "0.2.2"
12
12
 
13
- gem.add_dependency('activerecord', '>= 2.3.5')
13
+ gem.add_dependency('activerecord', '>= 3.0.3')
14
14
  gem.add_dependency('activesupport', '>= 2.3.5')
15
15
  gem.add_dependency('google-spreadsheet-ruby', '>= 0.1.2')
16
16
  gem.add_dependency('spreadsheet', '>= 0.6.4.1')
data/databasion.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{databasion}
8
- s.version = "0.2.1"
8
+ s.version = "0.2.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Brian Jones", "Istpika"]
@@ -67,20 +67,20 @@ Gem::Specification.new do |s|
67
67
  s.specification_version = 3
68
68
 
69
69
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
70
- s.add_runtime_dependency(%q<activerecord>, [">= 2.3.5"])
70
+ s.add_runtime_dependency(%q<activerecord>, [">= 3.0.3"])
71
71
  s.add_runtime_dependency(%q<activesupport>, [">= 2.3.5"])
72
72
  s.add_runtime_dependency(%q<google-spreadsheet-ruby>, [">= 0.1.2"])
73
73
  s.add_runtime_dependency(%q<spreadsheet>, [">= 0.6.4.1"])
74
74
  s.add_runtime_dependency(%q<composite_primary_keys>, [">= 3.0.9"])
75
75
  else
76
- s.add_dependency(%q<activerecord>, [">= 2.3.5"])
76
+ s.add_dependency(%q<activerecord>, [">= 3.0.3"])
77
77
  s.add_dependency(%q<activesupport>, [">= 2.3.5"])
78
78
  s.add_dependency(%q<google-spreadsheet-ruby>, [">= 0.1.2"])
79
79
  s.add_dependency(%q<spreadsheet>, [">= 0.6.4.1"])
80
80
  s.add_dependency(%q<composite_primary_keys>, [">= 3.0.9"])
81
81
  end
82
82
  else
83
- s.add_dependency(%q<activerecord>, [">= 2.3.5"])
83
+ s.add_dependency(%q<activerecord>, [">= 3.0.3"])
84
84
  s.add_dependency(%q<activesupport>, [">= 2.3.5"])
85
85
  s.add_dependency(%q<google-spreadsheet-ruby>, [">= 0.1.2"])
86
86
  s.add_dependency(%q<spreadsheet>, [">= 0.6.4.1"])
@@ -1,6 +1,6 @@
1
1
  class <%= class_name %> < ActiveRecord::Base
2
2
  <% if !keys.empty? %>
3
- set_primary_keys <%= keys.collect { |key| ":%s, " % key }.to_s.strip.chop %>
3
+ set_primary_keys <%= keys.collect { |key| ":%s, " % key }.to_s.strip.chop %><%= "\n" %>
4
4
  <% end %>
5
5
  <%= 'set_table_name "%s"' % table_name unless table_name.nil? %><%= "\n" %>
6
6
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: databasion
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 1
10
- version: 0.2.1
9
+ - 2
10
+ version: 0.2.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Brian Jones
@@ -27,12 +27,12 @@ dependencies:
27
27
  requirements:
28
28
  - - ">="
29
29
  - !ruby/object:Gem::Version
30
- hash: 9
30
+ hash: 1
31
31
  segments:
32
- - 2
33
32
  - 3
34
- - 5
35
- version: 2.3.5
33
+ - 0
34
+ - 3
35
+ version: 3.0.3
36
36
  type: :runtime
37
37
  version_requirements: *id001
38
38
  - !ruby/object:Gem::Dependency