crawling 0.3.3 → 0.3.4

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
  SHA256:
3
- metadata.gz: d55d7bcfdfbdab051217b31f045dc643dce1f3606525e5423ac02c8ad948be10
4
- data.tar.gz: 52fc3441f5fa0a2290949e7694afc6a3df0f4819f937237345618e42889926a1
3
+ metadata.gz: 13849e800ed4fb364505efc1e53cfbf78488400a3ec203576daf4c52f60098b1
4
+ data.tar.gz: 85c64d262232bd4e812dfa2a705d09a89d72fed162a494331bf0376d8f8fea3f
5
5
  SHA512:
6
- metadata.gz: 13b0b1f073279e368e81440f0bd4f5c5d95aa8817a8327f9dc40e1aa53a3131051ee85a3edc2540137bf6e683a0cda5088a079e111af4312dd0a84dbf3772e33
7
- data.tar.gz: fca726ff6feba6de569195d8677a470030e30f5d5133a5868d366038dcca49121ebf515c3b06e133416ef55b1753a16ad0a9a69dca31130dbe94b14da86c69fd
6
+ metadata.gz: 8fce41a1275e5f2b994a94f020716a29135fdcb73503d561a3eedb048648cbe43802115f9942d2c5f920161f70442759de4c3fb58c2f797e88c7f8d13bcde5d2
7
+ data.tar.gz: a18b47adb620dd73eac107640bfc600d3649cef11232db8c6d9dddcfa16d355b3bb8664aa1cdce203caee730d3dc65046567f28733bb29ade722d4af8954138b
data/bin/crawling CHANGED
@@ -35,7 +35,7 @@ module Crawling::Command
35
35
  op.subcommand 'merge,m [*paths]', 'merge differences between store directory and filesystem' do |subop|
36
36
  subop.on '-m', '--merge-app app', 'command used to merge files', 'merge_app'
37
37
  end
38
- op.subcommand 'clone', 'clone or pull latest store using configured commands'
38
+ op.subcommand 'pull,p', 'pull latest store'
39
39
 
40
40
  parsed_cfg = op.parse(args)
41
41
  command = parsed_cfg.command
@@ -62,8 +62,8 @@ module Crawling::Command
62
62
  crawling.diff nil_if_empty(command_cfg.paths)
63
63
  when 'merge'
64
64
  crawling.merge nil_if_empty(command_cfg.paths)
65
- when 'clone'
66
- crawling.clone
65
+ when 'pull'
66
+ crawling.pull
67
67
  end
68
68
  rescue RuntimeError => e
69
69
  puts e.to_s
data/crawling.gemspec CHANGED
@@ -27,7 +27,7 @@ Gem::Specification.new do |spec|
27
27
  spec.executables = "crawling"
28
28
  spec.require_paths = ["lib"]
29
29
 
30
- spec.add_development_dependency "rake", "~> 10.0"
30
+ spec.add_development_dependency "rake", "~> 12.0"
31
31
  spec.add_development_dependency "rspec", "~> 3.8"
32
32
  spec.add_development_dependency "rspec_junit_formatter", "~> 0.4"
33
33
 
data/lib/crawling.rb CHANGED
@@ -169,8 +169,9 @@ module Crawling
169
169
  end
170
170
  end
171
171
 
172
- def clone
173
- raise "clone: command not supported yet"
172
+ def pull
173
+ Dir.chdir @config_dir
174
+ system 'git pull'
174
175
  end
175
176
 
176
177
  private
@@ -1,3 +1,3 @@
1
1
  module Crawling
2
- VERSION = "0.3.3"
2
+ VERSION = "0.3.4"
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.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Pike
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-09 00:00:00.000000000 Z
11
+ date: 2019-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '10.0'
19
+ version: '12.0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '10.0'
26
+ version: '12.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rspec
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -134,7 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
134
134
  - !ruby/object:Gem::Version
135
135
  version: '0'
136
136
  requirements: []
137
- rubygems_version: 3.0.2
137
+ rubygems_version: 3.0.3
138
138
  signing_key:
139
139
  specification_version: 4
140
140
  summary: Tool to manage personal configuration and environment files.