percy-hub 0.0.1

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: 60b99fbe0c425aeedd19ec43528d62c858740b67
4
+ data.tar.gz: f53876cd86b6116c74cb1e2040165d1f0c15bfa3
5
+ SHA512:
6
+ metadata.gz: 1858809f59474f1629a9634e799a6b341debd2a5c934a159bd0bda63487881c892aab77d9d36ba3cfddb81a7aa704e8d4209126f125a5f3ef23b3203c64edafb
7
+ data.tar.gz: a61e302b611e8dd9ad5d10eae41c084b5229e020b5b2712b6215e22498599a7674c555e04448b029d7c12661d3d8a0e753a7e091a1a4a51dace22b18cf090fe5
@@ -0,0 +1,16 @@
1
+ /.bundle/
2
+ /Gemfile.lock
3
+ /.yardoc
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+ *.bundle
11
+ *.so
12
+ *.o
13
+ *.a
14
+ *.rbc
15
+ mkmf.log
16
+ .DS_Store
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --color
2
+ --require spec_helper
3
+ --format d
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in percy-hub.gemspec
4
+ gemspec
@@ -0,0 +1,3 @@
1
+ # Percy::Hub
2
+
3
+ The master coordinator.
@@ -0,0 +1,2 @@
1
+ require 'bundler/gem_tasks'
2
+
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'percy/hub'
4
+
5
+ Percy::Hub.new.run
@@ -0,0 +1,12 @@
1
+ module Percy
2
+ module Async
3
+ def self.run_periodically(interval, &block)
4
+ Thread.new do
5
+ loop do
6
+ block.call
7
+ sleep(interval)
8
+ end
9
+ end
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,15 @@
1
+ require 'percy/async'
2
+ require 'percy/logger'
3
+ require 'percy/hub/version'
4
+
5
+ module Percy
6
+ class Hub
7
+ def run
8
+ Percy.logger.warn('WARN test')
9
+ Percy::Async.run_periodically(1) do
10
+ end
11
+ end
12
+ end
13
+ end
14
+
15
+
@@ -0,0 +1,5 @@
1
+ module Percy
2
+ class Hub
3
+ VERSION = '0.0.1'
4
+ end
5
+ end
@@ -0,0 +1,7 @@
1
+ require 'logger'
2
+
3
+ module Percy
4
+ def self.logger
5
+ @logger ||= Logger.new(STDOUT)
6
+ end
7
+ end
@@ -0,0 +1,24 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'percy/hub/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = 'percy-hub'
8
+ spec.version = Percy::Hub::VERSION
9
+ spec.authors = ['Perceptual Inc.']
10
+ spec.email = ['team@percy.io']
11
+ spec.summary = %q{Percy Hub}
12
+ spec.description = %q{}
13
+ spec.homepage = ''
14
+ spec.license = ''
15
+
16
+ spec.files = `git ls-files -z`.split("\x0")
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ['lib']
20
+
21
+ spec.add_development_dependency 'bundler', '~> 1.7'
22
+ spec.add_development_dependency 'rake', '~> 10.0'
23
+ spec.add_development_dependency 'rspec', '~> 3'
24
+ end
@@ -0,0 +1,27 @@
1
+ require 'percy/hub'
2
+ require 'webmock/rspec'
3
+
4
+ RSpec.configure do |config|
5
+ config.expect_with :rspec do |expectations|
6
+ # This option will default to `true` in RSpec 4.
7
+ expectations.include_chain_clauses_in_custom_matcher_descriptions = true
8
+ end
9
+
10
+ config.mock_with :rspec do |mocks|
11
+ mocks.verify_partial_doubles = true
12
+ end
13
+
14
+ config.disable_monkey_patching!
15
+
16
+ # Run specs in random order to surface order dependencies. If you find an
17
+ # order dependency and want to debug it, you can fix the order by providing
18
+ # the seed, which is printed after each run.
19
+ # --seed 1234
20
+ config.order = :random
21
+
22
+ # Seed global randomization in this process using the `--seed` CLI option.
23
+ # Setting this allows you to use `--seed` to deterministically reproduce
24
+ # test failures related to randomization by passing the same `--seed` value
25
+ # as the one that triggered the failure.
26
+ Kernel.srand config.seed
27
+ end
metadata ADDED
@@ -0,0 +1,102 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: percy-hub
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Perceptual Inc.
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-02-20 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.7'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.7'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3'
55
+ description: ''
56
+ email:
57
+ - team@percy.io
58
+ executables:
59
+ - percy
60
+ extensions: []
61
+ extra_rdoc_files: []
62
+ files:
63
+ - ".gitignore"
64
+ - ".rspec"
65
+ - Gemfile
66
+ - Gemfile.lock
67
+ - README.md
68
+ - Rakefile
69
+ - bin/percy
70
+ - lib/percy/async.rb
71
+ - lib/percy/hub.rb
72
+ - lib/percy/hub/version.rb
73
+ - lib/percy/logger.rb
74
+ - percy-cli.gemspec
75
+ - spec/spec_helper.rb
76
+ homepage: ''
77
+ licenses:
78
+ - ''
79
+ metadata: {}
80
+ post_install_message:
81
+ rdoc_options: []
82
+ require_paths:
83
+ - lib
84
+ required_ruby_version: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ version: '0'
89
+ required_rubygems_version: !ruby/object:Gem::Requirement
90
+ requirements:
91
+ - - ">="
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
94
+ requirements: []
95
+ rubyforge_project:
96
+ rubygems_version: 2.4.5
97
+ signing_key:
98
+ specification_version: 4
99
+ summary: Percy Hub
100
+ test_files:
101
+ - spec/spec_helper.rb
102
+ has_rdoc: