cadooz 2.2.1 → 2.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +7 -21
- data/lib/cadooz/models/mutable/address.rb +2 -0
- data/lib/cadooz/models/mutable/greeting_card.rb +2 -0
- data/lib/cadooz/models/mutable/invoice_information.rb +2 -0
- data/lib/cadooz/models/mutable/order.rb +2 -0
- data/lib/cadooz/models/mutable/order_position.rb +2 -0
- data/lib/cadooz/models/mutable/payment.rb +2 -0
- data/lib/cadooz/version.rb +1 -1
- data/lib/mixins.rb +7 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b95bab0303729348b4a61d02e2321f4aba429814
|
4
|
+
data.tar.gz: e0acb5d2d6aac4a5cb1074df06f0b9ddcbf139cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32ab6cd766893896975bbdf1eb68e6655812fe281a0473beed69554862a223ca78b00cb2901c6dc832d0f12f7c82e15495cbe32bd7f3c6914a0beea6676c8b0a
|
7
|
+
data.tar.gz: 33121a0fd199eb902a36f16ce1dd5e324efdd37f8a4253761d2747d97dc134e30b2c70fa56213733477d06293650ab1fd90422cf09f2c9a6c0300528b066ab33
|
data/Rakefile
CHANGED
@@ -1,23 +1,9 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
require 'bundler/setup'
|
4
|
-
rescue LoadError
|
5
|
-
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
6
|
-
end
|
7
|
-
begin
|
8
|
-
require 'rdoc/task'
|
9
|
-
rescue LoadError
|
10
|
-
require 'rdoc/rdoc'
|
11
|
-
require 'rake/rdoctask'
|
12
|
-
RDoc::Task = Rake::RDocTask
|
13
|
-
end
|
1
|
+
require 'bundler/gem_tasks'
|
2
|
+
require 'rspec/core/rake_task'
|
14
3
|
|
15
|
-
|
16
|
-
rdoc.rdoc_dir = 'rdoc'
|
17
|
-
rdoc.title = 'cadooz'
|
18
|
-
rdoc.options << '--line-numbers'
|
19
|
-
rdoc.rdoc_files.include('README.rdoc')
|
20
|
-
rdoc.rdoc_files.include('lib/**/*.rb')
|
21
|
-
end
|
4
|
+
RSpec::Core::RakeTask.new(:spec)
|
22
5
|
|
23
|
-
|
6
|
+
# run console with gem loaded
|
7
|
+
task :console do
|
8
|
+
exec "irb -r cadooz -I ./lib"
|
9
|
+
end
|
data/lib/cadooz/version.rb
CHANGED
data/lib/mixins.rb
CHANGED
@@ -38,6 +38,13 @@ module Mixins
|
|
38
38
|
|
39
39
|
Cadooz.constants.include?(klass)
|
40
40
|
end
|
41
|
+
|
42
|
+
def default_value_for_nil
|
43
|
+
self.instance_variables.each do |var|
|
44
|
+
value = self.instance_variable_get(var)
|
45
|
+
self.instance_variable_set(var, 'not available') if value.blank?
|
46
|
+
end
|
47
|
+
end
|
41
48
|
end
|
42
49
|
|
43
50
|
class String
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cadooz
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Brown
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-06-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: savon
|