rangehash 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,2 @@
1
+ *~
2
+ pkg
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "http://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in rangehash.gemspec
4
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,26 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ RangeHash (0.0.6)
5
+
6
+ GEM
7
+ remote: http://rubygems.org/
8
+ specs:
9
+ diff-lcs (1.1.2)
10
+ rcov (0.9.10)
11
+ rspec (2.6.0)
12
+ rspec-core (~> 2.6.0)
13
+ rspec-expectations (~> 2.6.0)
14
+ rspec-mocks (~> 2.6.0)
15
+ rspec-core (2.6.4)
16
+ rspec-expectations (2.6.0)
17
+ diff-lcs (~> 1.1.2)
18
+ rspec-mocks (2.6.0)
19
+
20
+ PLATFORMS
21
+ ruby
22
+
23
+ DEPENDENCIES
24
+ RangeHash!
25
+ rcov
26
+ rspec
data/History.txt CHANGED
@@ -1,3 +1,11 @@
1
+ === 0.0.6 2011-08-14
2
+ * 1 Major change:
3
+ * switched from using hoe to bundler for gem creation
4
+
5
+ === 0.0.5 2011-08-11
6
+ * 1 cosmetic change:
7
+ * removing some uneeded rake cruft
8
+
1
9
  === 0.0.4 2011-04-28
2
10
  * 1 Major enhancement:
3
11
  * Upated to Ruby 1.9
data/Rakefile CHANGED
@@ -1,22 +1,16 @@
1
- # -*- coding: utf-8 -*-
2
- require 'rubygems'
3
- gem 'hoe', '>= 2.1.0'
4
- require 'hoe'
5
- require 'fileutils'
6
- require './lib/rangehash'
1
+ require 'rake'
2
+ require 'rspec/core/rake_task'
3
+ require "bundler/gem_tasks"
7
4
 
8
- Hoe.plugin :newgem
9
- Hoe.plugin :flay
10
- Hoe.plugin :flog
11
- Hoe.plugin :reek
12
- Hoe.plugin :roodi
5
+ RSpec::Core::RakeTask.new(:spec) do |t|
6
+ t.rspec_opts = ['--format', 'progress' ]
7
+ end
13
8
 
14
- $hoe = Hoe.spec 'rangehash' do
15
- self.developer 'Mark Simpson', 'verdammelt@gmail.com'
16
- self.post_install_message = 'PostInstall.txt' # TODO remove if post-install message not required
17
- self.rubyforge_name = self.name
18
- self.test_globs = ["spec/**/*_spec.rb"]
19
- self.extra_rdoc_files = ["README.rdoc"]
9
+ desc "Run all specs with RCov"
10
+ RSpec::Core::RakeTask.new(:rcov) do |t|
11
+ t.rcov = true
12
+ t.rcov_opts = ['--text-report', '--save', 'coverage.info', '--exclude', 'spec_helper', '--exclude', '^/']
20
13
  end
21
14
 
22
- require 'newgem/tasks'
15
+ task :default => [:spec]
16
+
@@ -0,0 +1,4 @@
1
+ module Rangehash
2
+ VERSION = "0.0.6"
3
+ end
4
+
data/lib/rangehash.rb CHANGED
@@ -1,10 +1,6 @@
1
1
  $:.unshift(File.dirname(__FILE__)) unless
2
2
  $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
3
3
 
4
- module Rangehash
5
- VERSION = '0.0.5'
6
- end
7
-
8
4
  class RangeHash < Hash
9
5
  def [](key)
10
6
  value = find_value key
