virtus 0.5.4 → 0.5.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,44 +1,60 @@
1
+ # encoding: utf-8
2
+
1
3
  group :development do
2
- gem 'rake', '~> 10.0'
3
- gem 'rspec', '~> 2.12.0'
4
- gem 'yard', '~> 0.8.3'
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.5.4'
14
+ gem 'guard', '~> 1.8.0'
9
15
  gem 'guard-bundler', '~> 1.0.0'
10
- gem 'guard-rspec', '~> 2.1.1'
11
- gem 'rb-inotify', :git => 'https://github.com/mbj/rb-inotify'
12
- end
16
+ gem 'guard-rspec', '~> 2.5.4'
13
17
 
14
- group :benchmarks do
15
- gem 'rbench', '~> 0.2.3'
16
- end
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
- platform :jruby do
19
- group :jruby do
20
- gem 'jruby-openssl', '~> 0.7.4'
21
- end
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 'flay', '~> 1.4.2'
26
- gem 'flog', '~> 2.5.1'
27
- gem 'reek', '~> 1.2.8', :git => 'https://github.com/dkubb/reek.git'
28
- gem 'roodi', '~> 2.1.0'
29
- gem 'yardstick', '~> 0.8.0'
30
- gem 'mutant', '~> 0.2.6'
31
-
32
- platforms :ruby_18, :ruby_19 do
33
- # this indirectly depends on ffi which does not build on ruby-head
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 'simplecov', '~> 0.7'
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.1'
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
@@ -2,4 +2,4 @@
2
2
 
3
3
  require 'devtools'
4
4
 
5
- Devtools.init
5
+ Devtools.init_rake_tasks
@@ -1,3 +1,3 @@
1
1
  ---
2
- threshold: 23
3
- total_score: 499
2
+ threshold: 18
3
+ total_score: 340
@@ -1,2 +1,2 @@
1
1
  ---
2
- threshold: 22.2
2
+ threshold: 18.2
File without changes
@@ -1,3 +1,3 @@
1
1
  module Virtus
2
- VERSION = '0.5.4'
2
+ VERSION = '0.5.5'
3
3
  end
@@ -1,5 +1,5 @@
1
1
  shared_examples_for 'an idempotent method' do
2
2
  it 'is idempotent' do
3
- should equal(instance_eval(&self.class.subject))
3
+ should equal(subject)
4
4
  end
5
5
  end
@@ -1,24 +1,24 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  describe Virtus::Options, '#accept_options' do
4
- class Model
5
- extend DescendantsTracker
6
- extend Virtus::Options
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
- let(:object) { Model }
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
@@ -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', '~> 2.6.1')
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
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: 2012-12-20 00:00:00.000000000 Z
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: 2.6.1
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: 2.6.1
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