diff --git a/Gemfile.lock b/Gemfile.lock index eadbc354..644a9cfa 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -45,13 +45,12 @@ GIT GIT remote: git://github.com/travis-ci/travis-core.git - revision: 866ae05c2348d512b0e1571136ad770fd0fb8b4b + revision: 0b46e3bc59c18be16a292f1d3b5cbe3f4e8bb7d3 specs: travis-core (0.0.1) actionmailer (~> 3.2.19) activerecord (~> 3.2.19) coder (~> 0.4.0) - coercible (~> 1.0.0) data_migrations (~> 0.0.1) gh hashr (~> 0.0.19) @@ -65,6 +64,7 @@ GIT s3 (~> 0.3) simple_states (~> 1.0.0) thor (~> 0.14.6) + virtus (~> 1.0.0) GIT remote: git://github.com/travis-ci/travis-sidekiqs.git @@ -142,6 +142,10 @@ GEM arel (3.0.3) atomic (1.1.16) avl_tree (1.1.3) + axiom-types (0.1.1) + descendants_tracker (~> 0.0.4) + ice_nine (~> 0.11.0) + thread_safe (~> 0.3, >= 0.3.1) backports (2.8.2) builder (3.0.4) bunny (0.8.0) @@ -163,6 +167,7 @@ GEM thread_safe (~> 0.3, >= 0.3.1) diff-lcs (1.2.5) dotenv (0.7.0) + equalizer (0.0.9) erubis (2.7.0) eventmachine (1.0.3) facter (2.1.0) @@ -185,8 +190,9 @@ GEM hashie (3.1.0) hashr (0.0.22) hike (1.2.3) - hitimes (1.2.1) - i18n (0.6.9) + hitimes (1.2.2) + i18n (0.6.11) + ice_nine (0.11.0) journey (1.0.4) json (1.8.1) kgio (2.9.2) @@ -302,12 +308,17 @@ GEM treetop (1.4.15) polyglot polyglot (>= 0.3.1) - tzinfo (0.3.39) + tzinfo (0.3.40) unicorn (4.8.3) kgio (~> 2.6) rack raindrops (~> 0.7) uuidtools (2.1.4) + virtus (1.0.2) + axiom-types (~> 0.1) + coercible (~> 1.0) + descendants_tracker (~> 0.0.3) + equalizer (~> 0.0.9) yard (0.8.7.4) PLATFORMS diff --git a/lib/travis/api/app/endpoint/repos.rb b/lib/travis/api/app/endpoint/repos.rb index b6be002c..1f28645c 100644 --- a/lib/travis/api/app/endpoint/repos.rb +++ b/lib/travis/api/app/endpoint/repos.rb @@ -64,7 +64,7 @@ class Travis::Api::App settings.merge(payload['settings']) # TODO: I would like to have better API here, but leaving this # for testing to not waste too much time before I can play with it - settings.repository.save + settings.save respond_with({ settings: settings.obfuscated }, version: :v2) else status 404