view_model-rails 0.0.2 → 0.0.3

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: 4d614e295c82bcf39b18538594fc67723242b2c3
4
- data.tar.gz: ef333f1185ac753a205750c591f564e845bc9e0f
3
+ metadata.gz: 6a17716b103d05b3002a3050ffb8cc54fe76f536
4
+ data.tar.gz: bc10eae38b230f28786707aa265f7736e557e21d
5
5
  SHA512:
6
- metadata.gz: 1afa329d617f0bb15b9d1211780cef9b937519994b27f7724493ca2c91d929da9848e628578e7c0e0c2b794c9381a1f0ee9acd6ae547b933267d9fddb470a0ca
7
- data.tar.gz: d337af5efdf6f944b795511870a6fa5399523319f9b7434b486c6a09b71301ebbb61b55b47f9affd54472533bbeeab19b0616da2cbc31598e36b61e9ccf1c537
6
+ metadata.gz: 2148ce71069c7acc040588983590eb6427a6537c8f18e52ec80745461a4f2a5e9e72ad2ff6fd0d127f1b1cb57ff3c0c140b1bcad30aaa7109a2ab078446f41f9
7
+ data.tar.gz: ae88319fff30b8aaf9af5f84f94b63e11b84680791f7e00416f6f60cd186b6f83741ea75e0f54034908da549eb6d86d2ea35419edff1bbb4a96d4418cb3763db
@@ -1,2 +1,2 @@
1
- class -classname- < ViewModelBase
1
+ class -classname- < AbstractViewModel
2
2
  end
@@ -15,7 +15,7 @@ class ViewModelGenerator < Rails::Generators::NamedBase
15
15
  replace_class_name path
16
16
  end
17
17
 
18
- def create_presenter_test_file
18
+ def create_view_model_test_file
19
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}"
@@ -2,5 +2,5 @@
2
2
 
3
3
  require 'view_model'
4
4
 
5
- class ViewModelBase < ViewModel::Base
5
+ class AbstractViewModel < 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_models/view_model_base.rb'
12
+ copy_from_template 'app/view_models/abstract_view_model.rb'
13
13
  end
14
14
  end
@@ -1,5 +1,5 @@
1
1
  module ViewModel
2
2
  module Rails
3
- VERSION = '0.0.2'
3
+ VERSION = '0.0.3'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: view_model-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andreas Busold
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-18 00:00:00.000000000 Z
11
+ date: 2015-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: view_model
@@ -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_models/view_model_base.rb
88
+ - lib/tasks/share/app/view_models/abstract_view_model.rb
89
89
  - lib/tasks/view_model_tasks.rake
90
90
  - lib/view_model-rails.rb
91
91
  - lib/view_model/rails/engine.rb