simple_migrations 0.1.8 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +0 -11
- data/lib/simple_migrations.rb +1 -3
- data/simple_migrations-0.1.10.gem +0 -0
- data/simple_migrations.gemspec +15 -21
- metadata +19 -22
- data/bin/console +0 -14
- data/bin/setup +0 -8
- data/lib/simple_migrations/version.rb +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 077c6fe93e6f7eb80962d3ea76c93b4ae00502b655eb0842bb9ac376488e0d16
|
4
|
+
data.tar.gz: 483aca3d2fb5aae817d81b7d6860da6158717a7c2a6b4b90917c81c4d06dbecd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 801a8e2a4acaec77388ecb4221481438cf2eb26a68d2b8991798b54760334bd396866544394d5c8626e7d77b476bb8578e3075cd00cb01547248234ef6c92820
|
7
|
+
data.tar.gz: acb123ba546a3bd2d9006abbf3b98b6873a1f73107b30bd365cb0a92156f2d35e4843814a62fe37b074e45b06b4015e0a2922caf281a286888a1572fe9ccc912
|
data/README.md
CHANGED
@@ -25,17 +25,6 @@ namespace :migrate do
|
|
25
25
|
end
|
26
26
|
```
|
27
27
|
|
28
|
-
## Development
|
29
|
-
|
30
|
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
31
|
-
|
32
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
33
|
-
|
34
|
-
## Contributing
|
35
|
-
|
36
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/migrations. 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.
|
37
|
-
|
38
|
-
|
39
28
|
## License
|
40
29
|
|
41
30
|
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
data/lib/simple_migrations.rb
CHANGED
@@ -1,7 +1,5 @@
|
|
1
1
|
require 'fileutils'
|
2
2
|
|
3
|
-
require 'simple_migrations/version'
|
4
|
-
|
5
3
|
module SimpleMigrations
|
6
4
|
class << self
|
7
5
|
def sql_executor(&block)
|
@@ -35,7 +33,7 @@ module SimpleMigrations
|
|
35
33
|
sql = File.read(filename)
|
36
34
|
puts sql
|
37
35
|
exec(sql)
|
38
|
-
exec("insert into schema_migrations(id, ran_at) values(#{id}, '#{Time.now.
|
36
|
+
exec("insert into schema_migrations(id, ran_at) values(#{id}, '#{Time.now.to_s}')")
|
39
37
|
exec('commit')
|
40
38
|
puts 'Done.'
|
41
39
|
end
|
Binary file
|
data/simple_migrations.gemspec
CHANGED
@@ -1,25 +1,19 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
Gem::Specification.new do |s|
|
2
|
+
s.name = 'simple_migrations'
|
3
|
+
s.version = '1.0.0'
|
4
|
+
s.licenses = ['MIT']
|
5
|
+
s.summary = 'SQL only migrations'
|
5
6
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
7
|
+
s.authors = ["Tyler Hartland"]
|
8
|
+
s.email = 'tylerhartland7@gmail.com'
|
9
|
+
s.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
10
|
+
s.require_paths = ["lib"]
|
11
|
+
s.homepage = 'https://github.com/th7/simple_migrations'
|
12
|
+
s.metadata = { 'source_code_uri' => 'https://github.com/th7/simple_migrations' }
|
11
13
|
|
12
|
-
|
13
|
-
spec.license = "MIT"
|
14
|
+
s.add_dependency "rake", '~> 13.0'
|
14
15
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
spec.require_paths = ["lib"]
|
19
|
-
|
20
|
-
spec.add_dependency "rake", "~> 11.1"
|
21
|
-
|
22
|
-
spec.add_development_dependency 'pg', '~> 0.15'
|
23
|
-
spec.add_development_dependency "bundler", "~> 1.12"
|
24
|
-
spec.add_development_dependency "rspec", "~> 3.0"
|
16
|
+
s.add_development_dependency 'pg', '~> 1.0'
|
17
|
+
s.add_development_dependency "bundler", "~> 2.0"
|
18
|
+
s.add_development_dependency "rspec", "~> 3.0"
|
25
19
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_migrations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tyler Hartland
|
8
|
-
autorequire:
|
9
|
-
bindir:
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-05-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -16,42 +16,42 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '13.0'
|
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: '
|
26
|
+
version: '13.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: pg
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0
|
33
|
+
version: '1.0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '0
|
40
|
+
version: '1.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '2.0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '2.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rspec
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -66,9 +66,8 @@ dependencies:
|
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '3.0'
|
69
|
-
description:
|
70
|
-
email:
|
71
|
-
- tylerhartland7@gmail.com
|
69
|
+
description:
|
70
|
+
email: tylerhartland7@gmail.com
|
72
71
|
executables: []
|
73
72
|
extensions: []
|
74
73
|
extra_rdoc_files: []
|
@@ -81,17 +80,16 @@ files:
|
|
81
80
|
- LICENSE.txt
|
82
81
|
- README.md
|
83
82
|
- Rakefile
|
84
|
-
- bin/console
|
85
|
-
- bin/setup
|
86
83
|
- lib/simple_migrations.rb
|
87
84
|
- lib/simple_migrations/rake_tasks.rb
|
88
|
-
-
|
85
|
+
- simple_migrations-0.1.10.gem
|
89
86
|
- simple_migrations.gemspec
|
90
|
-
homepage:
|
87
|
+
homepage: https://github.com/th7/simple_migrations
|
91
88
|
licenses:
|
92
89
|
- MIT
|
93
|
-
metadata:
|
94
|
-
|
90
|
+
metadata:
|
91
|
+
source_code_uri: https://github.com/th7/simple_migrations
|
92
|
+
post_install_message:
|
95
93
|
rdoc_options: []
|
96
94
|
require_paths:
|
97
95
|
- lib
|
@@ -106,9 +104,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
106
104
|
- !ruby/object:Gem::Version
|
107
105
|
version: '0'
|
108
106
|
requirements: []
|
109
|
-
|
110
|
-
|
111
|
-
signing_key:
|
107
|
+
rubygems_version: 3.1.6
|
108
|
+
signing_key:
|
112
109
|
specification_version: 4
|
113
110
|
summary: SQL only migrations
|
114
111
|
test_files: []
|
data/bin/console
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require "bundler/setup"
|
4
|
-
require "simple_migrations"
|
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
|
data/bin/setup
DELETED