psc 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/.yardopts CHANGED
@@ -2,3 +2,4 @@
2
2
  --markup markdown
3
3
  --hide-void-return
4
4
  --files CHANGELOG.md,int-psc/README-int-psc.md
5
+ --readme README.md
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ 0.0.2
2
+ =====
3
+
4
+ - Correct PSC token middleware so it properly continues the
5
+ faraday "app". (#3)
6
+
1
7
  0.0.1
2
8
  =====
3
9
 
data/README-ssl.md ADDED
@@ -0,0 +1,46 @@
1
+ # @title SSL in psc.rb
2
+
3
+ SSL in psc.rb
4
+ =============
5
+
6
+ psc.rb uses Faraday's `net/http` adapter by default. This adapter
7
+ verifies SSL certificates when used with HTTPS-served resources (as it
8
+ should). If the openssl install used by your ruby interpreter doesn't
9
+ have the CA certificate for your PSC instance, you'll get an exception
10
+ like this when you make a request:
11
+
12
+ `OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed`
13
+
14
+ There are two ways to resolve this for psc.rb.
15
+
16
+ Configure OpenSSL with appropriate CA certificates
17
+ --------------------------------------------------
18
+
19
+ Depending on your OS & distribution, this may be as simple as
20
+ installing another package, or it might be fiendishly
21
+ complex/impossible. References:
22
+
23
+ * <http://gagravarr.org/writing/openssl-certs/others.shtml>
24
+ * <http://curl.haxx.se/ca/>
25
+
26
+ Configure PSC::Client or PSC::Connection
27
+ ----------------------------------------
28
+
29
+ You can pass SSL options to the underlying adapter when creating a
30
+ {Psc::Client} or {Psc::Connection} instance:
31
+
32
+ psc = Psc::Client.new(
33
+ 'https://demos.nubic.northwestern.edu/psc',
34
+ :authenticator => { :basic => %w(superuser superuser) },
35
+ :ssl => { :ca_file => '/etc/ssl/cacert.pem' }
36
+ )
37
+
38
+ This example assumes you've put an appropriate CA certificate in
39
+ `/etc/ssl/cacert.pem`. (You can, of course, put it where ever you
40
+ like.) If you need a PEM-formatted version of the common commercial
41
+ certificates, <http://curl.haxx.se/ca/> is a good source.
42
+
43
+ This option is much easier to get working than the first one. It has
44
+ the downside that it requires that all platforms where you will run
45
+ your code have the CA certs in the same place or that you add a
46
+ another configuration option to your application.
data/README.md CHANGED
@@ -1,8 +1,3 @@
1
- (Beware: [Readme-driven development in
2
- progress](http://tom.preston-werner.com/2010/08/23/readme-driven-development.html). This
3
- is documentation for expected features, not for the current state of
4
- the library.)
5
-
6
1
  # psc.rb
7
2
 
8
3
  `psc.rb` is a ruby client for [Patient Study Calendar][psc]'s RESTful
@@ -31,7 +26,10 @@ site][demo-docs]) before using this library.
31
26
 
32
27
  pp psc.studies
33
28
 
34
- (This code will run if you have the psc gem installed; try it and see.)
29
+ (This code will run if you have the psc gem installed, so long as your
30
+ ruby's openssl has a reasonable set of commercial CAs configured; try
31
+ it and see. If you get a certificate validation error, check out
32
+ {file:README-ssl.md} for some tips.)
35
33
 
36
34
  ## Installing
37
35
 
@@ -135,7 +133,7 @@ custom classes are in the {Psc::Faraday} module.
135
133
  ## Project info
136
134
 
137
135
  * [Source code][github]
138
- * [API Documentation][rubydoc]
136
+ * [API documentation][rubydoc]
139
137
  * [Bug reports and feature requests][issues]
140
138
  * [Continuous integration][ci]
141
139
  * Version policy: [semantic versioning][semver]
@@ -143,7 +141,7 @@ custom classes are in the {Psc::Faraday} module.
143
141
  [rubydoc]: http://rubydoc.info/gems/psc
144
142
  [issues]: https://github.com/NUBIC/psc.rb/issues
145
143
  [github]: https://github.com/NUBIC/psc.rb
146
- [ci]: https://ctms-ci.nubic.northwestern.edu/hudson/jobs/psc.rb
144
+ [ci]: https://public-ci.nubic.northwestern.edu/job/psc.rb
147
145
  [semver]: http://semver.org/
148
146
 
149
147
  ### Running the tests
data/Rakefile CHANGED
@@ -65,5 +65,5 @@ namespace :ci do
65
65
  end
66
66
 
67
67
  # currently bypassing ci_reporter due to https://github.com/nicksieger/ci_reporter/issues/5
68
- task :build => %w(int-psc:war int-psc:clean_logs rake:spec cucumber)
68
+ task :build => %w(int-psc:unlock_database int-psc:war int-psc:clean_logs rake:spec cucumber)
69
69
  end
data/ci-exec.sh ADDED
@@ -0,0 +1,44 @@
1
+ #!/bin/bash -xe
2
+
3
+ BUNDLER_VERSION=1.1.rc
4
+ GEMSET=psc-rb
5
+
6
+ if [ -z $CI_RUBY ]; then
7
+ echo "CI_RUBY must be set"
8
+ exit 1
9
+ fi
10
+
11
+ set +xe
12
+ echo "Initializing RVM"
13
+ source ~/.rvm/scripts/rvm
14
+ set -xe
15
+
16
+ # On the overnight build, reinstall all gems
17
+ if [ `date +%H` -lt 5 ]; then
18
+ set +xe
19
+ echo "Purging gemset to verify that all deps can still be installed"
20
+ rvm --force $CI_RUBY gemset delete $GEMSET
21
+ set -xe
22
+ fi
23
+
24
+ RVM_CONFIG="${CI_RUBY}@${GEMSET}"
25
+ set +xe
26
+ echo "Switching to ${RVM_CONFIG}"
27
+ rvm use $RVM_CONFIG
28
+ set -xe
29
+
30
+ which ruby
31
+ ruby -v
32
+
33
+ set +e
34
+ gem list -i bundler -v $BUNDLER_VERSION
35
+ if [ $? -ne 0 ]; then
36
+ set -e
37
+ gem install bundler -v $BUNDLER_VERSION
38
+ fi
39
+ set -e
40
+
41
+ bundle update
42
+
43
+ # Temporarily skipping integrated tests due to issue #2.
44
+ bundle exec rake ci:spec --trace
@@ -11,8 +11,8 @@ Scenario: List studies
11
11
  When I evaluate the following code:
12
12
  """
13
13
  s = client.studies
14
- puts "Study count: #{s.size}"
15
- puts "First study: #{s.first['assigned_identifier']}"
14
+ $stdout.puts "Study count: #{s.size}"
15
+ $stdout.puts "First study: #{s.first['assigned_identifier']}"
16
16
  """
17
17
  Then I should see this output:
18
18
  """
@@ -94,7 +94,7 @@ class IntPsc
94
94
  Timeout.timeout(90) do
95
95
  while true
96
96
  begin
97
- open(File.join(self.url, '/api/v1/docs')) { |f| f.read }
97
+ open(File.join(self.url, '/api/v1/docs/psc.xsd')) { |f| f.read }
98
98
  break
99
99
  rescue RuntimeError
100
100
  sleep(1)
@@ -103,12 +103,25 @@ class IntPsc
103
103
  end
104
104
  end
105
105
  end
106
+ rescue Timeout::Error => e
107
+ $stderr.puts "PSC's API did not become available within 90s."
108
+ if ENV['CI_RUBY']
109
+ $stderr.puts "Output from the runner may help figure out the problem:"
110
+ $stderr.puts File.read(path('deploy-base', 'logs', 'jetty.out'))
111
+ else
112
+ $stderr.puts "Take a look at the logs in #{path('deploy-base', 'logs')} for hints."
113
+ end
114
+ raise e
115
+ end
116
+
117
+ def jdbc_url
118
+ "jdbc:hsqldb:file:#{path('hsqldb', configuration_name)};shutdown=true"
106
119
  end
107
120
 
108
121
  def create_hsql_psc_configuration
109
122
  File.open(path("#{configuration_name}.properties"), 'w') do |f|
110
123
  f.puts [
111
- "datasource.url=jdbc:hsqldb:file:#{path('hsqldb', configuration_name)};shutdown=true",
124
+ "datasource.url=#{jdbc_url}",
112
125
  'datasource.username=sa',
113
126
  'datasource.password=',
114
127
  'datasource.driver=org.hsqldb.jdbcDriver'
@@ -128,8 +141,24 @@ class IntPsc
128
141
  end
129
142
  end
130
143
 
144
+ def hsqldb_shutdown_compact
145
+ sqltool 'SHUTDOWN COMPACT;'
146
+ end
147
+
131
148
  private
132
149
 
150
+ def sqltool(commands)
151
+ cmd =
152
+ "java -jar #{hsqldb_jar} --inlineRc 'URL=#{jdbc_url}',USER=sa,PASSWORD= --sql '#{commands}'"
153
+ $stderr.puts cmd
154
+ system(cmd)
155
+ end
156
+
157
+ def hsqldb_jar
158
+ @hsqldb_jar ||=
159
+ Dir[File.join(expanded_war_directory, 'WEB-INF/lib/*.jar')].detect { |p| p =~ /hsqldb/ }
160
+ end
161
+
133
162
  def expand_if_necessary
134
163
  dirtime = File.directory?(expanded_war_directory) ?
135
164
  File.mtime(expanded_war_directory) :
@@ -1,3 +1,5 @@
1
+ # @title Integration Test PSC README
2
+
1
3
  # Integration test PSC
2
4
 
3
5
  This directory contains artifacts related to the PSC instance that
@@ -29,7 +29,7 @@ module Psc
29
29
  def call(env)
30
30
  env[:request_headers]['Authorization'] = "psc_token #{token}"
31
31
 
32
- @app.call
32
+ @app.call(env)
33
33
  end
34
34
 
35
35
  private
data/lib/psc/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Psc
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.2'
3
3
  end
data/psc.gemspec CHANGED
@@ -23,11 +23,12 @@ Gem::Specification.new do |s|
23
23
  s.add_dependency 'nokogiri', '~> 1.4'
24
24
  s.add_dependency 'activesupport', '>= 2.3' # for the JSON adapter
25
25
 
26
+ s.add_development_dependency 'rake', '~> 0.9.2'
26
27
  s.add_development_dependency 'rspec', '~> 2.6'
27
28
  s.add_development_dependency 'ci_reporter', '~> 1.6'
28
- s.add_development_dependency 'cucumber', '~> 0.10.2'
29
+ s.add_development_dependency 'cucumber', '0.10.7'
29
30
  s.add_development_dependency 'childprocess', '~> 0.1'
30
31
  s.add_development_dependency 'highline'
31
32
  s.add_development_dependency 'webmock', '~> 1.6'
32
- s.add_development_dependency 'yard', '~> 0.6.8'
33
+ s.add_development_dependency 'yard', '~> 0.7.1'
33
34
  end
@@ -12,7 +12,7 @@ end
12
12
 
13
13
  shared_examples 'unconditional middleware' do
14
14
  it 'continues the chain' do
15
- app.should_receive(:call)
15
+ app.should_receive(:call).with(env)
16
16
  subject.call(env)
17
17
  end
18
18
  end
data/tasks/int-psc.rake CHANGED
@@ -14,7 +14,7 @@ namespace 'int-psc' do
14
14
  sh [
15
15
  'curl',
16
16
  '-o', task.name,
17
- "'https://ctms-ci.nubic.northwestern.edu/hudson/job/PSC%20nightly%20distribution/lastSuccessfulBuild/artifact/*zip*/archive.zip'"
17
+ "'https://public-ci.nubic.northwestern.edu/job/PSC%20nightly%20distribution/lastSuccessfulBuild/artifact/*zip*/archive.zip'"
18
18
  ].join(' ')
19
19
  end
20
20
 
@@ -65,8 +65,11 @@ namespace 'int-psc' do
65
65
  IntPsc.run do |int_psc|
66
66
  int_psc.apply_state_and_mark_readonly
67
67
  end
68
+
69
+ IntPsc.new.hsqldb_shutdown_compact
70
+
68
71
  # the copied log file is not needed in the locked database
69
- rm path('hsqldb', 'datasource.log')
72
+ rm_rf IntPsc.path('hsqldb', 'datasource.log')
70
73
  end
71
74
 
72
75
  desc 'Start up the integrated test PSC instance to poke around'
@@ -81,4 +84,9 @@ namespace 'int-psc' do
81
84
  task :clean_logs do
82
85
  rm_rf IntPsc.path('deploy-base', 'logs')
83
86
  end
87
+
88
+ desc 'Remove the database lock if it was left over by a previous run'
89
+ task :unlock_database do
90
+ rm_rf IntPsc.path('hsqldb', 'datasource.lck')
91
+ end
84
92
  end
metadata CHANGED
@@ -1,225 +1,176 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: psc
3
- version: !ruby/object:Gem::Version
4
- hash: 29
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 0
9
- - 1
10
- version: 0.0.1
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Rhett Sutphin
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-05-17 00:00:00 -05:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
12
+ date: 2011-10-11 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
22
15
  name: faraday
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &2156680720 !ruby/object:Gem::Requirement
25
17
  none: false
26
- requirements:
18
+ requirements:
27
19
  - - ~>
28
- - !ruby/object:Gem::Version
29
- hash: 3
30
- segments:
31
- - 0
32
- - 7
33
- - 0
20
+ - !ruby/object:Gem::Version
34
21
  version: 0.7.0
35
22
  type: :runtime
36
- version_requirements: *id001
37
- - !ruby/object:Gem::Dependency
38
- name: builder
39
23
  prerelease: false
40
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: *2156680720
25
+ - !ruby/object:Gem::Dependency
26
+ name: builder
27
+ requirement: &2156680200 !ruby/object:Gem::Requirement
41
28
  none: false
42
- requirements:
43
- - - ">="
44
- - !ruby/object:Gem::Version
45
- hash: 15
46
- segments:
47
- - 2
48
- - 1
49
- - 2
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
50
32
  version: 2.1.2
51
33
  type: :runtime
52
- version_requirements: *id002
53
- - !ruby/object:Gem::Dependency
54
- name: faraday-stack
55
34
  prerelease: false
56
- requirement: &id003 !ruby/object:Gem::Requirement
35
+ version_requirements: *2156680200
36
+ - !ruby/object:Gem::Dependency
37
+ name: faraday-stack
38
+ requirement: &2156679660 !ruby/object:Gem::Requirement
57
39
  none: false
58
- requirements:
40
+ requirements:
59
41
  - - ~>
60
- - !ruby/object:Gem::Version
61
- hash: 25
62
- segments:
63
- - 0
64
- - 1
65
- - 1
42
+ - !ruby/object:Gem::Version
66
43
  version: 0.1.1
67
44
  type: :runtime
68
- version_requirements: *id003
69
- - !ruby/object:Gem::Dependency
70
- name: nokogiri
71
45
  prerelease: false
72
- requirement: &id004 !ruby/object:Gem::Requirement
46
+ version_requirements: *2156679660
47
+ - !ruby/object:Gem::Dependency
48
+ name: nokogiri
49
+ requirement: &2156679180 !ruby/object:Gem::Requirement
73
50
  none: false
74
- requirements:
51
+ requirements:
75
52
  - - ~>
76
- - !ruby/object:Gem::Version
77
- hash: 7
78
- segments:
79
- - 1
80
- - 4
81
- version: "1.4"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.4'
82
55
  type: :runtime
83
- version_requirements: *id004
84
- - !ruby/object:Gem::Dependency
85
- name: activesupport
86
56
  prerelease: false
87
- requirement: &id005 !ruby/object:Gem::Requirement
57
+ version_requirements: *2156679180
58
+ - !ruby/object:Gem::Dependency
59
+ name: activesupport
60
+ requirement: &2156678720 !ruby/object:Gem::Requirement
88
61
  none: false
89
- requirements:
90
- - - ">="
91
- - !ruby/object:Gem::Version
92
- hash: 5
93
- segments:
94
- - 2
95
- - 3
96
- version: "2.3"
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '2.3'
97
66
  type: :runtime
98
- version_requirements: *id005
99
- - !ruby/object:Gem::Dependency
100
- name: rspec
101
67
  prerelease: false
102
- requirement: &id006 !ruby/object:Gem::Requirement
68
+ version_requirements: *2156678720
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ requirement: &2156678260 !ruby/object:Gem::Requirement
103
72
  none: false
104
- requirements:
73
+ requirements:
105
74
  - - ~>
106
- - !ruby/object:Gem::Version
107
- hash: 15
108
- segments:
109
- - 2
110
- - 6
111
- version: "2.6"
75
+ - !ruby/object:Gem::Version
76
+ version: 0.9.2
112
77
  type: :development
113
- version_requirements: *id006
114
- - !ruby/object:Gem::Dependency
115
- name: ci_reporter
116
78
  prerelease: false
117
- requirement: &id007 !ruby/object:Gem::Requirement
79
+ version_requirements: *2156678260
80
+ - !ruby/object:Gem::Dependency
81
+ name: rspec
82
+ requirement: &2156677800 !ruby/object:Gem::Requirement
118
83
  none: false
119
- requirements:
84
+ requirements:
120
85
  - - ~>
121
- - !ruby/object:Gem::Version
122
- hash: 3
123
- segments:
124
- - 1
125
- - 6
126
- version: "1.6"
86
+ - !ruby/object:Gem::Version
87
+ version: '2.6'
127
88
  type: :development
128
- version_requirements: *id007
129
- - !ruby/object:Gem::Dependency
130
- name: cucumber
131
89
  prerelease: false
132
- requirement: &id008 !ruby/object:Gem::Requirement
90
+ version_requirements: *2156677800
91
+ - !ruby/object:Gem::Dependency
92
+ name: ci_reporter
93
+ requirement: &2156677280 !ruby/object:Gem::Requirement
133
94
  none: false
134
- requirements:
95
+ requirements:
135
96
  - - ~>
136
- - !ruby/object:Gem::Version
137
- hash: 51
138
- segments:
139
- - 0
140
- - 10
141
- - 2
142
- version: 0.10.2
97
+ - !ruby/object:Gem::Version
98
+ version: '1.6'
143
99
  type: :development
144
- version_requirements: *id008
145
- - !ruby/object:Gem::Dependency
146
- name: childprocess
147
100
  prerelease: false
148
- requirement: &id009 !ruby/object:Gem::Requirement
101
+ version_requirements: *2156677280
102
+ - !ruby/object:Gem::Dependency
103
+ name: cucumber
104
+ requirement: &2156676820 !ruby/object:Gem::Requirement
149
105
  none: false
150
- requirements:
106
+ requirements:
107
+ - - =
108
+ - !ruby/object:Gem::Version
109
+ version: 0.10.7
110
+ type: :development
111
+ prerelease: false
112
+ version_requirements: *2156676820
113
+ - !ruby/object:Gem::Dependency
114
+ name: childprocess
115
+ requirement: &2156676360 !ruby/object:Gem::Requirement
116
+ none: false
117
+ requirements:
151
118
  - - ~>
152
- - !ruby/object:Gem::Version
153
- hash: 9
154
- segments:
155
- - 0
156
- - 1
157
- version: "0.1"
119
+ - !ruby/object:Gem::Version
120
+ version: '0.1'
158
121
  type: :development
159
- version_requirements: *id009
160
- - !ruby/object:Gem::Dependency
161
- name: highline
162
122
  prerelease: false
163
- requirement: &id010 !ruby/object:Gem::Requirement
123
+ version_requirements: *2156676360
124
+ - !ruby/object:Gem::Dependency
125
+ name: highline
126
+ requirement: &2156675980 !ruby/object:Gem::Requirement
164
127
  none: false
165
- requirements:
166
- - - ">="
167
- - !ruby/object:Gem::Version
168
- hash: 3
169
- segments:
170
- - 0
171
- version: "0"
128
+ requirements:
129
+ - - ! '>='
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
172
132
  type: :development
173
- version_requirements: *id010
174
- - !ruby/object:Gem::Dependency
175
- name: webmock
176
133
  prerelease: false
177
- requirement: &id011 !ruby/object:Gem::Requirement
134
+ version_requirements: *2156675980
135
+ - !ruby/object:Gem::Dependency
136
+ name: webmock
137
+ requirement: &2156620280 !ruby/object:Gem::Requirement
178
138
  none: false
179
- requirements:
139
+ requirements:
180
140
  - - ~>
181
- - !ruby/object:Gem::Version
182
- hash: 3
183
- segments:
184
- - 1
185
- - 6
186
- version: "1.6"
141
+ - !ruby/object:Gem::Version
142
+ version: '1.6'
187
143
  type: :development
188
- version_requirements: *id011
189
- - !ruby/object:Gem::Dependency
190
- name: yard
191
144
  prerelease: false
192
- requirement: &id012 !ruby/object:Gem::Requirement
145
+ version_requirements: *2156620280
146
+ - !ruby/object:Gem::Dependency
147
+ name: yard
148
+ requirement: &2156619460 !ruby/object:Gem::Requirement
193
149
  none: false
194
- requirements:
150
+ requirements:
195
151
  - - ~>
196
- - !ruby/object:Gem::Version
197
- hash: 23
198
- segments:
199
- - 0
200
- - 6
201
- - 8
202
- version: 0.6.8
152
+ - !ruby/object:Gem::Version
153
+ version: 0.7.1
203
154
  type: :development
204
- version_requirements: *id012
155
+ prerelease: false
156
+ version_requirements: *2156619460
205
157
  description: A lightweight ruby client for Patient Study Calendar's RESTful HTTP API
206
- email:
158
+ email:
207
159
  - r-sutphin@northwestern.edu
208
160
  executables: []
209
-
210
161
  extensions: []
211
-
212
162
  extra_rdoc_files: []
213
-
214
- files:
163
+ files:
215
164
  - .gitignore
216
165
  - .rvmrc
217
166
  - .yardopts
218
167
  - CHANGELOG.md
219
168
  - Gemfile
220
169
  - LICENSE
170
+ - README-ssl.md
221
171
  - README.md
222
172
  - Rakefile
173
+ - ci-exec.sh
223
174
  - cucumber.yml
224
175
  - features/step_definitions/eval_steps.rb
225
176
  - features/step_definitions/setup_steps.rb
@@ -244,7 +195,6 @@ files:
244
195
  - lib/psc/faraday/psc_token.rb
245
196
  - lib/psc/faraday/string_is_xml.rb
246
197
  - lib/psc/version.rb
247
- - meta.rakefile
248
198
  - psc.gemspec
249
199
  - spec/fixtures/studies-json.http
250
200
  - spec/middleware_helper.rb
@@ -259,41 +209,31 @@ files:
259
209
  - tasks/int-psc.rake
260
210
  - tasks/psc/TODO
261
211
  - tasks/psc/state.rb
262
- has_rdoc: true
263
212
  homepage: https://github.com/NUBIC/psc.rb
264
213
  licenses: []
265
-
266
214
  post_install_message:
267
215
  rdoc_options: []
268
-
269
- require_paths:
216
+ require_paths:
270
217
  - lib
271
- required_ruby_version: !ruby/object:Gem::Requirement
218
+ required_ruby_version: !ruby/object:Gem::Requirement
272
219
  none: false
273
- requirements:
274
- - - ">="
275
- - !ruby/object:Gem::Version
276
- hash: 3
277
- segments:
278
- - 0
279
- version: "0"
280
- required_rubygems_version: !ruby/object:Gem::Requirement
220
+ requirements:
221
+ - - ! '>='
222
+ - !ruby/object:Gem::Version
223
+ version: '0'
224
+ required_rubygems_version: !ruby/object:Gem::Requirement
281
225
  none: false
282
- requirements:
283
- - - ">="
284
- - !ruby/object:Gem::Version
285
- hash: 3
286
- segments:
287
- - 0
288
- version: "0"
226
+ requirements:
227
+ - - ! '>='
228
+ - !ruby/object:Gem::Version
229
+ version: '0'
289
230
  requirements: []
290
-
291
231
  rubyforge_project:
292
- rubygems_version: 1.5.2
232
+ rubygems_version: 1.8.10
293
233
  signing_key:
294
234
  specification_version: 3
295
235
  summary: A lightweight ruby client for Patient Study Calendar's RESTful HTTP API
296
- test_files:
236
+ test_files:
297
237
  - features/step_definitions/eval_steps.rb
298
238
  - features/step_definitions/setup_steps.rb
299
239
  - features/studies.feature
data/meta.rakefile DELETED
@@ -1,30 +0,0 @@
1
- PLATFORMS = {
2
- :ruby18 => 'ruby-1.8.7-p334',
3
- :jruby => 'jruby-1.6.1',
4
- :ruby19 => 'ruby-1.9.2-p180'
5
- }
6
-
7
- BUNDLER_VERSION = '1.0.13'
8
-
9
- def ci_env
10
- (ENV["PSC_RB_ENV"] || :ruby18).to_sym
11
- end
12
-
13
- namespace :ci do
14
- task :rvmrc do
15
- puts "#{PLATFORMS[ci_env]}@psc-rb"
16
- end
17
-
18
- task :ensure_bundler_available do
19
- unless Gem.available?('bundler', BUNDLER_VERSION)
20
- puts "Installing bundler"
21
- sh "gem install bundler -v '#{BUNDLER_VERSION}'"
22
- end
23
- end
24
-
25
- task :setup => [:ensure_bundler_available] do
26
- sh "bundle _#{BUNDLER_VERSION}_ update"
27
- end
28
- end
29
-
30
- task :default => 'ci:setup'