Merge pull request #6 from github/rename-again

Rename repo to github-store from github-kv
This commit is contained in:
John Nunemaker 2017-03-17 09:41:17 -04:00 коммит произвёл GitHub
Родитель 3869d3920e 36377dbd81
Коммит f0149a1d1e
12 изменённых файлов: 23 добавлений и 16 удалений

Просмотреть файл

@ -1,7 +1,7 @@
## Contributing
[fork]: https://github.com/github/github-kv/fork
[pr]: https://github.com/github/github-kv/compare
[fork]: https://github.com/github/github-store/fork
[pr]: https://github.com/github/github-store/compare
[style]: https://github.com/styleguide/ruby
[code-of-conduct]: CODE_OF_CONDUCT.md

Просмотреть файл

@ -1,6 +1,6 @@
source "https://rubygems.org"
# Specify your gem's dependencies in github-kv.gemspec
# Specify your gem's dependencies in github-store.gemspec
gemspec
gem "rails", "~> #{ENV['RAILS_VERSION'] || '5.0.2'}"

Просмотреть файл

@ -11,7 +11,7 @@
Add this line to your application's Gemfile:
```ruby
gem 'github-kv'
gem 'github-store'
```
And then execute:
@ -20,7 +20,7 @@ And then execute:
Or install it yourself as:
$ gem install github-kv
$ gem install github-store
## Usage
@ -99,7 +99,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/github/github-kv. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
Bug reports and pull requests are welcome on GitHub at https://github.com/github/github-store. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
## License

Просмотреть файл

@ -1,17 +1,17 @@
# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require "github/kv/version"
require "github/store/version"
Gem::Specification.new do |spec|
spec.name = "github-kv"
spec.version = Github::KV::VERSION
spec.name = "github-store"
spec.version = GitHub::Store::VERSION
spec.authors = ["GitHub Open Source", "John Nunemaker"]
spec.email = ["opensource+github-kv@github.com", "nunemaker@gmail.com"]
spec.email = ["opensource+github-store@github.com", "nunemaker@gmail.com"]
spec.summary = %q{A key/value data store backed by MySQL.}
spec.description = %q{A key/value data store backed by MySQL.}
spec.homepage = "https://github.com/github/github-kv"
spec.homepage = "https://github.com/github/github-store"
spec.license = "MIT"
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'

1
lib/github-store.rb Normal file
Просмотреть файл

@ -0,0 +1 @@
require "github/store"

Просмотреть файл

@ -1,4 +1,3 @@
require "github/kv/version"
require "github/result"
require "github/sql"

7
lib/github/store.rb Normal file
Просмотреть файл

@ -0,0 +1,7 @@
module GitHub
module Store
end
end
require "github/store/version"
require "github/kv"

Просмотреть файл

@ -1,5 +1,5 @@
module Github
class KV
module GitHub
module Store
VERSION = "0.1.0"
end
end

Просмотреть файл

@ -3,7 +3,7 @@ require "rails"
require "rails/test_help"
require "active_record"
require "rails/generators/test_case"
require "generators/github/kv/active_record_generator"
require "generators/github/store/active_record_generator"
class GithubKVActiveRecordGeneratorTest < Rails::Generators::TestCase
tests Github::KV::Generators::ActiveRecordGenerator

Просмотреть файл

@ -12,6 +12,6 @@ ActiveRecord::Base.establish_connection({
})
ActiveRecord::Base.connection.execute("DROP TABLE IF EXISTS `key_values`")
require "generators/github/kv/templates/migration"
require "generators/github/store/templates/migration"
ActiveRecord::Migration.verbose = false
CreateKeyValuesTable.up