use_case 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/Gemfile +3 -3
- data/Rakefile +0 -9
- data/Readme.md +2 -2
- data/lib/use_case/version.rb +1 -1
- data/test.rb +1 -1
- data/test/sample_use_case.rb +1 -1
- data/test/test_helper.rb +4 -4
- metadata +3 -3
- data/Gemfile.lock +0 -61
data/.gitignore
CHANGED
data/Gemfile
CHANGED
@@ -2,12 +2,12 @@ source "http://rubygems.org"
|
|
2
2
|
gemspec
|
3
3
|
|
4
4
|
# Only used for tests
|
5
|
-
gem "virtus"
|
5
|
+
gem "virtus"
|
6
6
|
|
7
7
|
# Validations are optional, but required in order to test UseCase
|
8
8
|
# itself
|
9
9
|
gem "activemodel"
|
10
10
|
|
11
11
|
gem "ci_reporter"
|
12
|
-
gem "
|
13
|
-
gem "simplecov"
|
12
|
+
gem "simplecov"
|
13
|
+
gem "simplecov-rcov"
|
data/Rakefile
CHANGED
@@ -6,13 +6,4 @@ Rake::TestTask.new(:test) do |test|
|
|
6
6
|
test.pattern = "test/**/*_test.rb"
|
7
7
|
end
|
8
8
|
|
9
|
-
if RUBY_VERSION < "1.9"
|
10
|
-
require "rcov/rcovtask"
|
11
|
-
Rcov::RcovTask.new do |t|
|
12
|
-
t.libs << "test"
|
13
|
-
t.test_files = FileList["test/**/*_test.rb"]
|
14
|
-
t.rcov_opts += %w{--exclude gems}
|
15
|
-
end
|
16
|
-
end
|
17
|
-
|
18
9
|
task :default => :test
|
data/Readme.md
CHANGED
@@ -92,7 +92,7 @@ require "virtus"
|
|
92
92
|
# provided and project is not. This is the only class that directly touches
|
93
93
|
# classes from the Rails application.
|
94
94
|
class NewRepositoryInput
|
95
|
-
include Virtus
|
95
|
+
include Virtus.model
|
96
96
|
attribute :name, String
|
97
97
|
attribute :description, String
|
98
98
|
attribute :project, Project
|
@@ -343,7 +343,7 @@ UserValidator = UseCase::Validator.define do
|
|
343
343
|
end
|
344
344
|
|
345
345
|
class NewUserInput
|
346
|
-
include Virtus
|
346
|
+
include Virtus.model
|
347
347
|
attribute :name, String
|
348
348
|
end
|
349
349
|
|
data/lib/use_case/version.rb
CHANGED
data/test.rb
CHANGED
data/test/sample_use_case.rb
CHANGED
data/test/test_helper.rb
CHANGED
@@ -22,10 +22,10 @@
|
|
22
22
|
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
23
23
|
# SOFTWARE.
|
24
24
|
#++
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
25
|
+
require "simplecov"
|
26
|
+
require "simplecov-rcov"
|
27
|
+
SimpleCov.formatter = SimpleCov::Formatter::RcovFormatter
|
28
|
+
SimpleCov.start
|
29
29
|
|
30
30
|
require "bundler/setup"
|
31
31
|
require "minitest/autorun"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: use_case
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-10-
|
12
|
+
date: 2013-10-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: minitest
|
@@ -51,7 +51,6 @@ extra_rdoc_files: []
|
|
51
51
|
files:
|
52
52
|
- .gitignore
|
53
53
|
- Gemfile
|
54
|
-
- Gemfile.lock
|
55
54
|
- LICENSE
|
56
55
|
- Rakefile
|
57
56
|
- Readme.md
|
@@ -96,3 +95,4 @@ test_files:
|
|
96
95
|
- test/use_case/outcome_test.rb
|
97
96
|
- test/use_case/validator_test.rb
|
98
97
|
- test/use_case_test.rb
|
98
|
+
has_rdoc:
|
data/Gemfile.lock
DELETED
@@ -1,61 +0,0 @@
|
|
1
|
-
GIT
|
2
|
-
remote: https://github.com/solnic/virtus.git
|
3
|
-
revision: 97a161f19d20a961094112464075c284d68d35e4
|
4
|
-
specs:
|
5
|
-
virtus (1.0.0.beta1)
|
6
|
-
abstract_type (~> 0.0.5)
|
7
|
-
adamantium (~> 0.0.7)
|
8
|
-
backports (~> 3.0, >= 3.1.0)
|
9
|
-
coercible (~> 0.2)
|
10
|
-
descendants_tracker (~> 0.0.1)
|
11
|
-
|
12
|
-
PATH
|
13
|
-
remote: .
|
14
|
-
specs:
|
15
|
-
use_case (1.0.1)
|
16
|
-
|
17
|
-
GEM
|
18
|
-
remote: http://rubygems.org/
|
19
|
-
specs:
|
20
|
-
abstract_type (0.0.5)
|
21
|
-
backports (~> 3.0, >= 3.0.3)
|
22
|
-
activemodel (3.2.12)
|
23
|
-
activesupport (= 3.2.12)
|
24
|
-
builder (~> 3.0.0)
|
25
|
-
activesupport (3.2.12)
|
26
|
-
i18n (~> 0.6)
|
27
|
-
multi_json (~> 1.0)
|
28
|
-
adamantium (0.0.7)
|
29
|
-
backports (~> 3.0, >= 3.0.3)
|
30
|
-
ice_nine (~> 0.7.0)
|
31
|
-
backports (3.1.1)
|
32
|
-
builder (3.0.4)
|
33
|
-
ci_reporter (1.9.0)
|
34
|
-
builder (>= 2.1.2)
|
35
|
-
coercible (0.2.0)
|
36
|
-
backports (~> 3.0, >= 3.1.0)
|
37
|
-
descendants_tracker (~> 0.0.1)
|
38
|
-
descendants_tracker (0.0.1)
|
39
|
-
i18n (0.6.4)
|
40
|
-
ice_nine (0.7.0)
|
41
|
-
minitest (4.7.0)
|
42
|
-
multi_json (1.6.1)
|
43
|
-
rake (10.0.3)
|
44
|
-
rcov (1.0.0)
|
45
|
-
simplecov (0.7.1)
|
46
|
-
multi_json (~> 1.0)
|
47
|
-
simplecov-html (~> 0.7.1)
|
48
|
-
simplecov-html (0.7.1)
|
49
|
-
|
50
|
-
PLATFORMS
|
51
|
-
ruby
|
52
|
-
|
53
|
-
DEPENDENCIES
|
54
|
-
activemodel
|
55
|
-
ci_reporter
|
56
|
-
minitest (~> 4)
|
57
|
-
rake
|
58
|
-
rcov
|
59
|
-
simplecov
|
60
|
-
use_case!
|
61
|
-
virtus!
|