fishplate 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +10 -10
- data/README.md +37 -1
- data/fishplate.gemspec +2 -2
- data/lib/fishplate/tasks.rake +1 -1
- data/lib/fishplate/version.rb +1 -1
- metadata +6 -9
- data/bin/console +0 -14
- data/bin/release +0 -7
- data/bin/setup +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc82b1d36ec2b2e3d106d611c7bebd880d3ea0005ee1e2b17e45287c058d36ed
|
4
|
+
data.tar.gz: c141461a5c19ecee5b0181d25d6de2f73e7b3c0f6dbf240d67095aa64b2fecd6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
5
|
-
a9n (
|
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.
|
17
|
-
activesupport (= 6.0.
|
18
|
-
activerecord (6.0.
|
19
|
-
activemodel (= 6.0.
|
20
|
-
activesupport (= 6.0.
|
21
|
-
activesupport (6.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.
|
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.
|
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
|
3
|
+
Fishplate is a library to run `ActiveRecord` without `railties` gem
|
4
4
|
|
5
5
|

|
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{^(
|
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', '
|
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'
|
data/lib/fishplate/tasks.rake
CHANGED
@@ -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,
|
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
|
data/lib/fishplate/version.rb
CHANGED
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.
|
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-
|
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.
|
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.
|
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