pushpop-github 0.1.0 → 0.1.1

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 CHANGED
@@ -6,7 +6,4 @@ gem 'github_api'
6
6
  group :development, :test do
7
7
  gem 'rake'
8
8
  gem 'rspec'
9
- gem 'debugger'
10
- gem 'mail'
11
- gem 'twilio-ruby'
12
9
  end
@@ -8,17 +8,9 @@ GEM
8
8
  thread_safe (~> 0.1)
9
9
  tzinfo (~> 1.1)
10
10
  addressable (2.3.6)
11
- builder (3.2.2)
12
11
  clockwork (0.7.5)
13
12
  activesupport
14
13
  tzinfo
15
- columnize (0.3.6)
16
- debugger (1.6.6)
17
- columnize (>= 0.3.1)
18
- debugger-linecache (~> 1.2.0)
19
- debugger-ruby_core_source (~> 1.3.2)
20
- debugger-linecache (1.2.0)
21
- debugger-ruby_core_source (1.3.2)
22
14
  descendants_tracker (0.0.4)
23
15
  thread_safe (~> 0.3, >= 0.3.1)
24
16
  diff-lcs (1.2.5)
@@ -36,13 +28,6 @@ GEM
36
28
  i18n (0.6.9)
37
29
  json (1.8.1)
38
30
  jwt (1.0.0)
39
- keen (0.8.2)
40
- addressable (~> 2.3.5)
41
- multi_json (~> 1.3)
42
- mail (2.5.4)
43
- mime-types (~> 1.16)
44
- treetop (~> 1.4.8)
45
- mime-types (1.25.1)
46
31
  mini_portile (0.6.0)
47
32
  minitest (5.3.4)
48
33
  multi_json (1.10.1)
@@ -56,28 +41,23 @@ GEM
56
41
  multi_json (~> 1.3)
57
42
  multi_xml (~> 0.5)
58
43
  rack (~> 1.2)
59
- polyglot (0.3.4)
60
- pushpop (0.1.0)
44
+ pushpop (0.1.1)
61
45
  clockwork
62
- keen
63
46
  rack (1.5.2)
64
47
  rake (10.3.2)
65
- rspec (2.14.1)
66
- rspec-core (~> 2.14.0)
67
- rspec-expectations (~> 2.14.0)
68
- rspec-mocks (~> 2.14.0)
69
- rspec-core (2.14.8)
70
- rspec-expectations (2.14.5)
71
- diff-lcs (>= 1.1.3, < 2.0)
72
- rspec-mocks (2.14.6)
48
+ rspec (3.0.0)
49
+ rspec-core (~> 3.0.0)
50
+ rspec-expectations (~> 3.0.0)
51
+ rspec-mocks (~> 3.0.0)
52
+ rspec-core (3.0.1)
53
+ rspec-support (~> 3.0.0)
54
+ rspec-expectations (3.0.1)
55
+ diff-lcs (>= 1.2.0, < 2.0)
56
+ rspec-support (~> 3.0.0)
57
+ rspec-mocks (3.0.1)
58
+ rspec-support (~> 3.0.0)
59
+ rspec-support (3.0.0)
73
60
  thread_safe (0.3.4)
74
- treetop (1.4.15)
75
- polyglot
76
- polyglot (>= 0.3.1)
77
- twilio-ruby (3.11.5)
78
- builder (>= 2.1.2)
79
- jwt (>= 0.1.2)
80
- multi_json (>= 1.3.0)
81
61
  tzinfo (1.2.1)
82
62
  thread_safe (~> 0.1)
83
63
 
@@ -85,10 +65,7 @@ PLATFORMS
85
65
  ruby
86
66
 
87
67
  DEPENDENCIES
88
- debugger
89
68
  github_api
90
- mail
91
69
  pushpop
92
70
  rake
93
71
  rspec
94
- twilio-ruby
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [![Build Status](https://travis-ci.org/pushpop-project/pushpop-github.svg)](https://travis-ci.org/pushpop-project/pushpop-github)
4
4
 
5
- Github API integration for [Pushpop](https://github.com/keenlabs/pushpop).
5
+ Github API integration for [Pushpop](https://github.com/pushpop-project/pushpop).
6
6
 
7
7
  ### Installation
8
8
 
@@ -20,7 +20,7 @@ $ gem install pushpop-github
20
20
 
21
21
  ### Usage
22
22
 
23
- Here's a simple that job defines a `github` step, setting a `user` and `repository`:
23
+ Here's a simple job that defines a `github` step, setting a `user` and `repository`:
24
24
 
25
25
  ``` ruby
26
26
  require 'pushpop-github'
@@ -28,12 +28,12 @@ require 'pushpop-github'
28
28
  job do
29
29
 
30
30
  github do
31
- user 'keenlabs'
31
+ user 'pushpop-project'
32
32
  repository 'pushpop'
33
33
  end
34
34
 
35
35
  step do |repository, _|
36
- puts "keenlabs/pushpop has #{repository.stargazers_count} stars!"
36
+ puts "pushpop-project/pushpop has #{repository.stargazers_count} stars!"
37
37
  end
38
38
 
39
39
  end
@@ -50,75 +50,75 @@ Here's what repository data looks like, using the main Pushpop repository as an
50
50
  {
51
51
  "id": 18272447,
52
52
  "name": "pushpop",
53
- "full_name": "keenlabs/pushpop",
53
+ "full_name": "pushpop-project/pushpop",
54
54
  "owner": {
55
- "login": "keenlabs",
56
- "id": 1315418,
57
- "avatar_url": "https://avatars.githubusercontent.com/u/1315418?",
58
- "gravatar_id": "b948c4bc2de9618c488431612d2ff99d",
59
- "url": "https://api.github.com/users/keenlabs",
60
- "html_url": "https://github.com/keenlabs",
61
- "followers_url": "https://api.github.com/users/keenlabs/followers",
62
- "following_url": "https://api.github.com/users/keenlabs/following{/other_user}",
63
- "gists_url": "https://api.github.com/users/keenlabs/gists{/gist_id}",
64
- "starred_url": "https://api.github.com/users/keenlabs/starred{/owner}{/repo}",
65
- "subscriptions_url": "https://api.github.com/users/keenlabs/subscriptions",
66
- "organizations_url": "https://api.github.com/users/keenlabs/orgs",
67
- "repos_url": "https://api.github.com/users/keenlabs/repos",
68
- "events_url": "https://api.github.com/users/keenlabs/events{/privacy}",
69
- "received_events_url": "https://api.github.com/users/keenlabs/received_events",
55
+ "login": "pushpop-project",
56
+ "id": 7890841,
57
+ "avatar_url": "https://avatars.githubusercontent.com/u/7890841?",
58
+ "gravatar_id": null,
59
+ "url": "https://api.github.com/users/pushpop-project",
60
+ "html_url": "https://github.com/pushpop-project",
61
+ "followers_url": "https://api.github.com/users/pushpop-project/followers",
62
+ "following_url": "https://api.github.com/users/pushpop-project/following{/other_user}",
63
+ "gists_url": "https://api.github.com/users/pushpop-project/gists{/gist_id}",
64
+ "starred_url": "https://api.github.com/users/pushpop-project/starred{/owner}{/repo}",
65
+ "subscriptions_url": "https://api.github.com/users/pushpop-project/subscriptions",
66
+ "organizations_url": "https://api.github.com/users/pushpop-project/orgs",
67
+ "repos_url": "https://api.github.com/users/pushpop-project/repos",
68
+ "events_url": "https://api.github.com/users/pushpop-project/events{/privacy}",
69
+ "received_events_url": "https://api.github.com/users/pushpop-project/received_events",
70
70
  "type": "Organization",
71
71
  "site_admin": false
72
72
  },
73
73
  "private": false,
74
- "html_url": "https://github.com/keenlabs/pushpop",
74
+ "html_url": "https://github.com/pushpop-project/pushpop",
75
75
  "description": "Send alerts and recurring reports based on Keen IO events",
76
76
  "fork": false,
77
- "url": "https://api.github.com/repos/keenlabs/pushpop",
78
- "forks_url": "https://api.github.com/repos/keenlabs/pushpop/forks",
79
- "keys_url": "https://api.github.com/repos/keenlabs/pushpop/keys{/key_id}",
80
- "collaborators_url": "https://api.github.com/repos/keenlabs/pushpop/collaborators{/collaborator}",
81
- "teams_url": "https://api.github.com/repos/keenlabs/pushpop/teams",
82
- "hooks_url": "https://api.github.com/repos/keenlabs/pushpop/hooks",
83
- "issue_events_url": "https://api.github.com/repos/keenlabs/pushpop/issues/events{/number}",
84
- "events_url": "https://api.github.com/repos/keenlabs/pushpop/events",
85
- "assignees_url": "https://api.github.com/repos/keenlabs/pushpop/assignees{/user}",
86
- "branches_url": "https://api.github.com/repos/keenlabs/pushpop/branches{/branch}",
87
- "tags_url": "https://api.github.com/repos/keenlabs/pushpop/tags",
88
- "blobs_url": "https://api.github.com/repos/keenlabs/pushpop/git/blobs{/sha}",
89
- "git_tags_url": "https://api.github.com/repos/keenlabs/pushpop/git/tags{/sha}",
90
- "git_refs_url": "https://api.github.com/repos/keenlabs/pushpop/git/refs{/sha}",
91
- "trees_url": "https://api.github.com/repos/keenlabs/pushpop/git/trees{/sha}",
92
- "statuses_url": "https://api.github.com/repos/keenlabs/pushpop/statuses/{sha}",
93
- "languages_url": "https://api.github.com/repos/keenlabs/pushpop/languages",
94
- "stargazers_url": "https://api.github.com/repos/keenlabs/pushpop/stargazers",
95
- "contributors_url": "https://api.github.com/repos/keenlabs/pushpop/contributors",
96
- "subscribers_url": "https://api.github.com/repos/keenlabs/pushpop/subscribers",
97
- "subscription_url": "https://api.github.com/repos/keenlabs/pushpop/subscription",
98
- "commits_url": "https://api.github.com/repos/keenlabs/pushpop/commits{/sha}",
99
- "git_commits_url": "https://api.github.com/repos/keenlabs/pushpop/git/commits{/sha}",
100
- "comments_url": "https://api.github.com/repos/keenlabs/pushpop/comments{/number}",
101
- "issue_comment_url": "https://api.github.com/repos/keenlabs/pushpop/issues/comments/{number}",
102
- "contents_url": "https://api.github.com/repos/keenlabs/pushpop/contents/{+path}",
103
- "compare_url": "https://api.github.com/repos/keenlabs/pushpop/compare/{base}...{head}",
104
- "merges_url": "https://api.github.com/repos/keenlabs/pushpop/merges",
105
- "archive_url": "https://api.github.com/repos/keenlabs/pushpop/{archive_format}{/ref}",
106
- "downloads_url": "https://api.github.com/repos/keenlabs/pushpop/downloads",
107
- "issues_url": "https://api.github.com/repos/keenlabs/pushpop/issues{/number}",
108
- "pulls_url": "https://api.github.com/repos/keenlabs/pushpop/pulls{/number}",
109
- "milestones_url": "https://api.github.com/repos/keenlabs/pushpop/milestones{/number}",
110
- "notifications_url": "https://api.github.com/repos/keenlabs/pushpop/notifications{?since,all,participating}",
111
- "labels_url": "https://api.github.com/repos/keenlabs/pushpop/labels{/name}",
112
- "releases_url": "https://api.github.com/repos/keenlabs/pushpop/releases{/id}",
77
+ "url": "https://api.github.com/repos/pushpop-project/pushpop",
78
+ "forks_url": "https://api.github.com/repos/pushpop-project/pushpop/forks",
79
+ "keys_url": "https://api.github.com/repos/pushpop-project/pushpop/keys{/key_id}",
80
+ "collaborators_url": "https://api.github.com/repos/pushpop-project/pushpop/collaborators{/collaborator}",
81
+ "teams_url": "https://api.github.com/repos/pushpop-project/pushpop/teams",
82
+ "hooks_url": "https://api.github.com/repos/pushpop-project/pushpop/hooks",
83
+ "issue_events_url": "https://api.github.com/repos/pushpop-project/pushpop/issues/events{/number}",
84
+ "events_url": "https://api.github.com/repos/pushpop-project/pushpop/events",
85
+ "assignees_url": "https://api.github.com/repos/pushpop-project/pushpop/assignees{/user}",
86
+ "branches_url": "https://api.github.com/repos/pushpop-project/pushpop/branches{/branch}",
87
+ "tags_url": "https://api.github.com/repos/pushpop-project/pushpop/tags",
88
+ "blobs_url": "https://api.github.com/repos/pushpop-project/pushpop/git/blobs{/sha}",
89
+ "git_tags_url": "https://api.github.com/repos/pushpop-project/pushpop/git/tags{/sha}",
90
+ "git_refs_url": "https://api.github.com/repos/pushpop-project/pushpop/git/refs{/sha}",
91
+ "trees_url": "https://api.github.com/repos/pushpop-project/pushpop/git/trees{/sha}",
92
+ "statuses_url": "https://api.github.com/repos/pushpop-project/pushpop/statuses/{sha}",
93
+ "languages_url": "https://api.github.com/repos/pushpop-project/pushpop/languages",
94
+ "stargazers_url": "https://api.github.com/repos/pushpop-project/pushpop/stargazers",
95
+ "contributors_url": "https://api.github.com/repos/pushpop-project/pushpop/contributors",
96
+ "subscribers_url": "https://api.github.com/repos/pushpop-project/pushpop/subscribers",
97
+ "subscription_url": "https://api.github.com/repos/pushpop-project/pushpop/subscription",
98
+ "commits_url": "https://api.github.com/repos/pushpop-project/pushpop/commits{/sha}",
99
+ "git_commits_url": "https://api.github.com/repos/pushpop-project/pushpop/git/commits{/sha}",
100
+ "comments_url": "https://api.github.com/repos/pushpop-project/pushpop/comments{/number}",
101
+ "issue_comment_url": "https://api.github.com/repos/pushpop-project/pushpop/issues/comments/{number}",
102
+ "contents_url": "https://api.github.com/repos/pushpop-project/pushpop/contents/{+path}",
103
+ "compare_url": "https://api.github.com/repos/pushpop-project/pushpop/compare/{base}...{head}",
104
+ "merges_url": "https://api.github.com/repos/pushpop-project/pushpop/merges",
105
+ "archive_url": "https://api.github.com/repos/pushpop-project/pushpop/{archive_format}{/ref}",
106
+ "downloads_url": "https://api.github.com/repos/pushpop-project/pushpop/downloads",
107
+ "issues_url": "https://api.github.com/repos/pushpop-project/pushpop/issues{/number}",
108
+ "pulls_url": "https://api.github.com/repos/pushpop-project/pushpop/pulls{/number}",
109
+ "milestones_url": "https://api.github.com/repos/pushpop-project/pushpop/milestones{/number}",
110
+ "notifications_url": "https://api.github.com/repos/pushpop-project/pushpop/notifications{?since,all,participating}",
111
+ "labels_url": "https://api.github.com/repos/pushpop-project/pushpop/labels{/name}",
112
+ "releases_url": "https://api.github.com/repos/pushpop-project/pushpop/releases{/id}",
113
113
  "created_at": "2014-03-30T19:57:28Z",
114
- "updated_at": "2014-06-09T06:15:31Z",
115
- "pushed_at": "2014-05-22T00:54:09Z",
116
- "git_url": "git://github.com/keenlabs/pushpop.git",
117
- "ssh_url": "git@github.com:keenlabs/pushpop.git",
118
- "clone_url": "https://github.com/keenlabs/pushpop.git",
119
- "svn_url": "https://github.com/keenlabs/pushpop",
114
+ "updated_at": "2014-06-16T08:05:37Z",
115
+ "pushed_at": "2014-06-16T08:05:38Z",
116
+ "git_url": "git://github.com/pushpop-project/pushpop.git",
117
+ "ssh_url": "git@github.com:pushpop-project/pushpop.git",
118
+ "clone_url": "https://github.com/pushpop-project/pushpop.git",
119
+ "svn_url": "https://github.com/pushpop-project/pushpop",
120
120
  "homepage": "",
121
- "size": 896,
121
+ "size": 767,
122
122
  "stargazers_count": 17,
123
123
  "watchers_count": 17,
124
124
  "language": "Ruby",
@@ -133,21 +133,21 @@ Here's what repository data looks like, using the main Pushpop repository as an
133
133
  "watchers": 17,
134
134
  "default_branch": "master",
135
135
  "organization": {
136
- "login": "keenlabs",
137
- "id": 1315418,
138
- "avatar_url": "https://avatars.githubusercontent.com/u/1315418?",
139
- "gravatar_id": "b948c4bc2de9618c488431612d2ff99d",
140
- "url": "https://api.github.com/users/keenlabs",
141
- "html_url": "https://github.com/keenlabs",
142
- "followers_url": "https://api.github.com/users/keenlabs/followers",
143
- "following_url": "https://api.github.com/users/keenlabs/following{/other_user}",
144
- "gists_url": "https://api.github.com/users/keenlabs/gists{/gist_id}",
145
- "starred_url": "https://api.github.com/users/keenlabs/starred{/owner}{/repo}",
146
- "subscriptions_url": "https://api.github.com/users/keenlabs/subscriptions",
147
- "organizations_url": "https://api.github.com/users/keenlabs/orgs",
148
- "repos_url": "https://api.github.com/users/keenlabs/repos",
149
- "events_url": "https://api.github.com/users/keenlabs/events{/privacy}",
150
- "received_events_url": "https://api.github.com/users/keenlabs/received_events",
136
+ "login": "pushpop-project",
137
+ "id": 7890841,
138
+ "avatar_url": "https://avatars.githubusercontent.com/u/7890841?",
139
+ "gravatar_id": null,
140
+ "url": "https://api.github.com/users/pushpop-project",
141
+ "html_url": "https://github.com/pushpop-project",
142
+ "followers_url": "https://api.github.com/users/pushpop-project/followers",
143
+ "following_url": "https://api.github.com/users/pushpop-project/following{/other_user}",
144
+ "gists_url": "https://api.github.com/users/pushpop-project/gists{/gist_id}",
145
+ "starred_url": "https://api.github.com/users/pushpop-project/starred{/owner}{/repo}",
146
+ "subscriptions_url": "https://api.github.com/users/pushpop-project/subscriptions",
147
+ "organizations_url": "https://api.github.com/users/pushpop-project/orgs",
148
+ "repos_url": "https://api.github.com/users/pushpop-project/repos",
149
+ "events_url": "https://api.github.com/users/pushpop-project/events{/privacy}",
150
+ "received_events_url": "https://api.github.com/users/pushpop-project/received_events",
151
151
  "type": "Organization",
152
152
  "site_admin": false
153
153
  },
@@ -159,7 +159,7 @@ Any of these properties can be accessed by calling the property name on the repo
159
159
 
160
160
  ``` ruby
161
161
  repository.has_downloads #=> true
162
- repository.owner.url #=> "https://api.github.com/users/keenlabs"
162
+ repository.owner.url #=> "https://api.github.com/users/pushpop-project"
163
163
  ```
164
164
 
165
165
  See the [Github API Documentation](https://developer.github.com/v3) for more information.
@@ -1,5 +1,5 @@
1
1
  module Pushpop
2
2
  class Github
3
- VERSION = '0.1.0'
3
+ VERSION = '0.1.1'
4
4
  end
5
5
  end
@@ -3,7 +3,7 @@ require 'spec_helper'
3
3
  describe Pushpop::Github do
4
4
  it 'should return repository information' do
5
5
  step = Pushpop::Github.new do
6
- user 'keenlabs'
6
+ user 'pushpop-project'
7
7
  repository 'pushpop'
8
8
  end
9
9
  repo = step.run
@@ -13,7 +13,7 @@ describe Pushpop::Github do
13
13
  it 'should register as a plugin' do
14
14
  github_job = job do
15
15
  github do
16
- user 'keenlabs'
16
+ user 'pushpop-project'
17
17
  repository 'pushpop'
18
18
  end
19
19
  end
@@ -24,7 +24,7 @@ describe Pushpop::Github do
24
24
  it 'should raise an error if repository is not configured' do
25
25
  expect {
26
26
  step = Pushpop::Github.new do
27
- user 'keenlabs'
27
+ user 'pushpop-project'
28
28
  end
29
29
  step.run
30
30
  }.to raise_error /Please set/
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pushpop-github
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-06-15 00:00:00.000000000 Z
12
+ date: 2014-06-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: pushpop