- 15 Jan, 2020 2 commits
-
-
Shu Fujita authored
As the change log shows, I froze the constant `HEADER_ROW` in accordance with the normal Ruby style regulation.
-
Shu Fujita authored
I added `AnnotateModels::MAGIC_COMMENT_MATCHER` and `AnnotateRoutes::MAGIC_COMMENT_MATCHER` instad of `AnnotateModels.magic_comment_matcher` and `AnnotateRoutes.magic_comment_matcher`. I think that they should be constants because the result of Regexp is always fixed.
-
- 06 Jan, 2020 2 commits
-
-
Shu Fujita authored
Before I commited, the method `AnnotateRoutes.where_header_found` returned an array of `real_content` and `header_found_at`. I fixed the name of method and variable because they did not match. I renamed the method `real_content_and_header_position` and unified related variable names to `header_position`.
-
Andrew W. Lee authored
The integration tests require RVM to run. Without them they can't run. Added Dockerfile to make it easier to run the project in an isolated environment.
-
- 30 Dec, 2019 1 commit
-
-
Andrew W. Lee authored
This change converts .all_options into a constant and moves it into Annotate::Constants. It also changes usages of .all_options.
-
- 18 Dec, 2019 5 commits
-
-
naari3 authored
Replace soft-deprecated constant `HashWithIndifferentAccess` to `ActiveSupport::HashWithIndifferentAccess` (#699)
-
Andrew W. Lee authored
Removing `TODO.md` as prior to renaming it hasn't been touched in 5 years. See https://github.com/ctran/annotate_models/commits/v3.0.3/TODO.rdoc
-
Alexander Belozerov authored
-
Andrew W. Lee authored
* Fix instances of `additional file patterns` in README Other CLI flags are using dash, so using `--additional-file-patterns` notation to keep it similar to others. * Tidy: Replace `*` with `*` Doing some tidying now that we switched from RDoc to markdown.
-
inkstak authored
Same problem returned by @janosrusiczki in #430 Spatial columns with activerecord-postgis-adapter (5.2.2) are not displayed nice ``` # name :string(3) # active :boolean default(FALSE), not null # geom :geometry({:srid= geometry, 4326 ``` That's come from activerecord-postgis-adapter, with redefined columns as such : ``` #<ActiveRecord::ConnectionAdapters::PostGIS::SpatialColumn @sql_type="geometry(Geometry,4326)", @geo_type="Geometry", @geometric_type=RGeo::Feature::Geometry, @srid=4326, @limit={:srid=>4326, :type=>"geometry"} [...] > ``` This fix displays them like this : ``` # name :string(3) # active :boolean default(FALSE), not null # geometry :geometry geometry, 4326 ``` Another possibility would have been to display them as below, but it involves a lot of extra-spaces for other columns. ``` # name :string(3) # active :boolean default(FALSE), not null # geometry :geometry(Geometry, 4326) ```
-
- 17 Dec, 2019 2 commits
-
-
Vasily Fedoseyev authored
* Convert documentation files to Markdown * Add notice about models not being annotated by default to changelog in 3.0
-
Andrew W. Lee authored
Looks like it's breaking in Github CI because Ruby 2.3.X is no longer supported by `actions/setup-ruby@v1`. Ruby 2.3.X has stopped being supported since March of 2019, so I've removed Ruby 2.3.X versions from both Github and Travis CI. It's also breaking in Travis CI because it's timing out in an interactive prompt when trying to do `gem update --system`. This is due to changes to [Ruby Gems 3.1.1](https://github.com/rubygems/rubygems/issues/3036). This has been fixed. Failing Github CI build: https://github.com/ctran/annotate_models/runs/335456181 Failing Travis build: https://api.travis-ci.org/v3/job/625759725/log.txt
-
- 02 Dec, 2019 3 commits
-
-
Daniel Rice authored
ActiveAdmin defaults to false. Add `active_admin` option so people using this gem can more easily enable annotating files in `app/admin`.
-
Hrvoje Šimić authored
Rails 6 has dropped name from ActiveRecord::ConnectionAdapters::ForeignKeyDefinition for Sqlite3 adapter: https://github.com/rails/rails/blob/f2df77709f7e536aaf4d6f984ff21a49d44d34c1/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb\#L305-L311 This has caused issues with getting foreign key info and blowing up when trying to annotate models with foreign keys. This commit adds one additional check for name presence and uses column attribute from options instead. Closes #620.
-
Andrew W. Lee authored
Updates the readme to include a note about upgrading the gem to version 3 and that it can default to doing nothing.
-
- 09 Nov, 2019 9 commits
-
-
Matías Orellana authored
-
Alexander Belozerov authored
-
Alexander Belozerov authored
-
Kyle Zhao authored
-
hasimoto1009 authored
-
Andrew W. Lee authored
Reverted tag to to use `v*` prefix instead of `release/v*`.
-
Andrew W. Lee authored
-
Andrew W. Lee authored
-
dependabot[bot] authored
Bumps [loofah](https://github.com/flavorjones/loofah) from 2.3.0 to 2.3.1. - [Release notes](https://github.com/flavorjones/loofah/releases) - [Changelog](https://github.com/flavorjones/loofah/blob/master/CHANGELOG.md) - [Commits](https://github.com/flavorjones/loofah/compare/v2.3.0...v2.3.1) Signed-off-by: dependabot[bot] <support@github.com>
-
- 31 Oct, 2019 1 commit
-
-
rhiroshi authored
Setting the default to annotate models as it is the main feature of the gem
-
- 06 Oct, 2019 1 commit
-
-
Cuong Tran authored
-
- 05 Oct, 2019 4 commits
-
-
Cuong Tran authored
-
Cuong Tran authored
-
Matt Brictson authored
Based on the official docs: https://help.github.com/en/articles/configuring-a-workflow#adding-a-workflow-status-badge-to-your-repository
-
Cuong Tran authored
-
- 03 Oct, 2019 1 commit
-
-
Cuong Tran authored
-
- 02 Oct, 2019 2 commits
-
-
dependabot[bot] authored
Bumps [nokogiri](https://github.com/sparklemotion/nokogiri) from 1.6.6.2 to 1.10.4. - [Release notes](https://github.com/sparklemotion/nokogiri/releases) - [Changelog](https://github.com/sparklemotion/nokogiri/blob/master/CHANGELOG.md) - [Commits](https://github.com/sparklemotion/nokogiri/compare/v1.6.6.2...v1.10.4) Signed-off-by: dependabot[bot] <support@github.com>
-
dependabot-preview[bot] authored
Updates the requirements on [rake](https://github.com/ruby/rake) to permit the latest version. - [Release notes](https://github.com/ruby/rake/releases) - [Changelog](https://github.com/ruby/rake/blob/master/History.rdoc) - [Commits](https://github.com/ruby/rake/compare/v10.4.0...v13.0.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
-
- 01 Oct, 2019 1 commit
-
-
Matt Brictson authored
Before, whenever a new file is added to `lib`, the contributor or maintainer has to remember to explicitly add it to the gemspec. If this step is forgotten, it results in a broken release, like #657. This commit makes this process less error prone by using `git ls-files` to automatically include all appropriate files in the gem. This is in line with what is advocated by Bundler's gem template: https://github.com/bundler/bundler/blob/2a4d88a7044528209321fd4441e995ec66f604b9/lib/bundler/templates/newgem/newgem.gemspec.tt#L26
-
- 30 Sep, 2019 1 commit
-
-
Andrew W. Lee authored
Add opening parenthesis
-
- 29 Sep, 2019 3 commits
-
-
Andrew W. Lee authored
-
Andrew W. Lee authored
-
Martins Polakovs authored
Currently the gem released as version 3.0.0 is broken. Fixes #657 The gem is missing constants.rb and parser.rb file
-
- 28 Sep, 2019 1 commit
-
-
Andrew W. Lee authored
Changed references to `--additional_file_patterns` to be `--additional-file-patterns` to make it consistent with other flags.
-
- 27 Sep, 2019 1 commit
-
-
Cuong Tran authored
-