data/rangehash.gemspec ADDED
@@ -0,0 +1,28 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "rangehash/version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "rangehash"
7
+ s.version = Rangehash::VERSION
8
+ s.authors = ["Mark Simpson"]
9
+ s.email = ["verdammelt@gmail.com"]
10
+ s.license = 'MIT'
11
+ s.homepage = "https://github.com/verdammelt/rangehash"
12
+ s.summary = %q{Subclass of Hash which allows Ranges as the keys}
13
+ s.description = <<-EOF
14
+ RangeHash subclasses Hash and adds functionality so that Ranges can
15
+ be the keys and values can be found by FixNums within those ranges.
16
+ EOF
17
+
18
+ s.rubyforge_project = "rangehash"
19
+
20
+ s.files = `git ls-files`.split("\n")
21
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
22
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
23
+ s.require_paths = ["lib"]
24
+
25
+ # specify any dependencies here; for example:
26
+ s.add_development_dependency "rspec"
27
+ s.add_development_dependency "rcov"
28
+ end
metadata CHANGED
@@ -1,98 +1,84 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rangehash
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 5
10
- version: 0.0.5
9
+ - 6
10
+ version: 0.0.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Mark Simpson
14
14
  autorequire:
15
15
  bindir: bin
16
- cert_chain:
17
- - |
18
- -----BEGIN CERTIFICATE-----
19
- MIIDNjCCAh6gAwIBAgIBADANBgkqhkiG9w0BAQUFADBBMRMwEQYDVQQDDAp2ZXJk
20
- YW1tZWx0MRUwEwYKCZImiZPyLGQBGRYFZ21haWwxEzARBgoJkiaJk/IsZAEZFgNj
21
- b20wHhcNMTAxMjI5MjAxNjI3WhcNMTExMjI5MjAxNjI3WjBBMRMwEQYDVQQDDAp2
22
- ZXJkYW1tZWx0MRUwEwYKCZImiZPyLGQBGRYFZ21haWwxEzARBgoJkiaJk/IsZAEZ
23
- FgNjb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDQQsRTtwd0rN0X
24
- ffw6plu3tUBiGXpRGWOlIZq6xjyAjjvmwMWnmwU5juNBlPJZzYiMmCIC821s3fgb
25
- TM69f/cgqeevyI/h4Soxl2Le8NVGSeyvaZSNM8s1n9EQ5kN7VogYD0DbB4kHlfCM
26
- JgD72juXiAKXnsXH8NvcBXCkoPiq7CjDJCmrqilTu1atELmP5RJ/Vm+Nt2odVDF5
27
- t2x2ANmLVOZn59BTvHNXYbwrCIs82W4SwOSF4wL/I5ElH7dzr8PZN1yNBZPHtxpe
28
- +4eTt6c4+DSP+rCOjLxBQxGPemY54zVawVtg4LjE/oOaAri99hz1Nl+PLgXg+oEP
29
- veV2pcnDAgMBAAGjOTA3MAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQW
30
- BBTJ6wHlTv0Ievjg5o1zGil1w639SjANBgkqhkiG9w0BAQUFAAOCAQEAfXKfM9vA
31
- u1ukuGjhd4mej3Daw8bnaX2URwy5/4ogP5+9rK+WTni5UpS09ksvN/I/PWnfwNWE
32
- kzV0tl0DvQMpz+obpw02pt1uEzAHyPOYDGrgRweVaJbvrH2G3xAkSBwfkaDlzSrk
33
- KomP5Nct1Nnkmg0mAAGjvS/ib3GbEANt8qSP6hfn6vEXMUnhnCmo69dbdqDwVDOJ
34
- FVV9Kd1o7T8NmmDdn+G26uPPAX5EeJtyB1rV6pSPkQW99opIKcz6iEPNkAtVniwM
35
- AM5LT+EO74YD568fpYjJUw+T4/TsPJBWyU/f21QoaRXI+x3VNSEqDZEf67Lsp2Ew
36
- rPnJW2hNpPLFrA==
37
- -----END CERTIFICATE-----
16
+ cert_chain: []
38
17
 
39
- date: 2011-08-12 00:00:00 -06:00
18
+ date: 2011-08-14 00:00:00 -04:00
40
19
  default_executable:
41
20
  dependencies:
42
21
  - !ruby/object:Gem::Dependency
43
- name: hoe
22
+ name: rspec
44
23
  prerelease: false
45
24
  requirement: &id001 !ruby/object:Gem::Requirement
46
25
  none: false
47
26
  requirements:
48
27
  - - ">="
49
28
  - !ruby/object:Gem::Version
50
- hash: 35
29
+ hash: 3
51
30
  segments:
52
- - 2
53
- - 9
54
- - 4
55
- version: 2.9.4
31
+ - 0
32
+ version: "0"
56
33
  type: :development
57
34
  version_requirements: *id001
58
- description: |-
59
- Simple class which uses Ranges (and Fixnums) as keys in for a hash.
60
- Then look ups can be done with FixNum and if the FixNum is included in
61
- one of the hashes that value is returned.
35
+ - !ruby/object:Gem::Dependency
36
+ name: rcov
37
+ prerelease: false
38
+ requirement: &id002 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ hash: 3
44
+ segments:
45
+ - 0
46
+ version: "0"
47
+ type: :development
48
+ version_requirements: *id002
49
+ description: " RangeHash subclasses Hash and adds functionality so that Ranges can \n be the keys and values can be found by FixNums within those ranges.\n"
62
50
  email:
63
51
  - verdammelt@gmail.com
64
52
  executables: []
65
53
 
66
54
  extensions: []
67
55
 
68
- extra_rdoc_files:
69
- - History.txt
70
- - Manifest.txt
71
- - PostInstall.txt
72
- - README.rdoc
56
+ extra_rdoc_files: []
57
+
73
58
  files:
59
+ - .gitignore
74
60
  - .rspec
61
+ - Gemfile
62
+ - Gemfile.lock
75
63
  - History.txt
76
- - Manifest.txt
77
- - PostInstall.txt
78
64
  - README.rdoc
79
65
  - Rakefile
80
66
  - lib/rangehash.rb
67
+ - lib/rangehash/version.rb
68
+ - rangehash.gemspec
81
69
  - script/console
82
70
  - script/destroy
83
71
  - script/generate
84
72
  - spec/rangehash_spec.rb
85
73
  - spec/spec_helper.rb
86
74
  - todo.org
87
- - .gemtest
88
75
  has_rdoc: true
89
- homepage: http://github.com/verdammelt/range-hash
90
- licenses: []
76
+ homepage: https://github.com/verdammelt/rangehash
77
+ licenses:
78
+ - MIT
79
+ post_install_message:
80
+ rdoc_options: []
91
81
 
92
- post_install_message: PostInstall.txt
93
- rdoc_options:
94
- - --main
95
- - README.rdoc
96
82
  require_paths:
97
83
  - lib
98
84
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -119,6 +105,7 @@ rubyforge_project: rangehash
119
105
  rubygems_version: 1.5.0
120
106
  signing_key:
121
107
  specification_version: 3
122
- summary: Simple class which uses Ranges (and Fixnums) as keys in for a hash
108
+ summary: Subclass of Hash which allows Ranges as the keys
123
109
  test_files:
124
110
  - spec/rangehash_spec.rb
111
+ - spec/spec_helper.rb
data/.gemtest DELETED
File without changes
data/Manifest.txt DELETED
@@ -1,13 +0,0 @@
1
- .rspec
2
- History.txt
3
- Manifest.txt
4
- PostInstall.txt
5
- README.rdoc
6
- Rakefile
7
- lib/rangehash.rb
8
- script/console
9
- script/destroy
10
- script/generate
11
- spec/rangehash_spec.rb
12
- spec/spec_helper.rb
13
- todo.org
data/PostInstall.txt DELETED
@@ -1,7 +0,0 @@
1
-
2
- For more information on rangehash, see http://rangehash.rubyforge.org
3
-
4
- NOTE: Change this information in PostInstall.txt
5
- You can also delete it if you don't want it.
6
-
7
-
data.tar.gz.sig DELETED
@@ -1 +0,0 @@
1
- /���+Y�h��zk��̳�X�fW��e��O��n���̌�˳���P���y�.�[��L{ǓX��+6Cj�Ye�����)�~k���^1Ao^+.���/��{�{����
metadata.gz.sig DELETED
Binary file