mash 0.0.6 → 0.1.1

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.
Files changed (5) hide show
  1. data/Rakefile +18 -0
  2. data/VERSION +1 -0
  3. data/lib/mash.rb +2 -0
  4. metadata +9 -11
  5. data/mash.gemspec +0 -14
data/Rakefile CHANGED
@@ -2,7 +2,25 @@ require 'rubygems'
2
2
  require './lib/mash.rb'
3
3
  require 'spec/rake/spectask'
4
4
 
5
+ begin
6
+ require 'jeweler'
7
+ Jeweler::Tasks.new do |gemspec|
8
+ gemspec.name = "mash"
9
+ gemspec.summary = "An extended Hash that gives simple pseudo-object functionality that can be built from hashes and easily extended."
10
+ gemspec.description = "Mash is an extended Hash that gives simple pseudo-object functionality that can be built from hashes and easily extended."
11
+ gemspec.email = "michael@intridea.com"
12
+ gemspec.homepage = "http://github.com/mbleigh/mash"
13
+ gemspec.authors = ["Michael Bleigh"]
14
+ gemspec.files = FileList["[A-Z]*", "{lib,spec}/**/*"] - FileList["**/*.log"]
15
+ end
16
+ Jeweler::GemcutterTasks.new
17
+ rescue LoadError
18
+ puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
19
+ end
20
+
21
+ task :default => :spec
5
22
  desc "Run specs."
6
23
  Spec::Rake::SpecTask.new("spec") do |t|
7
24
  t.spec_files = "spec/*_spec.rb"
25
+ t.spec_opts = ['--colour', '--format specdoc']
8
26
  end
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.1.1
@@ -49,6 +49,8 @@ class Mash < Hash
49
49
  super(&blk)
50
50
  end
51
51
 
52
+ class << self; alias [] new; end
53
+
52
54
  def id #:nodoc:
53
55
  self["id"] ? self["id"] : super
54
56
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mash
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Bleigh
@@ -9,26 +9,24 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-07-22 00:00:00 -07:00
12
+ date: 2009-11-12 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
16
- description:
16
+ description: Mash is an extended Hash that gives simple pseudo-object functionality that can be built from hashes and easily extended.
17
17
  email: michael@intridea.com
18
18
  executables: []
19
19
 
20
20
  extensions: []
21
21
 
22
22
  extra_rdoc_files:
23
- - History.txt
24
- - Manifest.txt
25
23
  - README.txt
26
24
  files:
27
25
  - History.txt
28
26
  - Manifest.txt
29
27
  - README.txt
30
28
  - Rakefile
31
- - mash.gemspec
29
+ - VERSION
32
30
  - lib/mash.rb
33
31
  - spec/mash_spec.rb
34
32
  - spec/spec_helper.rb
@@ -38,8 +36,7 @@ licenses: []
38
36
 
39
37
  post_install_message:
40
38
  rdoc_options:
41
- - --main
42
- - README.txt
39
+ - --charset=UTF-8
43
40
  require_paths:
44
41
  - lib
45
42
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -60,6 +57,7 @@ rubyforge_project:
60
57
  rubygems_version: 1.3.5
61
58
  signing_key:
62
59
  specification_version: 3
63
- summary: Mash is an extended Hash that gives simple pseudo-object functionality that can be built from hashes and easily extended
64
- test_files: []
65
-
60
+ summary: An extended Hash that gives simple pseudo-object functionality that can be built from hashes and easily extended.
61
+ test_files:
62
+ - spec/mash_spec.rb
63
+ - spec/spec_helper.rb
@@ -1,14 +0,0 @@
1
- Gem::Specification.new do |s|
2
- s.name = "mash"
3
- s.version = "0.0.6"
4
- s.date = "2008-07-22"
5
- s.summary = "An extended Hash that gives simple pseudo-object functionality that can be built from hashes and easily extended"
6
- s.email = "michael@intridea.com"
7
- s.homepage = "http://github.com/mbleigh/mash"
8
- s.summary = "Mash is an extended Hash that gives simple pseudo-object functionality that can be built from hashes and easily extended"
9
- s.has_rdoc = true
10
- s.authors = ["Michael Bleigh"]
11
- s.files = ["History.txt", "Manifest.txt", "README.txt", "Rakefile", "mash.gemspec", "lib/mash.rb", "spec/mash_spec.rb","spec/spec_helper.rb"]
12
- s.rdoc_options = ["--main", "README.txt"]
13
- s.extra_rdoc_files = ["History.txt", "Manifest.txt", "README.txt"]
14
- end