generative 0.2.2 → 0.2.3

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: 30facfd44bae285d5299ad418352db2d662b9fae
4
- data.tar.gz: 10dd90eaf237f02a57c1087ce6287400a78427d6
3
+ metadata.gz: 158ce02f8dafad88e05e39b3e0cb6f3b92a99355
4
+ data.tar.gz: 3b8b882323e49a5a933f722d98a7a3107c9c0627
5
5
  SHA512:
6
- metadata.gz: da448e92ce5aa862d8fe45cea577dd2682d3e9bf01cc5b169e0520a2bb8e90bdcd5a859a11fee4a14ea45de06ad68c481e1950057ccd8eaedd0395923f81c21e
7
- data.tar.gz: 174c2dfd2ec20af6bfac7df2499afec77dbe3849ad3dd414f0837a18d9e7542220dcdbd112c20d40c2212d30a43415290c96c5cc215a39651f4680c3fc3a2b36
6
+ metadata.gz: 0ca4ef37e1af53415cc047d5ded198a16ce83efa54e6fd3a2668842d34b8aa2ea2c9536d957e01e643c53c135ac08d1f5eb66ce465f9502ec47fbfd73d483356
7
+ data.tar.gz: c6789ce2de1e5a4fd9dc0822f34e2903fb612c8a843cf6c1446c135383472f33a2c4cf1565c6a506108072d8401d7356d4e192098feb47b84b752d99a52aee2f
@@ -2,11 +2,17 @@
2
2
  lib = File.expand_path('../lib', __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
+ authors = {
6
+ "Justin Campbell" => "justin@justincampbell.com",
7
+ "Dan McClory" => "danmcclory@gmail.com",
8
+ "Nate West" => "natescott.west@gmail.com"
9
+ }
10
+
5
11
  Gem::Specification.new do |gem|
6
12
  gem.name = 'generative'
7
- gem.version = '0.2.2'
8
- gem.authors = ["Justin Campbell", "Dan McClory"]
9
- gem.email = ["justin@justincampbell.me", "danmcclory@gmail.com"]
13
+ gem.version = '0.2.3'
14
+ gem.authors = authors.keys
15
+ gem.email = authors.values
10
16
  gem.description = "Generative testing for RSpec"
11
17
  gem.summary = "Generative testing for RSpec"
12
18
  gem.homepage = "https://github.com/justincampbell/generative"
@@ -18,11 +18,9 @@ module Generative
18
18
  end
19
19
 
20
20
  def find_and_call(name, *args)
21
- begin
22
- generators[name].call(*args)
23
- rescue NoMethodError
21
+ generators.fetch(name) do
24
22
  raise UnregisteredGenerator, "#{name} generator not registered"
25
- end
23
+ end.call(*args)
26
24
  end
27
25
 
28
26
  def generator_valid?(generator)
metadata CHANGED
@@ -1,56 +1,58 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: generative
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Campbell
8
8
  - Dan McClory
9
- autorequire:
9
+ - Nate West
10
+ autorequire:
10
11
  bindir: bin
11
12
  cert_chain: []
12
- date: 2014-12-08 00:00:00.000000000 Z
13
+ date: 2014-12-16 00:00:00.000000000 Z
13
14
  dependencies:
14
15
  - !ruby/object:Gem::Dependency
15
16
  name: rspec
16
- version_requirements: !ruby/object:Gem::Requirement
17
+ requirement: !ruby/object:Gem::Requirement
17
18
  requirements:
18
- - - '>='
19
+ - - ">="
19
20
  - !ruby/object:Gem::Version
20
21
  version: '3.0'
21
- requirement: !ruby/object:Gem::Requirement
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
22
25
  requirements:
23
- - - '>='
26
+ - - ">="
24
27
  - !ruby/object:Gem::Version
25
28
  version: '3.0'
26
- prerelease: false
27
- type: :runtime
28
29
  - !ruby/object:Gem::Dependency
29
30
  name: rake
30
- version_requirements: !ruby/object:Gem::Requirement
31
+ requirement: !ruby/object:Gem::Requirement
31
32
  requirements:
32
- - - '>='
33
+ - - ">="
33
34
  - !ruby/object:Gem::Version
34
35
  version: '0'
35
- requirement: !ruby/object:Gem::Requirement
36
+ type: :development
37
+ prerelease: false
38
+ version_requirements: !ruby/object:Gem::Requirement
36
39
  requirements:
37
- - - '>='
40
+ - - ">="
38
41
  - !ruby/object:Gem::Version
39
42
  version: '0'
40
- prerelease: false
41
- type: :development
42
43
  description: Generative testing for RSpec
43
44
  email:
44
- - justin@justincampbell.me
45
+ - justin@justincampbell.com
45
46
  - danmcclory@gmail.com
47
+ - natescott.west@gmail.com
46
48
  executables:
47
49
  - generative
48
50
  extensions: []
49
51
  extra_rdoc_files: []
50
52
  files:
51
- - .gitignore
52
- - .rspec
53
- - .travis.yml
53
+ - ".gitignore"
54
+ - ".rspec"
55
+ - ".travis.yml"
54
56
  - CHANGELOG.md
55
57
  - Gemfile
56
58
  - LICENSE.txt
@@ -74,24 +76,24 @@ homepage: https://github.com/justincampbell/generative
74
76
  licenses:
75
77
  - MIT
76
78
  metadata: {}
77
- post_install_message:
79
+ post_install_message:
78
80
  rdoc_options: []
79
81
  require_paths:
80
82
  - lib
81
83
  required_ruby_version: !ruby/object:Gem::Requirement
82
84
  requirements:
83
- - - '>='
85
+ - - ">="
84
86
  - !ruby/object:Gem::Version
85
87
  version: '0'
86
88
  required_rubygems_version: !ruby/object:Gem::Requirement
87
89
  requirements:
88
- - - '>='
90
+ - - ">="
89
91
  - !ruby/object:Gem::Version
90
92
  version: '0'
91
93
  requirements: []
92
- rubyforge_project:
93
- rubygems_version: 2.1.9
94
- signing_key:
94
+ rubyforge_project:
95
+ rubygems_version: 2.2.2
96
+ signing_key:
95
97
  specification_version: 4
96
98
  summary: Generative testing for RSpec
97
99
  test_files: