sarah 0.0.1 → 0.0.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.
@@ -0,0 +1,5 @@
1
+ 2013-07-08 Version 0.0.2
2
+ Packaging fixes and some documentation cleanup.
3
+
4
+ 2013-07-08 Version 0.0.1
5
+ First release.
@@ -29,13 +29,16 @@ class Sarah
29
29
  # hash and the requested key (or nil for a shift or pop on an empty
30
30
  # sequential array).
31
31
  #
32
- # @param opts [Array] Setup options.
32
+ # @param opts [Hash] Setup options.
33
33
  # @option opts :default The default value to return for a non-existent key.
34
- # @option opts :default_proc The default proc to call for a non-existent
35
- # key.
36
- # @option opts :array An array (or hash!) to use for initialization (first).
37
- # @option opts :hash A hash (or array!) to use for initialization (second).
38
- # @option opts :from An array or hash to use for initialization (third).
34
+ # @option opts [Proc] :default_proc The default proc to call for a
35
+ # non-existent key.
36
+ # @option opts [Array, Hash] :array An array (or hash!) to use for
37
+ # initialization (first).
38
+ # @option opts [Hash, Array] :hash A hash (or array!) to use for
39
+ # initialization (second).
40
+ # @option opts [Array, Hash] :from An array or hash to use for
41
+ # initialization (third).
39
42
  def initialize (opts = {}, &block)
40
43
  clear
41
44
  @default = opts[:default]
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "sarah"
3
- s.version = "0.0.1"
3
+ s.version = "0.0.2"
4
4
  s.date = "2013-07-08"
5
5
  s.authors = ["Brian Katzung"]
6
6
  s.email = ["briank@kappacs.com"]
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
9
9
  s.description = "Implements a hybrid data structure composed of a sequential array and random-access hash"
10
10
  s.license = "MIT"
11
11
 
12
- s.files = Dir.glob("lib/**/*") + %w{sarah.gemspec}
13
- s.test_files = Dir.glob("test/**/*")
12
+ s.files = Dir.glob("lib/**/*") + %w{sarah.gemspec HISTORY.txt}
13
+ s.test_files = Dir.glob("test/**/*.rb")
14
14
  s.require_path = 'lib'
15
15
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 1
9
- version: 0.0.1
8
+ - 2
9
+ version: 0.0.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Brian Katzung
@@ -30,11 +30,11 @@ extra_rdoc_files: []
30
30
  files:
31
31
  - lib/sarah.rb
32
32
  - sarah.gemspec
33
+ - HISTORY.txt
33
34
  - test/02new.rb
34
35
  - test/00class.rb
35
36
  - test/04stack.rb
36
37
  - test/01instance.rb
37
- - test/run_tests.sh
38
38
  - test/03set_get.rb
39
39
  has_rdoc: true
40
40
  homepage: http://rubygems.org/gems/sarah
@@ -73,5 +73,4 @@ test_files:
73
73
  - test/00class.rb
74
74
  - test/04stack.rb
75
75
  - test/01instance.rb
76
- - test/run_tests.sh
77
76
  - test/03set_get.rb
@@ -1,8 +0,0 @@
1
- #!/bin/sh
2
-
3
- export RUBYLIB=../lib
4
-
5
- # Run the specified tests (or all of them)
6
- for t in ${*:-[0-9]*.rb}
7
- do ruby $t
8
- done