axlsx_styler 0.2.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +20 -0
- data/README.md +39 -32
- data/Rakefile +18 -4
- data/lib/axlsx_styler.rb +4 -57
- data/lib/axlsx_styler/axlsx_cell.rb +30 -30
- data/lib/axlsx_styler/axlsx_package.rb +17 -0
- data/lib/axlsx_styler/axlsx_styles.rb +36 -0
- data/lib/axlsx_styler/axlsx_workbook.rb +27 -27
- data/lib/axlsx_styler/axlsx_worksheet.rb +26 -26
- data/lib/axlsx_styler/version.rb +1 -1
- data/test/custom_assertions.rb +21 -0
- data/test/dummy_app/Rakefile +7 -0
- data/test/dummy_app/app/assets/javascripts/application.js +0 -0
- data/test/dummy_app/app/assets/stylesheets/application.css +3 -0
- data/test/dummy_app/app/controllers/application_controller.rb +3 -0
- data/test/dummy_app/app/controllers/spreadsheets_controller.rb +7 -0
- data/test/dummy_app/app/models/application_record.rb +3 -0
- data/test/dummy_app/app/views/layouts/application.html.erb +14 -0
- data/{examples/colors_and_borders.rb → test/dummy_app/app/views/spreadsheets/test.xlsx.axlsx} +2 -7
- data/test/dummy_app/config.ru +4 -0
- data/test/dummy_app/config/application.rb +63 -0
- data/test/dummy_app/config/boot.rb +10 -0
- data/test/dummy_app/config/database.yml +25 -0
- data/test/dummy_app/config/environment.rb +5 -0
- data/test/dummy_app/config/environments/development.rb +30 -0
- data/test/dummy_app/config/environments/production.rb +60 -0
- data/test/dummy_app/config/environments/test.rb +41 -0
- data/test/dummy_app/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy_app/config/initializers/inflections.rb +10 -0
- data/test/dummy_app/config/initializers/mime_types.rb +5 -0
- data/test/dummy_app/config/initializers/secret_token.rb +11 -0
- data/test/dummy_app/config/initializers/session_store.rb +8 -0
- data/test/dummy_app/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy_app/config/locales/en.yml +5 -0
- data/test/dummy_app/config/routes.rb +3 -0
- data/test/dummy_app/config/secrets.yml +22 -0
- data/test/dummy_app/db/schema.rb +15 -0
- data/test/dummy_app/db/test.sqlite3 +0 -0
- data/test/dummy_app/log/test.log +730 -0
- data/test/helper_methods.rb +12 -0
- data/test/integration/application_test.rb +18 -0
- data/test/test_helper.rb +29 -5
- data/test/unit/borders_test.rb +127 -0
- data/test/unit/examples_test.rb +20 -0
- data/test/unit/general_test.rb +84 -0
- data/test/unit/merge_styles_test.rb +56 -0
- data/test/unit/serialize_test.rb +34 -0
- data/test/unit/to_stream_test.rb +34 -0
- metadata +136 -56
- data/.gitignore +0 -26
- data/.travis.yml +0 -7
- data/Appraisals +0 -7
- data/Gemfile +0 -4
- data/axlsx_styler.gemspec +0 -37
- data/examples/mixing_styles.rb +0 -22
- data/examples/vanilla_axlsx.md +0 -70
- data/gemfiles/axlsx_2.gemfile +0 -7
- data/gemfiles/axlsx_3.gemfile +0 -7
- data/spreadsheet.png +0 -0
- data/test/cell_test.rb +0 -14
- data/test/integration_test.rb +0 -288
- data/test/workbook_test.rb +0 -10
data/test/workbook_test.rb
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
class WorkbookTest < MiniTest::Test
|
2
|
-
def test_adding_styled_cells
|
3
|
-
p = Axlsx::Package.new
|
4
|
-
wb = p.workbook
|
5
|
-
wb.add_styled_cell 'Cell 1'
|
6
|
-
wb.add_styled_cell 'Cell 2'
|
7
|
-
assert_equal ['Cell 1', 'Cell 2'].to_set, wb.styled_cells
|
8
|
-
assert_nil wb.styles_applied
|
9
|
-
end
|
10
|
-
end
|