pushpop 0.1.2 → 0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 79ea1e75806eb688afb2c241020437cef7e6f7b4
4
+ data.tar.gz: 17ec6e91478668059c1ad092f2aa3abf141a432c
5
+ SHA512:
6
+ metadata.gz: ca946cc80d4bc63344fd341bcf0d1fbe63a8d8f3d0f46084f40c8aebda434bb943a4fbd64d36980efb08d2c9f6ae1ff299611dfc7f39cfbf4f52290f273a7549
7
+ data.tar.gz: 4d3f0768e22c38c45713640cd4fe9a40547a6aa65fd743ebab2c98e503050a4725ee52b2fc5a63b0adb6cb071d9f1484ba382dc7f51fd3f2175dc684a05d16f7
@@ -2,6 +2,7 @@ language: ruby
2
2
  bundler_args: --without development
3
3
 
4
4
  rvm:
5
+ - 1.9.3
5
6
  - 2.1.1
6
7
 
7
8
  script:
data/README.md CHANGED
@@ -14,8 +14,7 @@
14
14
 
15
15
  ## Overview
16
16
 
17
- Pushpop is a powerful framework for taking actions and integrating services at regular intervals.
18
- This can be used to do anything from scheduled data collection to alerting based on patterns in data.
17
+ Use Pushpop to schedule and run ongoing integrations between your favorite services. With Pushpop you can easily say "send data from Service A to Service B every 5 minutes". The services and the interval are entirely configurable, and you can have as many steps as you like.
19
18
 
20
19
  Pushpop began as a way to send notifications and reports based on events captured with [Keen IO](https://keen.io).
21
20
  See plugins for more services on the [Pushpop organization](https://github.com/pushpop-project) home page.
@@ -7,16 +7,34 @@ require 'pushpop/cli'
7
7
 
8
8
  module Pushpop
9
9
  class << self
10
- cattr_accessor :logger
11
- cattr_accessor :jobs
10
+
11
+ @@jobs = []
12
+
13
+ @@logger = lambda {
14
+ logger = Logger.new($stdout)
15
+ if ENV['DEBUG']
16
+ logger.level = Logger::DEBUG
17
+ elsif ENV['RACK_ENV'] == 'test'
18
+ logger.level = Logger::FATAL
19
+ else
20
+ logger.level = Logger::INFO
21
+ end
22
+ logger
23
+ }.call
24
+
25
+ def logger
26
+ @@logger
27
+ end
28
+
29
+ def jobs
30
+ @@jobs
31
+ end
12
32
 
13
33
  # for jobs and steps
14
34
  def random_name
15
35
  (0...8).map { (65 + rand(26)).chr }.join
16
36
  end
17
37
 
18
- self.jobs = []
19
-
20
38
  def add_job(name=nil, &block)
21
39
  self.jobs.push(Job.new(name, &block))
22
40
  self.jobs.last
@@ -40,16 +58,3 @@ end
40
58
  def job(name=nil, &block)
41
59
  Pushpop.add_job(name, &block)
42
60
  end
43
-
44
- Pushpop.logger = lambda {
45
- logger = Logger.new($stdout)
46
- if ENV['DEBUG']
47
- logger.level = Logger::DEBUG
48
- elsif ENV['RACK_ENV'] == 'test'
49
- logger.level = Logger::FATAL
50
- else
51
- logger.level = Logger::INFO
52
- end
53
- logger
54
- }.call
55
-
@@ -4,8 +4,11 @@ module Pushpop
4
4
 
5
5
  class << self
6
6
 
7
- cattr_accessor :plugins
8
- self.plugins = {}
7
+ @@plugins = {}
8
+
9
+ def plugins
10
+ @@plugins
11
+ end
9
12
 
10
13
  def register_plugin(name, klass)
11
14
  self.plugins ||= {}
@@ -1,3 +1,3 @@
1
1
  module Pushpop
2
- VERSION = '0.1.2'
2
+ VERSION = '0.2'
3
3
  end
metadata CHANGED
@@ -1,62 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pushpop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
5
- prerelease:
4
+ version: '0.2'
6
5
  platform: ruby
7
6
  authors:
8
7
  - Josh Dzielak
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2014-07-17 00:00:00.000000000 Z
11
+ date: 2015-04-27 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: clockwork
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - '>='
28
25
  - !ruby/object:Gem::Version
29
26
  version: '0'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: thor
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - '>='
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - '>='
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: dotenv
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - '>='
52
46
  - !ruby/object:Gem::Version
53
47
  version: '0'
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - '>='
60
53
  - !ruby/object:Gem::Version
61
54
  version: '0'
62
55
  description: Pushpop is a powerful framework for taking actions and integrating services
@@ -88,30 +81,28 @@ files:
88
81
  - spec/simple_job_spec.rb
89
82
  - spec/spec_helper.rb
90
83
  - spec/templates/spec.html.erb
91
- - templates/first_template.html.erb
92
84
  homepage: https://github.com/pushpop-project/pushpop
93
85
  licenses: []
86
+ metadata: {}
94
87
  post_install_message:
95
88
  rdoc_options: []
96
89
  require_paths:
97
90
  - lib
98
91
  required_ruby_version: !ruby/object:Gem::Requirement
99
- none: false
100
92
  requirements:
101
- - - ! '>='
93
+ - - '>='
102
94
  - !ruby/object:Gem::Version
103
95
  version: '0'
104
96
  required_rubygems_version: !ruby/object:Gem::Requirement
105
- none: false
106
97
  requirements:
107
- - - ! '>='
98
+ - - '>='
108
99
  - !ruby/object:Gem::Version
109
100
  version: '0'
110
101
  requirements: []
111
102
  rubyforge_project:
112
- rubygems_version: 1.8.23
103
+ rubygems_version: 2.0.14
113
104
  signing_key:
114
- specification_version: 3
105
+ specification_version: 4
115
106
  summary: A framework for scheduled integrations between popular services
116
107
  test_files:
117
108
  - spec/jobs/simple_job.rb
@@ -122,4 +113,3 @@ test_files:
122
113
  - spec/simple_job_spec.rb
123
114
  - spec/spec_helper.rb
124
115
  - spec/templates/spec.html.erb
125
- has_rdoc:
@@ -1 +0,0 @@
1
- <pre>The number <%= response %>!</pre>