sequel-noinflectors 0.1.0

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
+ *.gem
2
+ Gemfile.lock
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2013 Tyler Kellen
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,19 @@
1
+ # sequel-noinflectors
2
+
3
+ Disable inflectors for Sequel.
4
+
5
+ ## Setup
6
+
7
+ ```console
8
+ gem install sequel-noinflectors
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ### Require after Sequel
14
+ ```ruby
15
+ require 'sequel'
16
+ require 'sequel-noinflectors'
17
+ ```
18
+
19
+ > Copyright (c) 2013 Tyler Kellen. See LICENSE for further details.
@@ -0,0 +1,14 @@
1
+ ##
2
+ # Disable inflectors for Sequel.
3
+ #
4
+ class Sequel::Model
5
+ def self.implicit_table_name
6
+ underscore(demodulize(name)).to_sym
7
+ end
8
+ def self.pluralize(word)
9
+ word
10
+ end
11
+ def self.singularize(word)
12
+ word
13
+ end
14
+ end
@@ -0,0 +1,11 @@
1
+ Gem::Specification.new do |gem|
2
+ gem.name = 'sequel-noinflectors'
3
+ gem.version = '0.1.0'
4
+ gem.summary = 'Disable inflectors for Sequel.'
5
+ gem.description = gem.description
6
+ gem.author = 'Tyler Kellen'
7
+ gem.email = 'tyler@sleekcode.net'
8
+ gem.homepage = 'https://github.com/tkellen/sequel-noinflectors/'
9
+ gem.files = `git ls-files`.split("\n")
10
+ gem.require_paths = ['lib']
11
+ end
metadata ADDED
@@ -0,0 +1,51 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: sequel-noinflectors
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Tyler Kellen
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-03-25 00:00:00.000000000 Z
13
+ dependencies: []
14
+ description: ''
15
+ email: tyler@sleekcode.net
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - .gitignore
21
+ - Gemfile
22
+ - LICENSE
23
+ - README.md
24
+ - lib/sequel-noinflectors.rb
25
+ - sequel-noinflectors.gemspec
26
+ homepage: https://github.com/tkellen/sequel-noinflectors/
27
+ licenses: []
28
+ post_install_message:
29
+ rdoc_options: []
30
+ require_paths:
31
+ - lib
32
+ required_ruby_version: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ required_rubygems_version: !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
44
+ requirements: []
45
+ rubyforge_project:
46
+ rubygems_version: 1.8.24
47
+ signing_key:
48
+ specification_version: 3
49
+ summary: Disable inflectors for Sequel.
50
+ test_files: []
51
+ has_rdoc: