crawling 0.3.0 → 0.3.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/crawling.gemspec +1 -1
- data/lib/crawling.rb +7 -7
- data/lib/crawling/version.rb +1 -1
- metadata +2 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b71f791f750a99f5ce4ba4df6157de4197e0fe7b
|
|
4
|
+
data.tar.gz: 0bcaf8fe1993616b4b3880d8f97ca50e93d1ca0d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a2ea2836b4c6ec8678f73650f68bcad447d45a7b8c7963c5a41a84515f562999e7b7ee1f5b647a07a67cfad7905fb8c5f5871b11b389830064b60a2d2c702dc1
|
|
7
|
+
data.tar.gz: 4cf91149d085c2a792daba5c4d229446a32a97fa39dadd7a6a9b0cf40d6d0cc1c10421a4bfdf82c0728bf4ec10fc09ae039a5e163312e7a01d594cee2f3aa20d
|
data/crawling.gemspec
CHANGED
|
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
|
|
|
24
24
|
|
|
25
25
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
|
26
26
|
spec.bindir = "bin"
|
|
27
|
-
spec.executables =
|
|
27
|
+
spec.executables = "crawling"
|
|
28
28
|
spec.require_paths = ["lib"]
|
|
29
29
|
|
|
30
30
|
spec.add_development_dependency "bundler", "~> 1.9"
|
data/lib/crawling.rb
CHANGED
|
@@ -130,14 +130,14 @@ module Crawling
|
|
|
130
130
|
missing_from = file_or_storage_file_doesnt_exist file, storage_file
|
|
131
131
|
if missing_from
|
|
132
132
|
case missing_from
|
|
133
|
-
when '
|
|
134
|
-
puts "#{file}: creating from store"
|
|
133
|
+
when 'system'
|
|
134
|
+
puts "#{file}: creating in system from store"
|
|
135
135
|
Crawling.copy_file storage_file, file
|
|
136
136
|
when 'store'
|
|
137
|
-
puts "#{file}: creating in store from
|
|
138
|
-
Crawling.copy_file
|
|
137
|
+
puts "#{file}: creating in store from system"
|
|
138
|
+
Crawling.copy_file file, storage_file
|
|
139
139
|
else
|
|
140
|
-
puts "#{file}: does not exist in
|
|
140
|
+
puts "#{file}: does not exist in system or store"
|
|
141
141
|
end
|
|
142
142
|
|
|
143
143
|
next
|
|
@@ -214,9 +214,9 @@ module Crawling
|
|
|
214
214
|
def file_or_storage_file_doesnt_exist file, storage_file
|
|
215
215
|
if not File.exists? file
|
|
216
216
|
if File.exists? storage_file
|
|
217
|
-
'
|
|
217
|
+
'system'
|
|
218
218
|
else
|
|
219
|
-
'
|
|
219
|
+
'system directory or store'
|
|
220
220
|
end
|
|
221
221
|
elsif not File.exists? storage_file
|
|
222
222
|
'store'
|
data/lib/crawling/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: crawling
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Pike
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-01-
|
|
11
|
+
date: 2016-01-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -84,9 +84,7 @@ description: Tool to manage personal configuration and environment files.
|
|
|
84
84
|
email:
|
|
85
85
|
- github@chilon.net
|
|
86
86
|
executables:
|
|
87
|
-
- console
|
|
88
87
|
- crawling
|
|
89
|
-
- setup
|
|
90
88
|
extensions: []
|
|
91
89
|
extra_rdoc_files: []
|
|
92
90
|
files:
|