fishplate 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: daadda8ec5492f0cb94a233c0733a800852be05788cdca2448e4de7b7242ac49
4
- data.tar.gz: 3e1a55891a80d8c898159908a8de764d456fe4631f6745ad0f00d46f77cdda95
3
+ metadata.gz: bc82b1d36ec2b2e3d106d611c7bebd880d3ea0005ee1e2b17e45287c058d36ed
4
+ data.tar.gz: c141461a5c19ecee5b0181d25d6de2f73e7b3c0f6dbf240d67095aa64b2fecd6
5
5
  SHA512:
6
- metadata.gz: e28873cd8f588b2ddbb129cbdf2f737ade0e6ab9ed69c31906e0983e5f1cb4f58d439ceab449a1188fbd56a8c9451dd5032cf76fc402f274a3cdc199bc83f4ef
7
- data.tar.gz: 71a3354b5dac1dad2250936fcae71cefb67d6a7b40c539a5e6041d7126a01ddea0bdb14ef41b847f4e7745e2c09c0300604d1069b74f3dd3930f15720237a66c
6
+ metadata.gz: e4e89fbd06dccfd57754540781ae861378b5909d98f53080c6610ad782a50d9d00897b77874c00dd2544c4532a2a04514350ed9720bb423820ddb92c9610d326
7
+ data.tar.gz: 3f2b50c2fe51cd18c8cd3ac1cb1a35c054c98485c79a862634c28b0643fae0cf4d26bd87bc6e734f75ecab79f668ccf8ca655676a44f66d766a334bde45fa737
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fishplate (0.2.1)
5
- a9n (>= 0.9.1)
4
+ fishplate (0.2.2)
5
+ a9n (~> 0.10)
6
6
  activemodel
7
7
  activerecord
8
8
  activesupport
@@ -13,17 +13,17 @@ GEM
13
13
  remote: https://rubygems.org/
14
14
  specs:
15
15
  a9n (0.10.0)
16
- activemodel (6.0.0)
17
- activesupport (= 6.0.0)
18
- activerecord (6.0.0)
19
- activemodel (= 6.0.0)
20
- activesupport (= 6.0.0)
21
- activesupport (6.0.0)
16
+ activemodel (6.0.1)
17
+ activesupport (= 6.0.1)
18
+ activerecord (6.0.1)
19
+ activemodel (= 6.0.1)
20
+ activesupport (= 6.0.1)
21
+ activesupport (6.0.1)
22
22
  concurrent-ruby (~> 1.0, >= 1.0.2)
23
23
  i18n (>= 0.7, < 2)
24
24
  minitest (~> 5.1)
25
25
  tzinfo (~> 1.1)
26
- zeitwerk (~> 2.1, >= 2.1.8)
26
+ zeitwerk (~> 2.2)
27
27
  ast (2.4.0)
28
28
  coderay (1.1.2)
29
29
  concurrent-ruby (1.1.5)
@@ -40,7 +40,7 @@ GEM
40
40
  coderay (~> 1.1.0)
41
41
  method_source (~> 0.9.0)
42
42
  rainbow (3.0.0)
43
- rake (13.0.0)
43
+ rake (13.0.1)
44
44
  rspec (3.9.0)
45
45
  rspec-core (~> 3.9.0)
46
46
  rspec-expectations (~> 3.9.0)
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Fishplate
2
2
 
3
- Fishplate is a library allowing running ActiveRecord without Railties
3
+ Fishplate is a library to run `ActiveRecord` without `railties` gem
4
4
 
