required_options 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- required_options (0.1.0)
4
+ required_options (0.5.0)
5
5
 
6
6
  GEM
7
7
  specs:
@@ -20,4 +20,4 @@ PLATFORMS
20
20
 
21
21
  DEPENDENCIES
22
22
  required_options!
23
- rspec
23
+ rspec (~> 2.6)
data/README.md CHANGED
@@ -23,4 +23,4 @@ Just declare which components of your options hash that you can't live without
23
23
  # do some really smart work here
24
24
  end
25
25
 
26
- If a required option is not passed into the method, it will raise a MissingOptions exception that displays the forgotten option.
26
+ If a required option is not passed into the method, it will raise a `MissingOptions` exception that displays the forgotten option.
data/Rakefile CHANGED
@@ -13,7 +13,7 @@ def name
13
13
  end
14
14
 
15
15
  def version
16
- line = File.read("lib/#{name}.rb")[/^\s*VERSION\s*=\s*.*/]
16
+ line = File.read("lib/#{name}/version.rb")[/^\s*VERSION\s*=\s*.*/]
17
17
  line.match(/.*VERSION\s*=\s*['"](.*)['"]/)[1]
18
18
  end
19
19
 
@@ -0,0 +1,3 @@
1
+ module RequiredOptions
2
+ VERSION = '0.6.0'
3
+ end
@@ -1,41 +1,24 @@
1
+ require "lib/required_options/version"
2
+
1
3
  Gem::Specification.new do |s|
2
4
  s.specification_version = 2 if s.respond_to? :specification_version=
3
5
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
4
6
  s.rubygems_version = '1.3.5'
7
+ s.platform = Gem::Platform::RUBY
5
8
 
6
- ## Leave these as is they will be modified for you by the rake gemspec task.
7
- ## If your rubyforge_project name is different, then edit it and comment out
8
- ## the sub! line in the Rakefile
9
9
  s.name = 'required_options'
10
- s.version = '0.5.0'
10
+ s.version = RequiredOptions::VERSION
11
11
  s.date = '2011-09-26'
12
12
 
13
- ## Make sure your summary is short. The description may be as long
14
- ## as you like.
15
13
  s.summary = "Guard your methods against those slacker options that 'forget' to come to class."
16
14
  s.description = "RequiredOptions allows you to verbosely guard methods from options you rely on when using an options hash."
17
-
18
- ## List the primary authors. If there are a bunch of authors, it's probably
19
- ## better to set the email to an email list or something. If you don't have
20
- ## a custom homepage, consider using your GitHub URL or the like.
21
15
  s.authors = ["Matt Polito"]
22
16
  s.email = 'matt.polito@gmail.com'
23
17
  s.homepage = 'http://github.com/mattpolito/required_options'
24
-
25
- ## This gets added to the $LOAD_PATH so that 'lib/NAME.rb' can be required as
26
- ## require 'NAME.rb' or'/lib/NAME/file.rb' can be as require 'NAME/file.rb'
27
18
  s.require_paths = %w[lib]
28
19
 
29
- ## Specify any RDoc options here. You'll want to add your README and
30
- ## LICENSE files to the extra_rdoc_files list.
31
- s.rdoc_options = ["--charset=UTF-8"]
32
- s.extra_rdoc_files = %w[README.md LICENSE]
33
-
34
- s.add_development_dependency('rspec')
35
-
36
- ## Leave this section as-is. It will be automatically generated from the
37
- ## contents of your Git repository via the gemspec task. DO NOT REMOVE
38
- ## THE MANIFEST COMMENTS, they are used as delimiters by the task.
20
+ s.add_development_dependency('rspec', "~> 2.6")
21
+ s.add_development_dependency('rake')
39
22
 
40
23
  # = MANIFEST =
41
24
  s.files = %w[
@@ -45,6 +28,7 @@ Gem::Specification.new do |s|
45
28
  README.md
46
29
  Rakefile
47
30
  lib/required_options.rb
31
+ lib/required_options/version.rb
48
32
  required_options.gemspec
49
33
  spec/required_options_spec.rb
50
34
  ]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: required_options
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
4
+ hash: 7
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 5
8
+ - 6
9
9
  - 0
10
- version: 0.5.0
10
+ version: 0.6.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Matt Polito
@@ -22,6 +22,21 @@ dependencies:
22
22
  name: rspec
23
23
  prerelease: false
24
24
  requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ hash: 15
30
+ segments:
31
+ - 2
32
+ - 6
33
+ version: "2.6"
34
+ type: :development
35
+ version_requirements: *id001
36
+ - !ruby/object:Gem::Dependency
37
+ name: rake
38
+ prerelease: false
39
+ requirement: &id002 !ruby/object:Gem::Requirement
25
40
  none: false
26
41
  requirements:
27
42
  - - ">="
@@ -31,16 +46,15 @@ dependencies:
31
46
  - 0
32
47
  version: "0"
33
48
  type: :development
34
- version_requirements: *id001
49
+ version_requirements: *id002
35
50
  description: RequiredOptions allows you to verbosely guard methods from options you rely on when using an options hash.
36
51
  email: matt.polito@gmail.com
37
52
  executables: []
38
53
 
39
54
  extensions: []
40
55
 
41
- extra_rdoc_files:
42
- - README.md
43
- - LICENSE
56
+ extra_rdoc_files: []
57
+
44
58
  files:
45
59
  - Gemfile
46
60
  - Gemfile.lock
@@ -48,6 +62,7 @@ files:
48
62
  - README.md
49
63
  - Rakefile
50
64
  - lib/required_options.rb
65
+ - lib/required_options/version.rb
51
66
  - required_options.gemspec
52
67
  - spec/required_options_spec.rb
53
68
  has_rdoc: true
@@ -55,8 +70,8 @@ homepage: http://github.com/mattpolito/required_options
55
70
  licenses: []
56
71
 
57
72
  post_install_message:
58
- rdoc_options:
59
- - --charset=UTF-8
73
+ rdoc_options: []
74
+
60
75
  require_paths:
61
76
  - lib
62
77
  required_ruby_version: !ruby/object:Gem::Requirement