jasperserver-rails 0.0.2 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ [![Gem Version](https://badge.fury.io/rb/jasperserver-rails.png)](http://badge.fury.io/rb/jasperserver-rails)
2
+
1
3
  # JasperserverRails
2
4
 
3
5
  Download reports in various formats from jasperserver
data/README.rdoc CHANGED
@@ -1,3 +1,5 @@
1
+ {<img src="https://badge.fury.io/rb/jasperserver-rails.png" alt="Gem Version" />}[http://badge.fury.io/rb/jasperserver-rails]
2
+
1
3
  = JasperserverRails
2
4
 
3
5
  Download reports in various formats from jasperserver
@@ -1,4 +1,5 @@
1
1
  require 'fileutils'
2
+ require 'uri'
2
3
  require 'rest-client'
3
4
  module JasperserverRails
4
5
  class Jasperserver
@@ -6,7 +7,7 @@ module JasperserverRails
6
7
  self.class_eval do
7
8
  [:report, :format, :params].each do |method|
8
9
  define_method method do |arg|
9
- arg = arg.collect { |key, value| [key, value].join('=') }.join('&') if method == :params
10
+ arg = arg.collect { |key, value| [key, value] } if method == :params
10
11
  instance_variable_set "@#{method}".to_sym, arg
11
12
  end
12
13
 
@@ -26,7 +27,7 @@ module JasperserverRails
26
27
  login
27
28
  # Run report
28
29
  response2 = RestClient.get(
29
- [Rails.configuration.jasperserver[Rails.env.to_sym][:url], 'rest_v2/reports/reports/', "#{self.get_report}.#{self.get_format}?#{self.get_params}"].join(''),
30
+ URI.join(Rails.configuration.jasperserver[Rails.env.to_sym][:url]+'/', "rest_v2/reports/reports/#{self.get_report}.#{self.get_format}?#{URI.encode_www_form(self.get_params)}").to_s,
30
31
  {:cookies => @cookie }
31
32
  )
32
33
 
@@ -43,7 +44,7 @@ module JasperserverRails
43
44
  # login
44
45
  if @cookie.nil?
45
46
  response = RestClient.post(
46
- [Rails.configuration.jasperserver[Rails.env.to_sym][:url], 'rest/login'].join(''),
47
+ URI.join(Rails.configuration.jasperserver[Rails.env.to_sym][:url]+'/', 'rest/login').to_s,
47
48
  {
48
49
  j_username: Rails.configuration.jasperserver[Rails.env.to_sym][:username],
49
50
  j_password: Rails.configuration.jasperserver[Rails.env.to_sym][:password]
@@ -1,3 +1,3 @@
1
1
  module JasperserverRails
2
- VERSION = "0.0.2"
2
+ VERSION = "0.1.0"
3
3
  end
@@ -2,10 +2,10 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: <URL>rest/login
5
+ uri: <URL>/rest/login
6
6
  body:
7
7
  encoding: US-ASCII
8
- string: j_username=<USERNAME>&j_password=<USERNAME>
8
+ string: j_username=<USERNAME>&j_password=<PASSWORD>
9
9
  headers:
10
10
  Accept:
11
11
  - ! '*/*; q=0.5, application/xml'
@@ -33,15 +33,15 @@ http_interactions:
33
33
  Content-Length:
34
34
  - '0'
35
35
  Date:
36
- - Sun, 13 Jan 2013 22:59:09 GMT
36
+ - Mon, 28 Jan 2013 22:38:30 GMT
37
37
  body:
38
38
  encoding: US-ASCII
39
39
  string: ''
40
40
  http_version:
41
- recorded_at: Sun, 13 Jan 2013 22:59:51 GMT
41
+ recorded_at: Mon, 28 Jan 2013 22:38:50 GMT
42
42
  - request:
43
43
  method: get
44
- uri: <URL>rest_v2/reports/reports/test_report.pdf?Value1=Value1&Value2=Value2
44
+ uri: <URL>/rest_v2/reports/reports/samples/Department.pdf?Value1=Value1&Value2=Value2
45
45
  body:
46
46
  encoding: US-ASCII
47
47
  string: ''
@@ -80,34 +80,34 @@ http_interactions:
80
80
  YXBwbGljYXRpb24vcGRm
81
81
  !binary "Q29udGVudC1MZW5ndGg=":
82
82
  - !binary |-
83
- OTA2
83
+ OTA1
84
84
  !binary "RGF0ZQ==":
85
85
  - !binary |-
86
- U3VuLCAxMyBKYW4gMjAxMyAyMjo1OTowOSBHTVQ=
86
+ TW9uLCAyOCBKYW4gMjAxMyAyMjozODozMSBHTVQ=
87
87
  body:
88
88
  encoding: ASCII-8BIT
89
89
  string: !binary |-
90
90
  JVBERi0xLjQKJeLjz9MKMSAwIG9iago8PC9MZW5ndG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13 Jan 2013 22:59:51 GMT
112
+ recorded_at: Mon, 28 Jan 2013 22:38:50 GMT
113
113
  recorded_with: VCR 2.4.0
@@ -2,10 +2,10 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: <URL>rest/login
5
+ uri: <URL>/rest/login
6
6
  body:
7
7
  encoding: US-ASCII
8
- string: j_username=<USERNAME>&j_password=<USERNAME>
8
+ string: j_username=<USERNAME>&j_password=<PASSWORD>
9
9
  headers:
10
10
  Accept:
11
11
  - ! '*/*; q=0.5, application/xml'
@@ -33,15 +33,15 @@ http_interactions:
33
33
  Content-Length:
34
34
  - '0'
35
35
  Date:
36
- - Sun, 13 Jan 2013 22:59:09 GMT
36
+ - Mon, 28 Jan 2013 22:38:31 GMT
37
37
  body:
38
38
  encoding: US-ASCII
39
39
  string: ''
40
40
  http_version:
41
- recorded_at: Sun, 13 Jan 2013 22:59:51 GMT
41
+ recorded_at: Mon, 28 Jan 2013 22:38:51 GMT
42
42
  - request:
43
43
  method: get
44
- uri: <URL>rest_v2/reports/reports/test_report.pdf?Value1=Value1
44
+ uri: <URL>/rest_v2/reports/reports/samples/Department.pdf?Value1=Value1
45
45
  body:
46
46
  encoding: US-ASCII
47
47
  string: ''
@@ -80,34 +80,34 @@ http_interactions:
80
80
  YXBwbGljYXRpb24vcGRm
81
81
  !binary "Q29udGVudC1MZW5ndGg=":
82
82
  - !binary |-
83
- OTA2
83
+ OTA1
84
84
  !binary "RGF0ZQ==":
85
85
  - !binary |-
86
- U3VuLCAxMyBKYW4gMjAxMyAyMjo1OTowOSBHTVQ=
86
+ TW9uLCAyOCBKYW4gMjAxMyAyMjozODozMSBHTVQ=
87
87
  body:
88
88
  encoding: ASCII-8BIT
89
89
  string: !binary |-
90
90
  JVBERi0xLjQKJeLjz9MKMSAwIG9iago8PC9MZW5ndGggMjkvRmlsdGVyL0Zs
91
- YXRlRGVjb2RlPj5zdHJlYW0KeJwr5HIK4TI2UzA3NVMISeFyDeEK5OICADFi
92
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2,10 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: <URL>rest/login
5
+ uri: <URL>/rest/login
6
6
  body:
7
7
  encoding: US-ASCII
8
- string: j_username=<USERNAME>&j_password=<USERNAME>
8
+ string: j_username=<USERNAME>&j_password=<PASSWORD>
9
9
  headers:
10
10
  Accept:
11
11
  - ! '*/*; q=0.5, application/xml'
@@ -33,15 +33,15 @@ http_interactions:
33
33
  Content-Length:
34
34
  - '0'
35
35
  Date:
36
- - Sun, 13 Jan 2013 22:59:09 GMT
36
+ - Mon, 28 Jan 2013 22:38:31 GMT
37
37
  body:
38
38
  encoding: US-ASCII
39
39
  string: ''
40
40
  http_version:
41
- recorded_at: Sun, 13 Jan 2013 22:59:51 GMT
41
+ recorded_at: Mon, 28 Jan 2013 22:38:51 GMT
42
42
  - request:
43
43
  method: get
44
- uri: <URL>rest_v2/reports/reports/test_report.pdf?Value1=Value1
44
+ uri: <URL>/rest_v2/reports/reports/samples/Department.pdf?Value1=Value1
45
45
  body:
46
46
  encoding: US-ASCII
47
47
  string: ''
@@ -80,34 +80,34 @@ http_interactions:
80
80
  YXBwbGljYXRpb24vcGRm
81
81
  !binary "Q29udGVudC1MZW5ndGg=":
82
82
  - !binary |-
83
- OTA2
83
+ OTA1
84
84
  !binary "RGF0ZQ==":
85
85
  - !binary |-
86
- U3VuLCAxMyBKYW4gMjAxMyAyMjo1OToxMCBHTVQ=
86
+ TW9uLCAyOCBKYW4gMjAxMyAyMjozODozMiBHTVQ=
87
87
  body:
88
88
  encoding: ASCII-8BIT
89
89
  string: !binary |-
90
90
  JVBERi0xLjQKJeLjz9MKMSAwIG9iago8PC9MZW5ndGggMjkvRmlsdGVyL0Zs
91
- YXRlRGVjb2RlPj5zdHJlYW0KeJwr5HIK4TI2UzA3NVMISeFyDeEK5OICADFi
92
- BDEKZW5kc3RyZWFtCmVuZG9iagozIDAgb2JqCjw8L0dyb3VwPDwvVHlwZS9H
91
+ YXRlRGVjb2RlPj5zdHJ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DAwMDAgbiAKMDAwMDAwMDQ4MCAwMDAw
107
- MCBuIAp0cmFpbGVyCjw8L1Jvb3QgNCAwIFIvSUQgWzw4NTBmOTdiMjliYzQ0
108
- OTQ5ZmFhZDJhMjlmOWVmMjgwNz48MmQ4YTNkN2I5Nzk5YzVkYjkzOGM3MmM1
109
- MGNiZTI3Mzg+XS9JbmZvIDUgMCBSL1NpemUgNj4+CnN0YXJ0eHJlZgo2NDEK
110
- JSVFT0YK
101
+ dG9yKEphc3BlclJlcG9ydHMgXChEZXBhcnRtZW50XCkpL1Byb2R1Y2VyKGlU
102
+ ZXh0IDIuMS43IGJ5IDFUM1hUKS9Nb2REYXRlKEQ6MjAxMzAxMjgxNjM4MzIt
103
+ MDYnMDAnKS9DcmVhdGlvbkRhdGUoRDoyMDEzMDEyODE2MzgzMi0wNicwMCcp
104
+ Pj4KZW5kb2JqCnhyZWYKMCA2CjAwMDAwMDAwMDAgNjU1MzUgZiAKMDAwMDAw
105
+ MDAxNSAwMDAwMCBuIAowMDAwMDAwMzI2IDAwMDAwIG4gCjAwMDAwMDAxMTAg
106
+ MDAwMDAgbiAKMDAwMDAwMDM4OSAwMDAwMCBuIAowMDAwMDAwNDgwIDAwMDAw
107
+ IG4gCnRyYWlsZXIKPDwvUm9vdCA0IDAgUi9JRCBbPGNhMjc2ZWM3MTczZDkx
108
+ Nzg2MTliNTNjZTE1ZjkzYTEzPjwyMzdkN2FkOTZmYWNmNTVmNTRiM2EwMDli
109
+ YWYxYjhmYz5dL0luZm8gNSAwIFIvU2l6ZSA2Pj4Kc3RhcnR4cmVmCjY0MAol
110
+ JUVPRgo=
111
111
  http_version:
112
- recorded_at: Sun, 13 Jan 2013 22:59:52 GMT
112
+ recorded_at: Mon, 28 Jan 2013 22:38:52 GMT
113
113
  recorded_with: VCR 2.4.0
@@ -2,10 +2,10 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: <URL>rest/login
5
+ uri: <URL>/rest/login
6
6
  body:
7
7
  encoding: US-ASCII
8
- string: j_username=<USERNAME>&j_password=<USERNAME>
8
+ string: j_username=<USERNAME>&j_password=<PASSWORD>
9
9
  headers:
10
10
  Accept:
11
11
  - ! '*/*; q=0.5, application/xml'
@@ -33,15 +33,15 @@ http_interactions:
33
33
  Content-Length:
34
34
  - '0'
35
35
  Date:
36
- - Sun, 13 Jan 2013 22:59:08 GMT
36
+ - Mon, 28 Jan 2013 22:38:28 GMT
37
37
  body:
38
38
  encoding: US-ASCII
39
39
  string: ''
40
40
  http_version:
41
- recorded_at: Sun, 13 Jan 2013 22:59:49 GMT
41
+ recorded_at: Mon, 28 Jan 2013 22:38:47 GMT
42
42
  - request:
43
43
  method: get
44
- uri: <URL>rest_v2/reports/reports/test_report.pdf?Value1=Value1
44
+ uri: <URL>/rest_v2/reports/reports/samples/Department.pdf?Value1=Value1
45
45
  body:
46
46
  encoding: US-ASCII
47
47
  string: ''
@@ -80,34 +80,34 @@ http_interactions:
80
80
  YXBwbGljYXRpb24vcGRm
81
81
  !binary "Q29udGVudC1MZW5ndGg=":
82
82
  - !binary |-
83
- OTA2
83
+ OTA1
84
84
  !binary "RGF0ZQ==":
85
85
  - !binary |-
86
- U3VuLCAxMyBKYW4gMjAxMyAyMjo1OTowOCBHTVQ=
86
+ TW9uLCAyOCBKYW4gMjAxMyAyMjozODozMCBHTVQ=
87
87
  body:
88
88
  encoding: ASCII-8BIT
89
89
  string: !binary |-
90
90
  JVBERi0xLjQKJeLjz9MKMSAwIG9iago8PC9MZW5ndGggMjkvRmlsdGVyL0Zs
91
- YXRlRGVjb2RlPj5zdHJlYW0KeJwr5HIK4TI2UzA3NVMISeFyDeEK5OICADFi
92
- BDEKZW5kc3RyZWFtCmVuZG9iagozIDAgb2JqCjw8L0dyb3VwPDwvVHlwZS9H
91
+ YXRlRGVjb2RlPj5zdHJlYW0KeJwr5HIK4TI2U7AwMFMISeFyDeEK5OICADEz
92
+ BC0KZW5kc3RyZWFtCmVuZG9iagozIDAgb2JqCjw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kZTU4ZGUwMDFiMGYy
108
- ZmFmOWJlYWU5NTJkNDY1MmNmZj48NGFmNjMyYTRmMWE4MGY5MTBkNmQxZWQw
109
- MzBkZGJhYTI+XS9JbmZvIDUgMCBSL1NpemUgNj4+CnN0YXJ0eHJlZgo2NDEK
110
- JSVFT0YK
101
+ dG9yKEphc3BlclJlcG9ydHMgXChEZXBhcnRtZW50XCkpL1Byb2R1Y2VyKGlU
102
+ ZXh0IDIuMS43IGJ5IDFUM1hUKS9Nb2REYXRlKEQ6MjAxMzAxMjgxNjM4MzAt
103
+ MDYnMDAnKS9DcmVhdGlvbkRhdGUoRDoyMDEzMDEyODE2MzgzMC0wNicwMCcp
104
+ Pj4KZW5kb2JqCnhyZWYKMCA2CjAwMDAwMDAwMDAgNjU1MzUgZiAKMDAwMDAw
105
+ MDAxNSAwMDAwMCBuIAowMDAwMDAwMzI2IDAwMDAwIG4gCjAwMDAwMDAxMTAg
106
+ MDAwMDAgbiAKMDAwMDAwMDM4OSAwMDAwMCBuIAowMDAwMDAwNDgwIDAwMDAw
107
+ IG4gCnRyYWlsZXIKPDwvUm9vdCA0IDAgUi9JRCBbPDU5ZTgxODgwZjRmY2Ni
108
+ OWZlNDQ1OTg4Y2IwZDNlZGJjPjwyZWE2NGZhYjlkYmRhM2IwZWUxMTkyZTZl
109
+ ZjlmMTRiNT5dL0luZm8gNSAwIFIvU2l6ZSA2Pj4Kc3RhcnR4cmVmCjY0MAol
110
+ JUVPRgo=
111
111
  http_version:
112
- recorded_at: Sun, 13 Jan 2013 22:59:50 GMT
112
+ recorded_at: Mon, 28 Jan 2013 22:38:49 GMT
113
113
  recorded_with: VCR 2.4.0
@@ -2,10 +2,10 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: <URL>rest/login
5
+ uri: <URL>/rest/login
6
6
  body:
7
7
  encoding: US-ASCII
8
- string: j_username=<USERNAME>&j_password=<USERNAME>
8
+ string: j_username=<USERNAME>&j_password=<PASSWORD>
9
9
  headers:
10
10
  Accept:
11
11
  - ! '*/*; q=0.5, application/xml'
@@ -33,15 +33,15 @@ http_interactions:
33
33
  Content-Length:
34
34
  - '0'
35
35
  Date:
36
- - Sun, 13 Jan 2013 22:59:08 GMT
36
+ - Mon, 28 Jan 2013 22:38:30 GMT
37
37
  body:
38
38
  encoding: US-ASCII
39
39
  string: ''
40
40
  http_version:
41
- recorded_at: Sun, 13 Jan 2013 22:59:50 GMT
41
+ recorded_at: Mon, 28 Jan 2013 22:38:49 GMT
42
42
  - request:
43
43
  method: get
44
- uri: <URL>rest_v2/reports/reports/test_report.pdf?Value1=Value1
44
+ uri: <URL>/rest_v2/reports/reports/samples/Department.pdf?Value1=Value1
45
45
  body:
46
46
  encoding: US-ASCII
47
47
  string: ''
@@ -80,34 +80,34 @@ http_interactions:
80
80
  YXBwbGljYXRpb24vcGRm
81
81
  !binary "Q29udGVudC1MZW5ndGg=":
82
82
  - !binary |-
83
- OTA2
83
+ OTA1
84
84
  !binary "RGF0ZQ==":
85
85
  - !binary |-
86
- U3VuLCAxMyBKYW4gMjAxMyAyMjo1OTowOCBHTVQ=
86
+ TW9uLCAyOCBKYW4gMjAxMyAyMjozODozMCBHTVQ=
87
87
  body:
88
88
  encoding: ASCII-8BIT
89
89
  string: !binary |-
90
90
  JVBERi0xLjQKJeLjz9MKMSAwIG9iago8PC9MZW5ndGggMjkvRmlsdGVyL0Zs
91
- YXRlRGVjb2RlPj5zdHJlYW0KeJwr5HIK4TI2UzA3NVMISeFyDeEK5OICADFi
92
- BDEKZW5kc3RyZWFtCmVuZG9iagozIDAgb2JqCjw8L0dyb3VwPDwvVHlwZS9H
91
+ YXRlRGVjb2RlPj5zdHJlYW0KeJwr5HIK4TI2U7AwMFMISeFyDeEK5OICADEz
92
+ BC0KZW5kc3RyZWFtCmVuZG9iagozIDAgb2JqCjw8L0dyb3VwPDwvVHlwZS9H
93
93
  cm91cC9DUy9EZXZpY2VSR0IvUy9UcmFuc3BhcmVuY3k+Pi9QYXJl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Fm
109
- OWJlZDY5ZDg+XS9JbmZvIDUgMCBSL1NpemUgNj4+CnN0YXJ0eHJlZgo2NDEK
110
- JSVFT0YK
101
+ dG9yKEphc3BlclJlcG9ydHMgXChEZXBhcnRtZW50XCkpL1Byb2R1Y2VyKGlU
102
+ ZXh0IDIuMS43IGJ5IDFUM1hUKS9Nb2REYXRlKEQ6MjAxMzAxMjgxNjM4MzAt
103
+ MDYnMDAnKS9DcmVhdGlvbkRhdGUoRDoyMDEzMDEyODE2MzgzMC0wNicwMCcp
104
+ Pj4KZW5kb2JqCnhyZWYKMCA2CjAwMDAwMDAwMDAgNjU1MzUgZiAKMDAwMDAw
105
+ MDAxNSAwMDAwMCBuIAowMDAwMDAwMzI2IDAwMDAwIG4gCjAwMDAwMDAxMTAg
106
+ MDAwMDAgbiAKMDAwMDAwMDM4OSAwMDAwMCBuIAowMDAwMDAwNDgwIDAwMDAw
107
+ IG4gCnRyYWlsZXIKPDwvUm9vdCA0IDAgUi9JRCBbPDlhNGIzNGEwNzI4MTYx
108
+ MDJhOTUyZmFmY2E5YzAzZGY5PjxhODc3NTFhYjJhOWY5ZjU3MDNhMjE3NjUw
109
+ NDUyYWY2Mz5dL0luZm8gNSAwIFIvU2l6ZSA2Pj4Kc3RhcnR4cmVmCjY0MAol
110
+ JUVPRgo=
111
111
  http_version:
112
- recorded_at: Sun, 13 Jan 2013 22:59:51 GMT
112
+ recorded_at: Mon, 28 Jan 2013 22:38:50 GMT
113
113
  recorded_with: VCR 2.4.0
@@ -25,7 +25,7 @@ class JasperserverRailsTest < ActiveSupport::TestCase
25
25
  VCR.use_cassette('test1') do
26
26
  JasperserverRails::Jasperserver.new do
27
27
  format 'pdf'
28
- report 'test_report'
28
+ report 'samples/Department'
29
29
  params({ :Value1 => 'Value1', :Value2 => 'Value2' })
30
30
  run_report('test/dummy/tmp/reports/test.pdf')
31
31
  end
@@ -37,7 +37,7 @@ class JasperserverRailsTest < ActiveSupport::TestCase
37
37
  VCR.use_cassette('test2') do
38
38
  JasperserverRails::Jasperserver.new do
39
39
  format 'pdf'
40
- report 'test_report'
40
+ report 'samples/Department'
41
41
  params({ :Value1 => 'Value1' })
42
42
  run_report('test/dummy/tmp/reports/test2.pdf')
43
43
  end
@@ -49,7 +49,7 @@ class JasperserverRailsTest < ActiveSupport::TestCase
49
49
  VCR.use_cassette('test3') do
50
50
  JasperserverRails::Jasperserver.new.run_report 'test/dummy/tmp/reports/test3.pdf' do
51
51
  format 'pdf'
52
- report 'test_report'
52
+ report 'samples/Department'
53
53
  params({ :Value1 => 'Value1' })
54
54
  end
55
55
  end
@@ -60,7 +60,7 @@ class JasperserverRailsTest < ActiveSupport::TestCase
60
60
  VCR.use_cassette('test4') do
61
61
  JasperserverRails::Jasperserver.new.run_report 'test/dummy/tmp/reports/test4.pdf' do
62
62
  format 'pdf'
63
- report 'test_report'
63
+ report 'samples/Department'
64
64
  params({ :Value1 => 'Value1' })
65
65
  end
66
66
  end
@@ -69,7 +69,7 @@ class JasperserverRailsTest < ActiveSupport::TestCase
69
69
  VCR.use_cassette('test5') do
70
70
  JasperserverRails::Jasperserver.new.run_report 'test/dummy/tmp/reports/test5.pdf' do
71
71
  format 'pdf'
72
- report 'test_report'
72
+ report 'samples/Department'
73
73
  params({ :Value1 => 'Value1' })
74
74
  end
75
75
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jasperserver-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-17 00:00:00.000000000 Z
12
+ date: 2013-01-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -139,7 +139,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
139
139
  version: '0'
140
140
  segments:
141
141
  - 0
142
- hash: 2651067145979229281
142
+ hash: -12413139166659919
143
143
  required_rubygems_version: !ruby/object:Gem::Requirement
144
144
  none: false
145
145
  requirements:
@@ -148,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
148
148
  version: '0'
149
149
  segments:
150
150
  - 0
151
- hash: 2651067145979229281
151
+ hash: -12413139166659919
152
152
  requirements: []
153
153
  rubyforge_project:
154
154
  rubygems_version: 1.8.23