sifter 0.1.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,7 +1,11 @@
1
1
  source "http://rubygems.org"
2
2
  gemspec
3
3
 
4
+ gem 'coveralls', require: false
5
+ gem 'json', '~> 1.7.7'
6
+
4
7
  group :development, :test do
5
8
  gem 'rspec', '~> 2.5.0'
6
9
  gem 'fakeweb', '~> 1.3.0'
10
+ gem 'rake'
7
11
  end
data/README.md CHANGED
@@ -1,3 +1,6 @@
1
+ [![Coverage Status](https://coveralls.io/repos/nextupdate/sifter-ruby/badge.png)](https://coveralls.io/r/nextupdate/sifter-ruby)
2
+
3
+
1
4
  # sifter-ruby
2
5
 
3
6
  It's an API wrapper for the [Sifter API](http://sifterapp.com/developer). You
data/Rakefile CHANGED
@@ -1,6 +1,6 @@
1
1
  require 'bundler'
2
2
  require 'rspec/core/rake_task'
3
- require 'rake/rdoctask'
3
+ require 'rdoc/task'
4
4
 
5
5
  Bundler::GemHelper.install_tasks
6
6
 
@@ -17,12 +17,19 @@ class Sifter
17
17
  property :priority
18
18
  property :status
19
19
  property :assignee_name
20
+ property :assignee_email
20
21
  property :category_name
21
22
  property :milestone_name
22
23
  property :opener_name
24
+ property :opener_email
25
+ property :comment_count
26
+ property :attachment_count
27
+ property :created_at
28
+ property :updated_at
23
29
  property :url
24
30
  property :api_url
25
-
31
+ property :comments_url
32
+
26
33
  end
27
34
 
28
35
  # Wrapper around a milestone.
@@ -1,3 +1,3 @@
1
1
  class Sifter
2
- VERSION = "0.1.1"
2
+ VERSION = "0.2.0"
3
3
  end
@@ -19,6 +19,6 @@ Gem::Specification.new do |s|
19
19
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
20
20
  s.require_paths = ["lib"]
21
21
 
22
- s.add_dependency 'httparty', '~> 0.6.1'
23
- s.add_dependency 'hashie', '~> 0.4.0'
22
+ s.add_dependency 'httparty', '~> 0.11.0'
23
+ s.add_dependency 'hashie', '~> 2.0.5'
24
24
  end
@@ -1,36 +1,47 @@
1
1
  {
2
- "issues": [
3
- {
4
- "number": 57,
5
- "category_name": "Enhancement",
6
- "priority": "Trivial",
7
- "subject": "Donec vel neque",
8
- "description": "Nam id libero quis ipsum feugiat elementum. Vivamus vitae mauris ut ipsum mattis malesuada. Sed vel massa. Mauris lobortis. Nunc egestas, massa id scelerisque dapibus, urna mi accumsan purus, vel aliquam nunc sapien eget nisi. Quisque vitae nibh. Proin interdum mollis leo. Fusce sed nisi. Integer ut tortor.",
9
- "milestone_name": null,
10
- "opener_name": "Adam Keys",
11
- "assignee_name": "Garrett Dimon",
12
- "status": "Open",
13
- "url": "https://example.sifterapp.com/projects/189113590/issues/46809840",
14
- "api_url": "https://example.sifterapp.com/api/projects/189113590/issues/46809840"
15
- },
16
- {
17
- "number": 63,
18
- "category_name": "Bug",
19
- "priority": "Trivial",
20
- "subject": "Sed lectus nunc, egestas tincidunt",
21
- "description": "Proin dictum dignissim metus. Vivamus vel risus sed augue venenatis sodales. Quisque tempus dictum lorem. Sed a turpis eu turpis lobortis pellentesque. Nunc sem mi, ullamcorper non, dignissim eu, pellentesque eget, justo. Donec mollis neque quis tortor. In hac habitasse platea dictumst. Mauris at velit non erat scelerisque iaculis.",
22
- "milestone_name": null,
23
- "opener_name": "Adam Keys",
24
- "assignee_name": null,
25
- "status": "Open",
26
- "url": "https://example.sifterapp.com/projects/189113590/issues/465769292",
27
- "api_url": "https://example.sifterapp.com/api/projects/189113590/issues/465769292"
28
- }
29
- ],
30
- "per_page": 10,
31
- "page": 1,
32
- "total_pages": 2,
33
- "next_page_url": "https://example.sifterapp.com/api/projects/189113590/issues?per_page=10&page=1",
34
- "previous_page_url": null
35
- }
36
-
2
+ "issues": [
3
+ {
4
+ "number": 57,
5
+ "category_name": "Enhancement",
6
+ "priority": "Trivial",
7
+ "subject": "Donec vel neque",
8
+ "description": "Nam id libero quis ipsum feugiat elementum. Vivamus vitae mauris ut ipsum mattis malesuada. Sed vel massa. Mauris lobortis. Nunc egestas, massa id scelerisque dapibus, urna mi accumsan purus, vel aliquam nunc sapien eget nisi. Quisque vitae nibh. Proin interdum mollis leo. Fusce sed nisi. Integer ut tortor.",
9
+ "milestone_name": null,
10
+ "opener_name": "Adam Keys",
11
+ "opener_email": "adam@example.com",
12
+ "assignee_name": "Garrett Dimon",
13
+ "assignee_email": "garrett@example.com",
14
+ "status": "Open",
15
+ "comment_count": 2,
16
+ "attachment_count": 1,
17
+ "created_at": "2010/05/16 19:13:16 +0000",
18
+ "updated_at": "2010/05/16 19:13:16 +0000",
19
+ "url": "https://example.sifterapp.com/projects/1/issues/5",
20
+ "api_url": "https://example.sifterapp.com/api/projects/1/issues/5"
21
+ },
22
+ {
23
+ "number": 63,
24
+ "category_name": "Bug",
25
+ "priority": "Trivial",
26
+ "subject": "Sed lectus nunc, egestas tincidunt",
27
+ "description": "Proin dictum dignissim metus. Vivamus vel risus sed augue venenatis sodales. Quisque tempus dictum lorem. Sed a turpis eu turpis lobortis pellentesque. Nunc sem mi, ullamcorper non, dignissim eu, pellentesque eget, justo. Donec mollis neque quis tortor. In hac habitasse platea dictumst. Mauris at velit non erat scelerisque iaculis.",
28
+ "milestone_name": null,
29
+ "opener_name": "Adam Keys",
30
+ "opener_email": "adam@example.com",
31
+ "assignee_name": null,
32
+ "assignee_email": null,
33
+ "status": "Open",
34
+ "comment_count": 0,
35
+ "attachment_count": 0,
36
+ "created_at": "2010/05/16 19:13:16 +0000",
37
+ "updated_at": "2010/05/16 19:13:16 +0000",
38
+ "url": "https://example.sifterapp.com/projects/1/issues/6",
39
+ "api_url": "https://example.sifterapp.com/api/projects/1/issues/6"
40
+ }
41
+ ],
42
+ "page": 1,
43
+ "per_page": 100,
44
+ "total_pages": 2,
45
+ "next_page_url": "https://example.sifterapp.com/api/projects/1/issues?per_page=10&page=1",
46
+ "previous_page_url": null
47
+ }
@@ -1,3 +1,8 @@
1
+ require 'bundler/setup'
2
+
3
+ require 'coveralls'
4
+ Coveralls.wear!
5
+
1
6
  require "fakeweb"
2
7
  require "sifter"
3
8
 
metadata CHANGED
@@ -1,38 +1,48 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sifter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
5
4
  prerelease:
5
+ version: 0.2.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - Adam Keys
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-14 00:00:00.000000000Z
12
+ date: 2013-07-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
+ prerelease: false
15
16
  name: httparty
16
- requirement: &70361979940320 !ruby/object:Gem::Requirement
17
+ type: :runtime
18
+ version_requirements: !ruby/object:Gem::Requirement
19
+ requirements:
20
+ - - ~>
21
+ - !ruby/object:Gem::Version
22
+ version: 0.11.0
17
23
  none: false
24
+ requirement: !ruby/object:Gem::Requirement
18
25
  requirements:
19
26
  - - ~>
20
27
  - !ruby/object:Gem::Version
21
- version: 0.6.1
22
- type: :runtime
23
- prerelease: false
24
- version_requirements: *70361979940320
28
+ version: 0.11.0
29
+ none: false
25
30
  - !ruby/object:Gem::Dependency
31
+ prerelease: false
26
32
  name: hashie
27
- requirement: &70361979934200 !ruby/object:Gem::Requirement
33
+ type: :runtime
34
+ version_requirements: !ruby/object:Gem::Requirement
35
+ requirements:
36
+ - - ~>
37
+ - !ruby/object:Gem::Version
38
+ version: 2.0.5
28
39
  none: false
40
+ requirement: !ruby/object:Gem::Requirement
29
41
  requirements:
30
42
  - - ~>
31
43
  - !ruby/object:Gem::Version
32
- version: 0.4.0
33
- type: :runtime
34
- prerelease: false
35
- version_requirements: *70361979934200
44
+ version: 2.0.5
45
+ none: false
36
46
  description: Query, fetch, create and modify issues stored in Sifter.
37
47
  email:
38
48
  - adam@nextupdate.com
@@ -67,20 +77,26 @@ rdoc_options: []
67
77
  require_paths:
68
78
  - lib
69
79
  required_ruby_version: !ruby/object:Gem::Requirement
70
- none: false
71
80
  requirements:
72
81
  - - ! '>='
73
82
  - !ruby/object:Gem::Version
83
+ segments:
84
+ - 0
85
+ hash: -1085235108670699466
74
86
  version: '0'
75
- required_rubygems_version: !ruby/object:Gem::Requirement
76
87
  none: false
88
+ required_rubygems_version: !ruby/object:Gem::Requirement
77
89
  requirements:
78
90
  - - ! '>='
79
91
  - !ruby/object:Gem::Version
92
+ segments:
93
+ - 0
94
+ hash: -1085235108670699466
80
95
  version: '0'
96
+ none: false
81
97
  requirements: []
82
98
  rubyforge_project: sifter
83
- rubygems_version: 1.8.10
99
+ rubygems_version: 1.8.23
84
100
  signing_key:
85
101
  specification_version: 3
86
102
  summary: Wrapper for the Sifter API