Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[7.6.0][CDE] ApiStroke.ToJSON check #1010

Merged
merged 11 commits into from
Jan 22, 2024

Conversation

Yar04ek
Copy link
Contributor

@Yar04ek Yar04ek commented Dec 5, 2023

No description provided.

spec/docx/smoke/api_stroke_spec.rb Outdated Show resolved Hide resolved
js/docx/smoke/api_stroke/to_json.js Outdated Show resolved Hide resolved
@Yar04ek Yar04ek requested a review from askonev December 5, 2023 13:54
@askonev askonev force-pushed the feature/all_object_to_json branch 2 times, most recently from 98ed4b7 to 7a1cee5 Compare December 8, 2023 18:20
@Yar04ek Yar04ek force-pushed the feature/api_stroke_to_json branch 4 times, most recently from 7220336 to 59ea04f Compare December 12, 2023 16:21
spec/docx/smoke/api_stroke_spec.rb Outdated Show resolved Hide resolved
spec/docx/smoke/api_stroke_spec.rb Outdated Show resolved Hide resolved
@Yar04ek Yar04ek requested review from askonev and removed request for askonev December 13, 2023 08:53
spec/docx/smoke/api_stroke_spec.rb Outdated Show resolved Hide resolved
@Yar04ek Yar04ek requested a review from askonev December 14, 2023 10:05
spec/docx/smoke/api_stroke_spec.rb Outdated Show resolved Hide resolved
spec/docx/smoke/api_stroke_spec.rb Outdated Show resolved Hide resolved
spec/docx/smoke/api_stroke_spec.rb Outdated Show resolved Hide resolved
spec/docx/smoke/api_stroke_spec.rb Outdated Show resolved Hide resolved
@Yar04ek Yar04ek requested a review from askonev December 15, 2023 09:13
@Yar04ek Yar04ek force-pushed the feature/api_stroke_to_json branch from c37cf1c to 03fb2d1 Compare December 15, 2023 11:02
spec/docx/smoke/api_stroke_spec.rb Outdated Show resolved Hide resolved
spec/docx/smoke/api_stroke_spec.rb Outdated Show resolved Hide resolved
@Yar04ek Yar04ek requested a review from askonev December 18, 2023 14:37
spec/docx/smoke/api_stroke_spec.rb Outdated Show resolved Hide resolved
spec/docx/smoke/api_stroke_spec.rb Outdated Show resolved Hide resolved
expect(OoxmlParser::Color.new(stroke['fill']['fill']['color']['color']['rgba']['red'],
stroke['fill']['fill']['color']['color']['rgba']['green'],
stroke['fill']['fill']['color']['color']['rgba']['blue']).to_hex.to_sym)
.to eq(OoxmlParser::Color.new(51, 51, 51).to_hex.to_sym)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the conversion to hex of the color object is not required, since we are comparing two color objects, not an color object and a string\symbol

Try using expect(smt).to eql(smt)

a.eql?(b) # object equivalence - a and b have the same value

@askonev askonev force-pushed the feature/all_object_to_json branch 2 times, most recently from d67fc6a to f2d93f3 Compare January 19, 2024 09:55
@askonev askonev force-pushed the feature/api_stroke_to_json branch 3 times, most recently from 013e012 to 95f0208 Compare January 19, 2024 15:41
@askonev askonev force-pushed the feature/api_stroke_to_json branch from 95f0208 to fa5aea8 Compare January 19, 2024 15:43
@askonev askonev requested review from alinasafonova and removed request for alinasafonova January 19, 2024 15:51
@askonev askonev merged commit a73f196 into feature/all_object_to_json Jan 22, 2024
8 checks passed
@askonev askonev deleted the feature/api_stroke_to_json branch January 22, 2024 09:56
askonev pushed a commit that referenced this pull request Feb 27, 2024
* feature: ApiStroke.ToJSON

* ref: ApiStroke.ToJSON

* feature: ApiStroke.ToJSON

* feature: ApiStroke.ToJSON

* ref: ApiStroke.ToJSON

* ref: ApiStroke.ToJSON

* ref: ApiStroke.ToJSON

* ref: ApiStroke.ToJSON

* ref: ApiStroke.ToJSON

* ref: ApiStroke.ToJSON

* ref: ApiStroke.ToJSON
askonev pushed a commit that referenced this pull request Mar 25, 2024
* feature: ApiStroke.ToJSON

* ref: ApiStroke.ToJSON

* feature: ApiStroke.ToJSON

* feature: ApiStroke.ToJSON

* ref: ApiStroke.ToJSON

* ref: ApiStroke.ToJSON

* ref: ApiStroke.ToJSON

* ref: ApiStroke.ToJSON

* ref: ApiStroke.ToJSON

* ref: ApiStroke.ToJSON

* ref: ApiStroke.ToJSON
askonev pushed a commit that referenced this pull request Apr 9, 2024
* feature: ApiStroke.ToJSON

