githug 0.3.4 → 0.3.5

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: 5dce13542ce027da803b93c704387da3fcfb830f
4
- data.tar.gz: 7d30594b86429ca28b6f8198d48a7877eb5f0fa2
3
+ metadata.gz: c2b24792d26cafa5f3343cf6896c1ed241bd0f97
4
+ data.tar.gz: a70f943872bc9a6983e07fff39300b8d7a8ac9b1
5
5
  SHA512:
6
- metadata.gz: 3623c1b9027ff1b5fcf49f378d76d6e44b945965596c24bc51b20ed9f55736be7f12b497862ddf590ec7c7658e4488eb804df28cf0f3d2e5fa02de92fb77731e
7
- data.tar.gz: 1f3e59721590922b63eb375eb8c37ebce41a1c9f1e4ea7f9e0143f1cab7bc982b60a9de77f397eaec61d49ee6210cd9e97eff4d9fb53e76acd424c9c8301ffee
6
+ metadata.gz: 0c00674dc3a3ecac0ec3a72545d724c85ff7661bf4200b8202627888fc5dc8a718752a57b4b2ed59ba51f702c9cff373f1394cb24e3aa54dc3318bd30165fc88
7
+ data.tar.gz: 07d27ecc1dad1a86e4e861e2cc0e51f26c2ceb5cf399b0521666a46348b00b7d7392e5874edbfd601da8788d3bfc5953b838ebe8f2c13ff039c107d71dc5eec7
data/levels/push.rb CHANGED
@@ -42,6 +42,7 @@ setup do
42
42
  Dir.chdir cwd
43
43
  `git remote add origin #{tmpdir}/.git`
44
44
  `git fetch origin`
45
+ `git branch -u origin/master master`
45
46
  end
46
47
 
47
48
  solution do
data/levels/revert.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  difficulty 4
2
- description "You have committed several times but want to undo the middle commit."
2
+ description "You have committed several times but want to undo the middle commit.
3
+ All commits have been pushed, so you can't change existing history."
3
4
 
4
5
  setup do
5
6
  repo.init
@@ -24,8 +25,6 @@ solution do
24
25
  repo.commits[2].message == "Second commit" &&
25
26
  repo.commits[1].message == "Bad commit" &&
26
27
  repo.commits[0].message.split("\n").first == "Revert \"Bad commit\""
27
- valid = true if repo.commits[1].message == "First commit" &&
28
- repo.commits[0].message == "Second commit"
29
28
  valid
30
29
  end
31
30
 
@@ -1,3 +1,3 @@
1
1
  module Githug
2
- VERSION = "0.3.4"
2
+ VERSION = "0.3.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: githug
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gary Rennie
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-29 00:00:00.000000000 Z
11
+ date: 2013-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -423,7 +423,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
423
423
  version: '0'
424
424
  requirements: []
425
425
  rubyforge_project: githug
426
- rubygems_version: 2.0.0
426
+ rubygems_version: 2.0.2
427
427
  signing_key:
428
428
  specification_version: 4
429
429
  summary: An interactive way to learn git.