smash 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,4 @@
1
+ *.gem
2
+ .bundle
3
+ Gemfile.lock
4
+ pkg/*
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "http://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in smash.gemspec
4
+ gemspec
5
+
6
+ gem 'rake'
@@ -0,0 +1 @@
1
+ require 'bundler/gem_tasks'
@@ -0,0 +1,13 @@
1
+ require 'hashie/mash'
2
+
3
+ module Hashie
4
+ class Smash < Mash
5
+
6
+ protected
7
+
8
+ def convert_key(key) ## not as good as active_support but works fine for CamelCased to underscored
9
+ key.to_s.gsub(/([a-z\d])([A-Z])/,'\1_\2').downcase
10
+ end
11
+
12
+ end
13
+ end
@@ -0,0 +1,2 @@
1
+ require "smash/version"
2
+ require 'hashie/smash'
@@ -0,0 +1,3 @@
1
+ module Smash
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,22 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "smash/version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "smash"
7
+ s.version = Smash::VERSION
8
+ s.authors = ["John Axel Eriksson"]
9
+ s.email = ["john@insane.se"]
10
+ s.homepage = ""
11
+ s.summary = %q{Extends Hashie::Mash for rubyfying keys (similar to Rash but faster and less compatible - more or less stole the code)}
12
+ s.description = %q{Extends Hashie::Mash for rubyfying keys (similar to Rash but faster and less compatible - more or less stole the code)}
13
+
14
+ s.rubyforge_project = "smash"
15
+
16
+ s.add_dependency('hashie', "~> 1.1.0")
17
+
18
+ s.files = `git ls-files`.split("\n")
19
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
20
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
21
+ s.require_paths = ["lib"]
22
+ end
metadata ADDED
@@ -0,0 +1,71 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: smash
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - John Axel Eriksson
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2011-08-02 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: hashie
16
+ requirement: &2169889980 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: 1.1.0
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *2169889980
25
+ description: Extends Hashie::Mash for rubyfying keys (similar to Rash but faster and
26
+ less compatible - more or less stole the code)
27
+ email:
28
+ - john@insane.se
29
+ executables: []
30
+ extensions: []
31
+ extra_rdoc_files: []
32
+ files:
33
+ - .gitignore
34
+ - Gemfile
35
+ - Rakefile
36
+ - lib/hashie/smash.rb
37
+ - lib/smash.rb
38
+ - lib/smash/version.rb
39
+ - smash.gemspec
40
+ homepage: ''
41
+ licenses: []
42
+ post_install_message:
43
+ rdoc_options: []
44
+ require_paths:
45
+ - lib
46
+ required_ruby_version: !ruby/object:Gem::Requirement
47
+ none: false
48
+ requirements:
49
+ - - ! '>='
50
+ - !ruby/object:Gem::Version
51
+ version: '0'
52
+ segments:
53
+ - 0
54
+ hash: 840126604731750333
55
+ required_rubygems_version: !ruby/object:Gem::Requirement
56
+ none: false
57
+ requirements:
58
+ - - ! '>='
59
+ - !ruby/object:Gem::Version
60
+ version: '0'
61
+ segments:
62
+ - 0
63
+ hash: 840126604731750333
64
+ requirements: []
65
+ rubyforge_project: smash
66
+ rubygems_version: 1.8.6
67
+ signing_key:
68
+ specification_version: 3
69
+ summary: Extends Hashie::Mash for rubyfying keys (similar to Rash but faster and less
70
+ compatible - more or less stole the code)
71
+ test_files: []