* ref: ApiStroke.ToJSON

* feature: ApiStroke.ToJSON

* feature: ApiStroke.ToJSON

* ref: ApiStroke.ToJSON

* ref: ApiStroke.ToJSON

* ref: ApiStroke.ToJSON

* ref: ApiStroke.ToJSON

* ref: ApiStroke.ToJSON

* ref: ApiStroke.ToJSON

* ref: ApiStroke.ToJSON
askonev pushed a commit that referenced this pull request Jun 11, 2024
* feature: ApiStroke.ToJSON

* ref: ApiStroke.ToJSON

* feature: ApiStroke.ToJSON

* feature: ApiStroke.ToJSON

* ref: ApiStroke.ToJSON

* ref: ApiStroke.ToJSON

* ref: ApiStroke.ToJSON

* ref: ApiStroke.ToJSON

* ref: ApiStroke.ToJSON

* ref: ApiStroke.ToJSON

* ref: ApiStroke.ToJSON
askonev pushed a commit that referenced this pull request Jun 13, 2024
* feature: ApiStroke.ToJSON

* ref: ApiStroke.ToJSON

* feature: ApiStroke.ToJSON

* feature: ApiStroke.ToJSON

* ref: ApiStroke.ToJSON

* ref: ApiStroke.ToJSON

* ref: ApiStroke.ToJSON

* ref: ApiStroke.ToJSON

* ref: ApiStroke.ToJSON

* ref: ApiStroke.ToJSON

* ref: ApiStroke.ToJSON
askonev pushed a commit that referenced this pull request Jun 14, 2024
* feature: ApiStroke.ToJSON

* ref: ApiStroke.ToJSON

* feature: ApiStroke.ToJSON

* feature: ApiStroke.ToJSON

* ref: ApiStroke.ToJSON

* ref: ApiStroke.ToJSON

* ref: ApiStroke.ToJSON

* ref: ApiStroke.ToJSON

* ref: ApiStroke.ToJSON

* ref: ApiStroke.ToJSON

* ref: ApiStroke.ToJSON
askonev added a commit that referenced this pull request Jun 18, 2024
* Paragraph to json

* Run to json

* * Hyperlink to json
* Range to json

* * DocContent to json

* * Table to json

* [ref] ref api_hyperlink/to_json.js

* * Style to json

* [ref] DocContent to json

* [ref] DocContent. BlockLvlSdt & Table check

* ref: yardoc fix rule

* fix: unify static data for specs

* fix: ApiDocumentContent.ToJSON expected custom name

* [7.6.0][CDE] ApiRGBColor.ToJSON check (#997)

* feature: Fill.ToJSON (#1008)

* revert: TestData (#1009)

* [7.6.0][CDE] ApiUniColor.ToJSON check  (#1015)

* feature: ApiUniColor.ToJSON

* ref: ApiUniColor.ToJSON

* ref: ApiUniColor.ToJSON

* ref: ApiUniColor.ToJSON

* ref: ApiUniColor.ToJSON

* [7.6.0][CDE] ApiGradientStop.ToJSON check (#1014)

* feature: ApiGradientStop.ToJSON

* ApiGradientStop.ToJSON

* [7.6.0][CDE] ApiStroke.ToJSON check (#1010)

* feature: ApiStroke.ToJSON

* ref: ApiStroke.ToJSON

* feature: ApiStroke.ToJSON

* feature: ApiStroke.ToJSON

* ref: ApiStroke.ToJSON

* ref: ApiStroke.ToJSON

* ref: ApiStroke.ToJSON

* ref: ApiStroke.ToJSON

* ref: ApiStroke.ToJSON

* ref: ApiStroke.ToJSON

* ref: ApiStroke.ToJSON

* [8.0.0][CDE] Document.ToJSON

* [8.1][CDE] InlineLvlSdt.ToJSON

* fix: 66725

* fix: ApiTable.ToJSON

* [8.1][CDE] BlockLvlSdt.ToJSON()

* [8.1][CDE] TablePr.ToJSON()

* [8.1][CDE] TableRowPr.ToJSON()

* [8.1][CDE] TableCellPr.ToJSON()

* [8.1][CDE] TableStylePr.ToJSON()

* [8.1][CDE] TableCell.ToJSON()

* [8.1][CDE] TableRow.ToJSON()

* [8.1][CDE] Drawing.ToJSON()

* [8.1][CDE] SchemeColor.ToJSON()

* [8.1][CDE] ApiPresetColor.ToJSON()

* Revert "[8.1][CDE] BlockLvlSdt.ToJSON()"

This reverts commit 68db03d.

* [8.1][CDE] ApiParaPr.ToJSON()

* [8.1] remove doc-builder-static-data

* [8.1] skip renamed CDE style

* ref: default_styles order & doc_builder_testing require order

* info: coverage

---------

Co-authored-by: Yarosalv Maslov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants