From be59609b5dac5a0a12e1d142e2a71448339cc482 Mon Sep 17 00:00:00 2001 From: Cyrille David Date: Tue, 16 Jun 2020 14:13:30 +0200 Subject: [PATCH 1/2] Stop publishing to rubygems active-model-adapter-source --- .travis.yml | 6 ------ README.md | 11 ----------- active-model-adapter-source.gemspec | 18 ------------------ bin/release | 2 +- lib/ember/data/active_model/adapter/source.rb | 15 --------------- lib/ember/data/active_model/adapter/version.rb | 12 ------------ 6 files changed, 1 insertion(+), 63 deletions(-) delete mode 100644 active-model-adapter-source.gemspec delete mode 100644 lib/ember/data/active_model/adapter/source.rb delete mode 100644 lib/ember/data/active_model/adapter/version.rb diff --git a/.travis.yml b/.travis.yml index 4aac19b..0fc8fe7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -52,12 +52,6 @@ after_success: before_deploy: - '[[ -d "./dist" ]] || ember build --environment=production' deploy: -- provider: rubygems - gemspec: active-model-adapter-source.gemspec - on: - tags: true - api_key: - secure: X7734CGXXQMAtjScj5Vs+T4G+Axa5FzROKGQM2sP255TUiCnGe3SzPJHmzrkrE/XNSs62tmeHAKCt/dEqJVOpM46Ain9aI+/ETuadMF/ihnS4VnYqzN1+MvhbAvxB++xfb/f+Zw/n7kotH7fIsGdUsaLBiClli/J8/kojh7ueoEVFrUEZIhZ6zl8jCNSGxP7MlQ+IDBXOlNpyRpxnkiPTXUxcoFJjk9lu3+AcX16nU06p4+uscmnboGKZr0cSooRmWBiSRS7GIYBl38bkI8JE20ZCrLe8JdbSgWoA4jpRSgEL6ZuDv7QcOk02pPjii1iEK41gMQgmcun3BEfd3TuJpQPaEv23XCjpCp1xFpG5hKVEXimSjsYFab7Qr8DOLoW3goeoxzZrbbsY1cVEwcMXE2j8433i6dizateQNAwMMTpWQLoRtj83YMxmLcZbouGjTLJavli5Flyin0+lfXXIz/UQb0Hp9xeb70DWRYY6xttApAgay86SBtF3HbTqUMD2I8iEZyqCIEIqzdD10LrL0ZpYu86pFHqj1mrlLXbR78sKcFrwfc02DiQmsDRcVmpwHa2RcpWFIXpa2U2fcmkXuEK7dGdV5MoNujFergbv4KqMW+16ny5FKsCt/G/40obCPNTW7m+7Bww9N3tyD2OJgvWn2/54IT6ONzVwDJH/QQ= - provider: npm email: stanley+ember-data@stan.li on: diff --git a/README.md b/README.md index 100d7b7..2bf7553 100644 --- a/README.md +++ b/README.md @@ -6,17 +6,6 @@ `ember install active-model-adapter` -### Rails - -This gem comes bundled with [Ember -Rails](https://github.com/emberjs/ember-rails). If you want to specify a -specific version in your `Gemfile`, you can reference the -`active-model-adapter-source` gem and it will get loaded by Ember Rails: - -```ruby -gem 'active-model-adapter-source', '~>2.0' # or whatever version you need -``` - ### Bower `bower install --save active-model-adapter` diff --git a/active-model-adapter-source.gemspec b/active-model-adapter-source.gemspec deleted file mode 100644 index 92573fe..0000000 --- a/active-model-adapter-source.gemspec +++ /dev/null @@ -1,18 +0,0 @@ -# -*- encoding: utf-8 -*- -require './lib/ember/data/active_model/adapter/version' - -Gem::Specification.new do |gem| - gem.name = "active-model-adapter-source" - gem.authors = ["Igor Terzic", "Yehuda Katz", "Tom Dale"] - gem.email = ["wycats@gmail.com"] - gem.date = Time.now.strftime("%Y-%m-%d") - gem.summary = %q{active-model-adapter source code wrapper.} - gem.description = %q{ember-data active-model-adapter code wrapper for use with Ruby libs.} - gem.homepage = "https://github.com/ember-data/active-model-adapter" - gem.version = Ember::Data::ActiveModel::Adapter::VERSION - gem.license = "MIT" - - gem.add_dependency "ember-data-source", ">= 1.13", "< 3.0" - - gem.files = %w(package.json) + Dir['dist/active-model*.js'] + Dir['lib/ember/data/**/*.rb'] -end diff --git a/bin/release b/bin/release index a58aeec..c79f658 100755 --- a/bin/release +++ b/bin/release @@ -9,7 +9,7 @@ fi if [[ $? -ne 0 ]]; then echo "this branch is not a release branch, it does not start with 'v'" - echo "not publishing to bower, npm, or rubygems" + echo "not publishing to bower or npm" exit 0 fi diff --git a/lib/ember/data/active_model/adapter/source.rb b/lib/ember/data/active_model/adapter/source.rb deleted file mode 100644 index 259ec22..0000000 --- a/lib/ember/data/active_model/adapter/source.rb +++ /dev/null @@ -1,15 +0,0 @@ -require 'ember/data/active_model/adapter/version' - -module Ember - module Data - module ActiveModel - module Adapter - module Source - def self.bundled_path_for(distro) - File.expand_path("../../../../../../dist/#{distro}", __FILE__) - end - end - end - end - end -end diff --git a/lib/ember/data/active_model/adapter/version.rb b/lib/ember/data/active_model/adapter/version.rb deleted file mode 100644 index 4e88df1..0000000 --- a/lib/ember/data/active_model/adapter/version.rb +++ /dev/null @@ -1,12 +0,0 @@ -require 'json' - -module Ember - module Data - module ActiveModel - module Adapter - package = File.read(File.expand_path('../../../../../../package.json', __FILE__)) - VERSION = JSON.parse(package)['version'].strip.gsub(/[-\+]/, '.') - end - end - end -end From 692cdc6333369d8acab595cf8c48eb94354188da Mon Sep 17 00:00:00 2001 From: Cyrille David Date: Tue, 16 Jun 2020 14:45:15 +0200 Subject: [PATCH 2/2] Add a note in README --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 2bf7553..1b69ae9 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,13 @@ `ember install active-model-adapter` +### Rails + +Prior to v3, this ember addon used to be published on rubygems. + +Indeed, the gem comes bundled with [Ember +Rails](https://github.com/emberjs/ember-rails). + ### Bower `bower install --save active-model-adapter`