aries_ruby_cli 0.0.9 → 0.0.10

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: ea8ac61f88d433242be3a70e9b516e6948d6b64d
4
- data.tar.gz: 8284d4f89699e10b012c6dfcb049fce48786fd7d
3
+ metadata.gz: 325d128d6f731fe8bebf80de93bd43e40d8ad58a
4
+ data.tar.gz: 35e6977bd9c304fcc5a9deaaef8f3138bb58f1be
5
5
  SHA512:
6
- metadata.gz: 81ae26569d97d71b21b57a4857f663574932c15e560b4a088ee8adba3837f631415e8890a11a1192634cfd6ddcd921a99529af15759387a5d797b6eefe188798
7
- data.tar.gz: 350d553844d1f0724a6e23f1d15da85bd51374af97b6c46295a3fccf3957ae255fa65a01de5efc06a6921e8aba190418fb09f71259f877f63d7e5c1173681a98
6
+ metadata.gz: 023a25d70b10353bf1f9c7615041b36c9f811f345f35e717366a584960478fc22b8c1d7a7ba152269a3e8050f0e40c5b6a03efc1ad7f8591698eb40fa6a5dca9
7
+ data.tar.gz: 185828add66e2b47f6ad1dcebaca5dc484b6aa49f1e3d242b22bf2c216fcde05e858b2840edb5fefbd17f6b4607fe80a6aeed2b88d43effbbdaa8010cf520579
@@ -20,7 +20,6 @@ Gem::Specification.new do |spec|
20
20
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
21
  spec.require_paths = ["lib"]
22
22
 
23
- spec.add_dependency "thor"
24
23
  spec.add_dependency "activesupport"
25
24
 
26
25
  spec.add_development_dependency "bundler", "~> 1.14"
data/exe/aries_ruby CHANGED
@@ -1,4 +1,15 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require_relative "../lib/aries_ruby_cli"
4
- AriesRubyCli::CLI.start
3
+ require "active_support/core_ext/string/inflections"
4
+ require 'json'
5
+
6
+ def run_task(input, config, execution_date)
7
+ $LOAD_PATH.unshift(File.join(Dir.pwd, 'lib')) unless $LOAD_PATH.include?(File.join(Dir.pwd, 'lib'))
8
+ task_name = ENV['TASK_NAME']
9
+ require task_name
10
+ activity = task_name.tr('-', '_').classify.constantize.new
11
+ output = activity.on_task(JSON.parse(input), JSON.parse(config), execution_date)
12
+ at_exit { puts output }
13
+ end
14
+
15
+ run_task(ARGV[0], ARGV[1], ARGV[2])
@@ -1,3 +1,3 @@
1
1
  module AriesRubyCli
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aries_ruby_cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - alois
@@ -10,20 +10,6 @@ bindir: exe
10
10
  cert_chain: []
11
11
  date: 2017-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: thor
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: '0'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ">="
25
- - !ruby/object:Gem::Version
26
- version: '0'
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: activesupport
29
15
  requirement: !ruby/object:Gem::Requirement
@@ -127,7 +113,6 @@ files:
127
113
  - bin/console
128
114
  - bin/setup
129
115
  - exe/aries_ruby
130
- - lib/aries_ruby_cli.rb
131
116
  - lib/aries_ruby_cli/version.rb
132
117
  homepage: http://www.astronomer.io
133
118
  licenses:
@@ -1,21 +0,0 @@
1
- require "thor"
2
- require "active_support/core_ext/string/inflections"
3
- require 'json'
4
-
5
- module AriesRubyCli
6
- class CLI < Thor
7
- def self.say_hello
8
- puts "Hello World!"
9
- end
10
-
11
- desc "run_task ARIES_ACTIVITY_NAME CONFIG EXECUTION_DATE", "Runs an Aries Activity"
12
- def run_task(input, config, execution_date)
13
- $LOAD_PATH.unshift(File.join(Dir.pwd, 'lib')) unless $LOAD_PATH.include?(File.join(Dir.pwd, 'lib'))
14
- task_name = ENV['TASK_NAME']
15
- require task_name
16
- activity = task_name.tr('-', '_').classify.constantize.new
17
- output = activity.on_task(JSON.parse(input), JSON.parse(config), execution_date)
18
- at_exit { puts output }
19
- end
20
- end
21
- end