ns-options 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,4 @@
1
+ module NsOptions; end
1
2
  module NsOptions::AssertMacros
2
3
 
3
4
  # a set of Assert macros to help write namespace definition and
@@ -1,3 +1,5 @@
1
+ require 'ns-options/errors/invalid_name'
2
+
1
3
  module NsOptions
2
4
  module Helper
3
5
 
@@ -1,7 +1,8 @@
1
+ require 'ns-options/helper/advisor'
2
+
1
3
  module NsOptions
2
4
 
3
5
  module Helper
4
- autoload :Advisor, 'ns-options/helper/advisor'
5
6
 
6
7
  module_function
7
8
 
@@ -1,3 +1,3 @@
1
1
  module NsOptions
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
data/lib/ns-options.rb CHANGED
@@ -1,18 +1,13 @@
1
- module NsOptions
2
- autoload :HasOptions, 'ns-options/has_options'
3
- autoload :Proxy, 'ns-options/proxy'
4
- autoload :Helper, 'ns-options/helper'
5
- autoload :Namespace, 'ns-options/namespace'
6
- autoload :Namespaces, 'ns-options/namespaces'
7
- autoload :Option, 'ns-options/option'
8
- autoload :Options, 'ns-options/options'
9
- autoload :VERSION, 'ns-options/version'
10
-
11
- autoload :AssertMacros, 'ns-options/assert_macros'
1
+ require 'ns-options/has_options'
2
+ require 'ns-options/helper'
3
+ require 'ns-options/namespace'
4
+ require 'ns-options/namespaces'
5
+ require 'ns-options/option'
6
+ require 'ns-options/options'
7
+ require 'ns-options/proxy'
8
+ require 'ns-options/version' if !defined?(NsOptions::VERSION)
12
9
 
13
- module Errors
14
- autoload :InvalidName, 'ns-options/errors/invalid_name'
15
- end
10
+ module NsOptions
16
11
 
17
12
  def self.included(receiver)
18
13
  receiver.send(:include, HasOptions)
@@ -1,4 +1,5 @@
1
1
  require 'assert'
2
+ require 'ns-options/assert_macros'
2
3
 
3
4
  module NsOptions::AssertMacros
4
5
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ns-options
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 0
10
- version: 0.3.0
9
+ - 1
10
+ version: 0.3.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Collin Redding
@@ -15,11 +15,10 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-12-02 00:00:00 Z
18
+ date: 2012-01-30 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  type: :development
22
- prerelease: false
23
22
  requirement: &id001 !ruby/object:Gem::Requirement
24
23
  none: false
25
24
  requirements:
@@ -30,11 +29,11 @@ dependencies:
30
29
  - 0
31
30
  - 7
32
31
  version: "0.7"
33
- version_requirements: *id001
32
+ prerelease: false
34
33
  name: assert
34
+ version_requirements: *id001
35
35
  - !ruby/object:Gem::Dependency
36
36
  type: :development
37
- prerelease: false
38
37
  requirement: &id002 !ruby/object:Gem::Requirement
39
38
  none: false
40
39
  requirements:
@@ -45,8 +44,9 @@ dependencies:
45
44
  - 0
46
45
  - 1
47
46
  version: "0.1"
48
- version_requirements: *id002
47
+ prerelease: false
49
48
  name: assert-mocha
49
+ version_requirements: *id002
50
50
  description: Define and use namespaced options with a clean interface.
51
51
  email:
52
52
  - collin.redding@reelfx.com