friendly_extensions 0.2 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- metadata +3 -6
- data/app/models/friends_label.rb +0 -19
- data/db/migrate/001_drop_friends_labels.rb +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 07845f3ca4631a3be94934cd4bf9bdac0276ac8c
|
4
|
+
data.tar.gz: 0a2d208fcb8cde214b7d58169fa68cd796105695
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 013f3753e591ba56e7c858ce94eba4eeaf0ce2f8a45625c09bd2d96d1dfb21f93963864eda1a5be85e72bf9af92036e5878f06cb3a28ecd6c2784ee082c201f9
|
7
|
+
data.tar.gz: 37578ad68411f3f6fe034c401c03e86915da52f88a73c805fd1fca8c511924194565756e05c94f31d9e4a3e33360a015aab3e6f5aa2361920788fdff8e65e230
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: friendly_extensions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Florian Eck
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-09-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -33,10 +33,8 @@ extra_rdoc_files: []
|
|
33
33
|
files:
|
34
34
|
- app/helpers/friends_forms_helper.rb
|
35
35
|
- app/helpers/friends_labeled_form_helper.rb
|
36
|
-
- app/models/friends_label.rb
|
37
36
|
- config/locales/friendly_extensions.de.yml
|
38
37
|
- config/locales/friendly_extensions.en.yml
|
39
|
-
- db/migrate/001_drop_friends_labels.rb
|
40
38
|
- lib/alphanumeric.rb
|
41
39
|
- lib/array.rb
|
42
40
|
- lib/boolean.rb
|
@@ -74,7 +72,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
74
72
|
version: '0'
|
75
73
|
requirements: []
|
76
74
|
rubyforge_project:
|
77
|
-
rubygems_version: 2.4.
|
75
|
+
rubygems_version: 2.4.6
|
78
76
|
signing_key:
|
79
77
|
specification_version: 4
|
80
78
|
summary: Collection of useful features for Ruby/Rails Classes
|
@@ -84,4 +82,3 @@ test_files:
|
|
84
82
|
- test/hash_test.rb
|
85
83
|
- test/numeric_test.rb
|
86
84
|
- test/string_test.rb
|
87
|
-
has_rdoc:
|
data/app/models/friends_label.rb
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
# -*- encoding : utf-8 -*-
|
2
|
-
class FriendsLabel < ActiveRecord::Base
|
3
|
-
|
4
|
-
validates_uniqueness_of :attribute_name
|
5
|
-
|
6
|
-
labels = {}
|
7
|
-
|
8
|
-
if self.table_exists?
|
9
|
-
concept_labels = FriendsLabel.all
|
10
|
-
concept_labels.each {|l| labels.merge!(l.attribute_name => {:label => l.label, :tooltip => l.tooltip, :docu_tooltip => l.tooltip_docu})}
|
11
|
-
end
|
12
|
-
|
13
|
-
LABELS = labels
|
14
|
-
|
15
|
-
def is_unset?
|
16
|
-
return (!(self.attribute_name == self.label)).to_s
|
17
|
-
end
|
18
|
-
|
19
|
-
end
|