ns-options 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/.gitignore CHANGED
@@ -1,11 +1,10 @@
1
1
  *.gem
2
2
  *.log
3
3
  *.rbc
4
+ .rbx/
4
5
  .bundle
5
6
  .config
6
7
  .yardoc
7
- .rvmrc
8
- .rbenv-version
9
8
  Gemfile.lock
10
9
  InstalledFiles
11
10
  _yardoc
data/Gemfile CHANGED
@@ -1,7 +1,6 @@
1
- source 'http://rubygems.org'
1
+ source "https://rubygems.org"
2
2
 
3
- # Specify your gem's dependencies in ns-options.gemspec
4
3
  gemspec
5
4
 
6
- gem 'bundler', '~>1.1'
7
- gem 'rake', '~>0.9.2'
5
+ gem 'rake'
6
+ gem 'pry'
File without changes
data/Rakefile CHANGED
@@ -1,5 +1 @@
1
- #!/usr/bin/env rake
2
1
  require "bundler/gem_tasks"
3
-
4
- require 'assert/rake_tasks'
5
- Assert::RakeTasks.install
@@ -1,3 +1,3 @@
1
1
  module NsOptions
2
- VERSION = "1.1.1"
2
+ VERSION = "1.1.2"
3
3
  end
data/lib/ns-options.rb CHANGED
@@ -1,3 +1,4 @@
1
+ require 'ns-options/version'
1
2
  require 'ns-options/root_methods'
2
3
  require 'ns-options/proxy'
3
4
  require 'ns-options/struct'
data/ns-options.gemspec CHANGED
@@ -1,19 +1,22 @@
1
1
  # -*- encoding: utf-8 -*-
2
- require File.expand_path('../lib/ns-options/version', __FILE__)
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "ns-options/version"
3
5
 
4
6
  Gem::Specification.new do |gem|
7
+ gem.name = "ns-options"
8
+ gem.version = NsOptions::VERSION
5
9
  gem.authors = ["Collin Redding", "Kelly Redding"]
6
10
  gem.email = ["collin.redding@me.com", "kelly@kellyredding.com"]
7
11
  gem.description = %q{A DSL for defining, organizing and accessing options.}
8
12
  gem.summary = %q{A DSL for defining, organizing and accessing options.}
9
13
  gem.homepage = "https://github.com/redding/ns-options"
10
14
 
11
- gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
12
- gem.files = `git ls-files`.split("\n")
13
- gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
14
- gem.name = "ns-options"
15
+ gem.files = `git ls-files`.split($/)
16
+ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
17
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
15
18
  gem.require_paths = ["lib"]
16
- gem.version = NsOptions::VERSION
17
19
 
18
- gem.add_development_dependency("assert", ["~>1.0"])
20
+ gem.add_dependency("assert", ["~> 2.0"])
21
+
19
22
  end
data/test/helper.rb CHANGED
@@ -1,4 +1,12 @@
1
- $LOAD_PATH.unshift(File.expand_path("../..", __FILE__))
1
+ # this file is automatically required when you run `assert`
2
+ # put any test helpers here
3
+
4
+ # add the root dir to the load path
5
+ ROOT_PATH = File.expand_path("../..", __FILE__)
6
+ $LOAD_PATH.unshift(ROOT_PATH)
7
+
8
+ # require pry for debugging (`binding.pry`)
9
+ require 'pry'
2
10
 
3
11
  module NsOptions
4
12
  module TestOutput
data/tmp/.gitkeep ADDED
File without changes
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: 17
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 1
9
- - 1
10
- version: 1.1.1
9
+ - 2
10
+ version: 1.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Collin Redding
@@ -16,23 +16,23 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2012-12-18 00:00:00 Z
19
+ date: 2013-03-25 00:00:00 Z
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
22
  name: assert
23
- version_requirements: &id001 !ruby/object:Gem::Requirement
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
24
25
  none: false
25
26
  requirements:
26
27
  - - ~>
27
28
  - !ruby/object:Gem::Version
28
- hash: 15
29
+ hash: 3
29
30
  segments:
30
- - 1
31
+ - 2
31
32
  - 0
32
- version: "1.0"
33
- type: :development
34
- requirement: *id001
35
- prerelease: false
33
+ version: "2.0"
34
+ type: :runtime
35
+ version_requirements: *id001
36
36
  description: A DSL for defining, organizing and accessing options.
37
37
  email:
38
38
  - collin.redding@me.com
@@ -46,7 +46,7 @@ extra_rdoc_files: []
46
46
  files:
47
47
  - .gitignore
48
48
  - Gemfile
49
- - LICENSE
49
+ - LICENSE.txt
50
50
  - README.md
51
51
  - Rakefile
52
52
  - lib/ns-options.rb
@@ -66,7 +66,6 @@ files:
66
66
  - log/.gitkeep
67
67
  - ns-options.gemspec
68
68
  - test/helper.rb
69
- - test/irb.rb
70
69
  - test/support/app.rb
71
70
  - test/support/proxy.rb
72
71
  - test/support/type_class_proxy.rb
@@ -87,6 +86,7 @@ files:
87
86
  - test/unit/proxy_tests.rb
88
87
  - test/unit/root_methods_tests.rb
89
88
  - test/unit/struct_tests.rb
89
+ - tmp/.gitkeep
90
90
  homepage: https://github.com/redding/ns-options
91
91
  licenses: []
92
92
 
@@ -122,7 +122,6 @@ specification_version: 3
122
122
  summary: A DSL for defining, organizing and accessing options.
123
123
  test_files:
124
124
  - test/helper.rb
125
- - test/irb.rb
126
125
  - test/support/app.rb
127
126
  - test/support/proxy.rb
128
127
  - test/support/type_class_proxy.rb
data/test/irb.rb DELETED
@@ -1,9 +0,0 @@
1
- require 'assert/setup'
2
-
3
- # this file is required in when the 'irb' rake test is run.
4
- # b/c 'assert/setup' is required above, the test helper will be
5
- # required in as well.
6
-
7
- # put any IRB setup code here
8
-
9
- require 'ns-options'