casper-client 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "casper-client"
6
- s.version = "0.0.2"
6
+ s.version = "0.0.3"
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.authors = ["Daniel Tamiosso"]
9
9
  s.email = ["email@danieltamiosso.com"]
File without changes
data/readme.md ADDED
@@ -0,0 +1,32 @@
1
+ # Casper Client
2
+
3
+ It's a simple api to the Casper Server (https://github.com/twilson63/casper_server/) a sinatra web service to the Casper Reports (a jasperreports wrapper in jruby).
4
+ With this client you can send a jrxml template, a xml document and a xpath string and get the report.
5
+
6
+ # Install
7
+
8
+ ```
9
+ gem install casper-client
10
+ ```
11
+
12
+ # Usage Examples
13
+
14
+ Using the default service:
15
+
16
+ ```
17
+ pdf = Casper::Client.build do |report|
18
+ report.xml = # xml dataset
19
+ report.template = # jrxml template
20
+ report.xpath = # xpath query string
21
+ end
22
+ ```
23
+
24
+ Using another host:
25
+
26
+ ```
27
+ pdf = Casper::Client.build :host => 'http://mycasperserver.com' do |report|
28
+ report.xml = # xml dataset
29
+ report.template = # jrxml template
30
+ report.xpath = # xpath query string
31
+ end
32
+ ```
@@ -19,7 +19,7 @@ describe Casper::Client do
19
19
  'casper[xpath]'=>'//root'
20
20
  }
21
21
  )
22
- @report = Casper::Client.build do |report|
22
+ report = Casper::Client.build do |report|
23
23
  report.xml = DATASET
24
24
  report.template = TEMPLATE
25
25
  report.xpath = '//root'
@@ -34,7 +34,7 @@ describe Casper::Client do
34
34
  'casper[xpath]'=> '//root'
35
35
  }
36
36
  )
37
- @report = Casper::Client.build :host => 'http://mycasperserver.com' do |report|
37
+ report = Casper::Client.build :host => 'http://mycasperserver.com' do |report|
38
38
  report.xml = DATASET
39
39
  report.template = TEMPLATE
40
40
  report.xpath = '//root'
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: casper-client
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.2
5
+ version: 0.0.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Daniel Tamiosso
@@ -59,10 +59,10 @@ files:
59
59
  - .gitignore
60
60
  - .rvmrc
61
61
  - Gemfile
62
- - README
63
62
  - Rakefile
64
63
  - casper-client.gemspec
65
- - lib/casper_client.rb
64
+ - lib/casper-client.rb
65
+ - readme.md
66
66
  - spec/casper_client_spec.rb
67
67
  - spec/data/dataset.xml
68
68
  - spec/data/report.jrxml
data/README DELETED
File without changes