coderwall 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +17 -0
- data/Gemfile +4 -0
- data/MIT-LICENSE +22 -0
- data/README.md +32 -0
- data/Rakefile +2 -0
- data/bin/coderwall +9 -0
- data/coderwall.gemspec +17 -0
- data/lib/coderwall.rb +5 -0
- data/lib/coderwall/command.rb +22 -0
- data/lib/coderwall/version.rb +3 -0
- metadata +62 -0
data/.gitignore
ADDED
data/Gemfile
ADDED
data/MIT-LICENSE
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2012 Sergey Nartimov
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
# Coderwall
|
2
|
+
|
3
|
+
Coderwall CLI
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
```
|
8
|
+
gem install coderwall
|
9
|
+
```
|
10
|
+
|
11
|
+
## Usage
|
12
|
+
|
13
|
+
```
|
14
|
+
$ coderwall lest
|
15
|
+
Achievements:
|
16
|
+
- Desert Locust: Have at least one original repo where Erlang is the dominant language
|
17
|
+
- Lemmings 100: Write something great enough to have at least 100 watchers of the project
|
18
|
+
- Walrus: The walrus is no stranger to variety. Use at least 4 different languages throughout all your repos
|
19
|
+
- Altruist: Increase developer well-being by sharing at least 20 open source projects
|
20
|
+
- Forked: Have a project valued enough to be forked by someone else
|
21
|
+
- Charity: Fork and commit to someone's open source project in need
|
22
|
+
- Mongoose 3: Have at least three original repos where Ruby is the dominant language
|
23
|
+
- Mongoose: Have at least one original repo where Ruby is the dominant language
|
24
|
+
```
|
25
|
+
|
26
|
+
## Contributing
|
27
|
+
|
28
|
+
1. Fork it
|
29
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
30
|
+
3. Commit your changes (`git commit -am 'Added some feature'`)
|
31
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
32
|
+
5. Create new Pull Request
|
data/Rakefile
ADDED
data/bin/coderwall
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
begin
|
4
|
+
require 'coderwall/command'
|
5
|
+
rescue LoadError
|
6
|
+
coderwall_path = File.expand_path('../../lib', __FILE__)
|
7
|
+
$:.unshift(coderwall_path) if File.directory?(coderwall_path) && !$:.include?(coderwall_path)
|
8
|
+
require 'coderwall/command'
|
9
|
+
end
|
data/coderwall.gemspec
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
require File.expand_path('../lib/coderwall/version', __FILE__)
|
3
|
+
|
4
|
+
Gem::Specification.new do |gem|
|
5
|
+
gem.authors = ["Sergey Nartimov"]
|
6
|
+
gem.email = ["just.lest@gmail.com"]
|
7
|
+
gem.description = %q{Coderwall CLI}
|
8
|
+
gem.summary = %q{Coderwall CLI}
|
9
|
+
gem.homepage = ""
|
10
|
+
|
11
|
+
gem.files = `git ls-files`.split($\)
|
12
|
+
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
13
|
+
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
14
|
+
gem.name = "coderwall"
|
15
|
+
gem.require_paths = ["lib"]
|
16
|
+
gem.version = Coderwall::VERSION
|
17
|
+
end
|
data/lib/coderwall.rb
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'open-uri'
|
3
|
+
require 'json'
|
4
|
+
|
5
|
+
username = ARGV.first
|
6
|
+
|
7
|
+
unless username
|
8
|
+
puts "Usage: coderwall USERNAME"
|
9
|
+
exit 1
|
10
|
+
end
|
11
|
+
|
12
|
+
url = URI.escape("http://coderwall.com/#{username}.json")
|
13
|
+
begin
|
14
|
+
response = JSON.load(open(url))
|
15
|
+
puts "Achievements:"
|
16
|
+
response['badges'].each do |badge|
|
17
|
+
puts "- #{badge['name']}: #{badge['description']}"
|
18
|
+
end
|
19
|
+
rescue OpenURI::HTTPError
|
20
|
+
puts "Invalid username"
|
21
|
+
exit 1
|
22
|
+
end
|
metadata
ADDED
@@ -0,0 +1,62 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: coderwall
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Sergey Nartimov
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-03-26 00:00:00.000000000 Z
|
13
|
+
dependencies: []
|
14
|
+
description: Coderwall CLI
|
15
|
+
email:
|
16
|
+
- just.lest@gmail.com
|
17
|
+
executables:
|
18
|
+
- coderwall
|
19
|
+
extensions: []
|
20
|
+
extra_rdoc_files: []
|
21
|
+
files:
|
22
|
+
- .gitignore
|
23
|
+
- Gemfile
|
24
|
+
- MIT-LICENSE
|
25
|
+
- README.md
|
26
|
+
- Rakefile
|
27
|
+
- bin/coderwall
|
28
|
+
- coderwall.gemspec
|
29
|
+
- lib/coderwall.rb
|
30
|
+
- lib/coderwall/command.rb
|
31
|
+
- lib/coderwall/version.rb
|
32
|
+
homepage: ''
|
33
|
+
licenses: []
|
34
|
+
post_install_message:
|
35
|
+
rdoc_options: []
|
36
|
+
require_paths:
|
37
|
+
- lib
|
38
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0'
|
44
|
+
segments:
|
45
|
+
- 0
|
46
|
+
hash: -1134809418415194329
|
47
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
48
|
+
none: false
|
49
|
+
requirements:
|
50
|
+
- - ! '>='
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '0'
|
53
|
+
segments:
|
54
|
+
- 0
|
55
|
+
hash: -1134809418415194329
|
56
|
+
requirements: []
|
57
|
+
rubyforge_project:
|
58
|
+
rubygems_version: 1.8.11
|
59
|
+
signing_key:
|
60
|
+
specification_version: 3
|
61
|
+
summary: Coderwall CLI
|
62
|
+
test_files: []
|