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 +4 -0
- data/README.md +3 -0
- data/Rakefile +1 -1
- data/lib/sifter.rb +8 -1
- data/lib/sifter/version.rb +1 -1
- data/sifter.gemspec +2 -2
- data/spec/fixtures/issues.json +46 -35
- data/spec/spec_helper.rb +5 -0
- metadata +31 -15
data/Gemfile
CHANGED
data/README.md
CHANGED
data/Rakefile
CHANGED
data/lib/sifter.rb
CHANGED
@@ -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.
|
data/lib/sifter/version.rb
CHANGED
data/sifter.gemspec
CHANGED
@@ -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.
|
23
|
-
s.add_dependency 'hashie', '~> 0.
|
22
|
+
s.add_dependency 'httparty', '~> 0.11.0'
|
23
|
+
s.add_dependency 'hashie', '~> 2.0.5'
|
24
24
|
end
|
data/spec/fixtures/issues.json
CHANGED
@@ -1,36 +1,47 @@
|
|
1
1
|
{
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
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
|
+
}
|
data/spec/spec_helper.rb
CHANGED
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:
|
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
|
-
|
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.
|
22
|
-
|
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
|
-
|
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.
|
33
|
-
|
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.
|
99
|
+
rubygems_version: 1.8.23
|
84
100
|
signing_key:
|
85
101
|
specification_version: 3
|
86
102
|
summary: Wrapper for the Sifter API
|