crawling 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -13
- data/lib/crawling/version.rb +1 -1
- data/lib/crawling.rb +9 -9
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 16535e151189a5b08dd80f2ee96eb80c773c4c89
|
4
|
+
data.tar.gz: 546fb69bf2ce963cf18f151bd3d1a10888e93b2f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a5012d5fdc91a4d57a648267651cf8d5f7c3f53db251207ed1539f227be611e293e35adec77cf1c3b04ee1dc3329e65bdd8b074953366ba67e6fec05952360ec
|
7
|
+
data.tar.gz: f95a2b676c9c37f872ea452cda34e665e84a9b39fc7aec3d00582a9da5996dafff4cc64b09e115b462f9b2c9c684873fd71ec33ee2abd2f72a5c4c721688f891
|
data/README.md
CHANGED
@@ -2,23 +2,14 @@
|
|
2
2
|
|
3
3
|
[![build status](https://circleci.com/gh/ohjames/crawling.png)](https://circleci.com/gh/ohjames/crawling)
|
4
4
|
|
5
|
-
Welcome to crawling, documentation coming soon
|
5
|
+
Welcome to crawling, documentation coming soon, for now see `crawling -h`.
|
6
6
|
|
7
7
|
## Installation
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
gem 'crawling'
|
9
|
+
Install ruby and gem then:
|
10
|
+
```
|
11
|
+
gem install crawling
|
13
12
|
```
|
14
|
-
|
15
|
-
And then execute:
|
16
|
-
|
17
|
-
$ bundle
|
18
|
-
|
19
|
-
Or install it yourself as:
|
20
|
-
|
21
|
-
$ gem install crawling
|
22
13
|
|
23
14
|
## Usage
|
24
15
|
|
data/lib/crawling/version.rb
CHANGED
data/lib/crawling.rb
CHANGED
@@ -107,25 +107,25 @@ module Crawling
|
|
107
107
|
end
|
108
108
|
|
109
109
|
while (diff_string = get_diff storage_file, file) != ''
|
110
|
-
print "#{file}:
|
110
|
+
print "#{file}: [a]dd to store, [g]et from store, [d]iff, [m]erge, [s]kip? "
|
111
111
|
answer = STDIN.gets.chomp
|
112
112
|
case answer
|
113
|
+
when 'a'
|
114
|
+
Crawling.copy_file file, storage_file
|
115
|
+
break
|
116
|
+
when 'g'
|
117
|
+
Crawling.copy_file storage_file, file
|
118
|
+
break
|
113
119
|
when 'd'
|
114
120
|
puts diff_string
|
115
121
|
puts
|
116
122
|
redo
|
117
|
-
when 'h'
|
118
|
-
Crawling.copy_file file, storage_file
|
119
|
-
break
|
120
123
|
when 'm'
|
121
124
|
system *@merge_app.sub('%s', storage_file).sub('%h', file).split(' ')
|
122
|
-
when '
|
123
|
-
break
|
124
|
-
when 'S'
|
125
|
-
Crawling.copy_file storage_file, file
|
125
|
+
when 's'
|
126
126
|
break
|
127
127
|
else
|
128
|
-
puts 'please answer with d,
|
128
|
+
puts 'please answer with a, d, g, m, or s'
|
129
129
|
redo
|
130
130
|
end
|
131
131
|
end
|