batch_manager 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- OTI3Njc1YjBmMmYyYjZhMDY4MDg1NjhmZDYxMmYwMzA4ZDhjOWExMw==
4
+ ZjVlODRhN2E4NTAyNGM5M2RlYTQzZjJlODdjZDQxNmUzNmJkYzU4MQ==
5
5
  data.tar.gz: !binary |-
6
- MzEwMTIyZDE2MjFlNTAyMTczNjU5ZTU4YmZkNTk2MzAxNmIwZTc5OQ==
6
+ ZTNlNWRiYTM0MWU2ZjAwYzQyMDljYTBiNjFhMDQ3YWE5MWYwZjkxNg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- MTBhMGFkOWM5NWVjZWMzMWRlYWVjNzQ4ZjBmNzg3NWJiZmU0M2EzNmQ3MTRj
10
- MjJkYTAzZDYzZjU0YTgwNWEwOTcyNGEzZTRjNjA4NTlhNjEyOTA1OWU5MGQw
11
- MDk0YzcyNDQ5NjYyYTRjNjU5MTY4ZjBiOGMxNGM3MDc1OWI1ZTc=
9
+ NTVhYmM4ZDFkZmVlZjExMGFlNTM0MjQ3YzdmYmRmNDQ3YmZiNDI2ODM0NWY4
10
+ MDM3ODk0ZTM0NTc0ZDZhZmM4ZjkyNjE4YmJhYTJkOTZkMDE2ZTQ4Njg2ZTA2
11
+ MjM5NDgyZjFhMWI0OGQyZWZlMWVhNzNiNGQ1N2RmOGI1MGVhYTg=
12
12
  data.tar.gz: !binary |-
13
- MWQyNjlmMDM5NDcyZTM4ODg3YTVjZTc4ZmEwNmQ2ZTQxNTczYWVkNTI4YTg3
14
- M2FiYjJlMDY1NzNhZmQ4NGM4MmFlMzIyM2EwZWE4NGEyYTg3OGJkMmI4Mjdh
15
- OTU1ZWMzNDEzZTlmY2IyZjFhMzg3ZTUwYjlhZWVlNjViYjUyMzM=
13
+ YWQ3ODlkMDQzOWI3ZjkxZDA2ODZhMDVkODdiOTZiOWI4YTYzNWJjMDg5NTJk
14
+ Mzg5Njg1Yjk2M2UwOTNmODcyMzI4ZmVlYjBiYjg1ZDFjOGRmNWM4ZjkwM2Ni
15
+ NzM1ZjcyYmM2NDNkODAwNWZjNmEyM2Y1MzlmYjFiMDUxN2E5NTA=
@@ -11,7 +11,7 @@ module BatchManager
11
11
 
12
12
  def log
13
13
  log_file = BatchManager::Logger.log_file_path(params[:batch_name], params[:wet])
14
- render :text => File.read(log_file).gsub("\n", "<br/>")
14
+ render :file => log_file, :content_type => Mime::TEXT, :layout => false
15
15
  end
16
16
  end
17
17
  end
@@ -16,7 +16,7 @@ module BatchManager
16
16
  batch_status.update_schema if @wet
17
17
  rescue => e
18
18
  logger.error e
19
- raise e
19
+ logger.error "Failed."
20
20
  ensure
21
21
  puts "Log saved at: #{BatchManager.logger.log_file}" if logger.log_file
22
22
  logger.close
@@ -1,3 +1,3 @@
1
1
  module BatchManager
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: batch_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Weihu Chen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-06-05 00:00:00.000000000 Z
11
+ date: 2013-06-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails