spreadsheet_architect 1.4.0 → 1.4.1

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: d07793c007586700df1c0720d23cc124e9293551
4
- data.tar.gz: ccadd4b8c35e81f68a589b5c4623b418d1fc94ae
3
+ metadata.gz: b706fe5b3df6da7cfc18655f49969b0192621f17
4
+ data.tar.gz: 293780f00057fa57874e20d05508454f14002502
5
5
  SHA512:
6
- metadata.gz: 5c6bb10fa48dad7fc1ef0f2bd2d30e979150432a6e304dcfb5eec183ad5d2511f09f5a116400c0f718b011b8b5873a31866adf172b5a7a97525d281e7c8a98d7
7
- data.tar.gz: 50bb9b635edc7d098a0ac07e4438af5ad865820786ac1b6a70a2daf5a329733f5f24a50d1350aa87eca9be468fb5d54034574a344e8443a6fd3db66ac4a9c6e6
6
+ metadata.gz: 47960159b14e086c77dcab8786cebd0e6b19b976aab59c04caef2535755fc5f62cb3cada580481db15ab3dfd70b2677da14186cc76937b47fe4cc2405fda13cf
7
+ data.tar.gz: fbb2f328e8f3f47509f4e8e4f80c8da20fb249fe70bc70f33dd8a93dd825d650f619c7b6da58e8abd7d67aed8cccce0f439aa710a6c8aced80fb4566acabc961
data/README.md CHANGED
@@ -1,8 +1,6 @@
1
1
  # Spreadsheet Architect
2
2
  <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=VKY8YAWAS5XRQ&lc=CA&item_name=Weston%20Ganger&item_number=spreadsheet_architect&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHostedGuest" target="_blank" title="Donate"><img src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif" alt="Donate"/></a>
3
3
 
4
- Spreas
5
-
6
4
  Spreadsheet Architect is a library that allows you to create XLSX, ODS, or CSV spreadsheets easily from ActiveRecord relations, Plain Ruby classes, or predefined data.
7
5
 
8
6
  Key Features:
@@ -225,8 +223,8 @@ class Post
225
223
 
226
224
  SPREADSHEET_OPTIONS = {
227
225
  headers: true,
228
- header_style: {background_color: "AAAAAA", color: "FFFFFF", align: :center, font_name: 'Arial', font_size: 10, bold: false, italic: false, underline: false},
229
- row_style: {background_color: nil, color: "FFFFFF", align: :left, font_name: 'Arial', font_size: 10, bold: false, italic: false, underline: false},
226
+ header_style: {background_color: 'AAAAAA', color: 'FFFFFF', align: :center, font_name: 'Arial', font_size: 10, bold: false, italic: false, underline: false},
227
+ row_style: {background_color: nil, color: 'FFFFFF', align: :left, font_name: 'Arial', font_size: 10, bold: false, italic: false, underline: false},
230
228
  sheet_name: self.name
231
229
  }
232
230
  end
@@ -237,10 +235,10 @@ end
237
235
  # config/initializers/spreadsheet_architect.rb
238
236
 
239
237
  SpreadsheetArchitect.module_eval do
240
- set_const('SPREADSHEET_OPTIONS, {
238
+ const_set('SPREADSHEET_OPTIONS', {
241
239
  headers: true,
242
- header_style: {background_color: "AAAAAA", color: "FFFFFF", align: :center, font_name: 'Arial', font_size: 10, bold: false, italic: false, underline: false},
243
- row_style: {background_color: nil, color: "FFFFFF", align: :left, font_name: 'Arial', font_size: 10, bold: false, italic: false, underline: false},
240
+ header_style: {background_color: 'AAAAAA', color: 'FFFFFF', align: :center, font_name: 'Arial', font_size: 10, bold: false, italic: false, underline: false},
241
+ row_style: {background_color: nil, color: 'FFFFFF', align: :left, font_name: 'Arial', font_size: 10, bold: false, italic: false, underline: false},
244
242
  sheet_name: 'My Project Export'
245
243
  })
246
244
  end
@@ -0,0 +1,11 @@
1
+ require 'rails/generators'
2
+
3
+ module SpreadsheetArchitect
4
+ class AddProjectDefaultsGenerator < Rails::Generators::Base
5
+
6
+ def add_project_defaults
7
+ create_file "config/initializers/spreadsheet_architect.rb", "SpreadsheetArchitect.module_eval do\n const_set('SPREADSHEET_OPTIONS', {\n headers: true,\n header_style: {background_color: 'AAAAAA', color: 'FFFFFF', align: :center, font_name: 'Arial', font_size: 10, bold: false, italic: false, underline: false},\n row_style: {background_color: nil, color: 'FFFFFF', align: :left, font_name: 'Arial', font_size: 10, bold: false, italic: false, underline: false},\n sheet_name: 'My Project Export'\n })\nend"
8
+ end
9
+
10
+ end
11
+ end
@@ -1,3 +1,3 @@
1
1
  module SpreadsheetArchitect
2
- VERSION = "1.4.0"
2
+ VERSION = "1.4.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spreadsheet_architect
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Weston Ganger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-29 00:00:00.000000000 Z
11
+ date: 2016-05-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: axlsx
@@ -120,6 +120,7 @@ files:
120
120
  - LICENSE
121
121
  - README.md
122
122
  - Rakefile
123
+ - lib/generators/spreadsheet_architect/add_project_defaults_generator.rb
123
124
  - lib/spreadsheet_architect.rb
124
125
  - lib/spreadsheet_architect/action_controller_renderers.rb
125
126
  - lib/spreadsheet_architect/axlsx_column_width_patch.rb
@@ -152,6 +153,6 @@ signing_key:
152
153
  specification_version: 4
153
154
  summary: Spreadsheet Generator for ActiveRecord Models and Ruby Classes/Modules
154
155
  test_files:
155
- - test/helper.rb
156
156
  - test/database.yml
157
+ - test/helper.rb
157
158
  - test/tc_spreadsheet_architect.rb