twigg 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 08f8b0a5dc7eaafda3901ab196d782d98f6aecba
4
- data.tar.gz: 5b7524480befd14000a0571316787ba5b4ba6194
3
+ metadata.gz: d4acbfc3dab81cc46307e04748ccc89ade34cac2
4
+ data.tar.gz: 13e6267f6bd29a0f84ddbcf7fd7110a7fd1806bd
5
5
  SHA512:
6
- metadata.gz: 1e0219ae5d8e788b11db183b962889e1ec6153a01f519bbf82a304e1ac5d6e61ad4ad46ee3d9a3ac9e4afab08b49930e20762f11e530ecba01b3e22ee0c4781e
7
- data.tar.gz: f50671909a2c1f24da4ee39ea5317a71f93e5d7c80cf64216971b3dd222701c0c3c70208334d62f8a99265cb9bc378aa55906dafa2afa1a20d9732db95366d53
6
+ metadata.gz: 37d68f4ad72e96ae993e614e362ac5a5d2fd323d68724558970687ba3bab3a0d5b330d0b707744c98d99ae32ad967cfebdcf9d965510a66ae3ce638c69a23ba9
7
+ data.tar.gz: b912766a33db3431a3a07d479b1cf831f01ba461555ba36a2956bc236d7f55aa9a997284b9b4f1312bc41961f19cc9076a211ad9c119151a6cf655c212058be6
@@ -39,7 +39,7 @@ module Twigg
39
39
 
40
40
  def app
41
41
  <<-DOC
42
- #{executable} app
42
+ #{executable} app [-D|--daemon] [-P|--pidfile <pidfile>]
43
43
  DOC
44
44
  end
45
45
 
@@ -5,7 +5,6 @@ module Twigg
5
5
 
6
6
  def initialize(*args)
7
7
  super
8
- # sigh.. need something declarative to DRY up this repetitive set-up
9
8
  Help.new('stats').run! if @args.size > 2
10
9
 
11
10
  @repositories_directory = @args[0] || Config.repositories_directory
data/lib/twigg/command.rb CHANGED
@@ -48,8 +48,7 @@ module Twigg
48
48
  end
49
49
 
50
50
  def app(*args)
51
- ignore args
52
- with_dependency('twigg-app') { App::Server.run! }
51
+ with_dependency('twigg-app') { App.new(*args).run }
53
52
  end
54
53
 
55
54
  def gerrit(*args)
@@ -71,8 +71,6 @@ module Twigg
71
71
  self.class.new(commits_for_author)
72
72
  end
73
73
 
74
- # Special case: if `team` is `nil`, select people who don't belong to a
75
- # team.
76
74
  def select_team(team)
77
75
  members = Set.new(Config.teams[team])
78
76
 
@@ -2,8 +2,6 @@ module Twigg
2
2
  module Dependency
3
3
  private
4
4
 
5
- # could add noisy: true, or graceful: false (or similar option) here if we
6
- # wanted to infer the presence of the twigg-cache gem
7
5
  def with_dependency(gem, &block)
8
6
  require gem
9
7
  yield
data/lib/twigg/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Twigg
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
@@ -0,0 +1,52 @@
1
+ # Sample .twiggrc file (YAML format)
2
+ #
3
+ # To use, place in a standard location (eg. `~/.twiggrc`) or explicitly
4
+ # instruct Twigg to use the file via the TWIGGRC environment variable or the
5
+ # `-c`/`--config` switches.
6
+ #
7
+ ---
8
+ default_days: 7 # default
9
+ organization: Causes
10
+ repositories_directory: /home/jimmy/repos
11
+
12
+ app:
13
+ bind: '0.0.0.0' # default
14
+ gerrit:
15
+ enabled: false # default
16
+
17
+ cache:
18
+ enabled: false # default
19
+ expiry: 3600 # default, 1 hour
20
+ host: localhost # default
21
+ namespace: twigg # default
22
+ port: 11211 # default
23
+ value_max_bytes: 4194304
24
+
25
+ gerrit:
26
+ user: jimmy
27
+ port: 29418 # default
28
+ host: gerrit.example.com
29
+ db:
30
+ adapter: mysql2 # default
31
+ database: gerritdb
32
+ host: gerrit.example.com
33
+ password: secret
34
+ port: 3306 # default
35
+ user: jimmy
36
+ web:
37
+ host: 'https://localhost' # default
38
+
39
+ github:
40
+ organization: causes
41
+ token: 0da57c4304855867e97dd4419d7d070543c5c092
42
+
43
+ teams:
44
+ Red Team:
45
+ - John Smith
46
+ - Barbara Jones
47
+ Blue Team:
48
+ - Alec Alexson
49
+ - Jane James
50
+ Green Team:
51
+ - Rodrigo Schultz
52
+ - Yahuro Bordeux
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twigg
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Causes Engineering
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-22 00:00:00.000000000 Z
11
+ date: 2013-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -116,6 +116,7 @@ files:
116
116
  - lib/twigg/util.rb
117
117
  - lib/twigg/version.rb
118
118
  - lib/twigg.rb
119
+ - templates/twiggrc.yml
119
120
  homepage: https://github.com/causes/twigg
120
121
  licenses:
121
122
  - MIT