librails 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/librails/application_helper.rb +3 -0
- data/app/models/search_param.rb +13 -0
- data/lib/librails/version.rb +1 -1
- data/test/dummy/log/test.log +12 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8ebfc03ac1f2aa9c344261dc06f3c2e8cb2809ca
|
4
|
+
data.tar.gz: 039b314f73b710f28700073a8a2c68db9aff34ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b116912e382f7adb3a0a27cb5de3732d960aba2a4dcea63a042eed5abb2e25baac325e1ba0980b28467c8f30bb9b9cfb25aaa9bc2d125d42f6708bbc8f1148d5
|
7
|
+
data.tar.gz: fdc48329a657500b01274c7850a9d193fdfce26873917b2271b5ee6217a13af972a28bfcfc1f0a950e3b32f3882e0760c6dd2ce8fb70d0afa555abf1b1a35b4e
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
class SearchParam
|
3
|
+
def initialize(id, label = nil, value = nil)
|
4
|
+
# 基本はIDとlabel。valueは特別な値を紐付けたい場合にのみ使用する。
|
5
|
+
@id = id
|
6
|
+
@label = label
|
7
|
+
if @label.nil?
|
8
|
+
@label = @id
|
9
|
+
end
|
10
|
+
@value = value
|
11
|
+
end
|
12
|
+
attr_accessor :id, :label, :value
|
13
|
+
end
|
data/lib/librails/version.rb
CHANGED
data/test/dummy/log/test.log
CHANGED
@@ -38,5 +38,17 @@ LibrailsTest: test_hello
|
|
38
38
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
39
39
|
------------------------
|
40
40
|
LibrailsTest: test_hello
|
41
|
+
------------------------
|
42
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
43
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
44
|
+
[1m[36m (1.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
45
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
46
|
+
[1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
47
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
48
|
+
[1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
49
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
50
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
51
|
+
------------------------
|
52
|
+
LibrailsTest: test_hello
|
41
53
|
------------------------
|
42
54
|
[1m[35m (0.1ms)[0m rollback transaction
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: librails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- src
|
@@ -52,6 +52,7 @@ files:
|
|
52
52
|
- app/assets/stylesheets/librails/application.css
|
53
53
|
- app/controllers/librails/application_controller.rb
|
54
54
|
- app/helpers/librails/application_helper.rb
|
55
|
+
- app/models/search_param.rb
|
55
56
|
- app/views/layouts/librails/application.html.erb
|
56
57
|
- config/routes.rb
|
57
58
|
- lib/librails.rb
|