jared 1.0.0 → 1.0.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: 686286a2848d334e7d4c3c396bf9e3bcf9f603cb
4
- data.tar.gz: 4496e87abbb44516d1610ac95cc9f873af2630e7
3
+ metadata.gz: 8871c5b9147d246c91177d906e1c30bfc5c13f24
4
+ data.tar.gz: e5191cabf909a2c6b6e2f165225d322c944e8e76
5
5
  SHA512:
6
- metadata.gz: 2fbb964ff11a9fe012b52b6d48bf17d6046b139f595c4209ebf5c64160f68c9647a230aa10a47b1f654cc869fcb0fd64832c36864f0e038a9a4dae21760e3afe
7
- data.tar.gz: 81c07f37bac23b954241edece73cbb05b347754146edb20c6d5c625e9d54d2b00ed459a9a6b6ebe2a5675928f1bf2de3920bbd733ef171ec8483e03fa663527f
6
+ metadata.gz: bcd5714bfcce121ca7ce2c25d91e76cdf006197ef7eea9f5a61be73339fcb41d99d8e5e507d5d962fc9ffc3df2de26a0e13822e9c1518ba8de2da691aa9ab839
7
+ data.tar.gz: 218cc57fdc90ad988bf2647328bd7c6373da19c92d9fb48fb25c53bcf46b1ff64b2c161ad4313638d02e8b825d79167ad78e6f51c10457181bcae1b396d536c1
data/bin/jared CHANGED
@@ -6,3 +6,5 @@ rescue LoadError
6
6
  require 'rubygems'
7
7
  require 'jared'
8
8
  end
9
+
10
+ Jared::CLI.start(ARGV)
@@ -5,8 +5,18 @@ module Jared
5
5
  end
6
6
 
7
7
  def fetch
8
- list = open('https://raw.githubusercontent.com/cyberarm/jared-plugins/master/jared-plugins.json').read
9
- File.open(@file, 'w') {|file| file.write list}
8
+ begin
9
+ list = open('https://raw.githubusercontent.com/cyberarm/jared-plugins/master/jared-plugins.json').read
10
+ rescue
11
+ if File.exist?(@file)
12
+ # We'll live.
13
+ else
14
+ puts "Connection error.\nCould not fetch jared-plugins.json from github.com.\n:("
15
+ exit
16
+ end
17
+
18
+ File.open(@file, 'w') {|file| file.write list}
19
+ end
10
20
  end
11
21
 
12
22
  def parse
data/lib/jared/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Jared
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
data/lib/jared.rb CHANGED
@@ -7,5 +7,3 @@ require_relative 'jared/setup'
7
7
  require_relative 'jared/plugin_list'
8
8
  require_relative 'jared/logg'
9
9
  require_relative 'jared/cli'
10
-
11
- Jared::CLI.start(ARGV)
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jared
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - cyberarm
@@ -59,6 +59,7 @@ files:
59
59
  - lib/jared/version.rb
60
60
  - license.md
61
61
  - pkg/jared-0.1.0.gem
62
+ - pkg/jared-1.0.1.gem
62
63
  - readme.md
63
64
  homepage: https://github.com/cyberarm/jared
64
65
  licenses: []