holistics 0.2.8 → 0.2.9

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: cdc4e0f5e9b4d1d66a0a9d911a102169c6ecaeb8
4
- data.tar.gz: 8b5ea3eaafe961fc7b31bbdb81b4f9bebdd114a3
3
+ metadata.gz: b19979733fe3e8b7e3291a2d191b3fdd6f162274
4
+ data.tar.gz: d3c4dfcfa4b1b65159c3ba307e50940cd2af5bb8
5
5
  SHA512:
6
- metadata.gz: b5eecacd26f55c6e34ab9f3ae2a6360a36c33c8f3f8e8dac8185d890e028535b749349bec7c4febf76319841d9b99df244a00839ff3c5ec68b69dcdfaa1d348f
7
- data.tar.gz: 8735748beb6f7163711d97b3cae2c6e38926fb9eb040475c406760a59995567928a8e8b9595ccfd184f662ee351bd05ae45f4bac0ceac2b89dc74616f31c7ed8
6
+ metadata.gz: 855138b11b0725a28f254012e2c60c1765a87e4f41859f8aa6609a644d4dff6a7c7326c0a3c6e11414dfbc72302db5a4e964aca9a423f9471af41bb29e178ae2
7
+ data.tar.gz: 1a5fe165c00d5bfb606d10e2e6dd9ca7b36ed565d2beb7dacbe68093c62df84aa8cbe0534776e691e4bdc11269ec3a6e9bc26a4a4f2db5f508ec1682d8e5ffd9
data/README.md CHANGED
@@ -17,7 +17,7 @@ Then run the following:
17
17
  Version: 0.0.3
18
18
  File: holistics-0.0.3.gem
19
19
 
20
- $ gem publish holistics-0.0.3.gem
20
+ $ gem push holistics-0.0.3.gem
21
21
 
22
22
 
23
23
  ## Installation (for public facing)
@@ -1,4 +1,4 @@
1
1
  module Holistics
2
- VERSION = '0.2.8'
3
- DATE = '2017-10-20'
2
+ VERSION = '0.2.9'
3
+ DATE = '2017-10-27'
4
4
  end
data/lib/import.rb CHANGED
@@ -15,10 +15,23 @@ module Holistics
15
15
 
16
16
  # execute import job
17
17
  method_option :import_id, aliases: '-j', type: :string, required: true, desc: 'ID of import job to be executed'
18
+ method_option :range, aliases: '--range', type: :boolean, required: false, desc: 'Execution type is custom_range. The range of left-closed right-opened range `[start, end)`.'
19
+ method_option :range_start, aliases: '--start', type: :string, required: false, desc: 'start range'
20
+ method_option :range_end, aliases: '--end', type: :string, required: false, desc: 'end range'
18
21
  desc 'execute', 'Invoke an import job'
19
22
 
20
23
  def execute
21
- api_client.send_import(options.dup)
24
+ range_mode = options[:range]
25
+ params = {
26
+ import_id: options[:import_id]
27
+ }
28
+ if range_mode
29
+ raise Thor::Error.new('Error, please specify a start range or end range') if !options[:range_start] && !options[:range_end]
30
+ params[:range_start] = options[:range_start]
31
+ params[:range_end] = options[:range_end]
32
+ params[:execution_mode] = 'custom_range'
33
+ end
34
+ api_client.send_import(params.dup)
22
35
  end
23
36
 
24
37
  no_commands do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: holistics
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8
4
+ version: 0.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thanh Dinh Khac
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-10-20 00:00:00.000000000 Z
12
+ date: 2017-10-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler