citrus-core 0.0.3 → 0.0.4

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: aeb750c22c512f74800f7258a5c90cadbb512e47
4
- data.tar.gz: a6849c73bf55f7a69df1a2ef17a63f7fc4ade8dd
3
+ metadata.gz: 120125955317544945497de10c940850b7c8f8d6
4
+ data.tar.gz: d02e01927c71403863ee5df3dbd420933ea1d986
5
5
  SHA512:
6
- metadata.gz: 3d59d922560bde7b27fd8caf0616ec99e77ddca10b88c7ca80f274c4e245f8b7eed5081d86a91febcd1b21f395d12228f21eeb543bf0181355e39ba39ab93165
7
- data.tar.gz: 9c4ecdedd36818e0b7723a6cfe6ba68090c7a72c58494655f2ac145beffd996fcff877b7975c07f2cb14d1c653c06848bf29b7612b42325421ea276aba851948
6
+ metadata.gz: 37c552a6d6c3fb21fda76411953b397d6b69569b1a361e7d3c75eacf621632886b354fefc2a6d11f69ae48c1f791f82a04902b1c0a35845e77a1fda7bf20003c
7
+ data.tar.gz: adb7dafcb5a87876d01a1da78621697c46ae863c9c7fd2c47c756d827514eff2672e45104e6790944575254dd1de0a420600c13cb55e161320e4215a3f89ad7e
@@ -1,3 +1,3 @@
1
1
  Citrus::Configuration.describe do |c|
2
- c.build_script = 'rspec'
2
+ c.build_script = 'bundle install && bundle exec rspec'
3
3
  end
@@ -1,6 +1,6 @@
1
1
  {
2
- "after": "d71454f98d4f1ba0c1974838e4883cbee72d4233",
3
- "before": "5425bd6d5ebf6c99cf2fbc56db3fab9ce0ed4516",
2
+ "after": "3ed3a9574d23e3ea2472db7e381411685650ec5e",
3
+ "before": "1641264135e1365c9ff6ab32b77d92d7f8080f0a",
4
4
  "commits": [
5
5
  {
6
6
  "added": [],
@@ -15,64 +15,17 @@
15
15
  "username": "pawelpacana"
16
16
  },
17
17
  "distinct": true,
18
- "id": "02a402784a8caf58de5b610afd12388e0325549c",
19
- "message": "Move publishing to private methods.\n\nThey make visual clutter and I'd love to see them somewhere else\nso aspects maybe?",
18
+ "id": "3ed3a9574d23e3ea2472db7e381411685650ec5e",
19
+ "message": "Drop bundler gem install from example, lags on rubygems.",
20
20
  "modified": [
21
- "lib/citrus/core/execute_build_service.rb"
21
+ ".citrus/config.rb"
22
22
  ],
23
23
  "removed": [],
24
- "timestamp": "2013-08-11T01:50:27-07:00",
25
- "url": "https://github.com/pawelpacana/citrus-core/commit/02a402784a8caf58de5b610afd12388e0325549c"
26
- },
27
- {
28
- "added": [],
29
- "author": {
30
- "email": "pawel.pacana@gmail.com",
31
- "name": "Pawe\u0142 Pacana",
32
- "username": "pawelpacana"
33
- },
34
- "committer": {
35
- "email": "pawel.pacana@gmail.com",
36
- "name": "Pawe\u0142 Pacana",
37
- "username": "pawelpacana"
38
- },
39
- "distinct": true,
40
- "id": "d665af0790d4671626a63e34ea013d5616498e5c",
41
- "message": "Pass build to test runner to be more specific about published output.",
42
- "modified": [
43
- "lib/citrus/core/execute_build_service.rb",
44
- "lib/citrus/core/test_runner.rb",
45
- "spec/execute_build_service_spec.rb",
46
- "spec/test_runner_spec.rb"
47
- ],
48
- "removed": [],
49
- "timestamp": "2013-08-11T02:57:39-07:00",
50
- "url": "https://github.com/pawelpacana/citrus-core/commit/d665af0790d4671626a63e34ea013d5616498e5c"
51
- },
52
- {
53
- "added": [],
54
- "author": {
55
- "email": "pawel.pacana@gmail.com",
56
- "name": "Pawe\u0142 Pacana",
57
- "username": "pawelpacana"
58
- },
59
- "committer": {
60
- "email": "pawel.pacana@gmail.com",
61
- "name": "Pawe\u0142 Pacana",
62
- "username": "pawelpacana"
63
- },
64
- "distinct": true,
65
- "id": "d71454f98d4f1ba0c1974838e4883cbee72d4233",
66
- "message": "Improve naming.",
67
- "modified": [
68
- "lib/citrus/core/execute_build_service.rb"
69
- ],
70
- "removed": [],
71
- "timestamp": "2013-08-11T03:24:10-07:00",
72
- "url": "https://github.com/pawelpacana/citrus-core/commit/d71454f98d4f1ba0c1974838e4883cbee72d4233"
24
+ "timestamp": "2013-10-13T13:55:01-07:00",
25
+ "url": "https://github.com/pawelpacana/citrus-core/commit/3ed3a9574d23e3ea2472db7e381411685650ec5e"
73
26
  }
74
27
  ],
75
- "compare": "https://github.com/pawelpacana/citrus-core/compare/5425bd6d5ebf...d71454f98d4f",
28
+ "compare": "https://github.com/pawelpacana/citrus-core/compare/1641264135e1...3ed3a9574d23",
76
29
  "created": false,
77
30
  "deleted": false,
78
31
  "forced": false,
@@ -89,38 +42,41 @@
89
42
  "username": "pawelpacana"
90
43
  },
91
44
  "distinct": true,
92
- "id": "d71454f98d4f1ba0c1974838e4883cbee72d4233",
93
- "message": "Improve naming.",
45
+ "id": "3ed3a9574d23e3ea2472db7e381411685650ec5e",
46
+ "message": "Drop bundler gem install from example, lags on rubygems.",
94
47
  "modified": [
95
- "lib/citrus/core/execute_build_service.rb"
48
+ ".citrus/config.rb"
96
49
  ],
97
50
  "removed": [],
98
- "timestamp": "2013-08-11T03:24:10-07:00",
99
- "url": "https://github.com/pawelpacana/citrus-core/commit/d71454f98d4f1ba0c1974838e4883cbee72d4233"
51
+ "timestamp": "2013-10-13T13:55:01-07:00",
52
+ "url": "https://github.com/pawelpacana/citrus-core/commit/3ed3a9574d23e3ea2472db7e381411685650ec5e"
100
53
  },
101
54
  "pusher": {
102
- "name": "none"
55
+ "email": "pawel.pacana@gmail.com",
56
+ "name": "pawelpacana"
103
57
  },
104
58
  "ref": "refs/heads/master",
105
59
  "repository": {
106
60
  "created_at": 1360404806,
61
+ "description": "",
107
62
  "fork": false,
108
- "forks": 0,
63
+ "forks": 1,
109
64
  "has_downloads": true,
110
65
  "has_issues": true,
111
66
  "has_wiki": true,
67
+ "homepage": "http://citrus-ci.org/",
112
68
  "id": 8108400,
113
69
  "language": "Ruby",
114
70
  "master_branch": "master",
115
71
  "name": "citrus-core",
116
- "open_issues": 0,
72
+ "open_issues": 1,
117
73
  "owner": {
118
74
  "email": "pawel.pacana@gmail.com",
119
75
  "name": "pawelpacana"
120
76
  },
121
77
  "private": false,
122
- "pushed_at": 1376217577,
123
- "size": 236,
78
+ "pushed_at": 1381697672,
79
+ "size": 436,
124
80
  "stargazers": 1,
125
81
  "url": "https://github.com/pawelpacana/citrus-core",
126
82
  "watchers": 1
@@ -7,7 +7,7 @@ module Citrus
7
7
 
8
8
  def start(build, configuration, path)
9
9
  output = build.output
10
- process = ChildProcess.build(configuration.build_script)
10
+ process = ChildProcess.build('/bin/sh', '-c', configuration.build_script)
11
11
  process.cwd = path.to_s
12
12
  r, w = IO.pipe
13
13
  process.io.stdout = process.io.stderr = w
@@ -1,5 +1,5 @@
1
1
  module Citrus
2
2
  module Core
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  end
5
5
  end
@@ -8,7 +8,7 @@ describe Citrus::Core::TestRunner do
8
8
 
9
9
  subject { described_class.new }
10
10
 
11
- let(:configuration) { fake(:configuration, build_script: 'hostname') }
11
+ let(:configuration) { fake(:configuration) }
12
12
  let(:path) { Pathname.new('/') }
13
13
  let(:process) { fake(io: process_io, exit_code: exit_code) { ChildProcess::AbstractProcess } }
14
14
  let(:process_io) { fake { ChildProcess::AbstractIO } }
@@ -18,8 +18,10 @@ describe Citrus::Core::TestRunner do
18
18
  let(:build_output) { fake(:test_output) }
19
19
 
20
20
  context '#start' do
21
+ before { stub(configuration).build_script { 'hostname -f' } }
22
+
21
23
  context do
22
- before { stub(ChildProcess).build(configuration.build_script) { process } }
24
+ before { mock(ChildProcess).build('/bin/sh', '-c', 'hostname -f') { process } }
23
25
 
24
26
  it 'spawns child process' do
25
27
  subject.start(build, configuration, path)
@@ -39,12 +41,12 @@ describe Citrus::Core::TestRunner do
39
41
  it 'should publish build_output_received event when process produced output' do
40
42
  subject.add_subscriber(subscriber)
41
43
  subject.start(build, configuration, path)
42
- expect(subscriber).to have_received.build_output_received(build, `hostname`)
44
+ expect(subscriber).to have_received.build_output_received(build, %x{hostname -f})
43
45
  end
44
46
 
45
47
  it 'should write process output to build' do
46
48
  subject.start(build, configuration, path)
47
- expect(build_output).to have_received.write(`hostname`)
49
+ expect(build_output).to have_received.write(%x{hostname -f})
48
50
  end
49
51
  end
50
52
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: citrus-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paweł Pacana
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-12 00:00:00.000000000 Z
11
+ date: 2013-10-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: childprocess