rails-domino 0.2.8 → 0.2.9.1

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: 4a89a8cc5a58c6267e697b9bab148e0433e3c7e2bb8a59aea1f898edc3cb7709
4
- data.tar.gz: e1dd4c34b4fd6c13ebc1d1281b20f42bb0dda46aee3fea37765d989a0737e375
3
+ metadata.gz: f051893c17c7d60139d794dbd423e385d39253a917c606ef58d740ad2dceb02d
4
+ data.tar.gz: '0319ae33ac061847b3e40e70153e27738983f9c332c125e5584f29671655bfc5'
5
5
  SHA512:
6
- metadata.gz: fcc429d3542e4662687f1fe9f067b665c4442c47934c0f3a763b4a0c969edacd1c48ac40117cba6fc3ee2c145882ea40f85d2d8f736fb9955846f361d999e5c5
7
- data.tar.gz: 15508023f770167c18caa07f9d752f1e59f62823f741b83a724e0371d27a11248cf2991bb644f64f4db98328cbd4a1c01f3c511f6819c61c1dc97ec4e006329c
6
+ metadata.gz: e93880ccaa2572aade5ecea504e0dacc6c0d50185a2dfb01299995e123581fbd57c9950a8fbb8b0f1dd50eb60e2c64a2e9511add1af3cbf21c610384df063e69
7
+ data.tar.gz: 328eb38658e11ba8626b5d4ddaffe71f7804d2fe4b79b0cb530c07554a89fabce909624d1e1464ab0d76bada8961283264277ba3f7472e10ba8cc83a08820ff0
@@ -51,7 +51,7 @@ module Domino
51
51
  def generate_file(type) # rubocop:disable Metrics/MethodLength
52
52
  require "erb"
53
53
 
54
- template_path = File.expand_path("../generators/domino/templates/#{type}.rb.tt", __FILE__)
54
+ template_path = File.expand_path("../../generators/domino/templates/#{type}.rb.tt", __FILE__)
55
55
  raise "Missing template: #{template_path}" unless File.exist?(template_path)
56
56
 
57
57
  content = ERB.new(File.read(template_path)).result(binding)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Domino
4
- VERSION = "0.2.8"
4
+ VERSION = "0.2.9.1"
5
5
  end
@@ -15,7 +15,8 @@ class DominoGenerator < Rails::Generators::NamedBase # rubocop:disable Style/Doc
15
15
  @model_name = class_name
16
16
  @file_name = file_name
17
17
  @plural_file_name = file_name.pluralize
18
- @fields = attributes.map { |a| a.split(":").first }.reject { |f| f == "id" }
18
+ # @fields = attributes.map { |a| a.split(":").first }.reject { |f| f == "id" }
19
+ @fields = attributes.map(&:name).reject { |f| f == "id" }
19
20
  end
20
21
 
21
22
  def create_model
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-domino
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8
4
+ version: 0.2.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - kiebor81