fedux_org-stdlib 0.11.1 → 0.11.2
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/Gemfile.lock +10 -10
- data/lib/fedux_org_stdlib/app_config.rb +7 -7
- data/lib/fedux_org_stdlib/core_ext/string/characterize.rb +1 -1
- data/lib/fedux_org_stdlib/models/base_model.rb +0 -1
- data/lib/fedux_org_stdlib/rake/project.rb +0 -1
- data/lib/fedux_org_stdlib/rake/webserver_task.rb +6 -9
- data/lib/fedux_org_stdlib/remote_repository.rb +1 -1
- data/lib/fedux_org_stdlib/roles/typable.rb +3 -3
- data/lib/fedux_org_stdlib/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 91acfbe0aad138898aee3760abd7e0bed9b5e0c2
|
|
4
|
+
data.tar.gz: d186f0c6f3ac93d15521c04e89f226f41a710b51
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 71159a1fb58c577ddc50bb308144cd9f6942f688c3a6f69ae513853606807e838189da079a9527965758a38d45daf98501d179f5a524d2b27ff6860342e6ecd4
|
|
7
|
+
data.tar.gz: 2f20fdbcffd445f278fb2e66570cfa00267d841a0a6baa28242558b00eded8a8feccc131b4e2fce5179fb3e08b9525847901c355de01650db7e047ef44695207
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
fedux_org-stdlib (0.11.
|
|
4
|
+
fedux_org-stdlib (0.11.1)
|
|
5
5
|
activesupport
|
|
6
6
|
|
|
7
7
|
PATH
|
|
@@ -13,7 +13,7 @@ GEM
|
|
|
13
13
|
remote: https://rubygems.org/
|
|
14
14
|
specs:
|
|
15
15
|
CFPropertyList (2.2.8)
|
|
16
|
-
activesupport (4.1.
|
|
16
|
+
activesupport (4.1.8)
|
|
17
17
|
i18n (~> 0.6, >= 0.6.9)
|
|
18
18
|
json (~> 1.7, >= 1.7.7)
|
|
19
19
|
minitest (~> 5.1)
|
|
@@ -37,7 +37,7 @@ GEM
|
|
|
37
37
|
childprocess (0.5.5)
|
|
38
38
|
ffi (~> 1.0, >= 1.0.11)
|
|
39
39
|
coderay (1.1.0)
|
|
40
|
-
columnize (0.
|
|
40
|
+
columnize (0.9.0)
|
|
41
41
|
command_exec (0.2.0)
|
|
42
42
|
activesupport
|
|
43
43
|
smart_colored
|
|
@@ -58,7 +58,7 @@ GEM
|
|
|
58
58
|
diff-lcs (1.2.5)
|
|
59
59
|
docile (1.1.5)
|
|
60
60
|
erubis (2.7.0)
|
|
61
|
-
excon (0.
|
|
61
|
+
excon (0.42.1)
|
|
62
62
|
facter (2.3.0)
|
|
63
63
|
CFPropertyList (~> 2.2.6)
|
|
64
64
|
ffi (1.9.6)
|
|
@@ -69,7 +69,7 @@ GEM
|
|
|
69
69
|
ruby-progressbar (~> 1.4)
|
|
70
70
|
gherkin (2.12.2)
|
|
71
71
|
multi_json (~> 1.3)
|
|
72
|
-
github-markup (1.3.
|
|
72
|
+
github-markup (1.3.1)
|
|
73
73
|
posix-spawn (~> 0.3.8)
|
|
74
74
|
hirb (0.7.2)
|
|
75
75
|
i18n (0.6.11)
|
|
@@ -83,8 +83,8 @@ GEM
|
|
|
83
83
|
minitest (5.4.3)
|
|
84
84
|
multi_json (1.10.1)
|
|
85
85
|
multi_test (0.1.1)
|
|
86
|
-
netrc (0.
|
|
87
|
-
parser (2.2.0.pre.
|
|
86
|
+
netrc (0.10.0)
|
|
87
|
+
parser (2.2.0.pre.8)
|
|
88
88
|
ast (>= 1.1, < 3.0)
|
|
89
89
|
slop (~> 3.4, >= 3.4.5)
|
|
90
90
|
posix-spawn (0.3.9)
|
|
@@ -100,8 +100,8 @@ GEM
|
|
|
100
100
|
pry (~> 0.9)
|
|
101
101
|
yard (~> 0.8)
|
|
102
102
|
rainbow (2.0.0)
|
|
103
|
-
rake (10.
|
|
104
|
-
redcarpet (3.2.
|
|
103
|
+
rake (10.4.2)
|
|
104
|
+
redcarpet (3.2.2)
|
|
105
105
|
rest-client (1.7.2)
|
|
106
106
|
mime-types (>= 1.16, < 3.0)
|
|
107
107
|
netrc (~> 0.7)
|
|
@@ -120,7 +120,7 @@ GEM
|
|
|
120
120
|
rspec-mocks (3.1.3)
|
|
121
121
|
rspec-support (~> 3.1.0)
|
|
122
122
|
rspec-support (3.1.2)
|
|
123
|
-
rubocop (0.
|
|
123
|
+
rubocop (0.28.0)
|
|
124
124
|
astrolabe (~> 1.3)
|
|
125
125
|
parser (>= 2.2.0.pre.7, < 3.0)
|
|
126
126
|
powerpack (~> 0.0.6)
|
|
@@ -277,10 +277,10 @@ module FeduxOrgStdlib
|
|
|
277
277
|
end
|
|
278
278
|
|
|
279
279
|
def to_h(keys: [], remove_blank: false)
|
|
280
|
-
options_to_return = if keys.blank?
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
280
|
+
options_to_return = if keys.blank?
|
|
281
|
+
known_options.to_a
|
|
282
|
+
else
|
|
283
|
+
known_options.to_a & keys.map(&:to_sym)
|
|
284
284
|
end
|
|
285
285
|
|
|
286
286
|
options_to_return.sort.each_with_object({}) do |e, a|
|
|
@@ -313,9 +313,9 @@ module FeduxOrgStdlib
|
|
|
313
313
|
end
|
|
314
314
|
|
|
315
315
|
config_files = if merge_files
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
316
|
+
files
|
|
317
|
+
else
|
|
318
|
+
Array(files.first)
|
|
319
319
|
end
|
|
320
320
|
|
|
321
321
|
config_files.each do |f|
|
|
@@ -115,7 +115,6 @@ module FeduxOrgStdlib
|
|
|
115
115
|
FeduxOrgStdlib.logger.debug(self) { "Instances to be searched for: #{ @instances.map { |i| "#{i.name} (#{i.class})" }.join(', ') }" }
|
|
116
116
|
@instances.select do |i|
|
|
117
117
|
criteria.all? do |c, v|
|
|
118
|
-
|
|
119
118
|
FeduxOrgStdlib.logger.debug(self) { "Check method for search: #{ c }" }
|
|
120
119
|
i.send("#{c}?".to_sym, v)
|
|
121
120
|
end
|
|
@@ -29,12 +29,9 @@ module FeduxOrgStdlib
|
|
|
29
29
|
checksums_file: 'CHECKSUMS',
|
|
30
30
|
index_file_content: nil,
|
|
31
31
|
files: %w(
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
public_server.darwin.amd64
|
|
36
|
-
public_server.linux.amd64
|
|
37
|
-
public_server.windows.amd64.exe
|
|
32
|
+
server.darwin.amd64
|
|
33
|
+
server.linux.amd64
|
|
34
|
+
server.windows.amd64.exe
|
|
38
35
|
),
|
|
39
36
|
redirect_to: nil,
|
|
40
37
|
**args
|
|
@@ -82,7 +79,7 @@ module FeduxOrgStdlib
|
|
|
82
79
|
puts "[INFO] Fetching #{url}."
|
|
83
80
|
fail "[ERROR] Error while downloading #{url}." unless response.status == 200
|
|
84
81
|
|
|
85
|
-
@checksums = response.body.split("\n").each_with_object({}) do |e,a|
|
|
82
|
+
@checksums = response.body.split("\n").each_with_object({}) do |e, a|
|
|
86
83
|
sum, file = e.split(/\s+/)
|
|
87
84
|
|
|
88
85
|
a[file] = sum
|
|
@@ -98,7 +95,7 @@ module FeduxOrgStdlib
|
|
|
98
95
|
|
|
99
96
|
fail "[ERROR] Error while downloading \"#{url}\"." unless response.status == 200
|
|
100
97
|
puts "[INFO] Checking downloaded content against checksum \"#{checksums[f]}\"."
|
|
101
|
-
fail "[ERROR] Checksum error for file \"#{url}\"." unless
|
|
98
|
+
fail "[ERROR] Checksum error for file \"#{url}\"." unless checksum?(response.body, checksums[f])
|
|
102
99
|
|
|
103
100
|
path = File.join(directory, f)
|
|
104
101
|
puts "[INFO] Save content to #{path}."
|
|
@@ -107,7 +104,7 @@ module FeduxOrgStdlib
|
|
|
107
104
|
end
|
|
108
105
|
end
|
|
109
106
|
|
|
110
|
-
def
|
|
107
|
+
def checksum?(file, sum)
|
|
111
108
|
Digest::SHA256.hexdigest(file) == sum
|
|
112
109
|
end
|
|
113
110
|
end
|
|
@@ -94,7 +94,7 @@ module FeduxOrgStdlib
|
|
|
94
94
|
# Is image by path?
|
|
95
95
|
def image_by_path?
|
|
96
96
|
source_path.dirname.basename.to_s == 'images' ||
|
|
97
|
-
|
|
97
|
+
source_path.dirname.basename.to_s == 'img'
|
|
98
98
|
end
|
|
99
99
|
|
|
100
100
|
# Is image by extension?
|
|
@@ -119,7 +119,7 @@ module FeduxOrgStdlib
|
|
|
119
119
|
# Is stylesheet by path?
|
|
120
120
|
def stylesheet_by_path?
|
|
121
121
|
source_path.dirname.basename.to_s == 'stylesheets' ||
|
|
122
|
-
|
|
122
|
+
source_path.dirname.basename.to_s == 'css'
|
|
123
123
|
end
|
|
124
124
|
|
|
125
125
|
public
|
|
@@ -153,7 +153,7 @@ module FeduxOrgStdlib
|
|
|
153
153
|
# Is script by path?
|
|
154
154
|
def script_by_path?
|
|
155
155
|
source_path.dirname.basename.to_s == 'javascripts' ||
|
|
156
|
-
|
|
156
|
+
source_path.dirname.basename.to_s == 'js'
|
|
157
157
|
end
|
|
158
158
|
|
|
159
159
|
# Is script by extension?
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fedux_org-stdlib
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.11.
|
|
4
|
+
version: 0.11.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Max Meyer
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-12-
|
|
11
|
+
date: 2014-12-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|