tableling-rails 0.0.19 → 0.0.20
Sign up to get free protection for your applications and to get access to all the features.
data/lib/tableling-rails/view.rb
CHANGED
@@ -111,7 +111,7 @@ module Tableling
|
|
111
111
|
end
|
112
112
|
|
113
113
|
def serialize_record record
|
114
|
-
@serialize_record_block ? @serialize_record_block.call(record) : @fields.inject({}){ |memo,f| memo[f.
|
114
|
+
@serialize_record_block ? @serialize_record_block.call(record) : @fields.inject({}){ |memo,f| memo[f.working_name] = f.extract(record); memo }
|
115
115
|
end
|
116
116
|
end
|
117
117
|
end
|
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|
@@ -50,3 +50,10 @@ Connecting to database specified by database.yml
|
|
50
50
|
[1m[35m (0.8ms)[0m CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255) NOT NULL, "author" varchar(255) NOT NULL, "year" integer NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
51
51
|
[1m[36m (0.7ms)[0m [1mCREATE UNIQUE INDEX "index_books_on_title" ON "books" ("title")[0m
|
52
52
|
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
53
|
+
Connecting to database specified by database.yml
|
54
|
+
[1m[36m (2.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
55
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
56
|
+
[1m[36m (1.0ms)[0m [1mDROP TABLE "books"[0m
|
57
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255) NOT NULL, "author" varchar(255) NOT NULL, "year" integer NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
58
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "index_books_on_title" ON "books" ("title")[0m
|
59
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
data/spec/dummy/log/test.log
CHANGED
@@ -21,3 +21,10 @@ Migrating to CreateBooks (20121008115302)
|
|
21
21
|
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
22
22
|
[1m[35m (0.0ms)[0m begin transaction
|
23
23
|
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
24
|
+
Connecting to database specified by database.yml
|
25
|
+
[1m[36m (1.3ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
26
|
+
Migrating to CreateBooks (20121008115302)
|
27
|
+
[1m[35m (0.1ms)[0m begin transaction
|
28
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
29
|
+
[1m[35m (0.0ms)[0m begin transaction
|
30
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tableling-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.20
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-07-
|
12
|
+
date: 2013-07-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -112,7 +112,8 @@ files:
|
|
112
112
|
- spec/spec_helper.rb
|
113
113
|
- spec/version_spec.rb
|
114
114
|
homepage: https://github.com/AlphaHydrae/tableling-rails
|
115
|
-
licenses:
|
115
|
+
licenses:
|
116
|
+
- MIT
|
116
117
|
post_install_message:
|
117
118
|
rdoc_options: []
|
118
119
|
require_paths:
|
@@ -125,7 +126,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
125
126
|
version: '0'
|
126
127
|
segments:
|
127
128
|
- 0
|
128
|
-
hash:
|
129
|
+
hash: 1244003446696768491
|
129
130
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
130
131
|
none: false
|
131
132
|
requirements:
|
@@ -134,7 +135,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
134
135
|
version: '0'
|
135
136
|
segments:
|
136
137
|
- 0
|
137
|
-
hash:
|
138
|
+
hash: 1244003446696768491
|
138
139
|
requirements: []
|
139
140
|
rubyforge_project:
|
140
141
|
rubygems_version: 1.8.25
|