5
5
  ![fishplate](https://upload.wikimedia.org/wikipedia/commons/thumb/4/42/Fishplate_UK_2006.jpg/440px-Fishplate_UK_2006.jpg "Fishplate")
6
6
 
@@ -37,6 +37,42 @@ To load rake tasks, add to your `Rakefile`:
37
37
  Fishplate.load_tasks
38
38
  ```
39
39
 
40
+ Available rake tasks are:
41
+ ```
42
+ rake console # Run application console
43
+ rake generate:migration[name] # Generate new migration with name given, e.g
44
+
45
+ rake db:create # Creates the database from DATABASE_URL or config/database.yml for the current RAILS_ENV (use db:create:all to create all databases in the config). Wi...
46
+ rake db:drop # Drops the database from DATABASE_URL or config/database.yml for the current RAILS_ENV (use db:drop:all to drop all databases in the config). Without ...
47
+ rake db:environment:set # Set the environment value for the database
48
+ rake db:fixtures:load # Loads fixtures into the current environment's database
49
+ rake db:migrate # Migrate the database (options: VERSION=x, VERBOSE=false, SCOPE=blog)
50
+ rake db:migrate:status # Display status of migrations
51
+ rake db:prepare # Runs setup if database does not exist, or runs migrations if it does
52
+ rake db:rollback # Rolls the schema back to the previous version (specify steps w/ STEP=n)
53
+ rake db:schema:cache:clear # Clears a db/schema_cache.yml file
54
+ rake db:schema:cache:dump # Creates a db/schema_cache.yml file
55
+ rake db:schema:dump # Creates a db/schema.rb file that is portable against any DB supported by Active Record
56
+ rake db:schema:load # Loads a schema.rb file into the database
57
+ rake db:seed # Loads the seed data from db/seeds.rb
58
+ rake db:seed:replant # Truncates tables of each database for current environment and loads the seeds
59
+ rake db:setup # Creates the database, loads the schema, and initializes with the seed data (use db:reset to also drop the database first) / Setup database
60
+ rake db:structure:dump # Dumps the database structure to db/structure.sql
61
+ rake db:structure:load # Recreates the databases from the structure.sql file
62
+ rake db:version # Retrieves the current schema version number
63
+ ```
64
+
65
+ When `rubocop` is available:
66
+ ```
67
+ rake rubocop # Run RuboCop
68
+ rake rubocop:auto_correct # Auto-correct RuboCop offenses
69
+ ```
70
+
71
+ When `rspec` is available:
72
+ ```
73
+ rake spec # Run RSpec code examples
74
+ ```
75
+
40
76
  ## Contributing
41
77
 
42
78
  Bug reports and pull requests are welcome on GitHub at https://github.com/RenoFi/fishplate. 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.
data/fishplate.gemspec CHANGED
@@ -16,7 +16,7 @@ Gem::Specification.new do |spec|
16
16
  spec.metadata['source_code_uri'] = 'https://github.com/RenoFi/fishplate'
17
17
 
18
18
  spec.files = Dir.chdir(__dir__) do
19
- `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
19
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(bin|spec|features)/}) }
20
20
  end
21
21
  spec.bindir = 'exe'
22
22
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
24
24
 
25
25
  spec.required_ruby_version = '>= 2.6'
26
26
 
27
- spec.add_dependency 'a9n', '>= 0.9.1'
27
+ spec.add_dependency 'a9n', '~> 0.10'
28
28
  spec.add_dependency 'activemodel'
29
29
  spec.add_dependency 'activerecord'
30
30
  spec.add_dependency 'activesupport'
@@ -20,7 +20,7 @@ end
20
20
  desc "Setup database"
21
21
  task "db:setup" => ["fail_if_prod", "db:create", "db:schema:load"]
22
22
 
23
- desc "Generate new migration with name given, e.g. rake generate:migration[CreateUsers]"
23
+ desc "Generate new migration with name given, example: rake generate:migration[CreateUsers]"
24
24
  namespace :generate do
25
25
  task :migration, [:name] do |name, args|
26
26
  klass = args[:name].gsub('-','_').camelize
@@ -1,3 +1,3 @@
1
1
  module Fishplate
2
- VERSION = "0.2.1".freeze
2
+ VERSION = "0.2.2".freeze
3
3
  end
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fishplate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Krzysztof Knapik
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-11-05 00:00:00.000000000 Z
11
+ date: 2019-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: a9n
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.9.1
19
+ version: '0.10'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.9.1
26
+ version: '0.10'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: activemodel
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -196,9 +196,6 @@ files:
196
196
  - LICENSE
197
197
  - README.md
198
198
  - Rakefile
199
- - bin/console
200
- - bin/release
201
- - bin/setup
202
199
  - fishplate.gemspec
203
200
  - fishplate/.gitignore
204
201
  - fishplate/.rspec
data/bin/console DELETED
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require "bundler/setup"
4
- require "fishplate"
5
-
6
- # You can add fixtures and/or initialization code here to make experimenting
7
- # with your gem easier. You can also use a different console, if you like.
8
-
9
- # (If you use this, don't forget to add pry to your Gemfile!)
10
- # require "pry"
11
- # Pry.start
12
-
13
- require "irb"
14
- IRB.start(__FILE__)
data/bin/release DELETED
@@ -1,7 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- lib = File.expand_path('../lib', __dir__)
4
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
- require 'fishplate/version'
6
-
7
- `bundle && git commit -am "Release #{Fishplate::VERSION}" && bundle exec rake build release`
data/bin/setup DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
-
8
- # Do any other automated setup that you need to do here