formify 0.2.0 → 0.2.1

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
  SHA256:
3
- metadata.gz: 9dba2f4664420081d29795d0612aab59914a989104b1d50f21aee809486dc17d
4
- data.tar.gz: 813b1b947ab5411c98c381bab19bf2b9a79f9850ab15491ffe0776e0ade65681
3
+ metadata.gz: 90fcfde040c229acd57dbd5efcaf24522560be1b9ee67a7d165d0dbf3802d253
4
+ data.tar.gz: 44fa8d83fe094e1d09a21649df88099aedea5ce871068eac57e19d0d78bb5a1a
5
5
  SHA512:
6
- metadata.gz: 066a765d4730033fcf5f1f05837118c60b67d5df772be750e445c590dd9ce759c10191a8da45af38bf4dee2eaa8269c437185b40889ae83dd135fb4f2030f6ac
7
- data.tar.gz: 39bc7a38f8b17a8afdd8d7540b626ef7e6aa0a5969d61eff121f1abe54405c374062cf195fc822144a9e4a1091465ea66849be71306a96ba5ca9a95d528a2f85
6
+ metadata.gz: 83ff3171f24e232fb3bfefe7449cba76dabe52e42afb0bae9f53546aaff4818e3cdd125b292ecffdd18c2fbd94ca2bb9e170c36452394694dd54f6f7e58a921f
7
+ data.tar.gz: 1ec7fac90735e9e60a080dd518f950daf9c255f7643f3803f936209f1bd7d1875dcd1083aee515f05d28d58301151b147151c2e02f7b511ad0db6c336b3d675c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- formify (0.2.0)
4
+ formify (0.2.1)
5
5
  resonad
6
6
 
7
7
  GEM
@@ -1,3 +1,3 @@
1
1
  module Formify
2
- VERSION = '0.2.0'.freeze
2
+ VERSION = '0.2.1'.freeze
3
3
  end
@@ -1,15 +1,15 @@
1
1
  require 'rails/generators/named_base'
2
2
 
3
3
  class FormGenerator < Rails::Generators::NamedBase
4
- source_root File.expand_path('../templates', __FILE__)
4
+ source_root File.expand_path('templates', __dir__)
5
5
  # check_class_collision
6
6
 
7
7
  def generate_form
8
- template "form.rb", File.join("app/lib/forms", class_path, "#{file_name}.rb")
8
+ template 'form.rb', File.join('app/lib/forms', class_path, "#{file_name}.rb")
9
9
  end
10
10
 
11
11
  def generate_form_spec
12
- template "form_spec.rb", File.join("spec/lib/forms", class_path, "#{file_name}_spec.rb")
12
+ template 'form_spec.rb', File.join('spec/lib/forms', class_path, "#{file_name}_spec.rb")
13
13
  end
14
14
 
15
15
  private
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: formify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Jackson