virtus 0.5.4 → 0.5.5
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.
- data/Gemfile.devtools +42 -26
- data/Rakefile +1 -1
- data/config/flay.yml +2 -2
- data/config/flog.yml +1 -1
- data/config/{site.reek → reek.yml} +0 -0
- data/lib/virtus/version.rb +1 -1
- data/spec/shared/idempotent_method_behaviour.rb +1 -1
- data/spec/unit/virtus/options/accept_options_spec.rb +13 -13
- data/virtus.gemspec +1 -1
- metadata +5 -5
data/Gemfile.devtools
CHANGED
@@ -1,44 +1,60 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
1
3
|
group :development do
|
2
|
-
gem 'rake',
|
3
|
-
gem 'rspec',
|
4
|
-
gem 'yard',
|
4
|
+
gem 'rake', '~> 10.0.4'
|
5
|
+
gem 'rspec', '~> 2.13.0'
|
6
|
+
gem 'yard', '~> 0.8.6.1'
|
7
|
+
end
|
8
|
+
|
9
|
+
group :yard do
|
10
|
+
gem 'kramdown', '~> 1.0.1'
|
5
11
|
end
|
6
12
|
|
7
13
|
group :guard do
|
8
|
-
gem 'guard', '~> 1.
|
14
|
+
gem 'guard', '~> 1.8.0'
|
9
15
|
gem 'guard-bundler', '~> 1.0.0'
|
10
|
-
gem 'guard-rspec', '~> 2.
|
11
|
-
gem 'rb-inotify', :git => 'https://github.com/mbj/rb-inotify'
|
12
|
-
end
|
16
|
+
gem 'guard-rspec', '~> 2.5.4'
|
13
17
|
|
14
|
-
|
15
|
-
gem '
|
16
|
-
|
18
|
+
# file system change event handling
|
19
|
+
gem 'listen', '~> 1.0.2'
|
20
|
+
gem 'rb-fchange', '~> 0.0.6', :require => false
|
21
|
+
gem 'rb-fsevent', '~> 0.9.3', :require => false
|
22
|
+
gem 'rb-inotify', '~> 0.9.0', :require => false
|
17
23
|
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
24
|
+
# notification handling
|
25
|
+
gem 'libnotify', '~> 0.8.0', :require => false
|
26
|
+
gem 'rb-notifu', '~> 0.0.4', :require => false
|
27
|
+
gem 'terminal-notifier-guard', '~> 1.5.3', :require => false
|
22
28
|
end
|
23
29
|
|
24
30
|
group :metrics do
|
25
|
-
gem '
|
26
|
-
gem '
|
27
|
-
gem '
|
28
|
-
gem '
|
29
|
-
gem '
|
30
|
-
gem '
|
31
|
-
|
32
|
-
|
33
|
-
|
31
|
+
gem 'backports', '~> 3.3', '>= 3.3.0'
|
32
|
+
gem 'coveralls', '~> 0.6.6'
|
33
|
+
gem 'flay', '~> 2.2.0'
|
34
|
+
gem 'flog', '~> 4.0.0'
|
35
|
+
gem 'reek', '~> 1.3.1', :git => 'https://github.com/troessner/reek.git'
|
36
|
+
gem 'simplecov', '~> 0.7.1'
|
37
|
+
gem 'yardstick', '~> 0.9.6'
|
38
|
+
|
39
|
+
platforms :ruby_19 do
|
34
40
|
gem 'yard-spellcheck', '~> 0.1.5'
|
35
41
|
end
|
36
42
|
|
37
|
-
platforms :mri_19 do
|
38
|
-
gem '
|
43
|
+
platforms :mri_19, :rbx do
|
44
|
+
gem 'mutant', '~> 0.2.20'
|
39
45
|
end
|
40
46
|
|
41
47
|
platforms :rbx do
|
42
|
-
gem 'pelusa', '~> 0.2.
|
48
|
+
gem 'pelusa', '~> 0.2.2'
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
group :benchmarks do
|
53
|
+
gem 'rbench', '~> 0.2.3'
|
54
|
+
end
|
55
|
+
|
56
|
+
platform :jruby do
|
57
|
+
group :jruby do
|
58
|
+
gem 'jruby-openssl', '~> 0.8.5'
|
43
59
|
end
|
44
60
|
end
|
data/Rakefile
CHANGED
data/config/flay.yml
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
---
|
2
|
-
threshold:
|
3
|
-
total_score:
|
2
|
+
threshold: 18
|
3
|
+
total_score: 340
|
data/config/flog.yml
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
---
|
2
|
-
threshold:
|
2
|
+
threshold: 18.2
|
File without changes
|
data/lib/virtus/version.rb
CHANGED
@@ -1,24 +1,24 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
3
|
describe Virtus::Options, '#accept_options' do
|
4
|
-
|
5
|
-
|
6
|
-
|
4
|
+
let!(:object) do
|
5
|
+
Class.new do
|
6
|
+
extend DescendantsTracker
|
7
|
+
extend Virtus::Options
|
8
|
+
end
|
7
9
|
end
|
10
|
+
let!(:object_without_options) { object.dup }
|
11
|
+
let(:descendant) { Class.new(object) }
|
12
|
+
let(:new_option) { :width }
|
8
13
|
|
9
|
-
|
10
|
-
let(:descendant) { Class.new(object) }
|
11
|
-
let(:new_option) { :width }
|
12
|
-
|
13
|
-
specify { object.should respond_to(:accept_options) }
|
14
|
-
specify { descendant.should respond_to(:accept_options) }
|
15
|
-
|
16
|
-
before :all do
|
17
|
-
object.accepted_options.should_not include(new_option)
|
18
|
-
descendant.accepted_options.should_not include(new_option)
|
14
|
+
before do
|
19
15
|
object.accept_options(new_option)
|
20
16
|
end
|
21
17
|
|
18
|
+
it 'does not have accepted options by default' do
|
19
|
+
object_without_options.accepted_options.should_not include(new_option)
|
20
|
+
end
|
21
|
+
|
22
22
|
it 'sets new accepted options on itself' do
|
23
23
|
object.accepted_options.should include(new_option)
|
24
24
|
end
|
data/virtus.gemspec
CHANGED
@@ -16,6 +16,6 @@ Gem::Specification.new do |gem|
|
|
16
16
|
gem.test_files = `git ls-files -- {spec}/*`.split("\n")
|
17
17
|
gem.extra_rdoc_files = %w[LICENSE README.md TODO]
|
18
18
|
|
19
|
-
gem.add_dependency('backports', '~>
|
19
|
+
gem.add_dependency('backports', '~> 3.3')
|
20
20
|
gem.add_dependency('descendants_tracker', '~> 0.0.1')
|
21
21
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: virtus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.5
|
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:
|
12
|
+
date: 2013-05-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: backports
|
@@ -18,7 +18,7 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version:
|
21
|
+
version: '3.3'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ~>
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
29
|
+
version: '3.3'
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: descendants_tracker
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
@@ -70,8 +70,8 @@ files:
|
|
70
70
|
- config/flay.yml
|
71
71
|
- config/flog.yml
|
72
72
|
- config/mutant.yml
|
73
|
+
- config/reek.yml
|
73
74
|
- config/roodi.yml
|
74
|
-
- config/site.reek
|
75
75
|
- config/yardstick.yml
|
76
76
|
- lib/virtus.rb
|
77
77
|
- lib/virtus/attribute.rb
|