woro 0.3.0 → 0.3.1

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
  SHA1:
3
- metadata.gz: 1fc039fcb30ca0249690a9faa835fe36b0a791b3
4
- data.tar.gz: 9049c6ace163fa2570cb74f27e09024c86c940b3
3
+ metadata.gz: 42dbfd98f066a125d3bc205a86f3502eadf25a7f
4
+ data.tar.gz: 3811dd916fa5057318865c3041d0dd78d413f599
5
5
  SHA512:
6
- metadata.gz: 16c86c137ee7bbc88d1db72b1adb66d659382c4235caad2c2e7d302ab2835fd9788e33db4f2890702e2c85999bc77e1f3108c917903e81a6ab1b79208578f0d7
7
- data.tar.gz: 02f0df2c3afd3dffed2de0833f6bb64ced14dd2bdca2898fe97eabbd5795f94c456c3cca194f2f2fe08048cb8301d5e96180abb7e5d7c0a2f448b1b9693e37b7
6
+ metadata.gz: a15ac0d9e69de09d860ad57b45d1abc12383a015b109d7290196cd0fb0d64ffb9c347ffef2bd188ffc59cc8ae798ff4038b4131c7d61c76a1204ea2d666a5c08
7
+ data.tar.gz: b089931039ce9ea2f9c3f7a19921c6f3f5787458d82f67db4ef9fdad6bcb5e5960d57b0ce8c1a15ed2887c2e282141167ffb56345ea7b70bd3e08da4eeb31fcc
data/bin/woro CHANGED
@@ -61,7 +61,7 @@ end
61
61
  def choose_and_build_adapter_config(available_adapters)
62
62
  adapter_name = select_choice available_adapters
63
63
  adapter = Object.const_get "Woro::Adapters::#{adapter_name}"
64
- { adapter_name => adapter.setup }
64
+ { adapter_name.downcase => adapter.setup }
65
65
  end
66
66
 
67
67
  command :init do |c|
@@ -74,7 +74,7 @@ command :init do |c|
74
74
  begin
75
75
  adapters.merge! choose_and_build_adapter_config(available_adapters)
76
76
  end while agree('Do you want to configure another service?')
77
- options.default(adapters: adapters )
77
+ options.default('adapters' => adapters )
78
78
 
79
79
  create_required_files
80
80
 
@@ -103,6 +103,7 @@ command :new do |c|
103
103
  end
104
104
  end
105
105
  end
106
+ alias_command :create, :new
106
107
 
107
108
  command :push do |c|
108
109
  c.syntax = 'woro push <task> [options]'
@@ -9,7 +9,7 @@ module Woro
9
9
  end
10
10
 
11
11
  # Perform an action over all files within the woro task directory
12
- def woro_task_files(directory, &block)
12
+ def woro_task_files(directory)
13
13
  tasks = []
14
14
  Dir.foreach(directory) do |file_name|
15
15
  if file_name.include? '.rake'
@@ -24,7 +24,9 @@ module Woro
24
24
  # @param data [Hash] gist data hash
25
25
  # [String] description string
26
26
  def extract_description(task_content)
27
- task_content.match(/desc ['"]([a-zA-Z0-9\s]*)['"]/)[1]
27
+ # regex from http://stackoverflow.com/questions/171480/regex-grabbing-values-between-quotation-marks
28
+ match = task_content.match(/desc (["'])((?:(?!\1)[^\\]|(?:\\\\)*\\[^\\])*)\1/)
29
+ match && match[2] || 'No description'
28
30
  end
29
31
 
30
32
  # Read the rake task template
@@ -17,7 +17,7 @@ namespace :woro do
17
17
 
18
18
  info "Execute #{task.task_name} remotely"
19
19
  within File.join(release_path, 'lib', 'tasks') do
20
- execute :curl, "#{adapter.raw_url(task.file_name)}", '-o' "woro_#{task.file_name}"
20
+ execute :curl, "'#{adapter.raw_url(task.file_name)}'", '-o', "woro_#{task.file_name}"
21
21
  end
22
22
  within release_path do
23
23
  with rails_env: fetch(:rails_env) do
data/lib/woro/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Woro
2
2
  # Look shiny!
3
- VERSION = "0.3.0"
3
+ VERSION = "0.3.1"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: woro
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Senff
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-01 00:00:00.000000000 Z
11
+ date: 2015-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: commander
@@ -192,7 +192,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
192
192
  version: '0'
193
193
  requirements: []
194
194
  rubyforge_project:
195
- rubygems_version: 2.4.6
195
+ rubygems_version: 2.4.3
196
196
  signing_key:
197
197
  specification_version: 4
198
198
  summary: Write once, run once. One-time migration task management on remote servers