homer 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +2 -0
- data/Gemfile.lock +18 -0
- data/VERSION +1 -1
- data/bin/homer +1 -0
- data/homer.gemspec +7 -1
- data/lib/homer/github_layer.rb +3 -0
- metadata +34 -2
data/Gemfile
CHANGED
@@ -2,6 +2,7 @@ source "http://rubygems.org"
|
|
2
2
|
# Add dependencies required to use your gem here.
|
3
3
|
# Example:
|
4
4
|
# gem "activesupport", ">= 2.3.5"
|
5
|
+
gem "github_api"
|
5
6
|
|
6
7
|
# Add dependencies to develop your gem here.
|
7
8
|
# Include everything needed to run rake, tests, features, etc.
|
@@ -9,5 +10,6 @@ group :development do
|
|
9
10
|
gem "rspec"
|
10
11
|
gem "rdoc", "~> 3.12"
|
11
12
|
gem "bundler"
|
13
|
+
gem "github_api"
|
12
14
|
gem "jeweler", "~> 1.8.4"
|
13
15
|
end
|
data/Gemfile.lock
CHANGED
@@ -2,13 +2,30 @@ GEM
|
|
2
2
|
remote: http://rubygems.org/
|
3
3
|
specs:
|
4
4
|
diff-lcs (1.1.3)
|
5
|
+
faraday (0.8.1)
|
6
|
+
multipart-post (~> 1.1)
|
5
7
|
git (1.2.5)
|
8
|
+
github_api (0.7.0)
|
9
|
+
faraday (~> 0.8.1)
|
10
|
+
hashie (~> 1.2.0)
|
11
|
+
multi_json (~> 1.3)
|
12
|
+
nokogiri (~> 1.5.2)
|
13
|
+
oauth2
|
14
|
+
hashie (1.2.0)
|
15
|
+
httpauth (0.1)
|
6
16
|
jeweler (1.8.4)
|
7
17
|
bundler (~> 1.0)
|
8
18
|
git (>= 1.2.5)
|
9
19
|
rake
|
10
20
|
rdoc
|
11
21
|
json (1.7.5)
|
22
|
+
multi_json (1.3.6)
|
23
|
+
multipart-post (1.1.5)
|
24
|
+
nokogiri (1.5.5)
|
25
|
+
oauth2 (0.6.1)
|
26
|
+
faraday (~> 0.7)
|
27
|
+
httpauth (~> 0.1)
|
28
|
+
multi_json (~> 1.3)
|
12
29
|
rake (0.9.2.2)
|
13
30
|
rdoc (3.12)
|
14
31
|
json (~> 1.4)
|
@@ -26,6 +43,7 @@ PLATFORMS
|
|
26
43
|
|
27
44
|
DEPENDENCIES
|
28
45
|
bundler
|
46
|
+
github_api
|
29
47
|
jeweler (~> 1.8.4)
|
30
48
|
rdoc (~> 3.12)
|
31
49
|
rspec
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.2
|
data/bin/homer
CHANGED
data/homer.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "homer"
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Emil Soman"]
|
@@ -50,20 +50,26 @@ Gem::Specification.new do |s|
|
|
50
50
|
s.specification_version = 3
|
51
51
|
|
52
52
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
53
|
+
s.add_runtime_dependency(%q<github_api>, [">= 0"])
|
53
54
|
s.add_development_dependency(%q<rspec>, [">= 0"])
|
54
55
|
s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
|
55
56
|
s.add_development_dependency(%q<bundler>, [">= 0"])
|
57
|
+
s.add_development_dependency(%q<github_api>, [">= 0"])
|
56
58
|
s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
|
57
59
|
else
|
60
|
+
s.add_dependency(%q<github_api>, [">= 0"])
|
58
61
|
s.add_dependency(%q<rspec>, [">= 0"])
|
59
62
|
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
60
63
|
s.add_dependency(%q<bundler>, [">= 0"])
|
64
|
+
s.add_dependency(%q<github_api>, [">= 0"])
|
61
65
|
s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
|
62
66
|
end
|
63
67
|
else
|
68
|
+
s.add_dependency(%q<github_api>, [">= 0"])
|
64
69
|
s.add_dependency(%q<rspec>, [">= 0"])
|
65
70
|
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
66
71
|
s.add_dependency(%q<bundler>, [">= 0"])
|
72
|
+
s.add_dependency(%q<github_api>, [">= 0"])
|
67
73
|
s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
|
68
74
|
end
|
69
75
|
end
|
data/lib/homer/github_layer.rb
CHANGED
@@ -5,6 +5,9 @@ Github::Authorizations::VALID_AUTH_PARAM_NAMES = Github::Authorizations::VALID_A
|
|
5
5
|
class GitHubLayer
|
6
6
|
class << self
|
7
7
|
|
8
|
+
def push
|
9
|
+
end
|
10
|
+
|
8
11
|
def login(login, password)
|
9
12
|
github = Github.new(login: login, password: password)
|
10
13
|
authorization = github.oauth.create(scopes: ['public_repo'], note: 'Homer')
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: homer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,6 +11,22 @@ bindir: bin
|
|
11
11
|
cert_chain: []
|
12
12
|
date: 2012-10-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: github_api
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
14
30
|
- !ruby/object:Gem::Dependency
|
15
31
|
name: rspec
|
16
32
|
requirement: !ruby/object:Gem::Requirement
|
@@ -59,6 +75,22 @@ dependencies:
|
|
59
75
|
- - ! '>='
|
60
76
|
- !ruby/object:Gem::Version
|
61
77
|
version: '0'
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: github_api
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ! '>='
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
86
|
+
type: :development
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ! '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
62
94
|
- !ruby/object:Gem::Dependency
|
63
95
|
name: jeweler
|
64
96
|
requirement: !ruby/object:Gem::Requirement
|
@@ -120,7 +152,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
120
152
|
version: '0'
|
121
153
|
segments:
|
122
154
|
- 0
|
123
|
-
hash: -
|
155
|
+
hash: -950767089
|
124
156
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
125
157
|
none: false
|
126
158
|
requirements:
|