verse-ruby 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a5e2bc78c0682581de2b8f13905b3bdbfe8849ff
4
- data.tar.gz: 67f77f9aba328d3d3a90de2eb269264228cc7e9a
3
+ metadata.gz: 66aa0cfef339a02f2eddb35464aebd1dddae8cb7
4
+ data.tar.gz: 2e9942581e183912293c1472418c3c8a302b2020
5
5
  SHA512:
6
- metadata.gz: be00d68daad02d496d994c8b4e7389913b3cb5b3277b6995626ddb2f4d07ca90a3b6603bdf813cf3c58568c86c63cce703f83c646a2de0f6becef1b1c8b53f88
7
- data.tar.gz: e924ac8a94c06d57b37bda02d6cb3f6e4ef0891e544761b28fb90915fdeda80c4a995d747f8542d06895060c8286ee267cf65d232d7a25690f0ff8bcce7b4447
6
+ metadata.gz: 154fabae3d19ec5f2ad86a27e02aa0f53cfbb20e2bbab84db7e3bb6abc391d16d0e432f25a1e3549a7d31bbd2023eabf59c683ecc14c18dff7cc5ad139641044
7
+ data.tar.gz: 0d5263667f18a33102fbc962cc9668d74e9bab60bad6d78c0d0c54bd8637259f693a56bfffb6ea652965386b8b26c2393c2f3c81197dbc278167719347e4f1a9
@@ -3,5 +3,10 @@ module Verse
3
3
  include Her::Model
4
4
 
5
5
  include_root_in_json true
6
+
7
+ # Demodulizes model_name e.g. for use in route helpers.
8
+ def self.model_name
9
+ ActiveModel::Name.new(self, nil, name.split('::').last)
10
+ end
6
11
  end
7
12
  end
data/lib/verse/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Verse
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: verse-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thom Bruce
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-09-20 00:00:00.000000000 Z
11
+ date: 2017-09-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler