excel_builder 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/README CHANGED
@@ -1 +1,22 @@
1
- TODO
1
+ #to run the server
2
+
3
+ rbenv shell jruby-1.6.5
4
+ gem install excel_builder
5
+ cd $(gem which excel_builder | xargs dirname)/../ext
6
+ bundle --version || gem intall bundler
7
+ bundle install
8
+ ruby app.rb
9
+
10
+ #to use the client
11
+ gem install excel_builder
12
+
13
+ irb
14
+ require 'rubygems'
15
+ require 'excel_builder'
16
+ ExcelBuilder::Connector.site = 'http://localhost:4567'
17
+ File.open('test.xlsx', 'w') do |f|
18
+ f.write ExcelBuilder::Connector.generate_xlsx('text.xlsx') do |workbook|
19
+ sheet = workbook.worksheets['hello'];
20
+ sheet.rows[0][0].value = 4.0
21
+ end
22
+ end
@@ -19,8 +19,7 @@ EOF
19
19
  dependencies = [
20
20
  # Examples:
21
21
  [:runtime, "command_recorder", "~> 0.0.1"],
22
- [:runtime, "rest-client", "~> 1.6.6"],
23
- [:runtime, "bundler", "~> 1.0"]
22
+ [:runtime, "rest-client", "~> 1.6.6"]
24
23
  # [:development, "rspec", "~> 2.1"],
25
24
  ]
26
25
 
@@ -24,7 +24,7 @@ module ExcelBuilder
24
24
  end
25
25
  def self.generate_xlsx(filename, &block)
26
26
  cr = CommandRecorder.record &block
27
- RestClient.post self.site + filename, :invocation_json => cr.invocation_json
27
+ RestClient.post self.site + '/' + filename, :invocation_json => cr.invocation_json
28
28
  end
29
29
  end
30
30
  end
@@ -1,3 +1,3 @@
1
1
  module ExcelBuilder
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: excel_builder
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tim Galeckas
@@ -50,21 +50,6 @@ dependencies:
50
50
  version: 1.6.6
51
51
  type: :runtime
52
52
  version_requirements: *id002
53
- - !ruby/object:Gem::Dependency
54
- name: bundler
55
- prerelease: false
56
- requirement: &id003 !ruby/object:Gem::Requirement
57
- none: false
58
- requirements:
59
- - - ~>
60
- - !ruby/object:Gem::Version
61
- hash: 15
62
- segments:
63
- - 1
64
- - 0
65
- version: "1.0"
66
- type: :runtime
67
- version_requirements: *id003
68
53
  description: " connector and jruby sinatra app to generate excel spreadsheets\n"
69
54
  email: tim@galeckas.com
70
55
  executables: []
@@ -74,7 +59,6 @@ extensions: []
74
59
  extra_rdoc_files: []
75
60
 
76
61
  files:
77
- - excel_builder-0.0.1.gem
78
62
  - excel_builder.gemspec
79
63
  - ext/app.rb
80
64
  - ext/favicon.ico
Binary file