rspec-change_to_now 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 96abeed0aef61d5688b975afee27033b111b25f3
4
- data.tar.gz: 1045809fa03e4269ddb3f8af6c956b6f13a02906
3
+ metadata.gz: f9ba7aa8d6cf543625b0c5d954cf86ad83b081ac
4
+ data.tar.gz: f52abeb18cc26b383a9029be08ec73f8bdd8ecc9
5
5
  SHA512:
6
- metadata.gz: fcb079155e85e560fcc96e6ccc29afbceb69975cdecbfe6d0812c7fd992935c04d4e54aa3726910e11dab6f19826a4106b893a694dd8a5c157595660b0b0d893
7
- data.tar.gz: 70a8ae0a72150d5fec58c18f57ab0abe1c544f67ef9497d324b90f175b8983f066b1f5751ee9b5caa45bb3301da2f93831ef042f1260dff5f528f3122d3b85b7
6
+ metadata.gz: 4b3886dd539cc7b538552cf827a3fd91d688b0337ef15a2cc3c923c57085f979486f691616116ddcfbe42f0fc6d774f4a7c28f05b1dc403b1ea3ecf1e7fc5244
7
+ data.tar.gz: ebce57a0edef287ca49d13b54908de5b808b644da7750621e677ad0cb7cf2b8a6f723ca95f36a00bd3f387eb42843c6d0363ea3ae1589e881d10b0883ca46db7
data/.coveralls.yml ADDED
@@ -0,0 +1 @@
1
+ service_name: travis-ci
data/.travis.yml ADDED
@@ -0,0 +1,6 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.1.2
4
+ - 1.9.3
5
+ - jruby-19mode # JRuby in 1.9 mode
6
+
data/Changelog.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### 1.0.1
2
+
3
+ Fix gem dependencies
4
+
1
5
  ### 1.0.0
2
6
 
3
7
  Initial Version
data/Gemfile CHANGED
@@ -3,25 +3,6 @@ source 'https://rubygems.org'
3
3
  # Specify your gem's dependencies in rspec-change_to_now.gemspec
4
4
  gemspec
5
5
 
6
- %w[rspec rspec-core rspec-expectations rspec-mocks rspec-support].each do |lib|
7
- branch = ENV.fetch('BRANCH','master')
8
- next if branch == '2-99-maintenance' && lib == 'rspec-support'
9
- library_path = File.expand_path("../../#{lib}", __FILE__)
10
- if File.exist?(library_path)
11
- gem lib, :path => library_path
12
- else
13
- gem lib, :git => "git://github.com/rspec/#{lib}.git",
14
- :branch => branch
15
- end
16
- end
17
-
18
- # test coverage
19
- # gem 'simplecov', :require => false
20
-
21
- gem 'coveralls', :require => false, :platform => :mri_20
22
-
23
- eval File.read('Gemfile-custom') if File.exist?('Gemfile-custom')
24
-
25
6
  platform :rbx do
26
7
  gem 'rubysl'
27
8
  end
data/Gemfile.lock CHANGED
@@ -1,45 +1,3 @@
1
- GIT
2
- remote: git://github.com/rspec/rspec-core.git
3
- revision: e0a8404b0ab3f7803eedca9572f3fbfbea915bd6
4
- branch: master
5
- specs:
6
- rspec-core (3.1.0.pre)
7
- rspec-support (= 3.1.0.pre)
8
-
9
- GIT
10
- remote: git://github.com/rspec/rspec-expectations.git
11
- revision: e4674ca2440d22ecfe59be6fe351396dbe9b4369
12
- branch: master
13
- specs:
14
- rspec-expectations (3.1.0.pre)
15
- diff-lcs (>= 1.2.0, < 2.0)
16
- rspec-support (= 3.1.0.pre)
17
-
18
- GIT
19
- remote: git://github.com/rspec/rspec-mocks.git
20
- revision: 873d755efe61d500444c230dc3b7f4f9d24aed43
21
- branch: master
22
- specs:
23
- rspec-mocks (3.1.0.pre)
24
- rspec-support (= 3.1.0.pre)
25
-
26
- GIT
27
- remote: git://github.com/rspec/rspec-support.git
28
- revision: ba5b67666514d5808da13ddaafefc8c597e553e1
29
- branch: master
30
- specs:
31
- rspec-support (3.1.0.pre)
32
-
33
- GIT
34
- remote: git://github.com/rspec/rspec.git
35
- revision: 2b826653e1f55f63e4f99d8dd1f14b5d35d0a0b7
36
- branch: master
37
- specs:
38
- rspec (3.1.0.pre)
39
- rspec-core (= 3.1.0.pre)
40
- rspec-expectations (= 3.1.0.pre)
41
- rspec-mocks (= 3.1.0.pre)
42
-
43
1
  PATH
44
2
  remote: .
45
3
  specs:
@@ -83,6 +41,14 @@ GEM
83
41
  rest-client (1.7.2)
84
42
  mime-types (>= 1.16, < 3.0)
85
43
  netrc (~> 0.7)
44
+ rspec-core (3.0.3)
45
+ rspec-support (~> 3.0.0)
46
+ rspec-expectations (3.0.3)
47
+ diff-lcs (>= 1.2.0, < 2.0)
48
+ rspec-support (~> 3.0.0)
49
+ rspec-mocks (3.0.3)
50
+ rspec-support (~> 3.0.0)
51
+ rspec-support (3.0.3)
86
52
  rubysl (2.0.15)
87
53
  rubysl-abbrev (~> 2.0)
88
54
  rubysl-base64 (~> 2.0)
