its 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 3c9e2f01157b950b498db22e4e1df7638e5dfc87
4
+ data.tar.gz: 00670768486d490f3ad0cb1e56be32273138a620
5
+ SHA512:
6
+ metadata.gz: 173fa4eed4e4512c82c5cc93eef298a7c6d6fa09bdd9c46dee68a190f05e44055b6c8f67d55538c5cf319c55c0f90629e5b9529df30268d557bd711d6dcabccc
7
+ data.tar.gz: 6979ab31ea6e8cf4cef62f1acc7895d1bc64e5c5a7bb08d34c4812f762db40505d58ae5198f52958e20e1780ac31d296653f4fdba53e912b8c79697c6becfb12
data/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  "Its" makes testing methods with multiple arguments much easier
2
2
  ==================================================
3
3
 
4
-
5
- ![Build Status](https://secure.travis-ci.org/dnagir/its.png)
4
+ Tested on MRI Ruby 1.8.7, 1.9.2, 1.9.3, Rubinius (1.8 and 1.9) and JRuby
5
+ [![Build Status](https://secure.travis-ci.org/dnagir/its.png)](http://travis-ci.org/dnagir/its)
6
6
 
7
7
 
8
8
  Have you ever written something like this in your specs?
@@ -13,7 +13,7 @@ it "should be US currency" do
13
13
  end
14
14
 
15
15
  it "should be AU currency" do
16
- subject.currency(:us).should == 'AU dollar'
16
+ subject.currency(:au).should == 'AU dollar'
17
17
  end
18
18
 
19
19
  it "should be UK currency" do
@@ -21,7 +21,7 @@ it "should be UK currency" do
21
21
  end
22
22
  ```
23
23
 
24
- If yes, then this what you really wanted:
24
+ If yes, then this is what you really needed:
25
25
 
26
26
  ```ruby
27
27
  its(:currency, :us) { should == 'US dollar' }
@@ -29,8 +29,6 @@ its(:currency, :au) { should == 'AU dollar' }
29
29
  its(:currency, :uk) { should == 'UK pound' }
30
30
  ```
31
31
 
32
- That's what this gem is for!
33
-
34
32
  Installation and use
35
33
  ==================================================
36
34
 
data/Rakefile CHANGED
@@ -1,3 +1,4 @@
1
+ srand # JRuby bug
1
2
  require "bundler/gem_tasks"
2
3
  require "rspec/core/rake_task"
3
4
 
@@ -18,7 +18,8 @@ Gem::Specification.new do |s|
18
18
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
19
  s.require_paths = ["lib"]
20
20
 
21
- s.add_runtime_dependency "rspec-core", "~> 2.8"
21
+ s.add_runtime_dependency "rspec-core"
22
+ s.add_development_dependency "rake"
22
23
  s.add_development_dependency "rspec-mocks"
23
24
  s.add_development_dependency "rspec-expectations"
24
25
  end
data/lib/its.rb CHANGED
@@ -67,7 +67,7 @@ module Its
67
67
  # end
68
68
  #
69
69
  #
70
- # This is extraction for the RSpec Core.
70
+ # This is the extraction from the RSpec Core.
71
71
  # For reference, see:
72
72
  # - https://github.com/rspec/rspec-core/blob/7ce078e4948e8f0d1745a50bb83dd87a68b2e50e/lib/rspec/core/subject.rb#L120
73
73
  # This modifies the following behaviour:
@@ -1,3 +1,3 @@
1
1
  module Its
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,49 +1,71 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: its
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
5
- prerelease:
4
+ version: 0.2.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Dmytrii Nagirniak
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-01-13 00:00:00.000000000 Z
11
+ date: 2014-08-22 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rspec-core
16
- requirement: &70343863742980 !ruby/object:Gem::Requirement
17
- none: false
15
+ requirement: !ruby/object:Gem::Requirement
18
16
  requirements:
19
- - - ~>
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
- version: '2.8'
19
+ version: '0'
22
20
  type: :runtime
23
21
  prerelease: false
24
- version_requirements: *70343863742980
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
25
41
  - !ruby/object:Gem::Dependency
26
42
  name: rspec-mocks
27
- requirement: &70343863741980 !ruby/object:Gem::Requirement
28
- none: false
43
+ requirement: !ruby/object:Gem::Requirement
29
44
  requirements:
30
- - - ! '>='
45
+ - - ">="
31
46
  - !ruby/object:Gem::Version
32
47
  version: '0'
33
48
  type: :development
34
49
  prerelease: false
35
- version_requirements: *70343863741980
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
36
55
  - !ruby/object:Gem::Dependency
37
56
  name: rspec-expectations
38
- requirement: &70343863741000 !ruby/object:Gem::Requirement
39
- none: false
57
+ requirement: !ruby/object:Gem::Requirement
40
58
  requirements:
41
- - - ! '>='
59
+ - - ">="
42
60
  - !ruby/object:Gem::Version
43
61
  version: '0'
44
62
  type: :development
45
63
  prerelease: false
46
- version_requirements: *70343863741000
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
47
69
  description: You can write `its(:currency, :us) { should == 'US dollars' }`
48
70
  email:
49
71
  - dnagir@gmail.com
@@ -51,9 +73,9 @@ executables: []
51
73
  extensions: []
52
74
  extra_rdoc_files: []
53
75
  files:
54
- - .gitignore
55
- - .rspec
56
- - .travis.yml
76
+ - ".gitignore"
77
+ - ".rspec"
78
+ - ".travis.yml"
57
79
  - Gemfile
58
80
  - README.md
59
81
  - Rakefile
@@ -63,28 +85,26 @@ files:
63
85
  - spec/its_spec.rb
64
86
  homepage: https://github.com/dnagir/its
65
87
  licenses: []
88
+ metadata: {}
66
89
  post_install_message:
67
90
  rdoc_options: []
68
91
  require_paths:
69
92
  - lib
70
93
  required_ruby_version: !ruby/object:Gem::Requirement
71
- none: false
72
94
  requirements:
73
- - - ! '>='
95
+ - - ">="
74
96
  - !ruby/object:Gem::Version
75
97
  version: '0'
76
98
  required_rubygems_version: !ruby/object:Gem::Requirement
77
- none: false
78
99
  requirements:
79
- - - ! '>='
100
+ - - ">="
80
101
  - !ruby/object:Gem::Version
81
102
  version: '0'
82
103
  requirements: []
83
104
  rubyforge_project: its
84
- rubygems_version: 1.8.10
105
+ rubygems_version: 2.2.2
85
106
  signing_key:
86
- specification_version: 3
107
+ specification_version: 4
87
108
  summary: Testing methods with multiple arguments much easier with RSpec
88
109
  test_files:
89
110
  - spec/its_spec.rb
90
- has_rdoc: