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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9b3b599439a0a84bc032236af5a5e57b4ae4a17f
4
- data.tar.gz: 1109cf1a28be35fb227e72938b4ba610b25cb36b
3
+ metadata.gz: 8ebfc03ac1f2aa9c344261dc06f3c2e8cb2809ca
4
+ data.tar.gz: 039b314f73b710f28700073a8a2c68db9aff34ab
5
5
  SHA512:
6
- metadata.gz: a0e996b452d4c45b5f0c47d2d53cfb26ab917115afc8670e96e83f9379f228d24a6eb0f46b48a8bcbfbc72a80b5aff2bcc1812eee1a2d953a9a3fb86468c845c
7
- data.tar.gz: 2e4110f2fd62e36257215349c23bf53119237428c419e9d87e1ca2e5e9e937205ade34a8ad233afef79888f68aa983873a1a93a259ccf9cbb8fb3b127333233c
6
+ metadata.gz: b116912e382f7adb3a0a27cb5de3732d960aba2a4dcea63a042eed5abb2e25baac325e1ba0980b28467c8f30bb9b9cfb25aaa9bc2d125d42f6708bbc8f1148d5
7
+ data.tar.gz: fdc48329a657500b01274c7850a9d193fdfce26873917b2271b5ee6217a13af972a28bfcfc1f0a950e3b32f3882e0760c6dd2ce8fb70d0afa555abf1b1a35b4e
@@ -1,4 +1,7 @@
1
1
  module Librails
2
2
  module ApplicationHelper
3
+ def hello3
4
+ "Hello3"
5
+ end
3
6
  end
4
7
  end
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Librails
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -38,5 +38,17 @@ LibrailsTest: test_hello
38
38
   (0.1ms) begin transaction
39
39
  ------------------------
40
40
  LibrailsTest: test_hello
41
+ ------------------------
42
+  (0.1ms) rollback transaction
43
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
44
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
45
+  (0.1ms) select sqlite_version(*)
46
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
47
+  (0.1ms) SELECT version FROM "schema_migrations"
48
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
49
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
50
+  (0.1ms) begin transaction
51
+ ------------------------
52
+ LibrailsTest: test_hello
41
53
  ------------------------
42
54
   (0.1ms) 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.2
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