minered 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile ADDED
@@ -0,0 +1,7 @@
1
+ source :rubygems
2
+ source 'http://gems.github.com'
3
+
4
+ gemspec
5
+
6
+ gem 'typhoeus'
7
+ gem 'crack'
@@ -0,0 +1,25 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ minered (0.0.1)
5
+
6
+ GEM
7
+ remote: http://rubygems.org/
8
+ remote: http://gems.github.com/
9
+ specs:
10
+ crack (0.3.1)
11
+ ethon (0.5.7)
12
+ ffi (~> 1.2.0)
13
+ mime-types (~> 1.18)
14
+ ffi (1.2.1)
15
+ mime-types (1.19)
16
+ typhoeus (0.5.4)
17
+ ethon (~> 0.5.7)
18
+
19
+ PLATFORMS
20
+ ruby
21
+
22
+ DEPENDENCIES
23
+ crack
24
+ minered!
25
+ typhoeus
@@ -0,0 +1,32 @@
1
+ # Minered
2
+
3
+ This is a client for the Redmine ticketing system. It's main purpose is to serve helpdesk needs.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ gem 'minered'
10
+
11
+ And then execute:
12
+
13
+ $ bundle
14
+
15
+ Or install it yourself as:
16
+
17
+ $ gem install minered
18
+
19
+ ## Usage
20
+
21
+ Retrieving all issues:
22
+
23
+ @minered = Minered.new(HOST, API_KEY)
24
+ @issues = @minered.issues
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
@@ -0,0 +1,13 @@
1
+ class Minered
2
+
3
+ def initialize(host, key)
4
+ @host = host
5
+ @key = key
6
+ end
7
+
8
+ def issues
9
+ response = Typhoeus.get("http://#{@host}/issues.xml?key=#{@key}")
10
+ Crack::XML.parse(response.body)['issues']
11
+ end
12
+
13
+ end
File without changes
Binary file
@@ -0,0 +1,21 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ $:.push File.expand_path("../config", __FILE__)
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "minered"
7
+ s.version = '0.0.2'
8
+ s.platform = Gem::Platform::RUBY
9
+ s.authors = ["Daniel Owen van Dommelen"]
10
+ s.email = ["bunny.rabbit@igotish.com"]
11
+ s.homepage = "http://rubygems.org/gems/minered"
12
+ s.summary = "A client gem for Redmine ticketing system."
13
+ s.description = "This is a client for the Redmine ticketing system. It's main purpose is to serve helpdesk needs."
14
+
15
+ s.rubyforge_project = "minered"
16
+
17
+ s.files = `git ls-files`.split("\n")
18
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
19
+ s.executables = `git ls-files -- bin/*`.split("\n").map{|f| File.basename(f)}
20
+ s.require_paths = ["lib"]
21
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minered
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -18,7 +18,14 @@ email:
18
18
  executables: []
19
19
  extensions: []
20
20
  extra_rdoc_files: []
21
- files: []
21
+ files:
22
+ - Gemfile
23
+ - Gemfile.lock
24
+ - README.md
25
+ - lib/minered.rb
26
+ - lib/minered/issue.rb
27
+ - minered-0.0.1.gem
28
+ - minered.gemspec
22
29
  homepage: http://rubygems.org/gems/minered
23
30
  licenses: []
24
31
  post_install_message: