arxutils_sqlite3 0.1.54 → 0.1.55

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: 63b6c2964eb5bd59b6601706fdb9085d50353be9df04ba6b83995e1c9b617707
4
- data.tar.gz: 3c366bd4cddb2287a82ad9f184a465c9953323699108eab8849ecadb10f8f11f
3
+ metadata.gz: 5088d67aaf0d344baa38409d59917374132f161d7e3f9f24d4e947dfe83ae4ce
4
+ data.tar.gz: 405fdb8388ab606d8c2036f26966707bf05dddc498cc50ebb4730d0fcf03f73a
5
5
  SHA512:
6
- metadata.gz: b9c7c00307a6063f7254478e8879a0f883b4bb369533cb738dadbb964723cc24f7460e1684e9ae61b201567f3a13f48c8cb0e357999c7cdc99224cb9d6d9acb8
7
- data.tar.gz: 0f2c860830b7568161cede9212427412d1e9babe3426429541e425f5e032695976c2e8e91657c81f90e1ff47583f4920efadb37cb2c978da09c302d92b04aaa5
6
+ metadata.gz: 48294fc512c0ea001f5f4e2f2adba8c4e8aea126c921fcdc0e769c70fce1530cf084778b65133cd0402b8c2ca728e8bf971f364f6d7f51451785e41d8808b7e8
7
+ data.tar.gz: 8a0a987962aad35da0c289b4f716abf70f626b35ad5b5c739981240cebbab08d68f98c9ac61c4c22bd1a1b89da195abae806642a48cfd6e39e56df007c9a7bd2
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- arxutils_sqlite3 (0.1.54)
4
+ arxutils_sqlite3 (0.1.55)
5
5
  activerecord (~> 6.1)
6
6
  activesupport
7
7
  simpleoptparse
@@ -1,4 +1,4 @@
1
1
  module Arxutils_Sqlite3
2
2
  # バージョン番号
3
- VERSION = "0.1.54".freeze
3
+ VERSION = "0.1.55".freeze
4
4
  end
@@ -1,3 +1,3 @@
1
1
  class Current<%= @data[:classname_downcase] %> < ActiveRecord::Base
2
- belongs_to :<%= @data[:classname_downcase] %> , foreign_key: 'org_id'
2
+ belongs_to :<%= @data[:classname_downcase] %>, foreign_key: "org_id"
3
3
  end
@@ -1,4 +1,4 @@
1
1
  class Invalid<%= @data[:classname_downcase] %> < ActiveRecord::Base
2
- belongs_to :<%= @data[:classname_downcase] %>, foreign_key: 'org_id'
3
- belongs_to :<%= @data[:count_classname_downcase] %>, foreign_key: '<%= @data[:count_field] %>'
2
+ belongs_to :<%= @data[:classname_downcase] %>, foreign_key: "org_id"
3
+ belongs_to :<%= @data[:count_classname_downcase] %>, foreign_key: "<%= @data[:count_field] %>"
4
4
  end
@@ -1,7 +1,7 @@
1
1
  class Create<%= @data[:classname] %> < ActiveRecord::Migration[<%= @data[:ar_version] %>]
2
2
  def self.up
3
3
  create_table :<%= @data[:plural] %> do |t|
4
- <% @data[:ary].each do |x| %>
4
+ <% @data[:ary].each do |x| %>
5
5
  t.column :<%= x.name %>, :<%= x.type %>, :null => <%= x.null %>
6
6
  <% end %>
7
7
  t.timestamps null: false
@@ -2,7 +2,7 @@ class CreateCurrent<%= @data[:classname_downcase] %> < ActiveRecord::Migration[<
2
2
  def self.up
3
3
  execute <<-SQL
4
4
  CREATE VIEW current<%= @data[:plural] %> AS SELECT id as org_id,
5
- <%= @data[:ary].map{|x| x.name }.join(" , ") %>
5
+ <%= @data[:ary].map{|x| x.name }.join(" , ") %>
6
6
  FROM <%= @data[:plural] %> where not exists (select * from invalid<%= @data[:plural] %> where invalid<%= @data[:plural] %>.org_id = <%= @data[:plural] %>.id )
7
7
  SQL
8
8
  end
@@ -1,9 +1,9 @@
1
- require_relative '../lib/dbacrecord'
1
+ require_relative "../lib/dbacrecord"
2
2
 
3
3
  class Dbsetup
4
4
  def initialize(connect_time)
5
5
  @connect_time = connect_time
6
- @ct = <%= klass %>::Dbutil::Countdatetime.create( countdatetime: @connect_time )
6
+ @ct = <%= klass %>::Dbutil::Countdatetime.create(countdatetime: @connect_time)
7
7
  @hs_by_notebook = {}
8
8
  @hs_by_id = {}
9
9
  end
@@ -1,9 +1,9 @@
1
1
  class Create<%= @data[:classname] %> < ActiveRecord::Migration[<%= @data[:ar_version] %>]
2
2
  def self.up
3
3
  create_table :<%= @data[:plural] %> do |t|
4
- <% @data[:ary].each do |x| %>
4
+ <% @data[:ary].each do |x| %>
5
5
  t.column :<%= x.name %>, :<%= x.type %>, :null => <%= x.null %>
6
- <% end %>
6
+ <% end %>
7
7
  end
8
8
  end
9
9
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arxutils_sqlite3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.54
4
+ version: 0.1.55
5
5
  platform: ruby
6
6
  authors:
7
7
  - yasuo kominami