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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9c676252580faee11ade942d854c86856e8d56d9
4
- data.tar.gz: fe0a7ccdc9832846bf10135387afe4833caf2249
3
+ metadata.gz: 16535e151189a5b08dd80f2ee96eb80c773c4c89
4
+ data.tar.gz: 546fb69bf2ce963cf18f151bd3d1a10888e93b2f
5
5
  SHA512:
6
- metadata.gz: 25fee50290c16e846560c1f3af35e84bcff00433006a89db6db0699c533608a1f4f0786b1568ba45d1086e5a9907f98ee05cda26fd0fc339b56d3920d5e67cb6
7
- data.tar.gz: d0e93a41ba6fc3e19cfebd59251467ccfc670d763fd02458e8fb7cb81286815583f7cfca43fbe5095c1cb2411ecead982bd06e68225bbc592b56cff6ae93b10f
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
- Add this line to your application's Gemfile:
10
-
11
- ```ruby
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
 
@@ -1,3 +1,3 @@
1
1
  module Crawling
2
- VERSION = "0.1.1"
2
+ VERSION = "0.2.0"
3
3
  end
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}: show [d]iff, [m]erge, take [h]ome, take [S]tore, skip [n]ext? "
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 'n'
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, h, m, n or S'
128
+ puts 'please answer with a, d, g, m, or s'
129
129
  redo
130
130
  end
131
131
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crawling
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Pike