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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e3fedeb1a64918d6d9087c0ead82625292037df190077f762516c55057db2dbf
4
- data.tar.gz: 347848a3cb5a74f3c621144abdd54294bfbaabc09e60e19d46d7a2f5123511a1
3
+ metadata.gz: df872686d80984872a7b0ae1a0dc802cff819f13e760c42f078d02c42406a03f
4
+ data.tar.gz: c4cc4a6d4ee405a2679eb25d88ec98642933faf925a8b139f27a6b68a70527e1
5
5
  SHA512:
6
- metadata.gz: 23caa55515ec0ecd3144b4fbf1ce387e297a071f6e3d34ee6525c75a1a880d99e21df904581f6fa4775fc770b757550a05ea8e78ba3869da3c9c72360b8597d2
7
- data.tar.gz: 3e3f60e7b83ba806c55be02793430f1404857ecb30e89dca6929917ae1fb67b382e8a2dfe37fc0f143c7acce2d76b747411dd2c916f1b32a0a9aeba851345535
6
+ metadata.gz: '0291b3db421706474f8dd314d73438d8e31ec90782df3c4229947580c23f0dfbe9f7dad0f9019e0cdcea7fd66edc36901ab0de9cfbb14b6aa4385fe8e541ae25'
7
+ data.tar.gz: f3d677ee28e4cce361334b16aabd9bca794dfc8f88bd550f339b405f3a9dad7d0076cc21f59b70da14d1596aef889dc1169f050e8eabbf0386cd3c8eca2a169f
@@ -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("../../lib", __FILE__)
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
@@ -1,3 +1,3 @@
1
1
  module Librails
2
- VERSION = "1.1.4"
2
+ VERSION = "1.1.6"
3
3
  end
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
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-07 00:00:00.000000000 Z
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