q4m 0.0.4 → 0.0.5

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 (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/q4m.rb +2 -1
  3. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.4
1
+ 0.0.5
data/lib/q4m.rb CHANGED
@@ -111,7 +111,8 @@ module Q4m
111
111
  # that they pull out jobs from by overriding.
112
112
  #
113
113
  def table_name
114
- self.class.name.gsub(/([A-Z])/, '_\1').gsub(/^_/, '').downcase + 's'
114
+ s = self.class.name.split(/::/).last
115
+ s.gsub(/([A-Z])/, '_\1').gsub(/^_|::/, '').downcase + 's'
115
116
  end
116
117
 
117
118
  # Job execution.
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: q4m
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 4
10
- version: 0.0.4
9
+ - 5
10
+ version: 0.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - kazuyoshi tlacaelel