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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 58b06f8d2ecfcaf9426d38d525f90e0385db30f0
4
- data.tar.gz: e03d6cac9a48affb12ef7f3dc0b327c914960686
3
+ metadata.gz: b71f791f750a99f5ce4ba4df6157de4197e0fe7b
4
+ data.tar.gz: 0bcaf8fe1993616b4b3880d8f97ca50e93d1ca0d
5
5
  SHA512:
6
- metadata.gz: 60a167da46d0fb9bad4f679062328f1c8a49da7908bfda35b9312aa9df2f1887a31c39f374a8cb050c540d706b94d07d790a5aa3ee0d429775b5a68dcbd153b5
7
- data.tar.gz: d0d95bb35f2be14eca28ccdd2611b85c3cceb605860f885a11ca08fc3e6e1aeedcc6f15b058138951cb289bfce1104beefe0cae8b754da813022e5164515badb
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 = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
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 'home'
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 home"
138
- Crawling.copy_file storage_file, 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 home or store"
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
- 'home'
217
+ 'system'
218
218
  else
219
- 'home directory or store'
219
+ 'system directory or store'
220
220
  end
221
221
  elsif not File.exists? storage_file
222
222
  'store'
@@ -1,3 +1,3 @@
1
1
  module Crawling
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
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.0
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-24 00:00:00.000000000 Z
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: