thunderbird 0.1.1 → 0.2.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 +4 -4
- data/.rubocop.yml +12 -0
- data/Gemfile +3 -3
- data/lib/thunderbird/install.rb +1 -1
- data/lib/thunderbird/local_folder.rb +4 -4
- data/lib/thunderbird/version.rb +1 -1
- data/lib/thunderbird.rb +6 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 15259f38aecc30a09db01eb75a1920f3fffa56f7a4031f85d2fbd4e5a4908304
|
|
4
|
+
data.tar.gz: 65a256624ca2093e15c2afec842b1fa213a78b3f42643e98eb16de5e27539ce5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dfaebe8b631f430f3f8bcfe71a9b0cfee67f31f3e2ff4eb76cda45125afd2aabc6b937320c2eae9e1888caf5be6cd6e4ef91c797c8a7ae077f772eed10253a43
|
|
7
|
+
data.tar.gz: a53bc319ba224150676a5f0322b8c853b7c5e3f1cde1578cf4a9e208693ea85eb29f3d1075e3da8ad99dbd8630eb4691fd0b7afbee457b2b85e7076e03444426
|
data/.rubocop.yml
CHANGED
|
@@ -12,12 +12,20 @@ Gemspec/DateAssignment:
|
|
|
12
12
|
Gemspec/RequireMFA:
|
|
13
13
|
Enabled: true
|
|
14
14
|
|
|
15
|
+
Layout/DotPosition:
|
|
16
|
+
Enabled: true
|
|
17
|
+
EnforcedStyle: trailing
|
|
18
|
+
|
|
15
19
|
Layout/LineEndStringConcatenationIndentation:
|
|
16
20
|
Enabled: true
|
|
17
21
|
|
|
18
22
|
Layout/SpaceBeforeBrackets:
|
|
19
23
|
Enabled: true
|
|
20
24
|
|
|
25
|
+
Layout/SpaceInsideHashLiteralBraces:
|
|
26
|
+
Enabled: true
|
|
27
|
+
EnforcedStyle: no_space
|
|
28
|
+
|
|
21
29
|
Lint/AmbiguousAssignment:
|
|
22
30
|
Enabled: true
|
|
23
31
|
|
|
@@ -179,3 +187,7 @@ Style/SwapValues:
|
|
|
179
187
|
|
|
180
188
|
Layout/LineLength:
|
|
181
189
|
Max: 120
|
|
190
|
+
|
|
191
|
+
Metrics/BlockLength:
|
|
192
|
+
Exclude:
|
|
193
|
+
- "spec/**/*"
|
data/Gemfile
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
source "https://rubygems.org"
|
|
4
4
|
|
|
5
|
-
# Specify your gem's dependencies in thunderbird.gemspec
|
|
6
5
|
gemspec
|
|
7
6
|
|
|
7
|
+
gem "aruba", "~> 2.0"
|
|
8
|
+
gem "pry-byebug", "~> 3.9"
|
|
8
9
|
gem "rake", "~> 13.0"
|
|
9
|
-
|
|
10
10
|
gem "rspec", "~> 3.0"
|
|
11
|
-
|
|
12
11
|
gem "rubocop", "~> 1.21"
|
|
12
|
+
gem "simplecov", "~> 0.21"
|
data/lib/thunderbird/install.rb
CHANGED
|
@@ -15,7 +15,7 @@ class Thunderbird
|
|
|
15
15
|
end
|
|
16
16
|
|
|
17
17
|
def set_up
|
|
18
|
-
return if path_elements.empty?
|
|
18
|
+
return false if path_elements.empty?
|
|
19
19
|
|
|
20
20
|
return true if !in_subdirectory?
|
|
21
21
|
|
|
@@ -26,7 +26,7 @@ class Thunderbird
|
|
|
26
26
|
if in_subdirectory?
|
|
27
27
|
File.join(subdirectory.full_path, folder_name)
|
|
28
28
|
else
|
|
29
|
-
|
|
29
|
+
path
|
|
30
30
|
end
|
|
31
31
|
end
|
|
32
32
|
|
|
@@ -35,7 +35,7 @@ class Thunderbird
|
|
|
35
35
|
end
|
|
36
36
|
|
|
37
37
|
def msf_path
|
|
38
|
-
"#{
|
|
38
|
+
"#{full_path}.msf"
|
|
39
39
|
end
|
|
40
40
|
|
|
41
41
|
def msf_exists?
|
|
@@ -51,7 +51,7 @@ class Thunderbird
|
|
|
51
51
|
def subdirectory
|
|
52
52
|
return nil if !in_subdirectory?
|
|
53
53
|
|
|
54
|
-
|
|
54
|
+
Subdirectory.new(profile, subdirectory_path)
|
|
55
55
|
end
|
|
56
56
|
|
|
57
57
|
def path_elements
|
data/lib/thunderbird/version.rb
CHANGED
data/lib/thunderbird.rb
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
require "os"
|
|
4
|
-
|
|
4
|
+
|
|
5
|
+
# Require all files so they get counted in coverage
|
|
6
|
+
Dir.chdir(__dir__) do
|
|
7
|
+
glob = File.join("**", "*.rb")
|
|
8
|
+
Dir[glob].sort.each { |f| require_relative f }
|
|
9
|
+
end
|
|
5
10
|
|
|
6
11
|
# Root information
|
|
7
12
|
class Thunderbird
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: thunderbird
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Joe Yates
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-02-
|
|
11
|
+
date: 2022-02-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: os
|