librails 1.1.4 → 1.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/librails/engine.rb +1 -1
- data/lib/librails/form_param.rb +14 -0
- data/lib/librails/version.rb +1 -1
- data/lib/librails.rb +5 -5
- metadata +4 -3
- /data/{app/helpers → lib}/librails/application_helper.rb +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: df872686d80984872a7b0ae1a0dc802cff819f13e760c42f078d02c42406a03f
|
4
|
+
data.tar.gz: c4cc4a6d4ee405a2679eb25d88ec98642933faf925a8b139f27a6b68a70527e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0291b3db421706474f8dd314d73438d8e31ec90782df3c4229947580c23f0dfbe9f7dad0f9019e0cdcea7fd66edc36901ab0de9cfbb14b6aa4385fe8e541ae25'
|
7
|
+
data.tar.gz: f3d677ee28e4cce361334b16aabd9bca794dfc8f88bd550f339b405f3a9dad7d0076cc21f59b70da14d1596aef889dc1169f050e8eabbf0386cd3c8eca2a169f
|
data/lib/librails/engine.rb
CHANGED
@@ -3,7 +3,7 @@ module Librails
|
|
3
3
|
isolate_namespace Librails
|
4
4
|
|
5
5
|
# Add a load path for this specific Engine
|
6
|
-
config.autoload_paths << File.expand_path("../../
|
6
|
+
config.autoload_paths << File.expand_path("../../", __FILE__)
|
7
7
|
|
8
8
|
initializer "librails.view_helper" do |app|
|
9
9
|
ActiveSupport.on_load :action_view do
|
@@ -0,0 +1,14 @@
|
|
1
|
+
module Librails
|
2
|
+
class FormParam
|
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
|
14
|
+
end
|
data/lib/librails/version.rb
CHANGED
data/lib/librails.rb
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
require "librails/engine"
|
2
|
-
require "librails/version"
|
3
|
-
require "librails/misc_utils"
|
4
|
-
require "librails/model_utils"
|
5
|
-
require "librails/view_helper"
|
6
|
-
require "librails/settings"
|
2
|
+
# require "librails/version"
|
3
|
+
# require "librails/misc_utils"
|
4
|
+
# require "librails/model_utils"
|
5
|
+
# require "librails/view_helper"
|
6
|
+
# require "librails/settings"
|
7
7
|
|
8
8
|
module Librails
|
9
9
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: librails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- src256
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-11-
|
11
|
+
date: 2023-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -37,14 +37,15 @@ files:
|
|
37
37
|
- app/assets/config/librails_manifest.js
|
38
38
|
- app/assets/stylesheets/librails/application.css
|
39
39
|
- app/controllers/librails/application_controller.rb
|
40
|
-
- app/helpers/librails/application_helper.rb
|
41
40
|
- app/jobs/librails/application_job.rb
|
42
41
|
- app/mailers/librails/application_mailer.rb
|
43
42
|
- app/models/librails/application_record.rb
|
44
43
|
- app/views/layouts/librails/application.html.erb
|
45
44
|
- config/routes.rb
|
46
45
|
- lib/librails.rb
|
46
|
+
- lib/librails/application_helper.rb
|
47
47
|
- lib/librails/engine.rb
|
48
|
+
- lib/librails/form_param.rb
|
48
49
|
- lib/librails/misc_utils.rb
|
49
50
|
- lib/librails/model_utils.rb
|
50
51
|
- lib/librails/settings.rb
|
File without changes
|