parsergem 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 631bcfdba7aac41738b184b905b8b1b9ee47bc907666a297afd8f8a0d89d854f
4
- data.tar.gz: bd3bfac34984ea9cd940fd874379cd60ecf4cf7cd0edf3811e824640a580a3f4
3
+ metadata.gz: eb26a9c2d1591965320607c103b70fcfc231fcbb67532224c0affea0cba59443
4
+ data.tar.gz: 644bffc80b1f88dec4f3523eac8bd96213b6f6dd80090b8693965347b2970849
5
5
  SHA512:
6
- metadata.gz: 1159dc126a68bf509c1ffc9b0ca74e37c3ae6c5a639cfd065ff1e80d73ecf99d80b796582998213584562bb1f82cbbc06b3677882c57166a15172e3780173aa4
7
- data.tar.gz: aa186c04bd4ecbe2628544fb8ee625324304cf418ca2de153d13969baebaf641ea00db09ea5a6a59f71b5ed7b1396b4e2b09f41204943084a0a309c9dcbe0642
6
+ metadata.gz: 82e0b832ff9df26b5ba0fd65894a6eccf1d0605d176f23c5643883680d4231d740db4fca5cdf0680ffe0d78860cdf69533fdc08d05d59b44e5e9de42102af87a
7
+ data.tar.gz: 9d91c3fb09f112327897c7ef38217edef2f5a1e20158454113d07125ff383ef12896a97586dd442d3d6ae0ac14f200a6083c9507170702e66fabb35aa2e537dd
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- parsergem (0.1.1)
4
+ parsergem (0.1.2)
5
5
  activesupport (>= 5.0.0)
6
6
  aws-sdk-translate
7
7
  nokogiri
@@ -46,10 +46,12 @@ module ParserGem
46
46
  :starting_at => 0,
47
47
  :total => actions.size)
48
48
 
49
- credentials = Aws::Credentials.new( options[:aws_public_key], options[:aws_secret_key])
50
- client = Aws::Translate::Client.new( region: options[:aws_region],
51
- credentials: credentials)
52
-
49
+ if options[:languages]
50
+ credentials = Aws::Credentials.new( options[:aws_public_key], options[:aws_secret_key])
51
+ client = Aws::Translate::Client.new( region: options[:aws_region],
52
+ credentials: credentials)
53
+ end
54
+
53
55
  actions.each do |action|
54
56
  file_path = File.join('app/views', controller_name, "#{action[:action_name]}.html.erb") # Set view
55
57
  File.open(file_path, 'wb') do |file|
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class Parser
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parsergem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Дмитрий Герасименко