Skip to content

Commit a79ea74

Browse files
committed
Add project layout.
1 parent a68f07b commit a79ea74

File tree

6 files changed

+41
-42
lines changed

6 files changed

+41
-42
lines changed

.gitignore

Lines changed: 5 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,11 @@
1-
# rcov generated
21
coverage
3-
4-
# rdoc generated
52
rdoc
6-
7-
# yard generated
83
doc
94
.yardoc
10-
11-
# bundler
125
.bundle
13-
14-
# jeweler generated
156
pkg
16-
17-
# Have editor/IDE/OS specific files you need to ignore? Consider using a global gitignore:
18-
#
19-
# * Create a file at ~/.gitignore
20-
# * Include files you want ignored
21-
# * Run: git config --global core.excludesfile ~/.gitignore
22-
#
23-
# After doing this, these files will be ignored in all your git projects,
24-
# saving you from having to 'pollute' every project you touch with them
25-
#
26-
# Not sure what to needs to be ignored for particular editors/OSes? Here's some ideas to get you started. (Remember, remove the leading # of the line)
27-
#
28-
# For MacOS:
29-
#
30-
#.DS_Store
31-
32-
# For TextMate
33-
#*.tmproj
34-
#tmtags
35-
36-
# For emacs:
37-
#*~
38-
#\#*
39-
#.\#*
40-
41-
# For vim:
42-
#*.swp
43-
44-
# For redcar:
45-
#.redcar
46-
47-
# For rubinius:
48-
#*.rbc
7+
*.swp
8+
Gemfile.lock
9+
log
10+
*.sqlite3
11+
.bundle

lib/github.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module Github
2+
3+
autoload :Api, 'github/api'
4+
autoload :Client, 'github/client'
5+
autoload :Configuration, 'github/configuration'
6+
end

lib/github/api.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module Github
2+
class Api
3+
4+
end
5+
end

lib/github/client.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module Github
2+
class Client
3+
4+
end
5+
end

lib/github/configuration.rb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
module Github
2+
module Configuration
3+
4+
5+
DEFAULT_ENDPOINT = 'https://api.github.com/'.freeze
6+
7+
def configure
8+
yield self
9+
end
10+
end
11+
end

lib/github/version.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
module Octokitty
2+
module Version
3+
MAJOR = 0
4+
MINOR = 1
5+
PATCH = 0
6+
7+
STRING = [MAJOR, MINOR, PATCH].compact.join('.');
8+
end
9+
end

0 commit comments

Comments
 (0)