@@ -301,13 +267,9 @@ PLATFORMS
301
267
  DEPENDENCIES
302
268
  aruba (~> 0.5)
303
269
  bundler (~> 1.3)
304
- coveralls
270
+ coveralls (~> 0.5)
305
271
  cucumber (~> 1.3.8)
306
272
  rake (~> 10.1.0)
307
- rspec!
308
273
  rspec-change_to_now!
309
- rspec-core!
310
- rspec-expectations!
311
- rspec-mocks!
312
- rspec-support!
274
+ rspec-mocks (>= 3.0.0)
313
275
  rubysl
data/README.md CHANGED
@@ -1,6 +1,4 @@
1
- # RSpec::ChangeToNow [`rdoc`](http://rubydoc.info/github/dontfidget/rspec-change_to_now/) [![Build Status](https://travis-ci.org/dontfidget/rspec-change_to_now.png)](https://travis-ci.org/dontfidget/rspec-change_to_now)
2
- [![Code Climate](https://codeclimate.com/github/dontfidget/rspec-change_to_now/badges/gpa.svg)](https://codeclimate.com/github/dontfidget/rspec-change_to_now)
3
- [![Dependency Status](https://gemnasium.com/dontfidget/rspec-change_to_now.svg)](https://gemnasium.com/dontfidget/rspec-change_to_now)
1
+ # RSpec::ChangeToNow [`rdoc`](http://rubydoc.info/github/dontfidget/rspec-change_to_now/) [![Build Status](https://travis-ci.org/dontfidget/rspec-change_to_now.png)](https://travis-ci.org/dontfidget/rspec-change_to_now) [![Code Climate](https://codeclimate.com/github/dontfidget/rspec-change_to_now/badges/gpa.svg)](https://codeclimate.com/github/dontfidget/rspec-change_to_now) [![Dependency Status](https://gemnasium.com/dontfidget/rspec-change_to_now.svg)](https://gemnasium.com/dontfidget/rspec-change_to_now) [![Gem Version](https://badge.fury.io/rb/rspec-change_to_now.svg)](http://badge.fury.io/rb/rspec-change_to_now) [![Coverage Status](https://coveralls.io/repos/dontfidget/rspec-change_to_now/badge.png?branch=master)](https://coveralls.io/r/dontfidget/rspec-change_to_now?branch=master)
4
2
 
5
3
  RSpec::ChangeTo adds the `to_now` and `not_to_now` methods to `change` matcher to describe how executing a block should change a matcher expectation.
6
4
 
@@ -90,14 +88,14 @@ This gem also adds the `detect` matcher, which behaves like the `include` matche
90
88
 
91
89
  ```ruby
92
90
  list = []
93
- expect { list << 1 }.to change { list }.to detect(&:even?)
91
+ expect { list << 2 }.to change { list }.to detect(&:even?)
94
92
  ```
95
93
 
96
94
  This is the same as:
97
95
 
98
96
  ```ruby
99
97
  list = []
100
- expect { list << 1 }.to change { list }.to include satisfy(&:even?)
98
+ expect { list << 2 }.to change { list }.to include satisfy(&:even?)
101
99
  ```
102
100
 
103
101
  A more interesting use might be:
@@ -1,3 +1,6 @@
1
+ require 'coveralls'
2
+ Coveralls.wear!
3
+
1
4
  require 'aruba/cucumber'
2
5
  require 'rspec/core'
3
6
  require 'rspec/change_to_now'
@@ -1,5 +1,5 @@
1
1
  module RSpec
2
2
  module ChangeToNow
3
- VERSION = "1.0.0"
3
+ VERSION = "1.0.1"
4
4
  end
5
5
  end
@@ -20,8 +20,10 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.add_runtime_dependency 'rspec-core', '>= 3.0.0'
22
22
  spec.add_runtime_dependency 'rspec-expectations', '>= 3.0.0'
23
+ spec.add_development_dependency 'rspec-mocks', '>= 3.0.0'
23
24
  spec.add_development_dependency 'cucumber', '~> 1.3.8'
24
25
  spec.add_development_dependency 'bundler', '~> 1.3'
25
26
  spec.add_development_dependency 'rake', '~> 10.1.0'
26
27
  spec.add_development_dependency 'aruba', '~> 0.5'
28
+ spec.add_development_dependency 'coveralls', '~> 0.5'
27
29
  end
data/spec/spec_helper.rb CHANGED
@@ -1,5 +1,7 @@
1
+ require 'coveralls'
2
+ Coveralls.wear!
3
+
1
4
  require 'rspec/change_to_now'
2
- require 'rspec/mocks'
3
5
 
4
6
  Dir['./spec/support/**/*'].each {|f| require f}
5
7
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-change_to_now
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew S. Brown
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: 3.0.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec-mocks
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: 3.0.0
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: 3.0.0
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: cucumber
43
57
  requirement: !ruby/object:Gem::Requirement
@@ -94,6 +108,20 @@ dependencies:
94
108
  - - "~>"
95
109
  - !ruby/object:Gem::Version
96
110
  version: '0.5'
111
+ - !ruby/object:Gem::Dependency
112
+ name: coveralls
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '0.5'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '0.5'
97
125
  description: RSpec extension gem for attribute matching
98
126
  email:
99
127
  - andrew@dontfidget.com
@@ -101,7 +129,9 @@ executables: []
101
129
  extensions: []
102
130
  extra_rdoc_files: []
103
131
  files:
132
+ - ".coveralls.yml"
104
133
  - ".gitignore"
134
+ - ".travis.yml"
105
135
  - Changelog.md
106
136
  - Gemfile
107
137
  - Gemfile.lock