brunter 0.0.1.alpha

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.
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem 'curb'
4
+ gem 'github_api', :git => 'https://github.com/peter-murach/github', :tag => 'v0.9.7'
data/Gemfile.lock ADDED
@@ -0,0 +1,39 @@
1
+ GIT
2
+ remote: https://github.com/peter-murach/github
3
+ revision: d9939e2573060df365d6f040d778aa1fd171df04
4
+ tag: v0.9.7
5
+ specs:
6
+ github_api (0.9.7)
7
+ faraday (~> 0.8.1)
8
+ hashie (>= 1.2)
9
+ multi_json (~> 1.4)
10
+ nokogiri (~> 1.5.2)
11
+ oauth2
12
+
13
+ GEM
14
+ remote: https://rubygems.org/
15
+ specs:
16
+ faraday (0.8.7)
17
+ multipart-post (~> 1.1)
18
+ hashie (2.0.4)
19
+ httpauth (0.2.0)
20
+ jwt (0.1.8)
21
+ multi_json (>= 1.5)
22
+ multi_json (1.7.3)
23
+ multi_xml (0.5.3)
24
+ multipart-post (1.2.0)
25
+ nokogiri (1.5.9)
26
+ oauth2 (0.9.1)
27
+ faraday (~> 0.8)
28
+ httpauth (~> 0.1)
29
+ jwt (~> 0.1.4)
30
+ multi_json (~> 1.0)
31
+ multi_xml (~> 0.5)
32
+ rack (~> 1.2)
33
+ rack (1.5.2)
34
+
35
+ PLATFORMS
36
+ ruby
37
+
38
+ DEPENDENCIES
39
+ github_api!
data/README.md ADDED
@@ -0,0 +1,6 @@
1
+ ## Usage
2
+
3
+ _from a cli_
4
+ ```
5
+ brunter register photo-strip git://github.com/brunter/photo-strip.git "This description."
6
+ ```
data/Rakefile ADDED
@@ -0,0 +1,8 @@
1
+ require 'rake/testtask'
2
+
3
+ Rake::TestTask.new do |t|
4
+ t.libs << 'test'
5
+ end
6
+
7
+ desc "Run all the tests"
8
+ task :default => :test
data/bin/brunter ADDED
@@ -0,0 +1,9 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ lib = File.expand_path(File.dirname(__FILE__) + '/../lib')
4
+ $LOAD_PATH.unshift(lib) if File.directory?(lib) && !$LOAD_PATH.include?(lib)
5
+
6
+ require 'brunter'
7
+ if (ARGV[0] == 'register')
8
+ puts Brunter.register(ARGV[1], ARGV[2], ARGV[3])
9
+ end
data/lib/brunter.rb ADDED
@@ -0,0 +1,27 @@
1
+ require 'curb'
2
+
3
+ class Brunter
4
+ def self.register(component, url, description)
5
+ registrar = Registrar.new(component, url, description)
6
+ registrar.register
7
+ end
8
+ end
9
+
10
+ class Brunter::Registrar
11
+ def initialize(component, url, description)
12
+ @component = component
13
+ @url = url
14
+ @description = description
15
+ @host = 'brunter.io/packages'
16
+ @payload = {
17
+ 'name' => @component,
18
+ 'url' => @url,
19
+ 'description' => @description
20
+ }
21
+ end
22
+ def register
23
+ http = Curl.post(@host, @payload)
24
+ puts http.body_str
25
+ end
26
+ end
27
+
@@ -0,0 +1,9 @@
1
+ require 'test/unit'
2
+ require 'brunter'
3
+
4
+ class BrunterTest < Test::Unit::TestCase
5
+ def test_hooray
6
+ assert_equal "woot",
7
+ Hooray.woot
8
+ end
9
+ end
metadata ADDED
@@ -0,0 +1,54 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: brunter
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1.alpha
5
+ prerelease: 6
6
+ platform: ruby
7
+ authors:
8
+ - Carwin Young
9
+ - Kris Bulman
10
+ autorequire:
11
+ bindir: bin
12
+ cert_chain: []
13
+ date: 2013-05-11 00:00:00.000000000 Z
14
+ dependencies: []
15
+ description: Package management for Sass components.
16
+ email:
17
+ - carwinyoung@gmail.com
18
+ executables:
19
+ - brunter
20
+ extensions: []
21
+ extra_rdoc_files: []
22
+ files:
23
+ - lib/brunter.rb
24
+ - bin/brunter
25
+ - Gemfile
26
+ - Gemfile.lock
27
+ - Rakefile
28
+ - README.md
29
+ - test/test_brunter.rb
30
+ homepage: http://github.com/brunter/brunter
31
+ licenses: []
32
+ post_install_message:
33
+ rdoc_options: []
34
+ require_paths:
35
+ - lib
36
+ required_ruby_version: !ruby/object:Gem::Requirement
37
+ none: false
38
+ requirements:
39
+ - - ! '>='
40
+ - !ruby/object:Gem::Version
41
+ version: '0'
42
+ required_rubygems_version: !ruby/object:Gem::Requirement
43
+ none: false
44
+ requirements:
45
+ - - ! '>'
46
+ - !ruby/object:Gem::Version
47
+ version: 1.3.1
48
+ requirements: []
49
+ rubyforge_project:
50
+ rubygems_version: 1.8.24
51
+ signing_key:
52
+ specification_version: 3
53
+ summary: Package management for Sass components.
54
+ test_files: []