rails_services 1.1.2 → 1.1.3
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 +4 -4
- data/CHANGELOG.md +22 -1
- data/README.md +2 -1
- data/lib/generators/rails_services/templates/base_service_unit_test.rb.erb +1 -1
- data/lib/rails_services/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e3fe343adaad795fb7f453ab2c090689efb39f80
|
|
4
|
+
data.tar.gz: b22a7f31227a1ed96b763ce420e315d7d1f6e5ca
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 10364abcef2b2def89dd724f7bbf6b687b2e6f14556ed28ec97fa489293b3a0962cc9d3366d5eeccfff75046ed14713bc3a7cfbed424b1cc3fae4ff8c526e169
|
|
7
|
+
data.tar.gz: 51d82ba5ab02a6257ed228a0bdd016e7f686fc9203960fec2dc52957993eb406c4990971f9012ee918e928e96d605db6c45a8480f7d2a6e6d604aa4004ef695e
|
data/CHANGELOG.md
CHANGED
|
@@ -1 +1,22 @@
|
|
|
1
|
-
|
|
1
|
+
# Change Log
|
|
2
|
+
All notable changes to this project will be documented in this file.
|
|
3
|
+
This project adheres to [Semantic Versioning](http://semver.org/).
|
|
4
|
+
|
|
5
|
+
## [1.1.3] - 2016-05-03
|
|
6
|
+
### Fixed
|
|
7
|
+
- Fixed the name of the class in the Minitest test class
|
|
8
|
+
|
|
9
|
+
## [1.1.2] - 2016-05-02
|
|
10
|
+
### Added
|
|
11
|
+
- TestUnit (Minitest) test files added
|
|
12
|
+
|
|
13
|
+
### Fixed
|
|
14
|
+
- Correctly determine testing framework of enclosing Rails app
|
|
15
|
+
|
|
16
|
+
## [1.0.0] - 2014-07-26
|
|
17
|
+
### Added
|
|
18
|
+
- Generate a service class and an attendant spec file
|
|
19
|
+
|
|
20
|
+
[1.1.3]: https://github.com/imageaid/rails_service_generator/compare/v1.1.2...v1.1.3
|
|
21
|
+
[1.1.2]: https://github.com/imageaid/rails_service_generator/compare/v1.0.0...v1.1.2
|
|
22
|
+
[1.0.0]: https://github.com/imageaid/rails_service_generator/tree/v1.0.0
|
data/README.md
CHANGED
|
@@ -36,10 +36,11 @@ Sub-folders are optional but, at this time, you may only use one sub-folder. I g
|
|
|
36
36
|
|
|
37
37
|
## Result
|
|
38
38
|
|
|
39
|
-
Two files are created:
|
|
39
|
+
Two files are created (spec or test based on your `test_framework`):
|
|
40
40
|
|
|
41
41
|
+ app/services/model|controller/[sub-folder]/thing.rb
|
|
42
42
|
+ spec/services/model|controller/[sub-folder]/thing_spec.rb
|
|
43
|
+
+ test/services/model|controller/[sub-folder]/thing_test.rb
|
|
43
44
|
|
|
44
45
|
## Contributing
|
|
45
46
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<%= "require 'test_helper'" %>
|
|
2
2
|
|
|
3
|
-
<%= "class #{
|
|
3
|
+
<%= "class #{class_name}Test < ActiveSupport::TestCase" %>
|
|
4
4
|
<%= 'def test_some_stuff' %>
|
|
5
5
|
<%= "assert (1 == 2), 'You best test yourself before you wreck yourself!'" %>
|
|
6
6
|
<%= 'end' %>
|