fling 0.0.7 → 0.0.8

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: 42a6f202d12d757770f9fef30de7a95cee9ba807
4
- data.tar.gz: 227651d33e67bca3f0f92c153eb238d792fe1298
3
+ metadata.gz: 0bd83ff50869806b658424f0520c554438159882
4
+ data.tar.gz: dc4f45c9f1f23d6309aab231e8da9c50078e69c6
5
5
  SHA512:
6
- metadata.gz: 65076a7b134a4e458929d2bbda14a0ade327e40d33fcd1f63e0c32fee0f36df05101862492dba44be947b684edfdc707a69a8ce92530366db509fd98ee1b821a
7
- data.tar.gz: 4590386fe7a699f37b1aff4a7c987ef234a238e8cd71019c1eb46a4aeeb6938a1cb995404822948552578ba18802cb282fe68ad9e6015190d7de1e2c15acada4
6
+ metadata.gz: 23d07caf462fd01da2c45257af7a56c7551f8b3222593a47c11ce7938b379d2a9569aa0e82aac2207a6f2a37f452c750ae3d4cafed215f5ff6eade491c2e39ca
7
+ data.tar.gz: 033abdc5dc409df7cd547d9682a2190f28fa401e12c74ea6ae05b44561a7f9c9036373a9185483ff5979e39ab0a4cbf51850c1ebb16b92e5b35fa674fb895044
data/.rubocop.yml CHANGED
@@ -10,9 +10,12 @@ Style/AlignParameters:
10
10
  Style/MultilineOperationIndentation:
11
11
  Enabled: false
12
12
 
13
+ Style/AsciiComments:
14
+ Enabled: false
15
+
13
16
  Metrics/MethodLength:
14
17
  CountComments: false
15
- Max: 20
18
+ Max: 40
16
19
 
17
20
  Metrics/AbcSize:
18
21
  Enabled: false
data/CHANGES.md CHANGED
@@ -1,3 +1,7 @@
1
+ 0.0.8 (2015-06-23)
2
+ ------------------
3
+ * Symlink 'tahoe' executable into ~/bin/tahoe
4
+
1
5
  0.0.7 (2015-06-23)
2
6
  ------------------
3
7
  * Rename 'fling setup' to 'fling install'
data/lib/fling/cli.rb CHANGED
@@ -39,10 +39,10 @@ module Fling
39
39
  def config(file_or_uri)
40
40
  require "fling/install"
41
41
 
42
- if file_or_uri[/\Ahttps:\/\//]
42
+ if file_or_uri[%r{\Ahttps://}]
43
43
  uri = URI(file_or_uri)
44
44
  ciphertext = Net::HTTP.get(uri)
45
- elsif file_or_uri[/\Ahttp:\/\//] # ಠ_ಠ
45
+ elsif file_or_uri[%r{\Ahttp://}] # ಠ_ಠ
46
46
  say "Friends don't let friends use http://"
47
47
  exit 1
48
48
  else # Perhaps it's a file?
data/lib/fling/config.rb CHANGED
@@ -37,7 +37,7 @@ module Fling
37
37
 
38
38
  new(Box.decrypt(password, Base64.decode64(matches[1])))
39
39
  rescue RbNaCl::CryptoError # bad password
40
- fail ConfigError, "couldn't decrypt configuration (corrupted file or bad password?)"
40
+ raise ConfigError, "couldn't decrypt configuration (corrupted file or bad password?)"
41
41
  end
42
42
 
43
43
  # Generate a JSON configuration
data/lib/fling/install.rb CHANGED
@@ -29,6 +29,14 @@ module Fling
29
29
  ohai "Configuring Tahoe-LAFS"
30
30
  system "cd #{dir} && python setup.py build"
31
31
 
32
+ ohai "Linking 'tahoe' executable to ~/bin/tahoe..."
33
+
34
+ user_bin = File.expand_path("~/bin")
35
+ tahoe_bin = File.expand_path("~/#{TAHOE_DIR}/bin")
36
+
37
+ FileUtils.mkdir_p(user_bin)
38
+ FileUtils.ln_sf(File.join(tahoe_bin, "tahoe"), File.join(user_bin, "tahoe"))
39
+
32
40
  ohai "Tahoe-LAFS is ready to roll."
33
41
  end
34
42
  end
data/lib/fling/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # Simple secret sharing over Tahoe-LAFS
2
2
  module Fling
3
- VERSION = "0.0.7"
3
+ VERSION = "0.0.8"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fling
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tony Arcieri