Sha256: bd45f1c4f93953405c901ac1765453b975796b7a02ff2e8b95bf0702874e0a29

Contents?: true

Size: 303 Bytes

Versions: 15

Compression:

Stored size: 303 Bytes

Contents

#!/usr/bin/env ruby

require 'learn_submit'

# To prevent weird errors when random command line args are passed in
KNOWN_COMMANDS = []

message = ARGV[0] ? ARGV.join(' ') : nil

ARGV.map! do |arg|
  KNOWN_COMMANDS.include?(arg) ? arg : nil
end.compact!

LearnSubmit::Submission.create(message: message)

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
learn-submit-1.1.0 bin/learn-submit
learn-submit-1.0.13 bin/learn-submit
learn-submit-1.0.12 bin/learn-submit
learn-submit-1.0.11 bin/learn-submit
learn-submit-1.0.10 bin/learn-submit
learn-submit-1.0.9 bin/learn-submit
learn-submit-1.0.8 bin/learn-submit
learn-submit-1.0.7 bin/learn-submit
learn-submit-1.0.6 bin/learn-submit
learn-submit-1.0.5 bin/learn-submit
learn-submit-1.0.4 bin/learn-submit
learn-submit-1.0.3 bin/learn-submit
learn-submit-1.0.2 bin/learn-submit
learn-submit-1.0.1 bin/learn-submit
learn-submit-1.0.0 bin/learn-submit