friendly_extensions 0.4.1 → 0.4.5

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
- SHA1:
3
- metadata.gz: e99c8cea01414ebad5d0899113c89acd88f4f8f7
4
- data.tar.gz: ec0ebec211bccb79e4fdfbc61a3c5eb7bbc0eb06
2
+ SHA256:
3
+ metadata.gz: 30c5f4e1c4f1b02013e1b91772f9ebbad3b58719f3c8cf9767471dfa9cec0391
4
+ data.tar.gz: 810d97bf0b90d1df838ec462196d70debb146602d57153b5062dbb5fec2307eb
5
5
  SHA512:
6
- metadata.gz: faead26916545e69c8f06488e35939d5d95fc733e52b71566b89a1e87521f869c4bd9c79593868f564361e02c8dd7d29f6571a4f755ff3f45d70e6d7fe1e4832
7
- data.tar.gz: 189f363a97c30331d639144238d34b7af2e1733276f4c744032aacb02d25edcf21345989f3e204d11d227f48ffd5fc4d7522ec6b0e4a354b69143923218336b7
6
+ metadata.gz: 7c4025e4afe7a9d1433737a1fb42cc10facf1ce59998fe6a4502f67f4854d34b71126e2cb27085bc586455e8fb12534b37280766da362dbeea7b7a09ef640e64
7
+ data.tar.gz: 6154eb6f819ef17b2aaa0fea3ca3383edac78ba17bed272a73fb326e72e41e63a762fc585ab15dd067211823ed2e841a44cc2daa41514eb0597fffaf2c7ffb92
@@ -7,8 +7,8 @@ module SmartCurrency
7
7
 
8
8
  module ClassMethods
9
9
  def smart_currency(skip_on: [])
10
-
11
- if !smart_currency? && table_exists?
10
+ begin
11
+ if !smart_currency? && table_exists?
12
12
  include InstanceMethods
13
13
  auto_attributes = []
14
14
 
@@ -25,7 +25,9 @@ module SmartCurrency
25
25
  self[a.name.to_sym] = (disable_smart_currency == true ? val : currency_to_db(val))
26
26
  end
27
27
  end
28
-
28
+ end
29
+ rescue ActiveRecord::NoDatabaseError => e
30
+ puts "SKIPPING smart_currency on #{self.name} - NoDatabase"
29
31
  end
30
32
  end
31
33
 
@@ -147,9 +147,9 @@ module StringAndMore
147
147
  return new_text
148
148
  end
149
149
 
150
- def to_model
151
- self.singularize.camelize.constantize
152
- end
150
+ #def to_model
151
+ # self.singularize.camelize.constantize
152
+ #end
153
153
 
154
154
  #== HTML Styling
155
155
  # as the function names say
@@ -204,11 +204,17 @@ module StringAndMore
204
204
  colorize(33)
205
205
  end
206
206
 
207
+ def blue
208
+ colorize(34)
209
+ end
210
+
207
211
  def pink
208
212
  colorize(35)
209
213
  end
210
214
 
211
215
 
216
+
217
+
212
218
  #== Numerische encription
213
219
  # cool thing for simple encrypt and decrypt strings
214
220
 
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: 0.4.1
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Eck
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-20 00:00:00.000000000 Z
11
+ date: 2021-12-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -57,7 +57,7 @@ homepage: https://github.com/florianeck/rails_friendly_extensions
57
57
  licenses:
58
58
  - MIT
59
59
  metadata: {}
60
- post_install_message:
60
+ post_install_message:
61
61
  rdoc_options: []
62
62
  require_paths:
63
63
  - lib
@@ -72,9 +72,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
72
72
  - !ruby/object:Gem::Version
73
73
  version: '0'
74
74
  requirements: []
75
- rubyforge_project:
76
- rubygems_version: 2.6.14
77
- signing_key:
75
+ rubygems_version: 3.0.8
76
+ signing_key:
78
77
  specification_version: 4
79
78
  summary: Collection of useful features for Ruby/Rails Classes
80
79
  test_files: