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 +4 -4
- data/lib/generators/templates/view_model_template.rb +1 -1
- data/lib/generators/view_model_generator.rb +2 -2
- data/lib/tasks/share/app/{view_model/view_model.rb → view_models/view_model_base.rb} +1 -1
- data/lib/tasks/view_model_tasks.rake +1 -1
- data/lib/view_model/rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4d614e295c82bcf39b18538594fc67723242b2c3
|
4
|
+
data.tar.gz: ef333f1185ac753a205750c591f564e845bc9e0f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1afa329d617f0bb15b9d1211780cef9b937519994b27f7724493ca2c91d929da9848e628578e7c0e0c2b794c9381a1f0ee9acd6ae547b933267d9fddb470a0ca
|
7
|
+
data.tar.gz: d337af5efdf6f944b795511870a6fa5399523319f9b7434b486c6a09b71301ebbb61b55b47f9affd54472533bbeeab19b0616da2cbc31598e36b61e9ccf1c537
|
@@ -1,2 +1,2 @@
|
|
1
|
-
class -classname- <
|
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/
|
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/
|
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
|
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.
|
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/
|
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
|