Skip to content
This repository has been archived by the owner on Dec 20, 2023. It is now read-only.

Liquid #30

Merged
merged 141 commits into from
Sep 14, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
141 commits
Select commit Hold shift + click to select a range
f26609f
refact gyro to generate json and create liquid script to generate mod…
StevenWatremez Apr 12, 2017
31f3e2a
change spec for better visualisation
StevenWatremez Apr 12, 2017
e39e230
manage templates and file system
StevenWatremez Apr 12, 2017
8509a93
integrate liquid generator inside gyro
StevenWatremez Apr 13, 2017
24e7c88
manage comments
StevenWatremez Apr 13, 2017
0fef9ea
improve loop to write non empty output
StevenWatremez Apr 13, 2017
29b2c32
add --param option for gyro cli
StevenWatremez Apr 13, 2017
3ed3d46
Manage default template with -t
StevenWatremez Apr 13, 2017
f53ccab
improve spec tests with array
StevenWatremez Apr 13, 2017
d6c70b8
add rspec for liquid generation
StevenWatremez Apr 14, 2017
21a10a7
add realm test for liquid template.
StevenWatremez Apr 15, 2017
822d308
manage fixtures with 2 spaces for indentations
StevenWatremez Apr 16, 2017
0769eea
improve gyro cli and error messages
StevenWatremez Apr 17, 2017
0afca38
manage json_key_path for attributes/relationships/enums
StevenWatremez Apr 17, 2017
5fbf974
Revert "manage json_key_path for attributes/relationships/enums"
StevenWatremez Apr 17, 2017
c6da6c3
add object mapper and Decodable template
StevenWatremez Apr 17, 2017
e801dbc
improve gyro --template command line treatment
StevenWatremez Apr 18, 2017
e22e77f
manage swift3 templates with Digiposte+ project
StevenWatremez Apr 18, 2017
feaea5e
update object mapper template to match with existing generation
StevenWatremez Apr 18, 2017
9004b1d
re add android command line
StevenWatremez Apr 18, 2017
6c7a59f
fix bad behaviour for android generation and clean code inside gyro b…
StevenWatremez Apr 18, 2017
2abb4be
update fixtures for liquid TU
StevenWatremez Apr 20, 2017
42c354a
remove unused code
StevenWatremez Apr 20, 2017
b9fb0ac
rename templates
StevenWatremez Apr 20, 2017
e89d729
fix bad condition for json key
StevenWatremez Apr 20, 2017
2c45945
remove useless type interpolation
StevenWatremez Apr 20, 2017
1ceb20a
add wip java template
StevenWatremez Apr 26, 2017
8f711e9
finalize java template
StevenWatremez Apr 26, 2017
d8a1c2d
improve android template. wip.
StevenWatremez Apr 28, 2017
7c968c1
fix gemspec error
StevenWatremez May 2, 2017
1a4c6d2
Fixed gem dependencies
May 2, 2017
8082028
Add patch for whitespace support in Liquid 3 :)
AliSoftware May 2, 2017
c02c6d0
Fix the algorithm searching for templates in the data/templates dir
AliSoftware May 2, 2017
36d8b7c
Generate a clean error when the output dir does not exist (instead of…
AliSoftware May 2, 2017
baaf39a
[rubocop] Replace License Block-Comments with standard comments
AliSoftware May 2, 2017
73a6ddd
[rubocop] Additional style fixes
AliSoftware May 2, 2017
ab2de43
[Rubocop] Fix alias_method
AliSoftware May 2, 2017
e031b3b
[Rubocop] Style/AlignHash rule + Style/BracesAroundHashParameters
AliSoftware May 2, 2017
480951e
[rubocop] Use `delete` or `tr` instead of `gsub` ; + lines too long
AliSoftware May 2, 2017
0dfddcc
[rubocop] And/Or style
AliSoftware May 2, 2017
4ee0846
[rubocop] case indentation
AliSoftware May 2, 2017
0d5ca1a
[Rubocop] Style/ColonMethodCall
AliSoftware May 2, 2017
2efb7a2
[Rubocop] Style/ConditionalAssignment
AliSoftware May 2, 2017
6fd61d9
[Rubocop] Style/DotPosition
AliSoftware May 2, 2017
d93f951
[Rubocop] Style/EmptyLineBetweenDefs + Style/EmptyLines
AliSoftware May 2, 2017
6a32d44
[Rubocop] Style: Empty Lines
AliSoftware May 2, 2017
886786d
[Rubocop] Style/EmptyLiteral
AliSoftware May 2, 2017
410ba87
[rubocop] Indentation
AliSoftware May 2, 2017
a9fa424
[rubocop] freeze constants
AliSoftware May 2, 2017
7ba50fb
[rubocop] avoid semicolons
AliSoftware May 2, 2017
c680a2f
[rubocop] Fix spaces
AliSoftware May 2, 2017
742ac1f
Remove $LOAD_PATH.unshft(lib) in spec_helper
AliSoftware May 2, 2017
e85ee80
[Rubocop] Style/StringLiterals
AliSoftware May 2, 2017
63194b7
[Rubocop] Style/TrailingBlankLines + Style/TrailingWhitespace
AliSoftware May 2, 2017
7581737
[rubocop] Unneeded %q & Proc/block
AliSoftware May 2, 2017
a2b649c
[rubocop] Naming + Array literals
AliSoftware May 2, 2017
4e9c7c4
[Rubocop] Replace unless…else with if…else inverted logic
AliSoftware May 2, 2017
5015f78
Fix "has_number_attribute?" for readability
AliSoftware May 2, 2017
811531d
[rubocop] Use `next` when appropriate instead of big `if` blocks
AliSoftware May 2, 2017
37b342a
[Rubocop] Useless return
AliSoftware May 2, 2017
b00c901
Methods & Modules Documentation
AliSoftware May 2, 2017
fc8a98f
manage templates to match with whitespace support workaround
StevenWatremez May 7, 2017
755b1d2
manage and test androi templates with SmartAssistan
StevenWatremez May 7, 2017
9603196
move filters inside a specific file
StevenWatremez May 7, 2017
c8f8bd5
refact initializer methods for LiquidGen
StevenWatremez May 7, 2017
b59e9ef
improve documentation definition inside gemspec
StevenWatremez May 7, 2017
9646732
move templates from data to lib folder
StevenWatremez May 7, 2017
2b385d3
refact methods for LiquidGen file
StevenWatremez May 7, 2017
b83b39e
delete android cli
StevenWatremez May 7, 2017
cbf9cd2
remove require for android gen and remove unsuse cli options
StevenWatremez May 7, 2017
fb8c3f3
improve android templates
StevenWatremez May 14, 2017
01aa9c4
implement code review feedbacks
StevenWatremez May 14, 2017
67c879e
manage fixtures
StevenWatremez May 23, 2017
25c5f53
Fix Android UnitTests
TomTom-Fr May 29, 2017
5b3359f
Add “\v” and liquid patch
TomTom-Fr May 29, 2017
3a1a116
Add second ignore attribut for TU
TomTom-Fr May 29, 2017
fc0786f
Rename primitive with isPrimitives
TomTom-Fr May 30, 2017
a935619
Use “|” separator (previous : “,”)
TomTom-Fr May 30, 2017
d38786b
Review liquid templates loading
TomTom-Fr May 30, 2017
3c6f510
Convert load_template into private class method
TomTom-Fr May 30, 2017
0d04062
Log error if filename template contains return line
TomTom-Fr May 31, 2017
22e34be
Remove previous templates (used before rename)
TomTom-Fr May 31, 2017
60a8f10
Review indentation in generator.rb
TomTom-Fr May 31, 2017
44746f9
Use if instead of unless !
TomTom-Fr May 31, 2017
5eeecee
Add -i and -l cmd
TomTom-Fr Jun 2, 2017
71a2c45
Fix Usage for --list & --info
AliSoftware Jun 2, 2017
69d277e
Fix Gyro::Infos & moved it to Gyro::LiquidGen::Infos
AliSoftware Jun 2, 2017
c3b8baf
Fix issue in "-i" with path
AliSoftware Jun 2, 2017
f749d4d
Improved help
AliSoftware Jun 2, 2017
f89876a
Reorganize the parsers directory
AliSoftware Jun 2, 2017
03cba49
Rename Gyro::Parsers to Gyro::Parser
AliSoftware Jun 2, 2017
41ad0cc
Move Json::Generator to Generator::Json
AliSoftware Jun 2, 2017
2db6456
Rename Gyro::LiquidGen::Infos to Gyro::Template (+ move some function…
AliSoftware Jun 3, 2017
477b472
Move class definitions inside the folder to keep top-level .rb file o…
AliSoftware Jun 3, 2017
ddfc364
Cleanup: remove utils/string_xcdatamoel.rb (mainly unused, except for…
AliSoftware Jun 3, 2017
df3be88
Remove utils/file_utils.rb
AliSoftware Jun 3, 2017
b615d33
Add missing copyright notices
AliSoftware Jun 3, 2017
9c65bc5
Reorganize/Rename modules in generator/liquid (filters + whitespace-p…
AliSoftware Jun 3, 2017
3ea5f17
Get rid of utils/ directory, reorg Logs & Error
AliSoftware Jun 3, 2017
d0be2e8
Improve usage wording
AliSoftware Jun 3, 2017
17aecdb
More lenient dependency on nokogiri
AliSoftware Jun 3, 2017
4e2b96c
Bump Gyro version to 1.0.0
AliSoftware Jun 3, 2017
742fa94
Improve error handling of OptionParser
AliSoftware Jun 3, 2017
48cffd2
#21 🤖 First cleanup: 67% of offenses fixed!
AliSoftware Jun 3, 2017
1ab2b6a
Continue 🤖 rubocop fixes. Down to 59 offenses
AliSoftware Jun 4, 2017
06cc52d
Fix specs
AliSoftware Jun 4, 2017
d3d39ed
#21 🤖 - Fix "string % [args]" to use string interpolation instead
AliSoftware Jun 4, 2017
7a1d004
#21 🤖 - Fix "is_xx?" / "has_xx?" property names to drop "is_"/"has_" …
AliSoftware Jun 4, 2017
7085ff5
#21 🤖 - Avoid shadowing variables + proper private for load_template
AliSoftware Jun 4, 2017
34fc34a
#21 🤖 - Avoid class instances for modules
AliSoftware Jun 4, 2017
6f39b8b
#21 🤖 - Style/GuardClause
AliSoftware Jun 4, 2017
f1f47f2
Fix modules & classes documentation
AliSoftware Jun 4, 2017
54e6950
#21 🤖 - Metrics/AbcSize
AliSoftware Jun 4, 2017
d14fdc5
#21 🤖 - Fix last Metrics/AbcSize offenses in specs
AliSoftware Jun 4, 2017
d0d091d
Remove unused methods prompt + read_char in Log.rb
AliSoftware Jun 4, 2017
91ae2fa
#21 🤖 - Fix Metrics/MethodLength
AliSoftware Jun 4, 2017
d2f686a
#21 🤖 - Shoten the entity.rb class, lower the Metrics/ClassLength thr…
AliSoftware Jun 4, 2017
7a06338
Add rubocop verson to Gemfile
AliSoftware Jun 4, 2017
a50884e
Add rubocop step to circle.yml
AliSoftware Jun 4, 2017
17766a1
#21 🤖 - Fix last rubocop offenses (with latest rubocop version)
AliSoftware Jun 4, 2017
f32fa1e
nitpickings
AliSoftware Jun 4, 2017
109a50d
Improve templates
Jun 23, 2017
0aea528
Revert "Improve templates"
Jun 26, 2017
d1109b4
workaround when template has no .liquid required file
StevenWatremez Sep 10, 2017
ff8d7e6
update readme with right cli
StevenWatremez Sep 11, 2017
7920d7e
fix ignored properties construction
StevenWatremez Sep 11, 2017
81437f1
fix inverse relationships rawValue contruction
StevenWatremez Sep 11, 2017
379b245
update README
StevenWatremez Sep 12, 2017
9057be0
fix .value for enum attribute with integer_64 type define inside xcda…
StevenWatremez Sep 12, 2017
85aa15f
Improve template android (#25)
bmarty Sep 12, 2017
d405b2b
improve decodable template for date transformer
StevenWatremez Sep 13, 2017
a15a097
fix warnings for single trailing line
StevenWatremez Sep 13, 2017
bf76e5e
improve object mapper template for tranformers
StevenWatremez Sep 13, 2017
250b061
clean decodable template
StevenWatremez Sep 13, 2017
c5c533c
improve decodable template for transformers
StevenWatremez Sep 13, 2017
189b1d5
fix circle ci build failed #31 : single quote for simple string
StevenWatremez Sep 13, 2017
3e29dc8
update readme for templates and root
StevenWatremez Sep 13, 2017
a774b28
fix readme problem
StevenWatremez Sep 13, 2017
be10267
remove line inside readme for presentation
StevenWatremez Sep 13, 2017
8bf526c
fix bad format for markdown
StevenWatremez Sep 13, 2017
13be276
Doc typo
AliSoftware Sep 14, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
--color
--require spec_helper
--format d
11 changes: 11 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# If you use `rubocop --auto-gen-config, you might want to then uncomment the following line
# inherit_from: .rubocop_todo.yml

Metrics/ClassLength:
Max: 150

Metrics/LineLength:
Max: 120

Metrics/BlockLength:
Max: 80
3 changes: 2 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
source 'https://rubygems.org'

gem 'nokogiri'
gemspec

group :test do
gem 'rspec'
gem 'rubocop', '~> 0.47'
end
60 changes: 43 additions & 17 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,30 +1,56 @@
PATH
remote: .
specs:
gyro (1.0.0)
liquid (~> 3.0)
nokogiri (~> 1.6.8)

GEM
remote: https://rubygems.org/
specs:
diff-lcs (1.2.5)
mini_portile (0.6.2)
nokogiri (1.6.6.2)
mini_portile (~> 0.6.0)
rspec (3.3.0)
rspec-core (~> 3.3.0)
rspec-expectations (~> 3.3.0)
rspec-mocks (~> 3.3.0)
rspec-core (3.3.2)
rspec-support (~> 3.3.0)
rspec-expectations (3.3.1)
ast (2.3.0)
diff-lcs (1.3)
liquid (3.0.6)
mini_portile2 (2.1.0)
nokogiri (1.6.8.1)
mini_portile2 (~> 2.1.0)
parallel (1.11.2)
parser (2.4.0.0)
ast (~> 2.2)
powerpack (0.1.1)
rainbow (2.2.2)
rake
rake (12.0.0)
rspec (3.6.0)
rspec-core (~> 3.6.0)
rspec-expectations (~> 3.6.0)
rspec-mocks (~> 3.6.0)
rspec-core (3.6.0)
rspec-support (~> 3.6.0)
rspec-expectations (3.6.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.3.0)
rspec-mocks (3.3.2)
rspec-support (~> 3.6.0)
rspec-mocks (3.6.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.3.0)
rspec-support (3.3.0)
rspec-support (~> 3.6.0)
rspec-support (3.6.0)
rubocop (0.49.1)
parallel (~> 1.10)
parser (>= 2.3.3.1, < 3.0)
powerpack (~> 0.1)
rainbow (>= 1.99.1, < 3.0)
ruby-progressbar (~> 1.7)
unicode-display_width (~> 1.0, >= 1.0.1)
ruby-progressbar (1.8.1)
unicode-display_width (1.2.1)

PLATFORMS
ruby

DEPENDENCIES
nokogiri
gyro!
rspec
rubocop (~> 0.47)

BUNDLED WITH
1.14.5
1.13.7
Loading