remi 0.2.29 → 0.2.30

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: 41478e7230be11cb6d4e0f06ed5c211b6837885d
4
- data.tar.gz: 02ba2b8d96dcac3a2fd2b4c5178b302706d9a935
3
+ metadata.gz: 6f58071ddcbc5d59548e0e174b770871556ebd88
4
+ data.tar.gz: 86eb7d201d268190c4546ce67ae816b97b87291b
5
5
  SHA512:
6
- metadata.gz: 3070e1e38608d9c4a3276c50645d8e0f5d812e742e3462a2d0aa284adb38bec7acd366fe508a0b0a92ac6c1e63e5fc7c86ae6147ba6f109a14ef0f16b678c0ad
7
- data.tar.gz: d483358b073df9f5c0989dd76c5a98dd93b579ff2c9084a2cc712061769499d1615ca6aa6127094e95b32a7bdf9c951cc5747b1512b888b5d784a888d7a8a940
6
+ metadata.gz: 2219591db9125214867d5a42be832808b1a156ecb2a334f84ca4006bf2e8ed1ca3e41ef342d631a6069717be22e7deca67f4556cbc2cf5a1db57e057d22edc17
7
+ data.tar.gz: 74b06952815620244b94f413bc22eddaccbab1592012d7407477ddec618253dfefdc9d39454492121a8093469ee2e249d5d60c6def072b8f4cc22d08f79918d1
data/Gemfile.lock CHANGED
@@ -19,7 +19,7 @@ GIT
19
19
  PATH
20
20
  remote: .
21
21
  specs:
22
- remi (0.2.29)
22
+ remi (0.2.30)
23
23
  activesupport (~> 4.2)
24
24
  bond (~> 0.5)
25
25
  cucumber (~> 2.1)
data/lib/remi/job.rb CHANGED
@@ -13,7 +13,7 @@ module Remi
13
13
 
14
14
  def define_source(name, type_class, **options)
15
15
  @sources ||= []
16
- @sources << name
16
+ @sources << name unless @sources.include? name
17
17
 
18
18
  define_method(name) do
19
19
  iv_name = instance_variable_get("@#{name}")
@@ -26,7 +26,7 @@ module Remi
26
26
 
27
27
  def define_target(name, type_class, **options)
28
28
  @targets ||= []
29
- @targets << name
29
+ @targets << name unless @targets.include? name
30
30
 
31
31
  define_method(name) do
32
32
  iv_name = instance_variable_get("@#{name}")
@@ -117,7 +117,7 @@ module Remi
117
117
  end
118
118
 
119
119
  def transform(value)
120
- value.slice(0,@len)
120
+ (value || '').slice(0,@len)
121
121
  end
122
122
  end
123
123
 
@@ -387,7 +387,7 @@ module Remi
387
387
  end
388
388
 
389
389
  def transform(value)
390
- value.gsub(@to_replace, @replace_with)
390
+ (value || '').gsub(@to_replace, @replace_with)
391
391
  end
392
392
  end
393
393
 
data/lib/remi/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Remi
2
- VERSION = '0.2.29'
2
+ VERSION = '0.2.30'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: remi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.29
4
+ version: 0.2.30
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sterling Paramore
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-28 00:00:00.000000000 Z
11
+ date: 2016-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bond