hexx-rspec 0.2.1 → 0.2.2

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: 5c3f3ee5615e66a328d8255252dccabd953a6570
4
- data.tar.gz: ccc0f6897d2777e470dc445a616bd1c0986fc5e9
3
+ metadata.gz: 6a902685cad575b13de886f1b4d7fa7fb2afb831
4
+ data.tar.gz: 60d6cd196cb90646e711245120ec81cf3b4d11f7
5
5
  SHA512:
6
- metadata.gz: 7b455cea9ec5af943c715c55cfd5b36ca0e5b237c2775c7da57b824b558460de9ebe0cfe59df3868dd9394517a65e23f800545e5b503f4fc41b45300363a5751
7
- data.tar.gz: 0fd060e8ea59c56cae7983f30dc99c977655d3e451193da01d6cf3ad76b502f6b5e47f391c9fd82bf64befa0a856b30ca4d09605034966c0c7edc5c321a4780a
6
+ metadata.gz: 6c5a22302e979d0e013d2e0822222f1aaa215109e32aa079117cb21736fef79f30b6bbac7d00ae5d6bad05c5062705c154406085cf572d5ca37a553589780bbf
7
+ data.tar.gz: deba62a99cd94a896c28c59bad54ebd2a883dc1e65de3440d64eeb421e48797eb9851b7c40e01edd0cf7f7140383f78269b88b68333af7a53ca411f8817fd10a
@@ -1,6 +1,5 @@
1
1
  ---
2
2
  language: ruby
3
- script: bundle exec rspec spec
4
3
  matrix:
5
4
  include:
6
5
  - rvm: '1.9.3'
data/Rakefile CHANGED
@@ -9,9 +9,6 @@ end
9
9
  # Loads bundler tasks
10
10
  Bundler::GemHelper.install_tasks
11
11
 
12
- # Loads the Hexx::RSpec without tasks
13
- require "hexx-rspec"
14
-
15
12
  # Sets the :spec task to default
16
13
  task :default do
17
14
  system "bundle exec rspec spec"
@@ -25,7 +25,7 @@ module Hexx
25
25
  #
26
26
  # @return [self]
27
27
  def load_metrics_for(scope)
28
- return unless ENV["USE_SIMPLECOV"]
28
+ return unless ENV["USE_SIMPLECOV"] && (RUBY_ENGINE == "ruby")
29
29
  scope.instance_eval { Hexx::RSpec::Metrics::SimpleCov.run }
30
30
  end
31
31
 
@@ -6,7 +6,7 @@ module Hexx
6
6
 
7
7
  # The semantic version of the module.
8
8
  # @see http://semver.org/ Semantic versioning 2.0
9
- VERSION = "0.2.1".freeze
9
+ VERSION = "0.2.2".freeze
10
10
 
11
11
  end # module RSpec
12
12
 
@@ -1,10 +1,13 @@
1
+ # encoding: utf-8
2
+
1
3
  # Loads the RSpec support files.
2
4
  require "rspec"
3
5
  Dir[File.expand_path "spec/support/*.rb"].each { |file| require file }
4
6
 
5
- # encoding: utf-8
6
- require "coveralls"
7
- Coveralls.wear!
7
+ if RUBY_ENGINE == "ruby"
8
+ require "coveralls"
9
+ Coveralls.wear!
10
+ end
8
11
 
9
12
  # Loads the code of the module with the RSpec test rspec.
10
13
  require "hexx-rspec"
@@ -39,8 +39,14 @@ describe Hexx::RSpec do
39
39
  it "initializes and runs a coverage settings" do
40
40
  expect(coverage_settings).to receive(:run)
41
41
  subject
42
- end
43
- end
42
+ end if RUBY_ENGINE == "ruby"
43
+
44
+ it "doesn't run settings" do
45
+ expect(coverage_settings).not_to receive(:run)
46
+ subject
47
+ end unless RUBY_ENGINE == "ruby"
48
+
49
+ end # context
44
50
 
45
51
  context "when ENV[USE_SIMPLECOV] isn't set" do
46
52
 
@@ -50,7 +56,8 @@ describe Hexx::RSpec do
50
56
  expect(coverage_settings).not_to receive(:run)
51
57
  subject
52
58
  end
53
- end
59
+
60
+ end # context
54
61
 
55
62
  end # display .load_metrics_for
56
63
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hexx-rspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kozin
@@ -11,84 +11,84 @@ cert_chain: []
11
11
  date: 2015-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
+ type: :runtime
14
15
  name: coveralls
16
+ prerelease: false
15
17
  requirement: !ruby/object:Gem::Requirement
16
18
  requirements:
17
19
  - - "~>"
18
20
  - !ruby/object:Gem::Version
19
21
  version: '0.7'
20
- type: :runtime
21
- prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0.7'
27
27
  - !ruby/object:Gem::Dependency
28
+ type: :runtime
28
29
  name: i18n
30
+ prerelease: false
29
31
  requirement: !ruby/object:Gem::Requirement
30
32
  requirements:
31
33
  - - "~>"
32
34
  - !ruby/object:Gem::Version
33
35
  version: '0.7'
34
- type: :runtime
35
- prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0.7'
41
41
  - !ruby/object:Gem::Dependency
42
+ type: :runtime
42
43
  name: rake
44
+ prerelease: false
43
45
  requirement: !ruby/object:Gem::Requirement
44
46
  requirements:
45
47
  - - "~>"
46
48
  - !ruby/object:Gem::Version
47
49
  version: '10.3'
48
- type: :runtime
49
- prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '10.3'
55
55
  - !ruby/object:Gem::Dependency
56
+ type: :runtime
56
57
  name: rspec
58
+ prerelease: false
57
59
  requirement: !ruby/object:Gem::Requirement
58
60
  requirements:
59
61
  - - "~>"
60
62
  - !ruby/object:Gem::Version
61
63
  version: '3.0'
62
- type: :runtime
63
- prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '3.0'
69
69
  - !ruby/object:Gem::Dependency
70
+ type: :runtime
70
71
  name: simplecov
72
+ prerelease: false
71
73
  requirement: !ruby/object:Gem::Requirement
72
74
  requirements:
73
75
  - - "~>"
74
76
  - !ruby/object:Gem::Version
75
77
  version: '0.9'
76
- type: :runtime
77
- prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0.9'
83
83
  - !ruby/object:Gem::Dependency
84
+ type: :runtime
84
85
  name: thor
86
+ prerelease: false
85
87
  requirement: !ruby/object:Gem::Requirement
86
88
  requirements:
87
89
  - - "~>"
88
90
  - !ruby/object:Gem::Version
89
91
  version: '0.19'
90
- type: :runtime
91
- prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
@@ -176,15 +176,15 @@ specification_version: 4
176
176
  summary: RSpec settings.
177
177
  test_files:
178
178
  - spec/spec_helper.rb
179
- - spec/tests/lib/metrics/simplecov_spec.rb
179
+ - spec/tests/rspec_spec.rb
180
+ - spec/support/prepare_settings.rb
181
+ - spec/support/tasks.rb
180
182
  - spec/tests/lib/system_spec.rb
181
183
  - spec/tests/lib/install_spec.rb
182
184
  - spec/tests/tasks/test_spec.rb
183
- - spec/tests/tasks/test/coverage_spec.rb
184
185
  - spec/tests/bin/install_spec.rb
185
- - spec/tests/rspec_spec.rb
186
- - spec/support/prepare_settings.rb
187
- - spec/support/tasks.rb
186
+ - spec/tests/tasks/test/coverage_spec.rb
187
+ - spec/tests/lib/metrics/simplecov_spec.rb
188
188
  - Rakefile
189
189
  - Guardfile
190
190
  has_rdoc: