oliver 0.1.1 → 0.1.3

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: 1a88488f7a52559b398a12bada737f2e06b8a152
4
- data.tar.gz: 4a37c956a18b7d44ba0a4db9fbcc0deed6d14e0a
3
+ metadata.gz: 521c7434005183526d9876a6ec0219b6cf66fc98
4
+ data.tar.gz: bbb78d428aaa1d7c1b185b88f1f14a7f5a8bb8ea
5
5
  SHA512:
6
- metadata.gz: 7a7750c9ba13bec6e234b01f48dbf5926e349749398707517100c3dfa17fbda44022401d85fa77cb3cee6b87845a53885d88d472f25cee796a1c20f471604baa
7
- data.tar.gz: dba15e0b37ed6d6b9bcac76f36bc1c6b70d94ca13b6f85050428a0814584eb439ab0cb66520eed2b0e7c1a0d43e056bff31920dce5a715c45a533445152282e8
6
+ metadata.gz: e35d7d13be85aa542f0c4ec65af1e40f30702bf125cfece9fddd00ccb8e09220e1e10c3c0b8bcc915a310e312972cf25e64845f5538f2057efdd846ca097cfb4
7
+ data.tar.gz: ea494e324c87cc8198b413bec35b90a8511bca3ec85702378a862276355d7fb987ccc763d9c6ab4e722b5450fd0a1080ff28148795f706eb8e31c85f5fafe6b7
data/README.md CHANGED
@@ -2,7 +2,7 @@ oliver
2
2
  ======
3
3
 
4
4
  oliver manages your local GitHub
5
- repositories for you with a simple oliverFile.
5
+ repositories for you with a simple `Olivefile`.
6
6
 
7
7
  installation
8
8
  ------------
@@ -49,18 +49,21 @@ main_directory/
49
49
  |----- bin/
50
50
  |----- lib/
51
51
  |----- README.md
52
+ |----- .git/
52
53
  |
53
54
  |- git_project_2/
54
55
  |----- src/
55
56
  |----- bin/
56
57
  |----- lib/
57
58
  |----- README.md
59
+ |----- .git/
58
60
  |
59
61
  |- git_project_3/
60
62
  |----- src/
61
63
  |----- bin/
62
64
  |----- lib/
63
65
  |----- README.md
66
+ |----- .git/
64
67
  ```
65
68
 
66
69
  and then, if you want to see
data/lib/oliver.rb CHANGED
@@ -13,8 +13,11 @@ Rainbow.enabled = false if ARGV[-1] == 'colour=off'
13
13
 
14
14
  # if `Name::OLIVER` (string)
15
15
  # exists as a file continue with oliver
16
- if File.file?(Name::OLIVER)
17
- oliver_main
18
- else # or else just probably get some help to the user
19
- other_things
16
+ case File.file?
17
+ when Name::OLIVER.downcase
18
+ puts Rainbow('Use "Olivefile"')
19
+ when Name::OLIVER
20
+ oliver_main
21
+ else
22
+ other_things
20
23
  end
@@ -0,0 +1,5 @@
1
+ # Main oliver file
2
+ def run_main
3
+ contents = File.read(Name::OLIVER).chomp
4
+ puts contents
5
+ end
@@ -1,3 +1,5 @@
1
+ require_relative "main"
2
+
1
3
  # Help the user with their heavy troubles
2
4
  def help
3
5
 
@@ -62,6 +64,5 @@ end
62
64
  # I'll probably move this into a
63
65
  # seperate file in the future
64
66
  def oliver_main
65
- contents = File.read(Name::OLIVER).chomp
66
- puts contents
67
+ run_main
67
68
  end
@@ -1,3 +1,3 @@
1
1
  module Oliver
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oliver
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-17 00:00:00.000000000 Z
11
+ date: 2014-07-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -94,6 +94,7 @@ files:
94
94
  - Rakefile
95
95
  - bin/olive
96
96
  - lib/oliver.rb
97
+ - lib/oliver/main.rb
97
98
  - lib/oliver/methods.rb
98
99
  - lib/oliver/oliver_file_name.rb
99
100
  - lib/oliver/version.rb