artirix_data_models-ams 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +2 -1
- data/README.md +4 -0
- data/bin/rake +17 -0
- data/lib/artirix_data_models/ams/version.rb +1 -1
- data/lib/artirix_data_models/model/ams_compliant.rb +24 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ae01300ba747d46318bf8951995bdbb85e2d8274
|
4
|
+
data.tar.gz: 4a62ca14d8c8958200771cc6a5f875b23780d254
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 88363b1648163fcbdfad115bbeefa9342e50b1bbcefcef02d1e16536e6943245e2af56485d8890b62fdfbfc733ce76ea38106cf8c31a31f1fabb5f8791eb13a9
|
7
|
+
data.tar.gz: 36b7154fe9ea9acbec7ccc03096e2869daad5f0912028b0b4133164053458200d0fc78a28c50cd6048ba3bc3fa5deb06ca41ffeb1e82f2f6dc08d8bedf0b527f
|
data/Gemfile
CHANGED
data/README.md
CHANGED
data/bin/rake
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
#
|
4
|
+
# This file was generated by Bundler.
|
5
|
+
#
|
6
|
+
# The application 'rake' is installed as part of a gem, and
|
7
|
+
# this file is here to facilitate running it.
|
8
|
+
#
|
9
|
+
|
10
|
+
require "pathname"
|
11
|
+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
12
|
+
Pathname.new(__FILE__).realpath)
|
13
|
+
|
14
|
+
require "rubygems"
|
15
|
+
require "bundler/setup"
|
16
|
+
|
17
|
+
load Gem.bin_path("rake", "rake")
|
@@ -26,4 +26,28 @@ module ArtirixDataModels::Model::AMSCompliant
|
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
29
|
+
|
30
|
+
module ClassMethods
|
31
|
+
def self.extended(klass)
|
32
|
+
unless klass.method_defined? :lookup_ancestors
|
33
|
+
klass.extend WithLookupAncestors
|
34
|
+
end
|
35
|
+
|
36
|
+
unless klass.method_defined? :human_attribute_name
|
37
|
+
klass.extend WithHumanAttributeName
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
module WithLookupAncestors
|
43
|
+
def lookup_ancestors
|
44
|
+
[self]
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
module WithHumanAttributeName
|
49
|
+
def human_attribute_name(attr, _options = {})
|
50
|
+
attr
|
51
|
+
end
|
52
|
+
end
|
29
53
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: artirix_data_models-ams
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eduardo Turiño
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-12-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: artirix_data_models
|
@@ -87,6 +87,7 @@ files:
|
|
87
87
|
- Rakefile
|
88
88
|
- artirix_data_models-ams.gemspec
|
89
89
|
- bin/console
|
90
|
+
- bin/rake
|
90
91
|
- bin/setup
|
91
92
|
- lib/artirix_data_models/ams.rb
|
92
93
|
- lib/artirix_data_models/ams/version.rb
|