env_test_helpers 0.0.1 → 0.0.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: 1f28fa53386f1e8d0645a14a424b4715243d6aad
4
- data.tar.gz: f620947b5789fdd1eef0e24d539a210f4752d5ee
3
+ metadata.gz: 034f721bd199f2d375d369fa73557f16fbb49d16
4
+ data.tar.gz: bc714a9f887322d4ffc7a5f69830d890a2dfc894
5
5
  SHA512:
6
- metadata.gz: fe96b2c0012ad8080d1da7eb64ec5ab09b085d97dc52e0896456055beb362784c3a45a2a7760166c887adfd45a7b0e31bd53005181849599e71642b3acf11f78
7
- data.tar.gz: 91142560d452cd38112f6663730b7c1bfb2f00bd75e3a7c3e45d32aadbde142a14451db7cdd6102d900ce3a9fbbf2a15dc587cbc93410dc5d639f662c4a0c0e3
6
+ metadata.gz: 77da4584e8cca23470f5565155b95c4756d29ee1a66ff7a4af0913ff184e51d98f62e724a36d48d13f544636074e9dbc214c28df2992a4831fbb69511a858138
7
+ data.tar.gz: 1b1e2c9d17c36acdf5a75841b78b24831cfd5d82789787c8a506f54a785317fc6a0a7c6e596c6389dd85663859f321b120de245cb2234ecaa14bcfdc956eb623
data/.gitignore CHANGED
@@ -12,3 +12,4 @@
12
12
  *.o
13
13
  *.a
14
14
  mkmf.log
15
+ /*.gem
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # EnvTestHelpers
2
2
 
3
- Helps to handle env vars in tests.
3
+ EnvTestHelpers is a collection of helpers to work with environment variables in tests.
4
+ Right now is only working with Rspec.
4
5
 
5
6
  Use case:
6
7
  - I have configurations set in ignored files, most of this variables are Api keys or passwords.
@@ -25,17 +26,11 @@ Or install it yourself as:
25
26
 
26
27
  $ gem install env_test_helpers
27
28
 
28
- ## Rspec
29
+ ## RSpec
29
30
  All done. _The module gets included in the rspec configure block._
30
31
 
31
32
  ## Else
32
- ```ruby
33
- require 'env_test_helpers'
34
- ```
35
- or
36
- ```ruby
37
- include EnvTestHelpers
38
- ```
33
+ Right now only works with RSpec.
39
34
 
40
35
  ## Usage
41
36
 
@@ -9,12 +9,9 @@ Gem::Specification.new do |spec|
9
9
  spec.authors = ["Artur Pañach"]
10
10
  spec.email = ["arturictus@gmail.com"]
11
11
  spec.summary = %q{Helps to handle env vars in tests.}
12
- spec.description = %q{Use case:
13
- - I have configurations set in ignored files, most of this variables are Api keys or passwords.
14
- - The code and tests needs this variables but I can not share them in my VCS.
15
-
16
- Solution:
17
- - I mock or set this variables in the test they are required.}
12
+ spec.description = %q{EnvTestHelpers is a collection of helpers to work
13
+ with environment variables in tests.
14
+ Right now is only working with Rspec.}
18
15
  spec.homepage = "https://github.com/arturictus/env_test_helpers"
19
16
  spec.license = "MIT"
20
17
 
@@ -30,8 +30,8 @@ module EnvTestHelpers
30
30
  end
31
31
  end
32
32
 
33
- if defined? Rspec
33
+ if defined? RSpec
34
34
  RSpec.configure do |c|
35
- c.include EnvHelpers
35
+ c.include EnvTestHelpers
36
36
  end
37
37
  end
@@ -1,3 +1,3 @@
1
1
  module EnvTestHelpers
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: env_test_helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Artur Pañach
@@ -39,12 +39,9 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: '10.0'
41
41
  description: |-
42
- Use case:
43
- - I have configurations set in ignored files, most of this variables are Api keys or passwords.
44
- - The code and tests needs this variables but I can not share them in my VCS.
45
-
46
- Solution:
47
- - I mock or set this variables in the test they are required.
42
+ EnvTestHelpers is a collection of helpers to work
43
+ with environment variables in tests.
44
+ Right now is only working with Rspec.
48
45
  email:
49
46
  - arturictus@gmail.com
50
47
  executables: []