view_model-rails 0.0.1 → 0.0.2

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
  SHA1:
3
- metadata.gz: dd3afc860e0238825e05f729a1985375e8bcc692
4
- data.tar.gz: b954b58375a5d36f465bfa94a96e542cbc8275c5
3
+ metadata.gz: 4d614e295c82bcf39b18538594fc67723242b2c3
4
+ data.tar.gz: ef333f1185ac753a205750c591f564e845bc9e0f
5
5
  SHA512:
6
- metadata.gz: e202da2c368afeca11bf07056309afd48ec874083c47641456382f0a2609290be278934bf4f002da02c5d8f2b12d0488f80049a76caa1ef8ae9b393a4895b08e
7
- data.tar.gz: 3255836bf9128b9b441e4e4c938bb6f9292b6a3db104f998ed970279d67783f43155901cfa9242525a96f5a0d1c2e11f3eed97bd1b3f3e3d99ccb953e81781fc
6
+ metadata.gz: 1afa329d617f0bb15b9d1211780cef9b937519994b27f7724493ca2c91d929da9848e628578e7c0e0c2b794c9381a1f0ee9acd6ae547b933267d9fddb470a0ca
7
+ data.tar.gz: d337af5efdf6f944b795511870a6fa5399523319f9b7434b486c6a09b71301ebbb61b55b47f9affd54472533bbeeab19b0616da2cbc31598e36b61e9ccf1c537
@@ -1,2 +1,2 @@
1
- class -classname- < ViewModel
1
+ class -classname- < ViewModelBase
2
2
  end
@@ -5,7 +5,7 @@ class ViewModelGenerator < Rails::Generators::NamedBase
5
5
  source_root File.expand_path('../templates', __FILE__)
6
6
 
7
7
  def create_view_model_file
8
- path = "app/view_model/#{file_name}.rb"
8
+ path = "app/view_models/#{file_name}.rb"
9
9
 
10
10
  if FileTest.exists? path
11
11
  raise FileExistError, "This filename ist used by another view-model:#{path}"
@@ -16,7 +16,7 @@ class ViewModelGenerator < Rails::Generators::NamedBase
16
16
  end
17
17
 
18
18
  def create_presenter_test_file
19
- path = "test/view_model/#{file_name}_view_model_test.rb"
19
+ path = "test/view_models/#{file_name}_view_model_test.rb"
20
20
  if FileTest.exists?path
21
21
  raise FileExistError, "This filename ist used by another view-model test:#{path}"
22
22
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  require 'view_model'
4
4
 
5
- class ViewModel < ViewModel::Base
5
+ class ViewModelBase < ViewModel::Base
6
6
  end
@@ -9,6 +9,6 @@ namespace :'view_model' do
9
9
 
10
10
  desc 'Build application base view model'
11
11
  task :setup do
12
- copy_from_template 'app/view_model/view_model.rb'
12
+ copy_from_template 'app/view_models/view_model_base.rb'
13
13
  end
14
14
  end
@@ -1,5 +1,5 @@
1
1
  module ViewModel
2
2
  module Rails
3
- VERSION = '0.0.1'
3
+ VERSION = '0.0.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: view_model-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andreas Busold
@@ -85,7 +85,7 @@ files:
85
85
  - lib/generators/templates/view_model_template.rb
86
86
  - lib/generators/templates/view_model_test_template.rb
87
87
  - lib/generators/view_model_generator.rb
88
- - lib/tasks/share/app/view_model/view_model.rb
88
+ - lib/tasks/share/app/view_models/view_model_base.rb
89
89
  - lib/tasks/view_model_tasks.rake
90
90
  - lib/view_model-rails.rb
91
91
  - lib/view_model/rails/engine.rb